Can't get custom map to work with sv_changemap. This is the error its giving.

aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
We're having a problem getting ns2_eclipse_beta, turtle, and tanith map working on our TG server. Any ideas what's causing the problem?
I tried adding all three to my DEV server (repro'd this behavior on Chuckle before removing the mods there):
http://steamcommunity.com/sharedfile...s/?id=77383474
http://steamcommunity.com/sharedfile...s/?id=78917836
http://steamcommunity.com/sharedfile...s/?id=75943673

They all load just fine (that is, I can connect w/o error using my client) if they're specified as the server start map. They all fail with this error when I use sv_changemap (or the Web Admin GUI) to change maps to them:


[Server] Script Error #1: lua/Gamerules_Global.lua:36: attempt to index a nil value
Call stack:
#1: lua/Gamerules_Global.lua:36
client = ServerClient { }
Client disconnected (127.0.0.1) File not found
[Server] Script Error #2: lua/Gamerules_Global.lua:40: attempt to index a nil value
Call stack:
#1: lua/Gamerules_Global.lua:40
client = ServerClient { }
Anyone have any ideas?

Comments

  • invTempestinvTempest Join Date: 2003-03-02 Member: 14223Members, Constellation, Squad Five Blue
    To get custom maps to work you need to put the mod ID's in both the command line and mapcycle.json.

  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    invTempest wrote: »
    To get custom maps to work you need to put the mod ID's in both the command line and mapcycle.json.
    This.

    Though, there is a shortcut, kludge method where you use the webadmin to add all the custom maps you want and then change the map to load them.
  • TharosTharos Join Date: 2012-12-18 Member: 175439Members
    Once the custom maps are downloaded by the server it's better to remove them from the command line because if you let them people will need to download the 3 custom maps even on classic maps.
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
    Thanks for the help guys, adding them additionally to mapcycle.json did the trick!
Sign In or Register to comment.