NS2Stats and Combat Mod

trolleentrolleen Join Date: 2012-10-31 Member: 165041Members
Hi,

I need a little help for my combat mod server.

I have a crash when i try to run combat mod with ns2stats.

Server.exe -name "Myserv" -webdomain 87.98.153.93 -config_path "combatmod" -map ns2_summitcombat -ip 87.98.153.93 -port 31090 -limit 14 -mods "5f35045 5fd7a38 4fd7fd4 662442f"

MapCycle
{
"time": 30,
"mode": "order",
"maps": [
"ns2_summitcombat",
"ns2_ns2_co_veilcombat",
{ "map": "ns2_co_veilcombat", "mods": [ "662442f" ] },
{ "map": "ns2_summitcombat", "mods": [ "4fd7fd4" ] }
],
"mods": [ "5f35045","5fd7a38" ]
}


{
"afkKickIdleTime": 100,
"votemapEnabled": true,
"maps": [ "ns2_co_veilcombat", "ns2_summitcombat"],
"awardsEnabled": true,
"enableStatusUpdates": false,
"tournamentMode": false,
"enableELOAutoArrange": false,
"afkKickPlayersToEnable": 8,
"killstreaksEnabled": false,
"unstuck": true,
"afkKickEnabled": true
}




With that i have finaly this error.

CombatMod Time Limit is now: 35 minutes.
CombatMod Global Mic is now: deactivated

**********************************
**********************************
[Server] Script Error #1: lua/ClassHooker.lua:752: Base class undefined
Call stack:
#1: stage2 [C]:-1
#2: lua/ClassHooker.lua:752
classObject = nil
#3: lua/Marine.lua:43
#4: Script_Load [C]:-1
#5: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/Marine.lua"
normPath = "lua/marine.lua"
NewPath = "lua/Marine.lua"
ret = nil
#6: Load lua/EventTester.lua:191
fileName = "lua/Marine.lua"
#7: lua/MarineTeam.lua:12
#8: Script_Load [C]:-1
#9: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/MarineTeam.lua"
normPath = "lua/marineteam.lua"
NewPath = "lua/MarineTeam.lua"
ret = nil
#10: Load lua/EventTester.lua:191
fileName = "lua/MarineTeam.lua"
#11: lua/Server.lua:17
#12: Script_Load [C]:-1
#13: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/Server.lua"
normPath = "lua/server.lua"
NewPath = "lua/Server.lua"
ret = nil
#14: Load lua/EventTester.lua:191
fileName = "lua/Server.lua"
#15: cout/Cout.lua:10
#16: Script_Load [C]:-1
#17: scriptLoad lua/LoadTracker.lua:33
scriptPath = "cout/Cout.lua"
normPath = "cout/cout.lua"
NewPath = "cout/Cout.lua"
ret = nil
#18: Load lua/EventTester.lua:191
fileName = "cout/Cout.lua"
#19: lua/RBPSplugins.lua:9
#20: Script_Load [C]:-1
#21: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/RBPSplugins.lua"
normPath = "lua/rbpsplugins.lua"
NewPath = "lua/RBPSplugins.lua"
ret = nil
#22: Load lua/EventTester.lua:191
fileName = "lua/RBPSplugins.lua"
#23: lua/RBPS.lua:12
#24: Script_Load [C]:-1
#25: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/RBPS.lua"
normPath = "lua/rbps.lua"
NewPath = "lua/RBPS.lua"
ret = nil
#26: Load lua/EventTester.lua:191
fileName = "lua/RBPS.lua"
#27: lua/Player.lua:40
#28: Script_Load [C]:-1
#29: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/Player.lua"
normPath = "lua/player.lua"
NewPath = "lua/Player.lua"
ret = nil
#30: Load lua/EventTester.lua:191
fileName = "lua/Player.lua"
#31: lua/Alien.lua:10
#32: Script_Load [C]:-1
#33: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/Alien.lua"
normPath = "lua/alien.lua"
NewPath = "lua/Alien.lua"
ret = nil
#34: Load lua/EventTester.lua:191
fileName = "lua/Alien.lua"
#35: lua/Embryo.lua:15
#36: Script_Load [C]:-1
#37: scriptLoad lua/LoadTracker.lua:33
scriptPath = "lua/Embryo.lua"
normPath = "lua/embryo.lua"
NewPath = "lua/Embryo.lua"
ret = nil
#38: Load lua/EventTester.lua:191
fileName = "lua/Embryo.lua"
#39: lua/Shared.lua:124
#40: Script_Load [C]:-1
#41: Load lua/LoadTracker.lua:33
scriptPath = "lua/Shared.lua"
normPath = "lua/shared.lua"
NewPath = "lua/Shared.lua"
ret = nil
#42: lua/combat_Server.lua:62
[Server] Script Error #2: lua/ClassHooker.lua:355: ClassHooker:CreateAndSetClassHook function "OnTakeDamage" in class Marine does not exist
Call stack:
#1: error [C]:-1



