workaround: pawn.lua:212: Error reading memory
Posted: Thu Oct 08, 2009 6:21 am
Admin edit: This has (should have been, at least) fixed in the latest version off of SVN. Please try re-updating again before using any of the fixes below.
After the patch yesterday, there are still some changed memory addresses. I can't correct that by myself. So we have to wait for the update from Admin.
Until that, you can use a workaround if you are able to edit the lua files by yourself.
To set your second class level by hand, edit at pawn.lua 171:
To set your class by hand, edit at pawn.lua 195:
Here the valid numbers for the classes:
To set your energie storage for the second class, edit at pawn.lua 224:
To set the enervie values for the second class, edit at pawn.lua 141:
Take 100 or your max mana values, if your 2nd class has mana and your primary not.
If you still have the error after using that patch, then enable the debugging in settings.xml:
After the patch yesterday, there are still some changed memory addresses. I can't correct that by myself. So we have to wait for the update from Admin.
Until that, you can use a workaround if you are able to edit the lua files by yourself.
To set your second class level by hand, edit at pawn.lua 171:
Code: Select all
-- self.Level2 = debugAssert(memoryReadInt(proc, self.Address + charLevel2_offset), memerrmsg);
self.Level2 = 7; -- >>> HERE set the level of your 2nd class
To set your class by hand, edit at pawn.lua 195:
Code: Select all
-- self.Class2 = debugAssert(memoryReadInt(proc, self.Address + charClass2_offset), memerrmsg);
self.Class2 = 2; -- >>> HERE set the number for your 2nd class
Code: Select all
CLASS_WARRIOR = 1;
CLASS_SCOUT = 2;
CLASS_ROGUE = 3;
CLASS_MAGE = 4;
CLASS_PRIEST = 5;
CLASS_KNIGHT = 6;
CLASS_WARDEN = 7;
CLASS_DRUID = 8;
Code: Select all
-- energyStorage2 = classEnergyMap[self.Class2];
energyStorage2 = "mana"; -- mana|rage|concentration|energy
Code: Select all
-- self.MP2 = debugAssert(memoryReadInt(proc, self.Address + charMP2_offset), memerrmsg);
self.MP2 = 100;
-- self.MaxMP2 = debugAssert(memoryReadInt(proc, self.Address + charMaxMP2_offset), memerrmsg);
self.MaxMP2 = 100;
If you still have the error after using that patch, then enable the debugging in settings.xml:
Code: Select all
<option name="DEBUGGING" value="true" />