Error 299 - 1 step at a time!

You may request or share scripts for MicroMacro in this forum.
Post Reply
Message
Author
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Error 299 - 1 step at a time!

#1 Post by MiesterMan » Tue May 17, 2011 8:57 am

Ok, so now that I'm past finding all the memory addresses and am now an expert at what I'm looking for in Argo, I'm trying to use them to bot. Problem is, I can't use them...

I'm using windows 7 ultimate 64-bit version,

here is my test.lua:

Code: Select all

include("addresses.lua");

target = {}
win = findWindow("ARGO")
myGame = openProcess( findProcessByWindow(win) )

	target.CurHP = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarCurHP_offset)
	target.MaxHP = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarMaxHP_offset)
	target.Distance = memoryReadFloatPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarDist_offset)
	target.Name = memoryReadStringPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarName_offset)
	target.Type = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarType_offset)
	tmpKillCount = memoryReadUString(myGame,addList.staticbase_killCount,32)
--closeProcess( myGame );
	tmpKCLen = string.len(tmpKillCount)
	print(myGame)
	print(target.CurHP)
	print(target.MaxHP)
	print(target.Distance)
	print(target.Name)
	print(target.Type)
	--print(tonumber(tmpKillCount:sub(10,tmpKCLen+1)))
Here is my micromacro output:

Code: Select all

Script> argo\test
Opening test.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr()
. Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request
 was completed.)
WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr()
. Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request
 was completed.)
WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr
(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory reque
st was completed.)
WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPt
r(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory requ
est was completed.)
WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr()
. Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request
 was completed.)
userdata: 00740FC0
nil
nil
nil
nil
nil


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
Here is my log.txt:

Code: Select all

Tue May 17 07:27:36 2011 : Processor Type: 2X AMD or Intel x64 @2400MHz, OS: Windows 7 Service Pack 1
Tue May 17 07:27:36 2011 : User privilege level: Administrator
Tue May 17 07:27:36 2011 : Lua glues exported.
Tue May 17 07:27:36 2011 : MicroMacro v1.01 beta 4
Tue May 17 07:27:36 2011 : LuaCoco is available.
Tue May 17 07:27:36 2011 : Keyboard layout: US English
Tue May 17 07:27:41 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 07:27:41 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadUIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 07:27:41 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadUIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 07:27:41 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 07:27:41 2011 : WARNING: Failure reading memory from 0x28F9F4 at 0x129e194 in memoryReadUIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 07:27:41 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadUIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 07:27:41 2011 : Execution success

Tue May 17 08:26:16 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 08:26:16 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:26:16 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:26:16 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:26:16 2011 : WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:26:16 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:26:16 2011 : Execution success

Tue May 17 08:30:54 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 08:30:54 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:54 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:54 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:54 2011 : WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:54 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:54 2011 : Execution success

Tue May 17 08:30:58 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 08:30:58 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:58 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:58 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:58 2011 : WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:58 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:58 2011 : Execution success

Tue May 17 08:30:59 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 08:30:59 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:59 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:59 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:59 2011 : WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:59 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:30:59 2011 : Execution success

Tue May 17 08:31:00 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 08:31:00 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:31:00 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:31:00 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:31:00 2011 : WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:31:00 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:31:00 2011 : Execution success

Tue May 17 08:31:01 2011 : Executing script '.lua'
-------------------------------------------------------------------------------


Tue May 17 08:31:01 2011 : cannot open scripts\.lua: No such file or directory
Tue May 17 08:31:01 2011 : Execution error: Error reading file
Tue May 17 08:48:21 2011 : Executing script 'test.lua'
-------------------------------------------------------------------------------


Tue May 17 08:48:21 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:48:21 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:48:21 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:48:21 2011 : WARNING: Failure reading memory from 0x28F9F8 at 0x129e194 in memoryReadStringPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:48:21 2011 : WARNING: Failure reading memory from 0x28FA04 at 0x129e194 in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)
Tue May 17 08:48:21 2011 : Execution success

