Hi Darkcry,
I am running a factorio 0.17.11 headless server (or at least I think that's the version. My hoster only provides me the build number 3635924 and Information that it's the latest build for 0.17.x).
When creating my map locally I don't have any issues and the mod works fine, also in conjunction with all my other mods. I save that freshly generated game and copy tha game file as well as all the migrations to the server. When I try to start the server I get the Error as in this ticket's title. If I do all this without your mod installed, copy the files as described and then start the server it runs without problems.
Here's an excerpt from my logfile:
11.990 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:895: in function 'CreateGameSurface'
TeamCoop/control.lua:73: in function <TeamCoop/control.lua:64>
stack traceback:
[C]: in function 'create_surface'
TeamCoop/utils.lua:895: in function 'CreateGameSurface'
TeamCoop/control.lua:73: in function <TeamCoop/control.lua:64>
11.990 Info ServerMultiplayerManager.cpp:714: updateTick(4294967295) changing state from(CreatingGame) to(InitializationFailed)
11.990 Info GlobalContext.cpp:678: Waiting for child processes to exit:
11.993 Info ServerMultiplayerManager.cpp:138: Quitting multiplayer connection.
11.993 Info ServerMultiplayerManager.cpp:714: updateTick(4294967295) changing state from(InitializationFailed) to(Closed)
12.047 Info UDPSocket.cpp:210: Closing socket
12.052 Goodbye
And here's my full mod list:
AfraidOfTheDark 1.0.21
AsphaltRoads 1.1.4
base 0.17.11
Big_Brother 0.5.0
BotRecaller 0.17.3
Bottleneck 0.10.0
bullet-trails 0.4.1
cheaper_landfill 1.7.0
ClosestFirst 0.17.3
deadlock-beltboxes-loaders 2.0.8
Epic-Artillery-Sounds 1.0.1
even-distribution 0.3.1
Explosive Excavation 1.1.5
FactorioExtended-Plus-Core 0.2.0
FactorioExtended-Plus-Equipment 0.2.1
FactorioExtended-Plus-Logistics 0.2.1
FactorioExtended-Plus-Machines 0.2.1
FactorioExtended-Plus-Power 0.2.2
FactorioExtended-Plus-Storage 0.2.2
FactorioExtended-Plus-Transport 0.2.2
FactorioExtended-Plus-Weaponry 0.2.2
Flow Control 3.0.4
FNEI 0.2.1
helmod 0.8.3
Infinizoom 0.1.3
LogisticTrainNetwork 1.10.2
MaxRateCalculator 3.0.20
MushroomCloud 1.0.4
NapalmArtillery 0.17.4
nicefill 0.1.11
power-grid-comb 0.17.2
Realistic_Electric_Trains 0.3.1
Robo-Charge-1x1 0.17.0
rso-mod 4.0.2
SantasNixieTubeDisplay 0.1.8
SpaceMod 0.4.1
Squeak Through 1.3.0
textplates 0.4.1
VehicleSnap 1.17.0
Vehicle-turrets 0.1.12
vtk-deep-core-mining 1.17.1
Warehousing 0.2.1
YARM 0.7.402
I tried googling a solution to this but my understanding of lua is very limited. To me this looks like maybe when the server starts the mod tries to treat the server like a player and assign it it's own starting area? Or not, but the error says something about a surface parameter not being provided - maybe some function signature is different when running in headless mode. Just a guess.