What am i doing wrong?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
AleksSoe
Posts: 14
Joined: Fri Jun 05, 2009 4:55 pm

What am i doing wrong?

#1 Post by AleksSoe » Fri Jun 05, 2009 5:05 pm

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>
Attachments
FAIL.jpg

Zilvermoon
Posts: 104
Joined: Mon Jan 05, 2009 8:19 am

Re: What am i doing wrong?

#2 Post by Zilvermoon » Fri Jun 05, 2009 6:22 pm

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

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

Re: What am i doing wrong?

#3 Post by Administrator » Fri Jun 05, 2009 8:54 pm

Don't run it right out of the rar file. Extract everything first.

AleksSoe
Posts: 14
Joined: Fri Jun 05, 2009 4:55 pm

Re: What am i doing wrong?

#4 Post by AleksSoe » Sat Jun 06, 2009 1:18 pm

do i extrakt it to were?

AleksSoe
Posts: 14
Joined: Fri Jun 05, 2009 4:55 pm

Re: What am i doing wrong?

#5 Post by AleksSoe » Sat Jun 06, 2009 1:30 pm

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 )
Attachments
blah.jpg
blah 2.jpg
Blah 1.jpg

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

Re: What am i doing wrong?

#6 Post by Administrator » Sat Jun 06, 2009 2:46 pm

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.

AleksSoe
Posts: 14
Joined: Fri Jun 05, 2009 4:55 pm

Re: What am i doing wrong?

#7 Post by AleksSoe » Sat Jun 06, 2009 3:15 pm

nope, still get the same error. is it becaus i have the newest pach in rom?

AleksSoe
Posts: 14
Joined: Fri Jun 05, 2009 4:55 pm

Re: What am i doing wrong?

#8 Post by AleksSoe » Sat Jun 06, 2009 3:18 pm

am iwriteing it right?

rom/createpath.lua

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

Re: What am i doing wrong?

#9 Post by Administrator » Sat Jun 06, 2009 7:00 pm

Attach a copy of your log.txt.

romeo
Posts: 8
Joined: Fri Jun 12, 2009 8:23 am

Re: What am i doing wrong?

#10 Post by romeo » Fri Jun 12, 2009 8:26 am

I have the same problem, EXACT THE SAME!

heres my logfile

same problem occures even when i use the configer app....
Attachments
log.txt
Log File from the Bot
(3.96 KiB) Downloaded 104 times

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

Re: What am i doing wrong?

#11 Post by Administrator » Fri Jun 12, 2009 12:55 pm

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;

romeo
Posts: 8
Joined: Fri Jun 12, 2009 8:23 am

Re: What am i doing wrong?

#12 Post by romeo » Fri Jun 12, 2009 1:36 pm

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?

xxsinz
Posts: 67
Joined: Wed May 27, 2009 9:45 am

Re: What am i doing wrong?

#13 Post by xxsinz » Fri Jun 12, 2009 2:02 pm

Open the file addresses.lua with notepad. Delete the contents and then copy what Administrator posted and paste it and save.

romeo
Posts: 8
Joined: Fri Jun 12, 2009 8:23 am

Re: What am i doing wrong?

#14 Post by romeo » Fri Jun 12, 2009 2:15 pm

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?)

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

Re: What am i doing wrong?

#15 Post by Administrator » Fri Jun 12, 2009 2:33 pm

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.

romeo
Posts: 8
Joined: Fri Jun 12, 2009 8:23 am

Re: What am i doing wrong?

#16 Post by romeo » Sat Jun 13, 2009 12:48 pm

can i keep my old pathfiles and stuff with the new scripts?

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

Re: What am i doing wrong?

#17 Post by Administrator » Sat Jun 13, 2009 3:57 pm

Yes. Nothing has changes in those. There have been improvements to the waypoint system, but nothing that would affect the scripts.

romeo
Posts: 8
Joined: Fri Jun 12, 2009 8:23 am

Re: What am i doing wrong?

#18 Post by romeo » Sun Jun 14, 2009 6:27 am

ok, evrything works now for me
and i gotta admit, the new scripts are improved

AleksSoe
Posts: 14
Joined: Fri Jun 05, 2009 4:55 pm

Re: What am i doing wrong?

#19 Post by AleksSoe » Thu Jul 16, 2009 4:45 pm

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

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

Re: What am i doing wrong?

#20 Post by Administrator » Thu Jul 16, 2009 5:57 pm

Looks to me like both your copy of MicroMacro and the RoM scripts are out of date. Get the newest versions and try again.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 15 guests