Adjustments for this weeks patch needed.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
romaniac
Posts: 79
Joined: Sat Feb 04, 2012 8:25 am

Adjustments for this weeks patch needed.

#1 Post by romaniac » Tue Jul 24, 2012 1:32 pm

Ok, this time I'll start the thread. After today's patch, bot stops with an error message during startup:

Code: Select all

.../rom/classes/memorytable.lua:7: bad argument
 #2 to 'memoryReadIntPtr' (number expected, got nil)
A previous call of update showed a lot of output without warnings.

What did they change this time? :-)

botique
Posts: 40
Joined: Fri Oct 21, 2011 12:25 pm

Re: Adjustments for this weeks patch needed.

#2 Post by botique » Tue Jul 24, 2012 2:11 pm

my update ends with:
"...grams/micromacro/scripts/rom/classes/memorytable.lua:7: bad argument #2 to 'memoryReadIntPtr' (number expected, got nil)"

User avatar
Sithlord512589
Posts: 36
Joined: Thu Mar 04, 2010 9:21 am

Re: Adjustments for this weeks patch needed.

#3 Post by Sithlord512589 » Tue Jul 24, 2012 2:23 pm

my update also ends with

Code: Select all

.../rom/classes/memorytable.lua:7: bad argument
 #2 to 'memoryReadIntPtr' (number expected, got nil)
MAGE 75/ PRIEST 72 (soon 75) / ROUGE 6x
german client, Server Europe
Thankful User of the other peoples mindwork :-)

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Adjustments for this weeks patch needed.

#4 Post by gloover » Tue Jul 24, 2012 3:15 pm

ARRRGGH - this sucks!
Your quest is this: Be patient!

stay cool and wait - our experts (admin, lisa, rock) will fix this asap!

_hirondelle
Posts: 72
Joined: Thu Mar 08, 2012 7:22 am

Re: Adjustments for this weeks patch needed.

#5 Post by _hirondelle » Tue Jul 24, 2012 3:56 pm

Nice Gloover ;)

SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: Adjustments for this weeks patch needed.

#6 Post by SpiralV » Tue Jul 24, 2012 4:02 pm

edit addresses.lua
tablesBase = 0x9FF4C4,
Thanks to Lisa for her howto ^^
http://www.solarstrike.net/phpBB3/viewt ... 490#p24490

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Adjustments for this weeks patch needed.

#7 Post by BillDoorNZ » Tue Jul 24, 2012 4:07 pm

tablesBase = 0x9FF4C8,

gets it going...after y've done an update.lua that is :)

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Adjustments for this weeks patch needed.

#8 Post by Ego95 » Tue Jul 24, 2012 4:18 pm

So which adress is the right one? :D
0x9FF4C4 or 0x9FF4C8? :D

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Adjustments for this weeks patch needed.

#9 Post by BillDoorNZ » Tue Jul 24, 2012 4:21 pm

lol...surely you can just try both???

but:

tablesBase = 0x9FF4C8,

is the right one

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Adjustments for this weeks patch needed.

#10 Post by Ego95 » Tue Jul 24, 2012 4:26 pm

Thank you, then I can turn on my computer and bot tonight :)
You're right, why do i ask when I can try both in less than 1 minute -.-
I need some sleep...

SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: Adjustments for this weeks patch needed.

#11 Post by SpiralV » Tue Jul 24, 2012 4:29 pm

BillDoorNZ wrote:lol...surely you can just try both???

but:

tablesBase = 0x9FF4C8,

is the right one
Both are correct, so the first one is mine and the second one yours :lol:

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Adjustments for this weeks patch needed.

#12 Post by BillDoorNZ » Tue Jul 24, 2012 4:32 pm

how interesting :)

I just modify the memorytables.lua file to change the beginning to:

Code: Select all

	local tablePointer;
	local startAddressOffsets;
	local dataPointer;

	for i=0,(4*100),4 do
		tablePointer = memoryReadIntPtr( getProc(), addresses.tablesBase+(i), addresses.tablesBaseOffset )
		if ((tablePointer) and ((tablePointer or 0) > 10000)) then
			printf("-"..i..": "..tablePointer.."\n");
			startAddressOffsets = {0,addresses.tableStartPtrOffset, addresses.tableDataStartPtrOffset}
			dataPointer = memoryReadIntPtr( getProc(), tablePointer , startAddressOffsets );
			
			if (dataPointer) then
				printf("-"..i..": "..tablePointer.." - "..dataPointer.."\n");
				dataPointer = dataPointer - lineSize;
				break;
			end;
		end;
	end;