I had origionally set it up with local variable arrays for the offsets but that kept giving me strange results (like the first one in this log) so I changed it piece by piece to use the variable names in the functions but still no go. Worst part is, and I'm afraid this is the big issue, what prints out for my "openProccess" is different every single time I run the script. I tried about 30 different ways from in the openProccess wiki page to open the proccess but it has the same result every time. The ID is just random. Note: I'm not closing and opening the program, the ID shouldn't be changing (at least that's what I'm assuming).

This is driving me nuts. I can't even get a base static addressed string to come out of the program. It keeps giving me a bunch of wierd unrelated characters.

Edit: I've also tried using the PID from task manager and putting it directly into the script. (myGame = openProcess( 6112 ) - confirmed with Cheat Engine this was the PID) which gave the exact same results (same errors and userdata: randomHexNumber).

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#2 Post by MiesterMan » Tue May 17, 2011 9:56 am

New experiment:

Code: Select all

include("addresses.lua");

target = {}
win = findWindow("ARGO")
myGame = openProcess( 6112 )

function main()
	target.CurHP = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarCurHP_offset)
	target.MaxHP = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarMaxHP_offset)
	target.Distance = memoryReadFloatPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarDist_offset)
	target.Name = memoryReadStringPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarName_offset)
	target.Type = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset + addList.tarType_offset)
	tmpKillCount = memoryReadUString(myGame,addList.staticbase_killCount,32)
--closeProcess( myGame );
	tmpKCLen = string.len(tmpKillCount)
	print("\n")
	zRage = true
	while zRage do
		win = findWindow("ARGO")
		myGame = openProcess( findProcessByWindow(win) )
		print("Window Handle:  " .. win)
		print(myGame)
		yrest(500)
	end
	print(target.CurHP)
	print(target.MaxHP)
	print(target.Distance)
	print(target.Name)
	print(target.Type)
	--print(tonumber(tmpKillCount:sub(10,tmpKCLen+1)))
end
startMacro(main);
Results:

Code: Select all

Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> argo\test
Opening test.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
The macro is currently not running. Press the start key (F5) to begin.
You may use (F6) key to stop/pause the script.
Started.
WARNING: Failure reading memory from 0x3BDFD40 at 0x129e194 in memoryReadIntPtr(
). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory reques
t was completed.)
WARNING: Failure reading memory from 0x3BDFD40 at 0x129e194 in memoryReadIntPtr(
). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory reques
t was completed.)
WARNING: Failure reading memory from 0x3BDFD40 at 0x129e194 in memoryReadFloatPt
r(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory requ
est was completed.)
WARNING: Failure reading memory from 0x3BDFD34 at 0x129e194 in memoryReadStringP
tr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory req
uest was completed.)
WARNING: Failure reading memory from 0x3BDFD40 at 0x129e194 in memoryReadIntPtr(
). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory reques
t was completed.)


Window Handle:  460408
userdata: 01EEEF70
Window Handle:  460408
userdata: 01EED100
Window Handle:  460408
userdata: 01ED8740
Window Handle:  460408
userdata: 01EEFF20
Window Handle:  460408
userdata: 01EE5158
Window Handle:  460408
userdata: 01F7D1A0
Window Handle:  460408
userdata: 01EF0A48
Window Handle:  460408
userdata: 01EECEF8
Window Handle:  460408
userdata: 01F828A0
Window Handle:  460408
userdata: 01EEFC28
Window Handle:  460408
userdata: 01EF0518
Window Handle:  460408
userdata: 01F7C7E8
Window Handle:  460408
userdata: 01EF0B38
Window Handle:  460408
userdata: 01EE4F50
Window Handle:  460408
userdata: 01EF07E8
Window Handle:  460408
userdata: 01EF04F0
Window Handle:  460408
userdata: 01EECDE0
Window Handle:  460408
userdata: 01EEF2B8
Window Handle:  460408
userdata: 01EF0C00
Window Handle:  460408
userdata: 01EECCC8
Window Handle:  460408
userdata: 01EF06F8
Window Handle:  460408
userdata: 01EEED90
Window Handle:  460408
userdata: 01EF0B88
Window Handle:  460408
userdata: 01EF0248
Window Handle:  460408
userdata: 01EE5518
Window Handle:  460408
userdata: 01EE50E0
Window Handle:  460408
userdata: 01EEF290
Window Handle:  460408
userdata: 01EF10D8
Window Handle:  460408
userdata: 01EEFE80
Window Handle:  460408
userdata: 01EECDB8
Window Handle:  460408
userdata: 01EE5108
Window Handle:  460408
userdata: 01EEF9F8
Window Handle:  460408
userdata: 01EE4F78
Window Handle:  460408
userdata: 01EED860
Window Handle:  460408
userdata: 01EF0220
Window Handle:  460408
userdata: 01EECAE8
Stopping execution.


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#3 Post by MiesterMan » Tue May 17, 2011 3:10 pm

