-
Notifications
You must be signed in to change notification settings - Fork 75
Frequently asked questions
Here’s a tutorial for quickly setting up the server via localhost.
- Install Node.js. We'd recommend using the latest LTS version.
-
Open a Terminal/Command Prompt window and run
npm i ws
. This will install ws and allow you to run your server on localhost. If there is an error, go to the/server/
folder and run (by doubleclicking)console.bat
and then re-enter the command. (this entire step has been bolded because some people forget it for some reason) - For the most stable experience, use the source code of the latest release. If you live on the edge or want to use the latest features, download the latest revision of the repository.
- Extract the downloaded file. You'll now have a folder containing all of the files the server needs to run.
- Open either
run.bat
(if you're using Windows) orrun.sh
(if you're not). A terminal window will open and (if there are no serious errors) the server will start up. Closing the window will shut down the server. - Go to localhost:26301 in your preferred web browser.
- Play the game.
If you encounter problems that you need help for, visit the #hosting-support
channel on our Discord Server!
You haven't installed ws. Do so by running the command npm i ws
.
Running the server makes a server that can be connected to. Windows is asking if that server should be able to communicate on networks beyond your computer. If you want your server to be accessible by opening it to LAN or by port forwarding, you should allow it.
Because Windows doesn't like unsigned .bat files. Click "More info" and then click "Run anyway". Optionally you can disable that notification entirely.
This usually happens because of a bug in the code somewhere. Check the files for errors and try again, or undo some recent changes.
Your host
Configuration Variable is wrong, update it and it may work.
A lot of changes have been made to things like export/guntype names in order to make them immediately understandable to novices. You will need to change your code to accommodate for these changes!
Tanks are limited to 30 upgrades by default. This can be increased in app.js, but there are very few situations where you actually need that much anyway.
This comparison is somewhat snarky and wasn't made by a developer. Please take it with a grain of salt.
- Glitch, Replit or Heroku - Hardware from 1950
- A VPS - money but good option if you have a playerbase and you're dedicated to your project
- Cloudflare' Quick Tunnels, ngrok or localtunnel - requires your pc to be on
"you prob forgot a bracket, syntax error, learn js syntax, or maybe learn js basics as well"
- @trplnr, 2023
We've migrated definitions to modules/definitions
. Please go there instead.
We changed it to P
by default because not all keyboards have ̀
.
No.