Page 1 of 5

Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 8:37 am
by nassekova
Installed the newest patch and ran update.lua. After that debugger says /rom/classes/memorytable.lua:123: attempt to arithmetic on local 'tablePointerDir' <a nil value> So it seems they have changed memory adresses again...

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 9:12 am
by Perk
same,, (confirmed)

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 9:39 am
by daro1986
same here

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 9:46 am
by RebornX
same here... So, does it mean, we need new offsets? How long would it take to find them?

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 10:02 am
by Personalausweis
happens nearly every bigger patch, no need to post it here, just wait until new rev.

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 10:08 am
by Rom Botter
Just relax, they will fix it as soon as they have the time for it... remember that the people who support this amazing bot also have a life outside supporting the Rom Bot :)

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 10:19 am
by top1
tablepointr is broken

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 11:08 am
by jduartedj
not getting THAT error, getting an error in this line:

Code: Select all

	self.Casting = (memoryReadRepeat("intptr", getProc(), addresses.castingBarPtr, addresses.castingBar_offset) ~= 0);

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 11:50 am
by fobsauce
I started working on the static addresses only to find that many of the offsets have changed too. This one is going to take a while.

edit: nevermind...just grinding through

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 12:36 pm
by fobsauce
jduartedj wrote:not getting THAT error, getting an error in this line:

Code: Select all

	self.Casting = (memoryReadRepeat("intptr", getProc(), addresses.castingBarPtr, addresses.castingBar_offset) ~= 0);
castingBarPtr = 0xA103B4,

let me know what your next error is.

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 12:46 pm
by fobsauce
If someone could explain to me how staticInventory and inventoryBagIds
are used, I can post those as well. I can find the bag slots but I don't know what to do with them.

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 1:22 pm
by botje

Code: Select all

stack traceback:
	.../todo/micromacro/scripts/rom/classes/memorytable.lua:370: in function 'LoadTables_memory'
	.../todo/micromacro/scripts/rom/classes/memorytable.lua:416: in function 'LoadTables'
	D:/todo/micromacro/scripts/rom/classes/inventory.lua:10: in function 'ctor'
	D:/todo/micromacro/lib/mods/classes.lua:25: in function 'CInventory'
	D:\todo\micromacro\scripts\rom/bot.lua:209: in function 'foo'
	D:\todo\micromacro\lib\lib.lua:574: in function <D:\todo\micromacro\lib\lib.lua:572>

----------TRACEBACK END----------

Wed Jan 26 19:18:58 2011 : .../todo/micromacro/scripts/rom/classes/memorytable.lua:123: attempt to perform arithmetic on local 'tablePointerDir' (a nil value)
Wed Jan 26 19:18:58 2011 : Execution error: Runtime error
enough errors for ya? xd

Good luck mate, i hope it works ^^

Botje

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 1:26 pm
by fobsauce
botje wrote:enough errors for ya? xd

Good luck mate, i hope it works ^^

Botje
try
tablesBase = 0x9DB224,

edit: I'm having trouble using voidman's technique on finding tablesBase.

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 1:29 pm
by botje
nope xd

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 2:14 pm
by fobsauce
I can get partial functionality by changing the following AFTER a rom/update

castingBarPtr = 0xA103B4,
tablesBase = 0xA13168,
inventoryBagIds = 0x9D18FC,
pawnId_offset = 0x14,

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 2:39 pm
by jduartedj
Get an error with this:

Code: Select all

realTablePointer

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 2:46 pm
by Germangold
me to

Code: Select all

realTablePointer error

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 3:15 pm
by fobsauce
Try changing
tablesBaseOffset = 0x0,

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 3:28 pm
by jduartedj
I can't test anything as IO'm at work but the problem seems to be with:

Code: Select all

local tablePointerDir = memoryReadIntPtr( proc, addresses.tablesBase, addresses.tablesBaseOffset );
which is null! one of those is wrong either base or offset

Re: Patch 3.0.8 broke something...

Posted: Wed Jan 26, 2011 3:43 pm
by fobsauce
Ya, I'm having trouble with finding that table. What worked before was probably luck.