Page 1 of 1

Refresh crashes the Game Server

Posted: Wed Sep 23, 2015 8:28 pm
by Xephyr
Just did a pull today. Now any time Refresh is cast the server crashes. Not sure where error logs would be, but since the server crashes nothing is shown in the server window. Anyone else experiencing this? I haven't made any new personal edits, so I don't think anything I did caused this.

Re: Refresh crashes the Game Server

Posted: Wed Sep 23, 2015 8:42 pm
by kjLotus
run the server from inside visual studio

Re: Refresh crashes the Game Server

Posted: Thu Sep 24, 2015 3:34 pm
by Xephyr
Ok, I ran the game server from inside visual studio and crashed it by casting refresh. I got the error that the program reached a break point. I clicked to Break. Now I am not sure what to post here to really figure out what is wrong. What should I do to dump the data for posting?

Re: Refresh crashes the Game Server

Posted: Thu Sep 24, 2015 6:30 pm
by kjLotus
look at the line it stopped on, if that doesn't help then post the file name and line number

Re: Refresh crashes the Game Server

Posted: Sat Sep 26, 2015 6:24 am
by Xephyr
Ok, this is what I am getting:

> DSGame-server.exe!CLuaBaseEntity::getMod(lua_State * L) Line 5053 C++

Line 5053 is the following:

DSP_DEBUG_BREAK_IF(lua_isnil(L, 1) || !lua_isnumber(L, 1));




If I am reading that right, there is a nil value being returned. Not sure why.

Re: Refresh crashes the Game Server

Posted: Sat Sep 26, 2015 10:17 am
by TeoTwawki
Xephyr wrote:Ok, this is what I am getting:

> DSGame-server.exe!CLuaBaseEntity::getMod(lua_State * L) Line 5053 C++

Line 5053 is the following:

DSP_DEBUG_BREAK_IF(lua_isnil(L, 1) || !lua_isnumber(L, 1));




If I am reading that right, there is a nil value being returned. Not sure why.
Either: your status.lua is missing a MOD_WHATEVER, the status.lua file is broken in some other way (bad edit conflict resolutions) or your refresh script is calling a wrong modifier. Likely related to custom something or someone manually changing files in some way.

Re: Refresh crashes the Game Server

Posted: Sat Sep 26, 2015 2:21 pm
by Xephyr
Thanks for the help, I was able to fix the issue. I was missing mod values in status.lua and modifier.h. I am betting I will hit more of this issue moving forward as I hit items that don't have mod values, but I should be able to deal with it now.

Re: Refresh crashes the Game Server

Posted: Sun Sep 27, 2015 10:35 pm
by TeoTwawki
Xephyr wrote:Thanks for the help, I was able to fix the issue. I was missing mod values in status.lua and modifier.h. I am betting I will hit more of this issue moving forward as I hit items that don't have mod values, but I should be able to deal with it now.
Those files shouldn't be missing things from darkstar's version like that. Are you pulling updates via git?