I may have found a bug. When creating a local server with NS2+, the initial map will load fine. Changing to a second map will load into a black screen with lua errors:
Consistency checking took 1 seconds
Server : 0.000000 : INFO: LuaJIT setup: maxtrace=20,000, maxmcode=35,000
[Server] Script Error #1: File not found: lua/NS2Plus/CHUD_Shared.lua
Call stack:
#1: Load lua/ModLoader.lua:168
fileName = "lua/NS2Plus/CHUD_Shared.lua"
reload = nil
#2: Load lua/ModLoader.lua:173
fileName = "lua/Class.lua"
reload = nil
(for generator) = function
(for state) = {1="lua/NS2Plus/CHUD_Shared.lua", 2="lua/NS2Plus/CHUD_Server.lua", lua/NS2Plus/CHUD_Server.lua=2, lua/NS2Plus/CHUD_Shared.lua=1 }
(for control) = 1
_ = 1
hookFile = "lua/NS2Plus/CHUD_Shared.lua"
#3: lua/PostLoadMod.lua:8
#4: oldScriptLoad [C]:-1
#5: Load lua/ModLoader.lua:168
fileName = "lua/PostLoadMod.lua"
reload = nil
#6: lua/Server.lua:416
chatMessageCount = 0
reservedSlots = {amount=0, ids= { } }
kMapEntityLoadPriorities = {ns2_gamerules=1 }
GetMapEntityLoadPriority = function
DumpServerEntity = function
LoadServerMapEntity = function
OnMapPreLoad = function
CheckForDuplicateLocations = function
OnMapPostLoad = function
OnCanPlayerHearPlayer = function
[348.087] Worker 01 : Error: lua/ModLoader.lua:168: Couldn't load script 'lua/NS2Plus/CHUD_Shared.lua' (file not found)
[Server] Script Error #2: lua/ModLoader.lua:168: Couldn't load script 'lua/NS2Plus/CHUD_Shared.lua' (file not found)
Call stack:
#1: oldScriptLoad [C]:-1
#2: Load lua/ModLoader.lua:168
fileName = "lua/NS2Plus/CHUD_Shared.lua"
reload = nil
#3: Load lua/ModLoader.lua:173
fileName = "lua/Class.lua"
reload = nil
(for generator) = function
(for state) = {1="lua/NS2Plus/CHUD_Shared.lua", 2="lua/NS2Plus/CHUD_Server.lua", lua/NS2Plus/CHUD_Server.lua=2, lua/NS2Plus/CHUD_Shared.lua=1 }
(for control) = 1
_ = 1
hookFile = "lua/NS2Plus/CHUD_Shared.lua"
#4: lua/PostLoadMod.lua:8
#5: oldScriptLoad [C]:-1
#6: Load lua/ModLoader.lua:168
fileName = "lua/PostLoadMod.lua"
reload = nil
#7: lua/Server.lua:416
chatMessageCount = 0
reservedSlots = {amount=0, ids= { } }
kMapEntityLoadPriorities = {ns2_gamerules=1 }
GetMapEntityLoadPriority = function
DumpServerEntity = function
LoadServerMapEntity = function
OnMapPreLoad = function
CheckForDuplicateLocations = function
OnMapPostLoad = function
OnCanPlayerHearPlayer = function
[348.088] Worker 01 : Loading 'maps/ns2_summit.level'
Loading pathing mesh for level maps/ns2_summit.level
[349.666] Worker 01 : Error: lua/Server.lua:384: attempt to index a nil value
[Server] Script Error #3: lua/Server.lua:384: attempt to index a nil value
Call stack:
#1: lua/Server.lua:384
highestPriority = 1
Finished loading 'maps/ns2_summit.level'
[353.282] Worker 11 : Downloading mods
[353.683] Worker 11 : Finished downloading and installing mods
[353.683] Worker 11 : Filesystem initialized, cache enabled
[353.701] Worker 11 : Error: Mod NS2+ failed consistency checking and will be disabled ('models/marine/marine_noemissive.surface_shader' failed)
[353.702] Worker 11 : Mounting mod '' from C:/Users/mendaspisgreat/AppData/Roaming/Natural Selection 2/Workshop/m21c35fad_1449002535/
Loading config://ConsoleBindings.json
Loading config://FavoriteServers.json
Loading config://HistoryServers.json
Loading config://RankedServers.json
[354.851] Worker 11 : Loading 'maps/ns2_summit.level'
Loading pathing mesh for level maps/ns2_summit.level
Finished loading 'maps/ns2_summit.level'
Client : 0.000000 : INFO: LuaJIT setup: maxtrace=16,000, maxmcode=33,000
Loading took 5.1151484777444 seconds
Client connected (127.0.0.1)
[359.573] ServerUpdate : Error: lua/Gamerules_Global.lua:36: attempt to index a nil value
[Server] Script Error #4: lua/Gamerules_Global.lua:36: attempt to index a nil value
Call stack:
#1: lua/Gamerules_Global.lua:36
client = ServerClient { }
[359.574] ServerUpdate : Error: lua/NetworkMessages_Server.lua:319: attempt to index local 'player' (a nil value)
[Server] Script Error #5: lua/NetworkMessages_Server.lua:319: attempt to index local 'player' (a nil value)
Call stack:
#1: lua/NetworkMessages_Server.lua:319
client = ServerClient { }
message = {name="a pup named Scooby D" }
name = "a pup named Scooby D"
player = nil
Comments