Jump to content
  • 0

Mobs using BF_Magic skills crashing mapserver, please help.


xsicho

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  11/22/22
  • Last Seen:  

Hello! There's a certain problem with my server that I'm working on currently, namely the topic. I've been customizing and playing with source modification for a while now and have now faced this serious problem. I've carefully tested and tried and narrowed the crashes down to enemies using skills that cause BF_Magic damage on players causing the mapserver to crash. There is no error log. The server compiles with zero errors and everything and I've butted my head with fixing this problem for days now so here I am asking for anyone with more insight to help. And the sad fact is that I cannot undo far enough that the server doesn't crash. It worked fine last weekend and when I opened it up to test this week, it somehow started crashing and I've no backup. I don't know what happened or where did I coded it wrongly and I don't want to change every enemy to use something that's not magic damage, but if it comes to that, I'll do it since this server is only for my small group of friends (<20 players) to just enjoy a modified RO. 

To further clarify:

Problem: Mapserver crashes with no error logs every time mobs uses a skill that causes magic damage to players. Any skills, targeted, ground targeted, if it causes damage, mapserver crashes.

Possible problems: Maybe damage calculations caused an overflow somehow, somewhere? My battle.c or skill.c is somehow messed up somewhere, thus I've uploaded it if you guys wanted to see it as well. 

Things I've done to test:

  • Changing skills that caused the crash from BF_Magic to BF_Weapon or any other type makes the skill runs fine and does damage accordingly.
  • Testing with non-damaging skills like provoke, the skills work fine.
  • It's not a problem on the client or effects, when skills cast when tested with BF_Weapon, the effects showed correctly.
  • Player casting skills onto enemies worked fine, doesn't crash the server, calculates damage correctly.
  • All items are unequipped, still crash.
  • Changing fire bolt damage to the least minimal I can through skillratio values, still crash.
  • Changing the mobs to see if a mob was bugged, crash, any mobs, casting any skill that causes magic damage = crash.
  • I cannot use GDB because it only runs on linux to my understanding.
  • Changing maps, still crash.

Thanks for the help in advance. I'll try to go through any suggestions or ideas anyone has.

 

Edited by xsicho
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  11/22/22
  • Last Seen:  

Was able to use a debugger, found out that I accidentally add some MATK calculations after the final calculations causing overflow and the server to crash in battle.c!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...