I managed to work out using local variables again but I still get the same errors. Can you tell me, what is openProcess supposed to return? I've been looking at the source but can't figure it out.

I really hate running into errors that cut my legs off entirely. I can't go anywhere with this.

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

Re: Error 299 - 1 step at a time!

#4 Post by Administrator » Tue May 17, 2011 4:42 pm

openProcess() returns a handle to the opened process on success, or 0 on failure.

It looks to me like you're reading the offsets wrong. it should probably be something more like this:

Code: Select all

  local targetAddr = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset);
   target.CurHP = memoryReadInt(myGame, targetAddr + addList.tarCurHP_offset)

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#5 Post by MiesterMan » Tue May 17, 2011 8:04 pm

Administrator wrote:openProcess() returns a handle to the opened process on success, or 0 on failure.

It looks to me like you're reading the offsets wrong. it should probably be something more like this:

Code: Select all

  local targetAddr = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset);
   target.CurHP = memoryReadInt(myGame, targetAddr + addList.tarCurHP_offset)
My apologies, I thought it went straight to the value. I'll give it a try and report the results.

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#6 Post by MiesterMan » Tue May 17, 2011 9:00 pm

Changed the code some:

Code: Select all

include("addresses.lua");

target = {}
win = findWindow("ARGO")
myProc = findProcessByWindow(win)
myGame = openProcess( myProc )

print(win)
print(myProc)
print(myGame)

function main()
--	local tmpBase = 0x0
--	local tmpOffset = 0x0
--	local tmpAddr = 0x0
--	tmpBase = addList.staticbase_tar
--	tmpOffset = addList.tarPtr_offset
	print(addList.staticbase_tar .. " " .. addList.tarPtr_offset)
	local targetAddr = memoryReadIntPtr(myGame, addList.staticbase_tar, addList.tarPtr_offset)
	print(targetAddr)
--	tmpOffset = addList.tarCurHP_offset
--	target.CurHP = memoryReadInt(myGame, tmpAddr + tmpOffset)
	target.CurHP = memoryReadInt(myGame, targetAddr + addList.tarCurHP_offset)
	print(target.CurHP)
	tmpOffset = addList.tarMaxHP_offset
	target.MaxHP = memoryReadInt(myGame, tmpBase + tmpOffset)
	tmpOffset = addList.tarDist_offset
	target.Distance = memoryReadFloat(myGame, tmpBase + tmpOffset)
	tmpOffset = addList.tarName_offset
	target.Name = memoryReadString(myGame, tmpBase + tmpOffset)
	tmpOffset = addList.tarType_offset
	target.Type = memoryReadByte(myGame, tmpBase + tmpOffset)
	tmpKillCount = memoryReadString(myGame,addList.staticbase_killCount,32)
--closeProcess( myGame );
	tmpKCLen = string.len(tmpKillCount)
	print("\n")
	print(target.CurHP)
	print(target.MaxHP)
	print(target.Distance)
	print(target.Name)
	print(target.Type)
	--print(tonumber(tmpKillCount:sub(10,tmpKCLen+1)))
end
startMacro(main);
MM text:

