Updated GWA2 Needed

05/11/2024 14:10 Tyranna#1
All bots are failing on initialize()

Specifically the first MemoryRead after the Scan() function.

$mBasePointer = MemoryRead(GetScannedAddress('ScanBasePointer', 8)) ;


If anyone can help or has a solution , it would be much appreciated.


Thanks.
05/11/2024 15:39 aracno974#2
Hi,
the most updated gwa2 version is here:
[Only registered and activated users can see links. Click Here To Register...]
05/12/2024 02:30 Tyranna#3
I have tried all those versions and none of them work for me.
The above error is always produced.

There was one thing, the game client reported an error reading memory. I think it say it was 'unaccessible'.

Seems like to me it is trying to read outside of gw.exe's valid memory space...

Also , there were at least 2 new builds during the Anniversary Event a week ago.
I am thinking that something has changed...
05/12/2024 15:24 Underavelvetmoon#4
Quote:
Originally Posted by Tyranna View Post
I have tried all those versions and none of them work for me.
The above error is always produced.

There was one thing, the game client reported an error reading memory. I think it say it was 'unaccessible'.

Seems like to me it is trying to read outside of gw.exe's valid memory space...

Also , there were at least 2 new builds during the Anniversary Event a week ago.
I am thinking that something has changed...
No issues with running GWA2 on my end. Must be an issue on your end. Perhaps using an odd version of AutoIt? I found that a lot of the bots I used to run had to have some functions re-written to feature all Local calls (especially in movement and agent detection functions) or it would error.

For the base pointer to change there would need to be a significant update that shifts memory addresses (i.e., adding things into new locations) which I highly doubt will ever happen again.

Try deleting the gw.exe from your game location and installing a fresh one using the GwSetup.exe available from the game website. If that doesnt work, your going to need to be more specific with what your error is for anyone to help.
05/12/2024 17:01 Tyranna#5
Quote:
No issues with running GWA2 on my end. Must be an issue on your end.
It definitely is an issue on my end.
Quote:
Perhaps using an odd version of AutoIt?
Do you mean 'old' version or did you really mean 'odd'?
Addressing the case if the AutoIt version is 'old':
I am using the same one that has always been installed.
I could try to update it to the newest version though and see what happens.
Quote:
I found that a lot of the bots I used to run had to have some functions re-written to feature all Local calls (especially in movement and agent detection functions) or it would error.
I am actually am not running any bots. We are not getting past the Initialize()
function located in the GWA2 file. The error occurs before any of my code runs.
( I have traced the code to the point shown in the original post. reprinted here
for convenience )
Code:
$mBasePointer = MemoryRead(GetScannedAddress('ScanBasePointer', 8)) ;
It is the MemoryRead() function that is causing an error.
or the:
Code:
;~ Description: Internal use only.
Func GetScannedAddress($aLabel, $aOffset)
	Return MemoryRead(GetLabelInfo($aLabel) + 8) - MemoryRead(GetLabelInfo($aLabel) + 4) + $aOffset
EndFunc   ;==>GetScannedAddress
Maybe what Return returns is bad.
05/12/2024 17:51 aracno974#6
Post your non working bot please.
05/12/2024 19:37 Underavelvetmoon#7
Quote:
Originally Posted by Tyranna View Post
It definitely is an issue on my end.

Do you mean 'old' version or did you really mean 'odd'?
Addressing the case if the AutoIt version is 'old':
I am using the same one that has always been installed.
I could try to update it to the newest version though and see what happens.

I am actually am not running any bots. We are not getting past the Initialize()
function located in the GWA2 file. The error occurs before any of my code runs.
( I have traced the code to the point shown in the original post. reprinted here
for convenience )
Code:
$mBasePointer = MemoryRead(GetScannedAddress('ScanBasePointer', 8)) ;
It is the MemoryRead() function that is causing an error.
or the:
Code:
;~ Description: Internal use only.
Func GetScannedAddress($aLabel, $aOffset)
	Return MemoryRead(GetLabelInfo($aLabel) + 8) - MemoryRead(GetLabelInfo($aLabel) + 4) + $aOffset
EndFunc   ;==>GetScannedAddress
Maybe what Return returns is bad.
I did mean odd, but I guess it is interchangeable with old :P

The code looks identical to mine, are you running the code as admin? What error do you get specifically? Like you have provided the cause of the error, but what actually is the error? It just returns nothing?
05/12/2024 22:55 Mrjambix#8
Quote:
Originally Posted by Tyranna View Post
It definitely is an issue on my end.

Do you mean 'old' version or did you really mean 'odd'?
Addressing the case if the AutoIt version is 'old':
I am using the same one that has always been installed.
I could try to update it to the newest version though and see what happens.

I am actually am not running any bots. We are not getting past the Initialize()
function located in the GWA2 file. The error occurs before any of my code runs.
( I have traced the code to the point shown in the original post. reprinted here
for convenience )
Code:
$mBasePointer = MemoryRead(GetScannedAddress('ScanBasePointer', 8)) ;
It is the MemoryRead() function that is causing an error.
or the:
Code:
;~ Description: Internal use only.
Func GetScannedAddress($aLabel, $aOffset)
	Return MemoryRead(GetLabelInfo($aLabel) + 8) - MemoryRead(GetLabelInfo($aLabel) + 4) + $aOffset
EndFunc   ;==>GetScannedAddress
Maybe what Return returns is bad.
The problem isn't in the GWA2, it's more than likely coming from how you are initializing the script... If you can post a bit more info it be easier to help
05/13/2024 00:39 Waka.Waka#9
i have heard this problem 100 times and it was always the same problem: you are not running everything on admin. Even if you say you do.. Tripple check it. GW has to be in admin.. autoit.. everything.. check it
05/13/2024 09:29 Tyranna#10
Okay , It works now.

I was running AutoIt v3.3.12.0
I Installed AutoIt v3.3.16.1 and success.
Aside from some broken code...

Thanks for the ideas guys.