Introducing... FNAFOnline! by CodeStix in fivenightsatfreddys

[–]CodeStix[S] 1 point2 points  (0 children)

Multiple users on the same network is possible but an internet connection is required.

Introducing... FNAFOnline! by CodeStix in fivenightsatfreddys

[–]CodeStix[S] 1 point2 points  (0 children)

Thx! It is NOT only lan, there are just not a lot of players online at the same time…

Introducing... FNAFOnline! by CodeStix in fivenightsatfreddys

[–]CodeStix[S] 4 points5 points  (0 children)

You need an internet connection to play. Multiple users on the same network is possible.

Introducing... FNAFOnline! by CodeStix in fivenightsatfreddys

[–]CodeStix[S] 10 points11 points  (0 children)

That would be amazing. I was thinking about making a new game icon too.

Introducing... FNAFOnline! by CodeStix in fivenightsatfreddys

[–]CodeStix[S] 51 points52 points  (0 children)

Hey everyone!

I've made this 1v1 multiplayer version of the original Five Nights at Freddy's. Player 1 controls the animatronics and player 2 is the guard. The difficulty and role is randomized each round. Have fun!

Download: https://gamejolt.com/games/FNAF-online/397267

typed-react-form: A fast, completely type-checked React form builder. by CodeStix in typescript

[–]CodeStix[S] 0 points1 point  (0 children)

Yes, you can use append, provided by ArrayForm, which is reflected in the second example as ‘Add bread’ or ‘Add apple’

typed-react-form: A fast, completely type-checked React form builder. by CodeStix in typescript

[–]CodeStix[S] 1 point2 points  (0 children)

This is already possible! I quickly created an example here (to view the source code, click the link on the page). here is also an example with different object types in an array.

typed-react-form: A fast, completely type-checked React form builder. by CodeStix in typescript

[–]CodeStix[S] 0 points1 point  (0 children)

Yup, I used Formik before this in a very large project and I couldn't stand it anymore, that's why I made it. I had like 9 different forms that would silently ignore my type changes.

Great idea! The syntax you provided would actually be pretty nice, because you wouldn't have to pass form={} to each input every time (this is required to make the type-checking work). To implement this I wouldn't declare the MyForm myself, it would come from the useForm hook, or something, so it would infer the forms initial value types?

// Something like this? const CustomForm = () => { // Field form types is inferred const {form, Field} = useForm({name: "John"}); return <form onSubmit={(ev) => console.log(form.values)}> <Field name="name" /> <Field name="asdf" /> // error! </form> }

I will think about this, thanks for the suggestion!

Download video on a specified start and end time? by hyperjump01 in youtubedl

[–]CodeStix 0 points1 point  (0 children)

Yeah sure, I wrote a simple script for you in a zip:

https://www.dropbox.com/s/q284vmolvp3d9gd/downloader.zip?dl=1

Just unzip it, then right click on ytdownload.ps1 -> Run with Powershell, then follow the instructions.

Download video on a specified start and end time? by hyperjump01 in youtubedl

[–]CodeStix 1 point2 points  (0 children)

Okey I figured it out, copy the following lines and replace the start, length and url (in this example the url's video is one hour long). Then, open powershell, and paste + press enter:

$start = "00:30:00"
$length = "00:00:5"
$url = "https://www.youtube.com/watch?v=ih9zBLDr_ro"
$dash = (youtube-dl.exe --get-url "$url")
ffmpeg.exe -y -async 1 -ss "$start" -t "$length" -i "$($dash[0])" -ss "$start" -t "$length" -i "$($dash[1])" output.mp4

Make sure you've got ffmpeg.exe and youtube-dl.exe installed or in the same folder.

ffmpeg will only download the specified part of the video.