Page 1 of 1

workaround: pawn.lua:212: Error reading memory

Posted: Thu Oct 08, 2009 6:21 am
by d003232
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:

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
Here the valid numbers for the classes:

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;
To set your energie storage for the second class, edit at pawn.lua 224:

Code: Select all

--	energyStorage2 = classEnergyMap[self.Class2];
	energyStorage2 = "mana";	-- mana|rage|concentration|energy
To set the enervie values for the second class, edit at pawn.lua 141:

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;
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:

Code: Select all

<option name="DEBUGGING" value="true" />

Re: workaround: pawn.lua:212: Error reading memory

Posted: Thu Oct 08, 2009 8:28 pm
by Administrator
These should all be fixed now. However, are you sure there was a problem with the player's second class? It seemed to work fine by me.

Re: workaround: pawn.lua:212: Error reading memory

Posted: Fri Oct 09, 2009 2:19 am
by d003232
Administrator wrote:These should all be fixed now. However, are you sure there was a problem with the player's second class? It seemed to work fine by me.
No not sure. Perhaps it was only the Mp2 value that was irritating me.

Re: workaround: pawn.lua:212: Error reading memory

Posted: Fri Oct 09, 2009 3:30 pm
by ToreDeLoro
a noob question:
i'm not sure if i'm doing the update correctly

i run micromacro and write rom/update.lua, it's all?

sorry for my bad english and thanks

Re: workaround: pawn.lua:212: Error reading memory

Posted: Fri Oct 09, 2009 3:52 pm
by d003232
ToreDeLoro wrote:a noob question:
i'm not sure if i'm doing the update correctly

i run micromacro and write rom/update.lua, it's all?
No. Please read here at the end of the first post how to do a SVN update.

Re: workaround: pawn.lua:212: Error reading memory

Posted: Fri Oct 09, 2009 8:30 pm
by ToreDeLoro
thanks :)

edit: i get yhis error mensage
URL 'https://rom-bot.googlecode.com/svn/trunk/rom/profiles' of existing
directory 'C:\micromacro\scripts\rom\profiles' does not match expected URL 'http://rom-bot.googlecode.com/svn/trunk/rom/profiles'

language, profile,getpos.lua and settings.lua are with a red mark

what i'm doing wrong?

Re: workaround: pawn.lua:212: Error reading memory

Posted: Sat Oct 10, 2009 5:31 am
by droppen
ToreDeLoro wrote:thanks :)

edit: i get yhis error mensage
URL 'https://rom-bot.googlecode.com/svn/trunk/rom/profiles' of existing
directory 'C:\micromacro\scripts\rom\profiles' does not match expected URL 'http://rom-bot.googlecode.com/svn/trunk/rom/profiles'

language, profile,getpos.lua and settings.lua are with a red mark

what i'm doing wrong?
you have a conflict, delete everything you have in your rom folder, and re-update

Re: workaround: pawn.lua:212: Error reading memory

Posted: Sat Oct 10, 2009 1:14 pm
by ToreDeLoro
all green now thanks :)