EMERGENCY! Map-server crash

Zeiyan

New member
Messages
53
Points
0
Location
California
Emulator
Good day hercules. I'm sorry but this is urgent i hope someone can help. I came from rathena and migrated my emulator to hercules.

I did everything right i think (i got a fresh hercules folder and edited all the src edits manually to make sure no errors occur)

I updated my SQL to fit hercules properly. No errors whatsoever the problem is after 10mins, 20mins or 30mins (randomly)

my map server will crash and will leave no error message just this.

[Error]: Server received crash signal! Attempting to save all online characters!

 Please help me. My players are kind of impatient. Please please please

 
if you running on Linux you should  run the server in debug mode(GDB mode) and post the crashlog

you can read more about the GDB here

http://herc.ws/wiki/GDB

 
Last edited by a moderator:
for more information i don't know if it helps but i first downloaded the hercules on my desktop (windows 8) then once i was done editing i transfered it to my VPS (asurahosting) which runs linux centos. does that make any difference?

 
did you added it into the trunk folder?  on the desktop from asura ?

if yes when you compile the server he is automatic in GDB mode.

then you just have to rightclick in the trunk folder and use Open Terminal from here,  and write  gdb map-server core  and then bt full

 
it says:

desktop/trunk/core: No file or directory

then i type "bt full" (regardless of no file or directory message)

then is came out as "no stack"

 
I downloaded a fresh hercules folder then replaced the following folders with my own:

npc

db

src

conf

but the results are still the same. with the gdb thing i'm very sorry but im not very familliar with it but im willing to try just help me please. thankyou so much and sorry for the trouble

EDIT: when i tried to debug again (with fresh  hercules folder but replaced the folders mentioned above i found the line i needed to debug)

it's the code i added to make reflect shield and item reflect don't reflect when SC_SAFETYWALL is on

 
Last edited by a moderator:
Solved:

Thankyou Sir ossi0110.

Turns out this code i added is making my map-server crash:

battle.c 5187:  if(( flag & BF_SHORT)&& !(sc->data[sC_SAFETYWALL])) {//Bounces back part of the damage.

battle.c 5224:  if ((sd && sd->bonus.long_weapon_damage_return) && (!sc->data[sC_PNEUMA])){ 

 
Back
Top