If someone can help me.

Thanks

Comments

  • deathmongerdeathmonger Join Date: 2012-07-06 Member: 153953Members
    I'm not sure if this is your problem, but your MapCycle should look more like this:

    {
    "maps": [ "ns2_summitcombat", "ns2_ns2_co_veilcombat" ],
    "mode": "order",
    "time": 30,
    "mods": [ "5fd7a38", "5f35045", "662442f", "4fd7fd4" ]
    }

    It's not required to have map mods in the command line and I know this is silly, but trying setting -mods in the command line with NS2Stats in front: -mods "5fd7a385 5f35045"
  • trolleentrolleen Join Date: 2012-10-31 Member: 165041Members
    Thank you for your answer.

    I have try your file so,


    {
    "maps": [ "ns2_summitcombat", "ns2_ns2_co_veilcombat" ],
    "mode": "order",
    "time": 30,
    "mods": [ "5fd7a38", "5f35045", "662442f", "4fd7fd4" ]
    }

    with -map ns2_summitcombat -ip 87.98.153.93 -port 31090 -limit 14 -mods "5fd7a385 5f35045"

    and i have a couldn't load ns2_summitcombat.level.

    but with
    Server.exe -name "Myserv" -webdomain 87.98.153.93 -config_path "combatmod" -map ns2_summitcombat -ip 87.98.153.93 -port 31090 -limit 14 -mods "5f35045 5fd7a38 4fd7fd4 662442f"

    The map is loaded but ns2stats seems to be not load...
  • trolleentrolleen Join Date: 2012-10-31 Member: 165041Members
    Mistake Mistake.

    so with,


    {
    "maps": [ "ns2_summitcombat", "ns2_ns2_co_veilcombat" ],
    "mode": "order",
    "time": 30,
    "mods": [ "5fd7a38", "5f35045", "662442f", "4fd7fd4" ]
    }

    with -map ns2_summitcombat -ip 87.98.153.93 -port 31090 -limit 14 -mods "5fd7a38 5f35045"

    I have a couldn't load map and Cannot find Ns2GameRule!

    and with


    {
    "maps": [ "ns2_summitcombat", "ns2_ns2_co_veilcombat" ],
    "mode": "order",
    "time": 30,
    "mods": [ "5fd7a38", "5f35045", "662442f", "4fd7fd4" ]
    }

    with -map ns2_summitcombat -ip 87.98.153.93 -port 31090 -limit 14 -mods "5f35045 5fd7a38 4fd7fd4 662442f"

    I have the previous bug

    [Server] Script Error #1: lua/ClassHooker.lua:752: Base class undefined
    Call stack:
    #1: stage2 [C]:-1
    #2: lua/ClassHooker.lua:752
    classObject = nil
    #3: lua/Marine.lua:43



    For my previous post 4:10PM i fail in mod ID so Ns2stats not load coz wrong id ^^
  • unter_hosenunter_hosen Join Date: 2003-01-05 Member: 11858Members, Constellation
    I dont think NS2stats is completely working with Combat. I have the same trouble on my servers
  • deathmongerdeathmonger Join Date: 2012-07-06 Member: 153953Members
    Hmm...I could have sworn I saw a server out there doing it. I haven't played on a server with the Combat mod in months though. Sorry I couldn't help, but those were the only guesses I had.
  • TharosTharos Join Date: 2012-12-18 Member: 175439Members
    edited March 2013
    JimWest wrote: »
    We can't fix Ns2stats.
    The problem is that ns2stats is using a modifed Player.lua (instead of a hooked one) so the mod is loaded at a wrong time when acting with combat.
    They modified other files, too, so the engine loads the wrong ones, sometimes doesnt load our hooks and thats why it crashes, the main files are gonna be loaded before
    player class is loaded , thats why marine etc. cant be loaded cause the base class is undefined.


    Ns2stats+combat is impossible right now.
Sign In or Register to comment.