so it cycles through the current base address adding 4 each time (int size). Or I change the + to a - to go back other way and HOPE ;)

I think yours will be more correct if you did it with Lisa's method

romaniac
Posts: 79
Joined: Sat Feb 04, 2012 8:25 am

Re: Adjustments for this weeks patch needed.

#13 Post by romaniac » Tue Jul 24, 2012 4:37 pm

BillDoorNZ wrote: tablesBase = 0x9FF4C8,

is the right one
Confirmed. Works nicely. Thank you.

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

Re: Adjustments for this weeks patch needed.

#14 Post by Administrator » Tue Jul 24, 2012 5:26 pm

I'm still downloading the client (it is god-awful slow), so I'm not able to test anything just yet. Still, I've made a SVN commit with the address change you guys have reported working. If there's anything else, just post it in this thread.

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Adjustments for this weeks patch needed.

#15 Post by gloover » Tue Jul 24, 2012 5:30 pm

Nope, all adresses could be updated with the bot - everything seems to work.

Nice work.

SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: Adjustments for this weeks patch needed.

#16 Post by SpiralV » Tue Jul 24, 2012 7:05 pm

Hmmm,
the SVN addresses.lua is not OK, looks like there is no auto-update has been made.
I'll post mine, changes to previous version:
- run update.lua
-tablesBase = 0x9FF4C4, (got a problem with 0x9FF4C8 on a different PC)
-partyMemberList_address = 0x9FE238,

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Adjustments for this weeks patch needed.

#17 Post by lisa » Tue Jul 24, 2012 7:20 pm

SpiralV wrote:Hmmm,
the SVN addresses.lua is not OK, looks like there is no auto-update has been made.
I'll post mine, changes to previous version:
- run update.lua
-tablesBase = 0x9FF4C4, (got a problem with 0x9FF4C8 on a different PC)
-partyMemberList_address = 0x9FE238,
Admin would have just added in the tablebase address, so people would still need to do a rom/update to update the rest of the addresses.

I'll commit with this addresses.lua but yeah I haven't updated RoM yet either so I can't test them.
rev 730
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

SpiralV
Posts: 72
Joined: Sat Jun 25, 2011 10:37 am
Location: Germany

Re: Adjustments for this weeks patch needed.

#18 Post by SpiralV » Tue Jul 24, 2012 8:21 pm

Ah sry, i guessed this value would be overwritten during an update.
Last edited by SpiralV on Tue Jul 24, 2012 8:39 pm, edited 1 time in total.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Adjustments for this weeks patch needed.

#19 Post by lisa » Tue Jul 24, 2012 8:22 pm

If anyone is interested I use this userfunction to test if the addresses have updated correctly.

For best results be in a party and also the party leader, also have a eggpet in first eggpet slot.

Just run commandline

Code: Select all

rom/bot path:commandline
and type

Code: Select all

testaddresses()
You will get prints on MM screen, it will also use the fly hack and ask if you are flying, answer yes or no
userfunction_testaddresses.lua
(2.55 KiB) Downloaded 128 times
It will look something like this

Code: Select all

Command> testaddresses()
staticbase_char: Confirmed
staticInventory: Confirmed
moneyPtr: Confirmed
eggPetBaseAddress: No pet to test with
zoneId: Confirmed
partyMemberList_address: Unconfirmed as not in a party
Swimhack ACTIVATED!
Am I flying??
>>yes
swimAddress: Confirmed
Swimhack DEactivated.
Command>
In this test I had no eggpet and wasn't in a party.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Adjustments for this weeks patch needed.

#20 Post by gloover » Wed Jul 25, 2012 12:39 am

Hey lisa,

nice idea - will test your userfunction. I have take a look inside: does this also support warlock and champ?
Couldnt see those classes listed inside.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest