Version 7.4.0.2897 progress
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Version 7.4.0.2897 progress
I spent a few hours today on a small tool that will speed up this update process. Usually the memdatabase stuff is a huge pain in the butt to find the new address for. That's just a side-effect of it's branching complexity.
The new tool will attempt to brute-force the memdatabase base address. Previously I had just written a simpler version directly in the RoMScripts and it was incredibly slow and failed to turn up any meaningful results within a timeframe that I would consider useful. The new version is slimed-down and makes use of multi-threading to process attempts like a champ; much faster and more efficient.
Point is, it's going well thus far. I'm going to deploy this onto my workhorse 3950x at 32 threads, ~128GB RAM and see what happens. If it works without issue, then I may provide it in the future so that all of you can also pitch it the effort and we can use distributed processing to find it even faster in the future.
The new tool will attempt to brute-force the memdatabase base address. Previously I had just written a simpler version directly in the RoMScripts and it was incredibly slow and failed to turn up any meaningful results within a timeframe that I would consider useful. The new version is slimed-down and makes use of multi-threading to process attempts like a champ; much faster and more efficient.
Point is, it's going well thus far. I'm going to deploy this onto my workhorse 3950x at 32 threads, ~128GB RAM and see what happens. If it works without issue, then I may provide it in the future so that all of you can also pitch it the effort and we can use distributed processing to find it even faster in the future.
Re: Version 7.4.0.2897 progress
Is it possible that every time they patch the game the addresses and all the ip already included in the package of events they do every year change? Let me explain, every year they do the usual events, you should make a comparison of the addresses of the year before with that of the following year or maybe just some other ids
Re: Version 7.4.0.2897 progress
the addresses will be increased by every patch. so we will never get the same addresses at the same event... but it is possible, that the addresses will have the same address difference than the event in the last year. this coud help, if you will find the addresses manually. i think that its not the right way to update the addresses automatically...
Re: Version 7.4.0.2897 progress
i don't know how to do this ..i ask many times and i donìt know know to follow the posts for learn...i need to someone explain me how to do
Add prediction for block 510000, branch 0x70
Add prediction for block 521000, branch 0x260
Add prediction for block 212000, branch 0x2A0
Add prediction for block 213000, branch 0x2A4
0-10-11 14:58:38 - C:/Program Files/micromacro/scripts/rom/classes/item.lua:154: attempt to concatenate field 'Name' (a nil value)
Add prediction for block 510000, branch 0x70
Add prediction for block 521000, branch 0x260
Add prediction for block 212000, branch 0x2A0
Add prediction for block 213000, branch 0x2A4
0-10-11 14:58:38 - C:/Program Files/micromacro/scripts/rom/classes/item.lua:154: attempt to concatenate field 'Name' (a nil value)
-
- Posts: 16
- Joined: Sun Dec 29, 2019 5:59 pm
Re: Version 7.4.0.2897 progress
I think there is currently a problem with game texts. Cached texts file is almost empty (only with game version) and so, it fails when talking with an npc for example.
Waiting for the new brute-force tool results
Thanks!
Waiting for the new brute-force tool results
Thanks!
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Version 7.4.0.2897 progress
The results are in! This morning I had to make a few more corrections and refinements, and very happy with the results. Within a matter of minutes it turned up two addresses:
0x631b44
0x631b48
If you plug that in for addresses.memdatabase.base, it would seem the bot now can find items in memory correctly, so it looks like my new tool is working. Running a program and waiting for results in a few minutes sure beats manually digging through memory trees for 2 days...
There's still work to be done in other areas, but this is the major one that needed fixing.
Project source code available at: https://github.com/SolarStrike-Software/mdbrute
Release (binary) download available at: https://github.com/SolarStrike-Software ... /releases/
Re: Version 7.4.0.2897 progress
i got the same results:Administrator wrote: ↑Sun Oct 11, 2020 10:18 amThe results are in! This morning I had to make a few more corrections and refinements, and very happy with the results. Within a matter of minutes it turned up two addresses:
0x631b44
0x631b48
If you plug that in for addresses.memdatabase.base, it would seem the bot now can find items in memory correctly, so it looks like my new tool is working. Running a program and waiting for results in a few minutes sure beats manually digging through memory trees for 2 days...
There's still work to be done in other areas, but this is the major one that needed fixing.
Project source code available at: https://github.com/SolarStrike-Software/mdbrute
Release (binary) download available at: https://github.com/SolarStrike-Software ... /releases/
0x00631b44
0x00631b48
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Version 7.4.0.2897 progress
I just merged some of my changes into the master branch. You guys can now update with git and should have most features working.
-
- Posts: 16
- Joined: Sun Dec 29, 2019 5:59 pm
Re: Version 7.4.0.2897 progress
Great news!
It's now working again.
Thanks!
It's now working again.
Thanks!
Re: Version 7.4.0.2897 progress
attempt to perform arithmetic on field 'pawnId_offset' (a nil value)
i have this error now
i have this error now
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Version 7.4.0.2897 progress
Post the whole error message. Without the traceback it's next to impossible to tell what's wrong.
It would also help if you explained exactly what you were trying to do, and what was going on right before/during this error.
Re: Version 7.4.0.2897 progress
pumpkin festival minigameAdministrator wrote: ↑Sun Oct 11, 2020 5:51 pmPost the whole error message. Without the traceback it's next to impossible to tell what's wrong.
It would also help if you explained exactly what you were trying to do, and what was going on right before/during this error.
Re: Version 7.4.0.2897 progress
That's because pawnId_offset is the old name of the address. I took a more recent version of the script and changed all the adresses inside with the new names, can you please try to use it and tell me if it works ?Supergala wrote: ↑Tue Oct 13, 2020 9:47 ampumpkin festival minigameAdministrator wrote: ↑Sun Oct 11, 2020 5:51 pmPost the whole error message. Without the traceback it's next to impossible to tell what's wrong.
It would also help if you explained exactly what you were trying to do, and what was going on right before/during this error.
But please be careful as the script makes your char fly and teleport inside the minigame, which is highly detectable by GMs (which is why I didn't try myself).
If anyone know how to update the haunted scripts so the char doesn't fly/teleport and just walk, I would be thanful. I tried to avoid that teleporting stuff by replacing "teleport(" with "player:moveTo(", but the script just breaks when the minigame starts when trying to click on a tile... I guess it has something to do with the clicktile(tile) function in Haunted_onload.lua but I have no idea what is wrong inside...
- Attachments
-
- Haunted.xml
- (5.38 KiB) Downloaded 298 times
-
- Haunted_onload.lua
- Changed the name of the addresses with the new ones / Uses Fly and Teleport functions
- (13.55 KiB) Downloaded 272 times
Re: Version 7.4.0.2897 progress
many years ago i delete a string inside .xml or lua...player not fly but trasnport fast......i try to delete "Fly()" function but when inside at start him use swimhack....i don't know how to disable this functiuon on lua...can you help me ?
Re: Version 7.4.0.2897 progress
Does the script work properly even if your char is flying ?
To remove the flying part :
1. In the Haunted.xml you need to remove the fly on line 108
Code: Select all
logentry = "Ran out of time" -- default
--fly()
LastTileDug = 0
Code: Select all
function moveto(pos)
-- if fly then fly() end
player:updateXYZ()
if distance(player, pos) > 10 then
if teleport then
player:moveTo(pos.X+1,pos.Z+1,18)
else
player:moveTo(pos,true)
end
end
player:update()
player:waitTillStopMoving()
end
Still didn't manage to make it work by walking only, bot just crashes so I can't help much more.
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Version 7.4.0.2897 progress
Could you give me some details to work off of?Still didn't manage to make it work by walking only, bot just crashes so I can't help much more.
Re: Version 7.4.0.2897 progress
Sorry it took so long to test, but yes I get the exact result after downloading freshAdministrator wrote: ↑Sun Sep 06, 2020 3:13 pmTry redownloading a fresh copy (use the link from the first post in this thread), overwrite all of your own files. Do not run any other updates. Does it still have the same problem?Alcorne wrote: ↑Sat Sep 05, 2020 2:36 pmAdministrator wrote: ↑Sat Sep 05, 2020 1:43 pm
I'm not able to reproduce that. When did this start happening for you?
Just yesterday, right after I downloaded the new version and ran the github thing.
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Version 7.4.0.2897 progress
You're not running that Gamers4Life 64-bit client, are you?Alcorne wrote: ↑Thu Oct 15, 2020 2:24 pmSorry it took so long to test, but yes I get the exact result after downloading freshAdministrator wrote: ↑Sun Sep 06, 2020 3:13 pmTry redownloading a fresh copy (use the link from the first post in this thread), overwrite all of your own files. Do not run any other updates. Does it still have the same problem?
Assuming you're not using a nonstandard client (only the Gameforge client is supported), the game was just updated and you'll need to do another script update and retest. Copy/paste the error again if it occurs.
Re: Version 7.4.0.2897 progress
Well yes, I'll give as much details as I can to make it clear for you.Administrator wrote: ↑Thu Oct 15, 2020 1:10 pmCould you give me some details to work off of?Still didn't manage to make it work by walking only, bot just crashes so I can't help much more.
So I took the scripts from this post, and tried to update it because :
- It was made with the old rom bot version so addresses names are outdated,
- The script is making the char to fly (easily detectable by GMs),
- The script is making the char to teleport (easily detectable by GMs),
Now what I did in the scripts (I'm writing everything here but I did write all the changes in the scripts) :
Haunted.xml
1. I just removed the call to fly function
Code: Select all
--fly()
--Remove the flying part from the script
1. Started by changing all the wrong addresses names, for example :
Code: Select all
return memoryReadRepeat("float", getProc(), pawn.Address + addresses.game_root.pawn.fading) ~= 0 -- was addresses.pawnFading_offset
Code: Select all
--teleport(player.X,player.Z,flyheight)
player:moveTo(player.X,player.Z,flyheight)
3. Removed some part of the function moveto(pos) which was calling to teleport AND fly :
NOW THE RESULTS !
So basically when the scripts starts, it crashes on waypoint #6
Code: Select all
Digging up tiles...
Clicking Tile 22
The game client did not crash.
Character: XXXXXXXXXXXX
2020-10-16 10:23:08 - .../MicroMacro/scripts/rom/classes/player.lua:2882: attempt to call method 'update' (a nil value)
Code: Select all
function moveto(pos)
-- Remove the fly function from the script
-- if fly then fly() end
player:updateXYZ()
if distance(player, pos) > 10 then
-- If I don't remove this part below, then the script works but the char teleports.
--if teleport then
-- teleport(pos.X+1,pos.Z+1,18)
--else
player:moveTo(pos,true)
--end
end
player:update()
player:waitTillStopMoving()
end
Attached you'll find the current modified files.
Thanks !
- Attachments
-
- Haunted_onload.lua
- (14.08 KiB) Downloaded 249 times
-
- Haunted.xml
- (5.42 KiB) Downloaded 262 times
Re: Version 7.4.0.2897 progress
I still have some citem warnings. Sometimes with the Item ids from itemshop bag and sometimes With wrong id values (1 or 501 or Maybe 12xxx, but no 6 digits).
Who is online
Users browsing this forum: No registered users and 7 guests