Refresh crashes the Game Server
Forum rules
NO LONGER BEING MAINTAINED!
NO LONGER BEING MAINTAINED!
Refresh crashes the Game Server
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
run the server from inside visual studio
Re: Refresh crashes the Game Server
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
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
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.
> 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
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.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.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
Re: Refresh crashes the Game Server
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
Those files shouldn't be missing things from darkstar's version like that. Are you pulling updates via git?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.
Hi, I run The Demiurge server.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
DO NOT PRIVATE MESSAGE ME ABOUT BUGSPLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE