I am trying to shape up my Block City Script for public release. The script itself has been used on a dedicated server, but I am attempting to allow it to be used in non-dedicated servers as well.
The script works just fine, however when the host attempts to disconnect (or end the server without closing the game), a plethora of errors in console appear.
This is what appears in the console with trace enabled:
Entering GameConnection::onDrop(6161)
Entering MiniGameSO::removeMember(6096, 6161)
Entering messageClient(, 2, Rodion left the mini-game., 6161, 0)
Leaving messageClient() - return
Entering GameConnection::setScore(6161, 0)
Leaving GameConnection::setScore() - return
Entering GameConnection::resetVehicles(6161)
Leaving GameConnection::resetVehicles() - return
Entering GameConnection::ClearEventObjects(6161, 1392640)
Leaving GameConnection::ClearEventObjects() - return
base/server/scripts/allGameScripts.cs (26693): Unable to find object: '6164' attempting to call function 'getCount'
base/server/scripts/allGameScripts.cs (26696): Unable to find object: '6164' attempting to call function 'getObject'
base/server/scripts/allGameScripts.cs (26699): Unable to find object: '6164' attempting to call function 'getDataBlock'
base/server/scripts/allGameScripts.cs (26699): Unable to find object: '' attempting to call function 'getId'
Judging from the traced console log, the only thing I can ascertain is that the automatic minigame system is having some trouble when the host disconnects from the non-dedicated server. I haven't been able to determine what object it's looking for and I haven't been able to determine how to end the errors. I should stress that this error does not appear except when the host of a non-dedicated server disconnects from the server (NOT QUIT).
I'd appreciate any help into the matter that someone can give.
Attached is a traced console log and the script as well.
<REMOVED>