New writer: How do I get the server to launch? Serve.command didn't work

Hey fellow writers,

I was trying to get setup so that I could start to learn the syntax and work on the game and ran into a little bit of trouble. Since you have all been through this before, I figured I’d ask around. I’m using a mac for this setup, so when I ran serve.command of course the annoying gatekeeper popped up. I did the whole allow thing and when the script ran it didn’t launch a browser. Is there a way I can manually path to the server? I know that the whole point of having to run the local server is because javascript isn’t allowed to interact with the user’s local system, so I’m sure the server is running on my machine, I just don’t know how to get to it. I can just open the index.html file in the browser, but will I need to do anything else to make sure the JS runs? Also do I have to run serve.command every time?

You should be able to just open index.html and this screen should pop-up in your default browser:

Click the upload files button (on mine its localized to Polish - ‘Wybierz pliki’) and select the folder in which your game files are and it should just run the game.

The JS will run in your browser just like a normal webpage.

I will caveat this advice however, in that I have never used a Mac, so if there is a radically different process involved I will be unable to help! Sorry!

That’s it. I feel dumb, but thanks for the help.

1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.