With the right configuration, you can make your Alchemy Factory game server exactly the way you want it: with your own name, password, player limit, admin access, and a save interval that works for you. In this guide, we’ll show you which settings to configure as startup parameters in ZapX, what goes in ServerConfig.ini, and what to keep in mind.
Alchemy Factory has two places for your settings:
- The startup parameters in the Configuration tab. This is where you set the server name and server password.
- The
ServerConfig.inifile in your server’s main folder. You can edit it in the Configuration tab, use Edit directly to edit it as raw text, or edit it in the Files tab.
The game creates ServerConfig.ini the first time it starts. The file doesn’t exist before then. During the very first startup, your server also installs runtime components once, which can take 15 to 25 minutes.
Alchemy Factory only reads ServerConfig.ini at startup. It’s best to edit the file while your server is stopped, then start it again. Each setting goes on its own line in the format name=value.
| Startup parameter | Meaning |
|---|---|
| Server name | The name of your server in the server list. Default: Hosted by ZAP-Hosting.com |
| Server password | The password players need to join. Leave it blank for a server without a password. |
Your server writes both values to ServerConfig.ini as server_name and server_password every time it starts. If you change them directly in the file, they’ll be overwritten the next time the server starts. After you save the startup parameters, ZapX will offer to restart the server.
All entries are in the [ServerSettings] section.
| Entry | Meaning |
|---|---|
max_clients | The number of players who can play on your server at the same time. Default: 4. |
admin_password | The password you use to become an admin in the game. It’s blank by default, so nobody can become an admin. |
max_admins | The number of players who can be admins at the same time. Default: 1. |
autosave_mode | How often your server saves, as described below. Default: 1 (every 5 minutes). |
pause_when_empty | 1 (default) pauses the game when no players are connected. Set it to 0 to keep your factory running. |
server_public | Set to 1 to show your server in the server list, or 0 to hide it. |
server_lan | Leave this set to 0. Set it to 1 to make your server visible only on a local network. |
server_nameandserver_passwordare taken from the startup parameters every time the server starts.- Your server sets
server_relayto0at every startup so players can join using the IP address and port. - The
server_portandquery_portvalues in the file have no effect. Your server always uses the ports shown in the Overview.
All other values are retained when your server restarts.
Use autosave_mode to choose when your server saves the game:
0→ Save when sleeping in the game1→ Every 5 minutes (default)2→ Every 10 minutes3→ Never
Don’t set autosave_mode to 3. Otherwise, you’ll lose any progress made since the last save when the server restarts. Your save files are in AlchemyFactory/Saved/SaveGames, with a separate folder for each world.
The console in Alchemy Factory is read-only. Enter admin commands directly in the game:
- Stop your server and add a password for
admin_passwordinServerConfig.ini. - Start your server.
- In the game, press Enter to open chat, then type
/admin, followed by a space and your admin password.
Type /help in chat to see all available commands. To let multiple players be admins at the same time, increase max_admins.
The console shows which settings your server applied at startup. Lines containing [ServerConfig] come from the game itself. For example, the [ServerConfig] loaded: line shows the number of players currently allowed under maxClients.
Your Alchemy Factory server is now configured the way you want it. Our guide Connecting to the server explains how your friends can join. If something isn’t working as expected, see our guide to Common issues. If you have any other questions, our support team is available every day! 🙂
