TeamCoop

by Darkcry

Teams can build their own Factory with separate research. By default the rocket silo can not be build by players but there is one randomly spawned in the world

3 years ago
0.14 - 1.1
1.17K

b Invalid surface name when load on headless server

4 years ago

Hi

I get this error when im trying to add this mod to the server. hope it is a quick fix. so we can make the server headless.
The mod works fine when i host a multiplayer server from the game

C:\steamcmd\steamapps\common\Factorio>start /wait ./bin/x64/factorio --start-server ./saves/DreamZ.zip --mod-directory C:\steamcmd\steamapps\common\Factorio\mods
0.001 2020-04-09 11:47:38; Factorio 0.17.79 (build 47865, win64, steam)
0.001 Operating system: Windows 10 (version 1809)
0.001 Program arguments: "./bin/x64/factorio" "--start-server" "./saves/DreamZ.zip" "--mod-directory" "C:\steamcmd\steamapps\common\Factorio\mods"
0.003 Read data path: C:/steamcmd/steamapps/common/Factorio/data
0.003 Write data path: C:/Users/Administrator/AppData/Roaming/Factorio [95081/121552MB]
0.003 Binaries path: C:/steamcmd/steamapps/common/Factorio/bin
0.012 System info: [CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz, 8 cores, RAM: 4324/16270 MB, page: 4988/18702 MB, virtual: 4257/134217727 MB, extended virtual: 0 MB]
0.014 Running in headless mode
0.027 Loading mod settings event-listener 0.9.0 (settings.lua)
0.028 Loading mod settings TeamCoop 2.0.6 (settings.lua)
0.028 Loading mod settings diplomacy 2.8.0 (settings.lua)
0.030 Loading mod core 0.0.0 (data.lua)
0.092 Loading mod base 0.17.79 (data.lua)
0.347 Loading mod secondary-chat 1.23.9 (data.lua)
0.470 Loading mod diplomacy 2.8.0 (data.lua)
0.590 Loading mod base 0.17.79 (data-updates.lua)
0.713 Loading mod diplomacy 2.8.0 (data-final-fixes.lua)
0.837 Checksum for core: 2035938594
0.837 Checksum of base: 4156627525
0.837 Checksum of event-listener: 4087166849
0.837 Checksum of secondary-chat: 1642899020
0.838 Checksum of TeamCoop: 1157427061
0.838 Checksum of diplomacy: 4188644843
1.008 Prototype list checksum: 2720380171
1.044 Info PlayerData.cpp:70: Local player-data.json unavailable
1.044 Info PlayerData.cpp:75: Cloud player-data.json unavailable
1.047 Factorio initialised
1.047 Info ServerSynchronizer.cpp:30: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
1.048 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
1.048 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
1.049 Loading map C:\steamcmd\steamapps\common\Factorio./saves/DreamZ.zip: 1173546 bytes.
1.132 Loading level.dat: 2546578 bytes.
1.138 Info Scenario.cpp:187: Map version 0.17.79-0
1.297 Loading script.dat: 4366 bytes.
1.301 Checksum for script C:/Users/Administrator/AppData/Roaming/Factorio/temp/currently-playing/control.lua: 3265260072
1.302 Checksum for script event-listener/control.lua: 0
1.310 Checksum for script secondary-chat/control.lua: 332493328
1.314 Checksum for script TeamCoop/control.lua: 1753419977
1.319 Checksum for script diplomacy/control.lua: 696769375
1.348 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The mod TeamCoop caused a non-recoverable error.
Please report this error to the mod author.

Error while running event TeamCoop::on_init()
Invalid surface name: Surface names must not be blank and must be unique.
stack traceback:
TeamCoop/utils.lua:969: in function 'CreateGameSurface'
TeamCoop/control.lua:88: in function <TeamCoop/control.lua:79>
stack traceback:
[C]: in function 'create_surface'
TeamCoop/utils.lua:969: in function 'CreateGameSurface'
TeamCoop/control.lua:88: in function <TeamCoop/control.lua:79>"
1.350 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(CreatingGame) to(InitializationFailed)
1.353 Info ServerMultiplayerManager.cpp:138: Quitting multiplayer connection.
1.353 Info ServerMultiplayerManager.cpp:776: updateTick(4294967295) changing state from(InitializationFailed) to(Closed)
1.392 Info UDPSocket.cpp:218: Closing socket
1.393 Goodbye

C:\steamcmd\steamapps\common\Factorio>pause
Press any key to continue . . .

4 years ago

Hi
Please use the latest version 3.0.1 and update your factorio to 0.18.xx and try again. Thank you

4 years ago

im making a rather big server, would like it to be a stable version. dont want to risk to the server to crash. Would it be possible to fix it for 0.17? since most people would be using that.
Tanks for you time so far
/A

4 years ago

the next stable release is around the corner and i do not have time to fix an old problem.
but would you try to load only this mod on your server to check if it is not a mod compatiblity error? if it works try to add one more mod and check again.
the code for "surface generation" was not changed from 2.0.6 to 3.0.1 so it can only be caused by the game itself or another mod

4 years ago

ok tanks il look in to that

4 years ago

Looks like the problem was with the save.
-Tried to load only the mod, that did not work.
-Updated bot mod and save to 0.18, no dice
-Remade the save, and everything worked like a charm

Thought you would like to know.
Thanks for your time

/A

4 years ago

How did you remade the save? @ParabuX

New response