Refresh crashes the Game Server

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Refresh crashes the Game Server

Post by Xephyr » Wed Sep 23, 2015 8:28 pm

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.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Refresh crashes the Game Server

Post by kjLotus » Wed Sep 23, 2015 8:42 pm

run the server from inside visual studio

Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Re: Refresh crashes the Game Server

Post by Xephyr » Thu Sep 24, 2015 3:34 pm

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?

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Refresh crashes the Game Server

Post by kjLotus » Thu Sep 24, 2015 6:30 pm

look at the line it stopped on, if that doesn't help then post the file name and line number

Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Re: Refresh crashes the Game Server

Post by Xephyr » Sat Sep 26, 2015 6:24 am

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.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Refresh crashes the Game Server

Post by TeoTwawki » Sat Sep 26, 2015 10:17 am

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.
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Xephyr
Posts: 45
Joined: Sat May 17, 2014 11:51 am

Re: Refresh crashes the Game Server

Post by Xephyr » Sat Sep 26, 2015 2:21 pm

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.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Refresh crashes the Game Server

Post by TeoTwawki » Sun Sep 27, 2015 10:35 pm

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?
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

Post Reply