workaround: pawn.lua:212: Error reading memory

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

workaround: pawn.lua:212: Error reading memory

#1 Post by d003232 » 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:

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" />
The RoM Bot Online Wiki needs your help!

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

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

#2 Post by Administrator » Thu Oct 08, 2009 8:28 pm

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.

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#3 Post by d003232 » Fri Oct 09, 2009 2:19 am

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.
The RoM Bot Online Wiki needs your help!

ToreDeLoro
Posts: 12
Joined: Thu Sep 24, 2009 7:18 pm

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

#4 Post by ToreDeLoro » Fri Oct 09, 2009 3:30 pm

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

d003232
Posts: 1252
Joined: Wed Jun 03, 2009 4:27 pm

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

#5 Post by d003232 » Fri Oct 09, 2009 3:52 pm

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.
The RoM Bot Online Wiki needs your help!

ToreDeLoro
Posts: 12
Joined: Thu Sep 24, 2009 7:18 pm

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

#6 Post by ToreDeLoro » Fri Oct 09, 2009 8:30 pm

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?

User avatar
droppen
Posts: 179
Joined: Mon Aug 03, 2009 10:32 pm

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

#7 Post by droppen » Sat Oct 10, 2009 5:31 am

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

ToreDeLoro
Posts: 12
Joined: Thu Sep 24, 2009 7:18 pm

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

#8 Post by ToreDeLoro » Sat Oct 10, 2009 1:14 pm

all green now thanks :)

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests