-
romaniac
- Posts: 79
- Joined: Sat Feb 04, 2012 8:25 am
#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
#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)"
-
Sithlord512589
- Posts: 36
- Joined: Thu Mar 04, 2010 9:21 am
#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

-
gloover
- Posts: 304
- Joined: Wed Jul 07, 2010 4:31 am
#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!
-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
#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

-
Ego95
- Posts: 564
- Joined: Tue Feb 28, 2012 12:38 pm
-
Contact:
#8
Post
by Ego95 » Tue Jul 24, 2012 4:18 pm
So which adress is the right one?

0x9FF4C4 or 0x9FF4C8?

-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
#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
-
Ego95
- Posts: 564
- Joined: Tue Feb 28, 2012 12:38 pm
-
Contact:
#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
#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

-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
#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
#13
Post
by romaniac » Tue Jul 24, 2012 4:37 pm
BillDoorNZ wrote:
tablesBase = 0x9FF4C8,
is the right one
Confirmed. Works nicely. Thank you.
-
Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
#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.
-
gloover
- Posts: 304
- Joined: Wed Jul 07, 2010 4:31 am
#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
#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,
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#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
-
SpiralV
- Posts: 72
- Joined: Sat Jun 25, 2011 10:37 am
- Location: Germany
#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.
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#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
and type
You will get prints on MM screen, it will also use the fly hack and ask if you are flying, answer yes or no
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.
-
gloover
- Posts: 304
- Joined: Wed Jul 07, 2010 4:31 am
#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.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 1 guest