Page 1 of 2

What am i doing wrong?

Posted: Fri Jun 05, 2009 5:05 pm
by AleksSoe
When im running MicroMacro (right from WinRAR ) i get this error (on the pic )
any ide?!
it says in the yellow text : first:
cannot open scrips\rom/createpath.lua: No such file or directory

then:

: WARNING: Failure reading memoryfrom 0x2A3FDB4 at 0x87ad90 in memoryReadIntPtr<>
. Error code 299 <Just arts of one ReadProcessMemory- or WriteProcessMemory-
enquiry whas finsish.>
...Rar$EX06.253/micromacro/scripts/rom/classes/pawn.lua:41: attemt to erform a
rithmetic on field 'address' <a nil value>

Re: What am i doing wrong?

Posted: Fri Jun 05, 2009 6:22 pm
by Zilvermoon
are you sure you got the RoM script downloaded and that you put it the right place?

Where to get the RoM script:
http://www.solarstrike.net/phpBB3/viewt ... 1741#p1741

The right path:
micromacro\scripts\rom

Zilvermoon

Re: What am i doing wrong?

Posted: Fri Jun 05, 2009 8:54 pm
by Administrator
Don't run it right out of the rar file. Extract everything first.

Re: What am i doing wrong?

Posted: Sat Jun 06, 2009 1:18 pm
by AleksSoe
do i extrakt it to were?

Re: What am i doing wrong?

Posted: Sat Jun 06, 2009 1:30 pm
by AleksSoe
This is were it is!
starting from blah 1, blah 2, bah.
and i extracted it to Programs(x86)
(its were all my games r including Rom )

Re: What am i doing wrong?

Posted: Sat Jun 06, 2009 2:46 pm
by Administrator
Doesn't mater where you extract MicroMacro to. Just make sure it's extracted, and not in the rar archive. The previous screenshot you posted indicated that it was being run from within the rar, and would then give errors.

Re: What am i doing wrong?

Posted: Sat Jun 06, 2009 3:15 pm
by AleksSoe
nope, still get the same error. is it becaus i have the newest pach in rom?

Re: What am i doing wrong?

Posted: Sat Jun 06, 2009 3:18 pm
by AleksSoe
am iwriteing it right?

rom/createpath.lua

Re: What am i doing wrong?

Posted: Sat Jun 06, 2009 7:00 pm
by Administrator
Attach a copy of your log.txt.

Re: What am i doing wrong?

Posted: Fri Jun 12, 2009 8:26 am
by romeo
I have the same problem, EXACT THE SAME!

heres my logfile

same problem occures even when i use the configer app....

Re: What am i doing wrong?

Posted: Fri Jun 12, 2009 12:55 pm
by Administrator
Try updating your addresses.lua

Code: Select all

-- Auto-generated by update.lua
patternstart_address = 0x58FFF9;

staticcharbase_address = 0x88EF20;
charPtr_offset = 0x580;
pawnId_offset = 0x18;
pawnType_offset = 0x1C;
charX_offset = 0x2C;
charY_offset = 0x30;
charZ_offset = 0x34;
camUVec1_offset = 0x38;
camUVec2_offset = 0x40;
charAlive_offset = 0x210;
castbar_offset = 0x244;
charTargetPtr_offset = 0x260;
charName_offset = 0x278;
charHP_offset = 0x344;
charMaxHP_offset = 0x34C;
charMP_offset = 0x350;
charMaxMP_offset = 0x354;
charMP2_offset = 0x358;
charMaxMP2_offset = 0x35C;
charClass1_offset = 0x378;
charLevel_offset = 0x37C;
charClass2_offset = 0x380;
charLevel2_offset = 0x384;
pawnAttackable_offset = 0x3F6;
inBattle_offset = 0x572;

Re: What am i doing wrong?

Posted: Fri Jun 12, 2009 1:36 pm
by romeo
i know it maybe sounds stupid or so but how im doing that?

should i open the update.lua or the adress.lua?

and how i open .lua files?

Re: What am i doing wrong?

Posted: Fri Jun 12, 2009 2:02 pm
by xxsinz
Open the file addresses.lua with notepad. Delete the contents and then copy what Administrator posted and paste it and save.

Re: What am i doing wrong?

Posted: Fri Jun 12, 2009 2:15 pm
by romeo
i started the update.lua accidently without copy what the admin writes.
it works for some reason...
dont know why, but now it works
if it helps, i write in here what my update.lua has in it


Code: Select all

function findOffsets()
	local staticbase, staticcastbar;

	local pattern = string.char(0x5F, 0x5E, 0x5B, 0x8B, 0xE5, 0x5D, 0xC3, 0xA1, 0xFF, 0xFF, 0xFF, 0xFF, 0x53);
	local found = findPatternInProcess(getProc(), pattern, "xxxxxxxx????x", 0x550000, 0x000A0000);
	if( found == 0 ) then
		error("Unable to find static base pointer in module.", 0);
	end

	staticbase = memoryReadInt(getProc(), found + 8);

	if( staticbase == nil ) then
		error("Found pattern, but unable to read memory.\n");
	end

	printf("staticbase: 0x%X\n", staticbase);

	staticcharbase_address = staticbase;
end

function rewriteAddresses()
	local filename = getExecutionPath() .. "/addresses.lua";
	getProc(); -- Just to make sure we open the process first

	printf("Scanning for updated addresses...\n");
	findOffsets();
	printf("Finished.\n");

	local file = io.open(filename, "w");

	file:write(
		sprintf("-- Auto-generated by update.lua\n\n") ..
		sprintf("staticcharbase_address = 0x%X;\n", staticcharbase_address) ..
		sprintf("charPtr_offset = 0x%X;\n", charPtr_offset) ..
		sprintf("castbar_offset = 0x%X;\n", castbar_offset) ..
		sprintf("charX_offset = 0x%X;\n", charX_offset) ..
		sprintf("charY_offset = 0x%X;\n", charY_offset) ..
		sprintf("charZ_offset = 0x%X;\n", charZ_offset) ..
		sprintf("charAlive_offset = 0x%X;\n", charAlive_offset) ..
		sprintf("charHP_offset = 0x%X;\n", charHP_offset) ..
		sprintf("charMaxHP_offset = 0x%X;\n", charMaxHP_offset) ..
		sprintf("charMP_offset = 0x%X;\n", charMP_offset) ..
		sprintf("charMaxMP_offset = 0x%X;\n", charMaxMP_offset) ..
		sprintf("charMP2_offset = 0x%X;\n", charMP2_offset) ..
		sprintf("charMaxMP2_offset = 0x%X;\n", charMaxMP2_offset) ..
		sprintf("charLevel_offset = 0x%X;\n", charLevel_offset) ..
		sprintf("charLevel2_offset = 0x%X;\n", charLevel2_offset) ..
		sprintf("charName_offset = 0x%X;\n", charName_offset) ..
		sprintf("charTargetPtr_offset = 0x%X;\n", charTargetPtr_offset) ..
		sprintf("pawnAttackable_offset = 0x%X;\n", pawnAttackable_offset) ..
		sprintf("inBattle_offset = 0x%X;\n", inBattle_offset) ..
		sprintf("camUVec1_offset = 0x%X;\n", camUVec1_offset) ..
		sprintf("camUVec2_offset = 0x%X;\n", camUVec2_offset)
	);

	file:close();

end
rewriteAddresses();

i just downloaded this bot from somwhere and this was in it

so my advice for u: if it dont works, just run the update.lua first XP

anyways, thanks for the help and credits to the maker of this bot (i think hes called elviron or something like that?)

Re: What am i doing wrong?

Posted: Fri Jun 12, 2009 2:33 pm
by Administrator
It should have gave you a warning that it was outdated, and instructed you to run update.lua. If not, you were using a very old version. I would suggest you completely re-download the scripts from here and go from there.

Re: What am i doing wrong?

Posted: Sat Jun 13, 2009 12:48 pm
by romeo
can i keep my old pathfiles and stuff with the new scripts?

Re: What am i doing wrong?

Posted: Sat Jun 13, 2009 3:57 pm
by Administrator
Yes. Nothing has changes in those. There have been improvements to the waypoint system, but nothing that would affect the scripts.

Re: What am i doing wrong?

Posted: Sun Jun 14, 2009 6:27 am
by romeo
ok, evrything works now for me
and i gotta admit, the new scripts are improved

Re: What am i doing wrong?

Posted: Thu Jul 16, 2009 4:45 pm
by AleksSoe
this is whats in my log
i still got the same error






Thu Jul 16 23:41:33 2009 : MicroMacro v1.0
Thu Jul 16 23:41:33 2009 : Processor Type: 4X 586, OS: Windows Vista | Windows Server 2008 Service Pack 1
Thu Jul 16 23:41:33 2009 : LuaCoco is available.
Thu Jul 16 23:41:33 2009 : Lua glues exported.
Thu Jul 16 23:41:33 2009 : Keyboard layout: US English
Thu Jul 16 23:41:42 2009 : Executing script 'createpathe.lua'
==================================================

Thu Jul 16 23:41:42 2009 : cannot open scripts\rom/createpathe.lua: No such file or directory
Thu Jul 16 23:41:42 2009 : Execution error: Error reading file
Thu Jul 16 23:42:16 2009 : Executing script 'createpath.lua'
==================================================

Thu Jul 16 23:42:16 2009 : WARNING: Failure reading memory from 0x292FDB4 at 0x88ef20 in memoryReadIntPtr(). Error code 299 (Bare deler av en ReadProcessMemory- eller WriteProcessMemory-forespørsel ble fullført.)


stack traceback:
C:\Users\micromacro\lib\lib.lua:512: in function 'startMacro'
scripts\rom/createpath.lua:73: in main chunk

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

Thu Jul 16 23:42:16 2009 : C:/Users/micromacro/scripts/rom/classes/pawn.lua:41: attempt to perform arithmetic on field 'Address' (a nil value)
Thu Jul 16 23:42:16 2009 : Execution error: Runtime error

Re: What am i doing wrong?

Posted: Thu Jul 16, 2009 5:57 pm
by Administrator
Looks to me like both your copy of MicroMacro and the RoM scripts are out of date. Get the newest versions and try again.