Bot is running for hours, and then it stops with an error

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
Administrator
Site Admin
Posts: 5330
Joined: Sat Jan 05, 2008 4:21 pm

Re: Bot is running for hours, and then it stops with an erro

#21 Post by Administrator » Thu Mar 18, 2010 2:46 pm

Keep PMing me your log.txt files after you receive this error. As of yet, I'm still unable to cause this to happen on my end (running Win XP64, 6GB RAM on an Phenom quad-core).

Here's some stuff you can do to help me debug the issue, though. First, open rom/classes/player.lua and go to (CTRL+G) line 1536. Add the first and last line here:

Code: Select all

	printf("[Debug] Running player's pawn base update\n"); -- Add this
	CPawn.update(self); -- run base function
	printf("[DEBUG] Player Update\n"); -- Add this
Now, in rom/classes/pawn.lua, line 146, add the first line:

Code: Select all

	printf("[DEBUG] Pawn Update\n"); -- Add this
	tmp = debugAssert(memoryReadByte(proc, self.Address + addresses.charAlive_offset), memerrmsg);
Your console window will be spammed with debug messages, but at least this will tell us if it's the player or the player's target/mouse target/pet/etc.

Also, can you provide a copy of your addresses.lua?

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

Re: Bot is running for hours, and then it stops with an erro

#22 Post by flameboy » Thu Mar 18, 2010 4:26 pm

Now it doesn't stop, but I get the wrong bagid return message in the console several times, and also have the turning problem.
Tomorrow I will extend the code with your lines, and start 2 bots. That should probably do it again.

My addresses:

Code: Select all

-- Auto-generated by update.lua
addresses = {
	camPtr_offset = 0x46C,
	camXUVec_offset = 0x128,
	camX_offset = 0x104,
	camYUVec_offset = 0x12C,
	camY_offset = 0x108,
	camZUVec_offset = 0x130,
	camZ_offset = 0x10C,
	castbar_offset = 0x25C,
	charAlive_offset = 0x224,
	charBattle_offset = 0x72A,
	charPtr_offset = 0x598,
	macro1_offset = 0x118,
	macro2_offset = 0x620,
	mousePtr_offset = 0x73C,
	pawnAttackable_offset = 0x384,
	pawnClass1_offset = 0x2FC,
	pawnClass2_offset = 0x304,
	pawnDirXUVec_offset = 0x34,
	pawnDirYUVec_offset = 0x3C,
	pawnHP_offset = 0x2C8,
	pawnId_offset = 0x14,
	pawnLevel2_offset = 0x308,
	pawnLevel_offset = 0x300,
	pawnMP2_offset = 0x2DC,
	pawnMP_offset = 0x2D4,
	pawnMaxHP_offset = 0x2D0,
	pawnMaxMP2_offset = 0x2E0,
	pawnMaxMP_offset = 0x2D8,
	pawnMount_offset = 0xC4,
	pawnName_offset = 0x290,
	pawnPetPtr_offset = 0x280,
	pawnTargetPtr_offset = 0x274,
	pawnType_offset = 0x18,
	pawnX_offset = 0x28,
	pawnY_offset = 0x2C,
	pawnZ_offset = 0x30,
	staticbase_char = 0x985C3C,
	staticbase_macro = 0x9D7A04,
	staticpattern_char = 0x5D987D,
	staticpattern_macro = 0x73B1A5,
}

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

Re: Bot is running for hours, and then it stops with an erro

#23 Post by Administrator » Thu Mar 18, 2010 5:07 pm

In player.lua, at around line 785, you'll see this:

Code: Select all

target:update();
player:update();
Change to:

Code: Select all

self:update();
target = self:getTarget();
This may or may not help.

EDIT: Actually, just take this player.lua and replace the one you've got temporarily. Report the last few lines before the error if/when you get another error.
Attachments
player.lua
(74.76 KiB) Downloaded 104 times

newbie2009
Posts: 12
Joined: Sun Jan 10, 2010 8:53 am

Re: Bot is running for hours, and then it stops with an erro

#24 Post by newbie2009 » Thu Mar 18, 2010 11:46 pm

yesterday i clean install win 7 and rom, and succeslly use micromacro till timer end

dunno if, win problem rom problem or addon problem ( but my guest is maybe either rom or addon problem )

i try use in couple days see if the problem gone or not permanently

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

Re: Bot is running for hours, and then it stops with an erro

#25 Post by flameboy » Fri Mar 19, 2010 2:46 am

Now my character is sometimes going like a snake. It is similar to the circle thing, but instead of turning in just one direction, it is switching between right and left. It is like it turns too much, then corrects it back, but it turns too much and needs another correction again. It is not only doing this while moving, but also when it is just standing.

(I have sent you another log from when it quits)

EDIT: Also the camera is usually not centered behind my char, but a little to the left or right, and this makes my char not select the mobs that are in front of him, because of the wrong camera rotation (the mobs are not visible in the game window).

EDIT2: And the game crashes every time I quit. (This might not be bot related)

flameboy
Posts: 22
Joined: Mon Jan 04, 2010 1:05 pm

Re: Bot is running for hours, and then it stops with an erro

#26 Post by flameboy » Thu Mar 25, 2010 4:22 am

It must have been a version mismatch. I have reinstalled micromacro and rombot, and the problem doesn't seem to occur anymore.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 0 guests