Errors Odd crash...
Reply
Odd crash...
So, I play on the Shadowhaven server. I was running a full party last night and everything was doing fine. Trev comes on and says he is going to reboot the server so I camp out. When I try to log back in, all my toons except one load up with no problems. However, the one.. a magician, is now crashing the client just before it finishes loading.
After running through the whole plugin thing, I narrowed it down to mq2melee as the culprit. If I log in without this plugin in the macroquest.ini everything is fine. One time after getting into the game, I attempted to load the plugin from the command line and it worked. I was able to change settings and save a new profile. However, when I relogged, the client crashed again. Now if I try loading the plugin from the command line, it just crashes the client immediately.
Only problem is that I use mq2melee on other toons. And I don't understand why it is only affecting this one toon?
Any ideas? Need any more info?
Thanks!
Tue Jan 20, 2015 5:39 pm
OK, well.. I downloaded a fresh SOD Gold client and updated my files. Now everything appears to be working again, at least for this particular issue. Very odd! But glad it is working..
Thanks anyway..
R
Tue Jan 20, 2015 7:52 pm
UF?
RoF2?


This is a fairly common occurrence on custom servers. Usually it's with wizards but it can affect every class. Usually it's with MQ2Melee or the custom spell file. The usual "fix" is to re-download MQ2 (including MQ2Melee) or re-download a correct spell file. Sometimes it's the emu servers sending the wrong stuff to the client which requires action by the server admin.



http://mqemulator.net/forum2/viewtopic.php?t=1417
http://mqemulator.net/forum2/viewtopic.php?t=1457
http://mqemulator.net/forum2/viewtopic.php?t=1474
http://www.peqtgc.com/phpBB3/viewtopic.php?f=17&t=15214
Tue Jan 20, 2015 8:04 pm
Senior Project Member
Yay for cross posts!

Maudigan's more detailed answer in one of the linked posts:
The issue with mq2melee may or may not be related to custom content, I didn't take the time to dig in deeper to figure that out. If mq2melee was broken on the standard servers someone probably would have complained by now so I'm assuming it's a custom content thing, but it's no matter. I can fix it without effecting the functionality on standard servers.

There is an array that gets created that has just enough elements in it for the default number of spells. C++ will try and do whatever you tell it to though; it's dumb like that, or smart depending on your perspective. So when it is told to access an element that is greater than the number of elements the array actually has it tries to do it. So imagine that array stored in memory as a street with 10 houses on it, and I tell you to go to the 15th house and knock on the door.... You're process oriented so you calculate the width of a house times 15 and then bump that up against the speed you're driving to know how long to hit the gas. You end up driving into the fence at the end of the street.

I modified it to check that the item requested isn't too large for the array.

This problem was in the macroquest core file, MQ2Main.dll. MQ2Melee just triggered the event chain that caused the code in MQ2Main to run. It's plausible that this fix will also repair the crash on death issue. Hopefully.

I still need to modify the other clients but I should have the repair up within an hour or two
Tue Jan 20, 2015 8:11 pm
Senior Project Member
Thanks guys..
Will try to search a little more carefully before posting a problem next time..
Cheers
R
Wed Jan 21, 2015 11:21 am
Errors Odd crash...
Reply