Code: Select all

Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> argo\test
Opening test.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
460408
6112
userdata: 01EF0BC0
The macro is currently not running. Press the start key (F5) to begin.
You may use (F6) key to stop/pause the script.
Started.
19521940 108
WARNING: Failure reading memory from 0x26FFD40 at 0x129e194 in memoryReadIntPtr(
). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory reques
t was completed.)
nil
8:46pm - scripts\argo\test.lua:23: attempt to perform arithmetic on local 'targe
tAddr' (a nil value)


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
I made sure there was a target and checked Cheat Engine before and after. There were address values in place and values at the end of the pointer trails.

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

Re: Error 299 - 1 step at a time!

#7 Post by Administrator » Tue May 17, 2011 9:32 pm

I guess you should step through and make sure the pointers are resolving properly.

Try this:

Code: Select all

  local targetPtr = memoryReadInt(myGame, addList.staticbase_tar);
  printf("targetPtr: 0x%X\n", targetPtr);
Make sure that it is even pointing to the right place.

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#8 Post by MiesterMan » Tue May 17, 2011 10:24 pm

I put your code right beneath the other pre-main function prints and this is what it gave me.

Code: Select all

Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> argo\test
Opening test.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
5965754
1840
userdata: 01EDCDC0
targetPtr: 0x89016DF7
The macro is currently not running. Press the start key (F5) to begin.
You may use (F6) key to stop/pause the script.
I tried looking at 89016DF but there was no value and I've no idea where the region is (it's not near the other addresses showing up in cheat engine).

The value that should be in the address is 0CBBA500 which is Argo.exe+129E194. This is the value I have in my staticbase_tar value (129E194). Is that the way it's supposed to be? Or is my computer just returning some strange address?

I checked and Argo.exe starts at 0x400000 and when adding the staticbase_tar it goes to 0x169E194 which points to 0x0CBBA500. After the offset of 0x6C is added it points to 0x0CBBA56C which is a pointer that changes and points to the target data address where I would use offsets to pull info on the target from the memory following.

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

Re: Error 299 - 1 step at a time!

#9 Post by Administrator » Tue May 17, 2011 11:26 pm

If you double-click on the entry in the table of Cheat Engine, it'll give you the pointer chain in the pop-up window. What does it say? Might as well just post a screenshot of that.

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#10 Post by MiesterMan » Wed May 18, 2011 1:54 am

Attached.
Attachments
TarCurHPPointer.png

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

Re: Error 299 - 1 step at a time!

#11 Post by Administrator » Wed May 18, 2011 7:18 am

Try this:

Code: Select all

local value = memoryReadIntPtr(myGame, 0x0CBBA500, {0x6C, 0x9E8});
printf("Value: %s\n", tostring(value));

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#12 Post by MiesterMan » Wed May 18, 2011 11:37 am

Sorry, had to sleep:

Code: Select all

MicroMacro v1.01 beta 4
SolarStrike Software
http://www.solarstrike.net
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> argo\test
Opening test.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
328278
572
userdata: 006F3400
WARNING: Failure reading memory from 0x28FA04 at 0xcbba500 in memoryReadUIntPtr(
). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory reques
t was completed.)
Value: nil
The macro is currently not running. Press the start key (F5) to begin.
You may use (F6) key to stop/pause the script.

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

Re: Error 299 - 1 step at a time!

#13 Post by Administrator » Wed May 18, 2011 4:31 pm

So, is that the correct value or not? That should be (I guess) the target's HP.

User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Error 299 - 1 step at a time!

#14 Post by MiesterMan » Wed May 18, 2011 10:45 pm

Sorry, I guess posting that was a bit confusing. This is the value that it returned:

Code: Select all

Value: nil
Which should have been 18000 or so, the exact value is determined by what my character targets in game and since I had it targeted and checked cheat engine afterward to make sure there was a value and it was there, not nil.

This may just be another quirk of the game, like not being able to attach to the window. I've grown tired of the game already. Past 30 there is no PvP and before that it was lacking. Maybe I'll go back and look at it again after they refine and launch it for real. For now I'll just save the photos of the memory blocks I found with data in them and the offset patterns to use for later if there is in fact a later.

Thank for you help.

Post Reply

Who is online

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