The bat file should have the following content: On windows, it may be useful to start the server with a. bin/圆4/factorio -start-server-load-latest -server-settings. For example to start factorio using the most recent saved map, you would run: By default this is in the factorio data folder. Starting the factorio server requires you to specify the location of the server-settings.json file. bin/圆4/factorio -create saves/my-save.zip -map-gen-settings my-map-gen-settings.json -map-settings my-map-settings.json ![]() The -map-gen-settings and -map-settings options must be used with the -create option when you create a new map. server-settings which consolidated several command-line options into a single file (Added in 0.14.12)Įxample files for each of these parameters are included in the data subdirectory.map-settings to control pollution spread, biter expansion and evolution, and more (Added in 0.15).map-gen-settings to set parameters used by the map generator such as width and height, ore patch frequency and size, etc.There are several JSON configuration files that factorio can make use of to change the server and map settings: saves/my-save.zip # This starts a server that will host the file created on the previous line saves/my-save.zip # This creates a new save, as if by clicking the New Game button in the GUI This can easily be done using the -create command-line argument. You will need to create your save file before you start the server, as the dedicated server REQUIRES a save file to be provided. Saves the game on exit (and autosaves normally)Ġ.13 onwards expects -start-server to be followed by a path to a save file.Game is paused while there are no players connected (though this can be overridden using the no-auto-pause option in the server-settings.json).Game starts immediately and loads a save given as a parameter to the command.Graphics are not initialized (faster start up, less memory usage, works on completely headless servers).You can run factorio -help to get a list of all command-line arguments that Factorio accepts. However, practical limit for this is much lower, popular streamers have managed to get well over a hundred players.Īs of Factorio version 0.12.0 onwards, a dedicated (or headless) server can be started using the -start-server command line option. The hard limit for the number of players is 65,535.Make sure there is no firewall or anti-virus blocking the UDP-packets.Some routers do this and require additional configuration to prevent it. Make sure your router does not randomize the source port on packets outbound from 34197.Make sure you configure your router's port forwarding correctly for port 34197.The game builds its own "reliable delivery" layer built on UDP to deal with packet loss and reordering issues. ![]() The port can be changed in the config file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |