Page 1 of 1

Allow clients without factorio.com account

Posted: Thu Dec 31, 2020 2:49 am
by SulleyTheCat
I have a dedicated server running with the following settings in the server-settings.json

Code: Select all

"require_user_verification": false,
"verify_user_identity": false
But whenever I try to connect to the server I get the following message in the server log.

Code: Select all

12.735 Refusing connection for address (IP ADDR:({x.x.x.x:53524})), username (SulleyTheCat). UserVerificationMissing
And the client says this...

Code: Select all

"The game you are connecting to requires you to log in."
Can anyone help me?

Re: Allow clients without factorio.com account

Posted: Thu Dec 31, 2020 3:04 am
by Loewchen
Your server either does not actually use your settings file or the verification settings are commented out. If you don't think that is it, post the server log and complete settings file with masked passwords.

Re: Allow clients without factorio.com account

Posted: Thu Dec 31, 2020 3:44 am
by SulleyTheCat

Code: Select all

   0.000 2020-12-30 21:45:37; Factorio 1.0.0 (build 54889, linux64, headless)
   0.020 Operating system: Linux (Debian 8.11)
   0.020 Program arguments: "./factorio/bin/x64/factorio" "--start-server" "/home/steam/factorio-dedicated-server/wheighed.zip"
   0.020 Read data path: /home/steam/factorio-dedicated-server/factorio/data
   0.020 Write data path: /home/steam/factorio-dedicated-server/factorio [350794/402970MB]
   0.020 Binaries path: /home/steam/factorio-dedicated-server/factorio/bin
   0.026 System info: [CPU:       Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz, 4 cores, RAM: 3959 MB]
   0.026 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.026 Running in headless mode
   0.029 Loading mod core 0.0.0 (data.lua)
   0.092 Loading mod base 1.0.0 (data.lua)
   0.432 Loading mod base 1.0.0 (data-updates.lua)
   0.601 Checksum for core: 2630831588
   0.602 Checksum of base: 3509992273
   0.856 Prototype list checksum: 3301461508
   0.905 Info PlayerData.cpp:68: Local player-data.json available, timestamp 1609382572
   0.905 Info PlayerData.cpp:75: Cloud player-data.json unavailable
   0.906 Warning Campaign.cpp:61: Error while parsing __base__/campaigns/npe/description.json:
Value must be a bool in property tree at ROOT.multiplayer-compatible
   0.931 Factorio initialised
   0.931 Info ServerSynchronizer.cpp:28: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   0.931 Info ServerMultiplayerManager.cpp:769: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   0.931 Info ServerMultiplayerManager.cpp:769: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   0.931 Loading map /home/steam/factorio-dedicated-server/wheighed.zip: 700667 bytes.
   0.948 Loading level.dat: 1162062 bytes.
   0.954 Info Scenario.cpp:187: Map version 1.0.0-0
   0.979 Loading script.dat: 416 bytes.
   0.982 Checksum for script /home/steam/factorio-dedicated-server/factorio/temp/currently-playing/control.lua: 3931528263
   0.985 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34197}))
   0.985 Hosting game at IP ADDR:({0.0.0.0:34197})
   0.986 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/generate-server-padlock-2?api_version=4
   1.113 Info AuthServerConnector.cpp:66: Obtained serverPadlock for serverHash (frShx5bV9x2cqoZhSuPUUTmFJmLPzRRU) from the auth server.
   1.113 Info ServerMultiplayerManager.cpp:769: updateTick(0) changing state from(CreatingGame) to(InGame)
  34.649 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(IP ADDR:({45.72.235.6:61279}))
  34.649 Refusing connection for address (IP ADDR:({45.72.235.6:61279})), username (SulleyTheCat). UserVerificationMissing
3201.343 Received SIGINT, shutting down
3201.343 Quitting: signal.
3201.343 Info MainLoop.cpp:402: Saving map as /home/steam/factorio-dedicated-server/wheighed.zip
3201.395 Info MainLoop.cpp:413: Saving progress: 0.250000%
3201.403 Info MainLoop.cpp:413: Saving progress: 100.000000%
3201.422 Info ServerMultiplayerManager.cpp:112: Disconnecting multiplayer connection.
3201.422 Info ServerMultiplayerManager.cpp:769: updateTick(0) changing state from(InGame) to(DisconnectingScheduled)
3201.456 Info ServerMultiplayerManager.cpp:769: updateTick(0) changing state from(DisconnectingScheduled) to(Disconnecting)
3201.489 Info ServerMultiplayerManager.cpp:769: updateTick(0) changing state from(Disconnecting) to(Disconnected)
3201.490 Info ServerMultiplayerManager.cpp:136: Quitting multiplayer connection.
3201.490 Info ServerMultiplayerManager.cpp:769: updateTick(0) changing state from(Disconnected) to(Closed)
3201.653 Info UDPSocket.cpp:218: Closing socket
3201.653 Info UDPSocket.cpp:248: Socket closed
3201.710 Goodbye

Code: Select all

{
  "name": "Name of the game as it will appear in the game listing",
  "description": "Description of the game that will appear in the listing",
  "tags": ["game", "tags"],

  "_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
  "max_players": 0,

  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
                          "lan: Game will be broadcast on LAN"],
  "visibility":
  {
    "public": false,
    "lan": false
  },

  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
  "username": "",
  "password": "",

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "",

  "game_password": "derp",

  "_comment_require_user_verification": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "require_user_verification": false,
  "verify_user_identity": false,

  "_comment_max_upload_in_kilobytes_per_second" : "optional, default value is 0. 0 means unlimited.",
  "max_upload_in_kilobytes_per_second": 0,

  "_comment_max_upload_slots" : "optional, default value is 5. 0 means unlimited.",
  "max_upload_slots": 5,

  "_comment_minimum_latency_in_ticks": "optional one tick is 16ms in default speed, default value is 0. 0 means no minimum.",
  "minimum_latency_in_ticks": 0,

  "_comment_ignore_player_limit_for_returning_players": "Players that played on this map already can join even when the max player limit was reached.",
  "ignore_player_limit_for_returning_players": false,

  "_comment_allow_commands": "possible values are, true, false and admins-only",
  "allow_commands": "admins-only",

  "_comment_autosave_interval": "Autosave interval in minutes",
  "autosave_interval": 10,

  "_comment_autosave_slots": "server autosave slots, it is cycled through when the server autosaves.",
  "autosave_slots": 5,

  "_comment_afk_autokick_interval": "How many minutes until someone is kicked when doing nothing, 0 for never.",
  "afk_autokick_interval": 0,

  "_comment_auto_pause": "Whether should the server be paused when no players are present.",
  "auto_pause": true,

  "only_admins_can_pause_the_game": true,

  "_comment_autosave_only_on_server": "Whether autosaves should be saved only on server or also on all connected clients. Default is true.",
  "autosave_only_on_server": true,

  "_comment_non_blocking_saving": "Highly experimental feature, enable only at your own risk of losing your saves. On UNIX systems, server will fork itself to create an autosave. Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.",
  "non_blocking_saving": false,

  "_comment_segment_sizes": "Long network messages are split into segments that are sent over multiple ticks. Their size depends on the number of peers currently connected. Increasing the segment size will increase upload bandwidth requirement for the server and download bandwidth requirement for clients. This setting only affects server outbound messages. Changing these settings can have a negative impact on connection stability for some clients.",
  "minimum_segment_size": 25,
  "minimum_segment_size_peer_count": 20,
  "maximum_segment_size": 100,
  "maximum_segment_size_peer_count": 10
}

Re: Allow clients without factorio.com account

Posted: Thu Dec 31, 2020 3:52 am
by Zavian
Try passing the settings to the server with --server-settings "path-to-settings-file"

Re: Allow clients without factorio.com account

Posted: Thu Dec 31, 2020 4:47 am
by SulleyTheCat
that worked, thanks! :D