Jump to content

[41.77][MP][Dedicated] Dedicated server fails to start if local client open


UdderlyEvelyn

Recommended Posts

This does not happen every single time I try this but when it does, it is reproducible back to back without any failure. Nothing changes to make it happen, and nothing changes to make it stop. If I close the client it will work and if I then leave it on and restart the server it will fail. It gives this error message (some previous lines included for context):

 

LOG  : General     , 1665368097678> 5,344,655,451> <End of map-folders list>
LOG  : General     , 1665368097711> 5,344,655,484> IsoMetaGrid.Create: finished scanning directories in 0.044 seconds
LOG  : General     , 1665368097711> 5,344,655,484> IsoMetaGrid.Create: begin loading
LOG  : General     , 1665368097712> 5,344,655,485> LuaEventManager: adding unknown event "OnPreDistributionMerge"
ERROR: General     , 1665368097713> 5,344,655,485> GameServer.main> Exception thrown java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.rawget(Object)" because "zombie.Lua.LuaManager.env" is null at LuaEventManager.AddEvent line:417. Message: Exception Thrown
ERROR: General     , 1665368097713> 5,344,655,486> DebugLogStream.printException> Stack trace:
java.lang.NullPointerException: Cannot invoke "se.krka.kahlua.vm.KahluaTable.rawget(Object)" because "zombie.Lua.LuaManager.env" is null
	at zombie.Lua.LuaEventManager.AddEvent(LuaEventManager.java:417)
	at zombie.Lua.LuaEventManager.checkEvent(LuaEventManager.java:47)
	at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:60)
	at zombie.iso.IsoWorld.init(IsoWorld.java:2289)
	at zombie.network.GameServer.main(GameServer.java:703)
LOG  : General     , 1665368097713> 5,344,655,486> Server Terminated.
src/tier1/fileio.cpp (5164) : m_vecRegisteredWriters.Count() == 0
src/tier1/fileio.cpp (5164) : m_vecRegisteredWriters.Count() == 0

 

I am running many mods, but these mods work fine together and do not stop the server from starting.. unless the client is open on the same machine. It's very odd! I do this because I am a modder and server operator and this is how I test both my mods and other mods in concert with one another before pushing them to live. The mod that is triggering OnPreDistirbutionMerge content I believe is More Loot Settings, but it doesn't really matter because it will do it with whatever event code calls first, probably even unmodded. After not being able to start the server with the client open for an hour or so now I suddenly can - the problem is intermittent and seemingly arbitrary but probably has to do with the state of the client since the server is being freshly started whenever the issue comes up. I think what ends up changing it is at some point I restart the client and then it works fine even if I start the client back up *first*.

Edited by UdderlyEvelyn
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...