Making headless server show up in public section

Arrange meetings with other people to play MP, announce your servers.
Post Reply
User avatar
Xterminator
Filter Inserter
Filter Inserter
Posts: 981
Joined: Sun Jun 15, 2014 4:49 pm
Contact:

Making headless server show up in public section

Post by Xterminator »

Heya,

So I'm playing around with setting up a headless server but I'm a bit stuck when it comes to listing it in the public in-game browsing section. I read through the wiki and it said I need to change the stuff in the server-settings file. I found the example file for that the /data folder but have a few questions of where to go from here and would love some help. :)

1.) Do I leave the file in the /data folder or do I need to put it somewhere else for the server to find it? Also do I need to rename it to something besides server-settings-example ?
2.) Do I need to specificy in the server text file to actually look for the settings file or will it do it automatically if its in the right place?
3.) It says/looks like I need to comment out or un-comment some parts for it to actually read the parts of the file I want. I don't know really anything about this type of stuff so I'm not sure how or what to comment out. By default all the stuff is in quotes " " so do I get rid of the quotes for parts I want the server to read or vice versa?

Thank you for any help you can provide. The wiki was very vague in regards to what actually needed to be done here. :/
Image Image Image

noliVe
Filter Inserter
Filter Inserter
Posts: 327
Joined: Tue May 24, 2016 7:46 am
Contact:

Re: Making headless server show up in public section

Post by noliVe »

server-Settings.json

rename the example file and put in your username and password to get an auth token for the game
and check the _current.log for error outputs or provide the log here the most interesing parts are always the parts with errors
like

Code: Select all

   0.665 Info PlayerData.cpp:47: Local player-data.json unavailable
   0.665 Info PlayerData.cpp:52: Cloud player-data.json unavailable
   0.666 Custom inputs active: 0
   0.667 Factorio initialised
   0.668 Error Util.cpp:57: /opt/factorio/factorio/medium: cannot open file
or
4.436 Info Router.cpp:594: Router state -> Connected
4.436 Info Synchronizer.cpp:56: NetworkTick(0) initialized Synchronizer local peer(0) latency(6).
4.436 Hosting game at port 40012, peerID 0, session magic 82
4.436 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-server-padlock
4.527 Info HttpSharedState.cpp:108: Status code: 200
4.527 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (3LeSr7mwX2w9dZElkdOJFH1PKR5FSF54) from the auth server.
4.527 Info MultiplayerManager.cpp:1000: networkTick(0) mapTick(2088001) changing state from(CreatingGame) to(InGame)
4.527 Info NetworkInputHandler.cpp:45: mapTick(2088001) networkTick(0) initialized NetworkInputHandler local peer(0).
4.527 Info Router.cpp:1007: Asking pingpong servers (pingpong1.factorio.com:34197, pingpong2.factorio.com:34197) for own address
4.577 Info Router.cpp:867: Own address is 89.163.255.119:40012
4.645 Info MultiplayerManager.cpp:1531: Received peer info for peer(0) username(<server>).
4.645 Info MultiplayerManager.cpp:1147: networkTick(6) mapTick(2088001) received stateChanged peerID(0) oldState(Ready) newState(CreatingGame)
4.645 Info MultiplayerManager.cpp:1147: networkTick(6) mapTick(2088001) received stateChanged peerID(0) oldState(CreatingGame) newState(InGame)
5.384 Info MultiplayerManager.cpp:747: Matching server connection resumed

Post Reply

Return to “Multiplayer”