Version 7.4.0.2897 progress

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Locked
Message
Author
saverombotplz
Posts: 27
Joined: Sat Dec 14, 2019 3:52 pm

Re: Version 7.4.0.2897 progress

#221 Post by saverombotplz » Sat Feb 22, 2020 3:33 pm

Andre235 wrote: Sat Feb 22, 2020 1:28 pm
saverombotplz wrote: Thu Feb 20, 2020 6:01 pm
Andre235 wrote: Thu Feb 20, 2020 11:48 am

Can you send me a on with a copy of your ks waypoint-file? I can’t try all the ks waypointfiles from this forum.
i tried your ks file. it works fine for me (excepting that i can't autosell all slots, but no crashes in 5 hours)


_____________________________________________________________________________________________
Serpan wrote: Sat Feb 22, 2020 12:23 pm
Andre235 wrote: Fri Feb 21, 2020 2:29 pm

Is your texts.lua complete (about 26MB)?
20,3 mb : (at startup, deletes them to 0 and caches again)
my german texts.lua is 26MB, the english texts.lua is 24MB. The file could be incomplete (free Disk space, wrong file system, bad HDD sectors, access rights to the directory, firewall a.s.o ... your problem is very individually - equal to the solution :-/ sorry, i have no idea) does anyone else have the same/ a similar problem?
could you share your "memdatabase" and "item" from classes plz folder

?

Serpan
Posts: 6
Joined: Wed Feb 19, 2020 10:32 pm

Re: Version 7.4.0.2897 progress

#222 Post by Serpan » Sat Feb 22, 2020 9:19 pm

Serpan wrote: Sat Feb 22, 2020 12:23 pm

20,3 mb : (at startup, deletes them to 0 and caches again)
my german texts.lua is 26MB, the english texts.lua is 24MB. The file could be incomplete (free Disk space, wrong file system, bad HDD sectors, access rights to the directory, firewall a.s.o ... your problem is very individually - equal to the solution :-/ sorry, i have no idea) does anyone else have the same/ a similar problem?
[/quote]
could you share your "memdatabase" and "item" from classes plz folder

?
[/quote]

Here they are
Attachments
memdatabase.lua
(6.85 KiB) Downloaded 163 times
item.lua
(18.46 KiB) Downloaded 161 times

BobFromMarketing
Posts: 6
Joined: Tue Feb 18, 2020 1:34 pm

Re: Version 7.4.0.2897 progress

#223 Post by BobFromMarketing » Mon Feb 24, 2020 12:16 pm

Need a few people to help test this updater. To use, place it in your 7.4.0 rombot folder then in micromacro with ROM running do yourfolder/newupdate. If there are errors post the name of the address failing. If you can find manually the pattern in memory and then post here what it looks like for you that would be super.
Attachments
newupdate.lua
Updated version with less issues
(13.75 KiB) Downloaded 188 times

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Version 7.4.0.2897 progress

#224 Post by buchaneer » Tue Feb 25, 2020 5:12 am

Re: Newupdate.lua

Tested and returned this:
Example.jpg
Tradition and Dogma are the killers of Innovation. challenge them and change them!

BobFromMarketing
Posts: 6
Joined: Tue Feb 18, 2020 1:34 pm

Re: Version 7.4.0.2897 progress

#225 Post by BobFromMarketing » Tue Feb 25, 2020 8:52 am

buchaneer wrote: Tue Feb 25, 2020 5:12 am Re: Newupdate.lua

Tested and returned this:
Example.jpg
Check you have updated to latest version, memoryReadRepeat was moved to functions.lua from classes/pawn.lua and line 124 shouldn't have a memoryReadRepeat but rather some debugging options ever since then.

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Version 7.4.0.2897 progress

#226 Post by buchaneer » Tue Feb 25, 2020 12:55 pm

Check you have updated to latest version, memoryReadRepeat was moved to functions.lua from classes/pawn.lua and line 124 shouldn't have a memoryReadRepeat but rather some debugging options ever since then.
How can I check the version and how can I update if the update doesn't work? I have been using the "Github Desktop" client as suggested by "administrator" which has kept me abreast of all the changes she has made. However, "Memoryreadrepeat" is in functions.lua. Therefore, I am missing something and have no idea how to rectify it. Any suggestions (hand holding for dummies) would be greatly appreciated. :mrgreen:
Tradition and Dogma are the killers of Innovation. challenge them and change them!

BobFromMarketing
Posts: 6
Joined: Tue Feb 18, 2020 1:34 pm

Re: Version 7.4.0.2897 progress

#227 Post by BobFromMarketing » Tue Feb 25, 2020 2:25 pm

buchaneer wrote: Tue Feb 25, 2020 12:55 pm
Check you have updated to latest version, memoryReadRepeat was moved to functions.lua from classes/pawn.lua and line 124 shouldn't have a memoryReadRepeat but rather some debugging options ever since then.
How can I check the version and how can I update if the update doesn't work? I have been using the "Github Desktop" client as suggested by "administrator" which has kept me abreast of all the changes she has made. However, "Memoryreadrepeat" is in functions.lua. Therefore, I am missing something and have no idea how to rectify it. Any suggestions (hand holding for dummies) would be greatly appreciated. :mrgreen:
Do you happen to have two versions of the rom bot inside micromacro? Maybe you are running the old one instead the new one? If you had micromacro/scripts/rom and micromacro/scripts/rom740 you would have to run it like rom740/newupdate instead rom/newupdate. If that isn't the case post here your functions.lua and I will try it out.

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Version 7.4.0.2897 progress

#228 Post by buchaneer » Wed Feb 26, 2020 11:17 am

Yes there were two copies in /scripts neither of which were correct (memreadrepeat in both "functions.lua"). saved my waypoints and profiles and renamed those directories to gibberish. downloaded Admins Github zip from page1. Renamed the new copy directory to rom having checked that memreadrepeat was not present in Functions. Copied waypoints, profiles and "newupdate.lua" to rom and ran it from within RoM with the following results:

Code: Select all

MicroMacro v1.05.207
SolarStrike Software
http://www.solarstrike.net
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> rom/newupdate.lua
Opening newupdate.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
Updated psi with value 0x606B18
Updated exp_table with value 0x65931C
Updated buff_count with value 0x6031C0
Couldn't update address mouse.base
        Pattern: 0x25, 0x22, 0x9E, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x6
0, 0x00, 0x24, 0xDC, 0x19, 0x00, 0x00, 0xEA
        Mask: xxxxxxxx??xxxxxxxx
Couldn't update address text.base
        Pattern: 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0
0, 0x00, 0x0E, 0x00, 0x00, 0x00
        Mask: xx???xxxxxxxxxxx
Updated input_box.base with value 0x660B10
Couldn't update address object_list.size
        Pattern: 0xFF, 0x4A, 0xFF, 0xFF, 0x00, 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0x5
E, 0x00, 0x00, 0x00, 0x00, 0x00
        Mask: ?x??xx????xxxxxx
Couldn't update address object_list.base
        Pattern: 0xFF, 0x4A, 0xFF, 0xFF, 0x00, 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0x5
E, 0x00, 0x00, 0x00, 0x00, 0x00
        Mask: ?x??xx????xxxxxx
Updated client_exe_module_start with value 0x400000
Couldn't update address actionbar.base
        Pattern: 0x20, 0xBC, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x2D, 0xFF, 0xFF, 0x00
        Mask: xx??xxxxxxxxxxxx?x??x
Updated zone_id with value 0x659260
Updated skillbook.base with value 0x663874
Couldn't update address in_game
        Pattern: 0x00, 0x65, 0x00, 0x00, 0x65, 0x00, 0x65, 0x6E, 0x74, 0x00, 0x0
0, 0x4D, 0x69, 0x64, 0x64, 0x6C, 0x65, 0x00, 0x65, 0x00
        Mask: xxxxxxxxxxxxxxxxxxxx
Updated memdatabase.base with value 0x628B34
Updated channel.base with value 0x661198
Updated code_mod.freeze_mousepos.base with value 0x2306F4
Updated code_mod.swimhack.base with value 0x4D959
Updated code_mod.freeze_mousepos2.base with value 0x22FF4A
Updated code_mod.freeze_target.base with value 0x4970B1
Couldn't update address inventory.base
        Pattern: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x42, 0x00, 0x00, 0xF
F, 0xFF, 0x00, 0x00, 0xFF, 0x42, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00
        Mask: xxxxxxxxxx??xx?xxx??xx
Updated inventory.bag_ids.base with value 0x7A0C3F
Updated inventory.rent.base with value 0x6024E4
Updated bank.rent.base with value 0x60250C
Updated bank.base with value 0x6144D0
Updated bank.guild.base with value 0x663A24
Couldn't update address bank.open.base
        Pattern: 0x00, 0xF0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x2A, 0xFF, 0xFF, 0x00
        Mask: xx??xxxxxxxxxxxx?x??x
Couldn't update address cursor.base
        Pattern: 0x80, 0x9A, 0xFF, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5
        Mask: xx?xxxxxxxxxxxxxxx
Couldn't update address hotkey.base
        Pattern: 0x80, 0x9A, 0xFF, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5
        Mask: xx?xxxxxxxxxxxxxxx
Updated macro.base with value 0x662484
Updated game_time with value 0x601F68
Updated game_root.gold with value 0x6144C4
Couldn't update address game_root.base
        Pattern: 0x00, 0xC0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0
x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0
0, 0x00, 0x01
        Mask: xx??xxxxxxxxxxxxxxxxxxxxxxxx??x?xxxxxxxxxxxxxxxxxxxxx
Updated equipment.base with value 0x6025AC
Updated cooldowns.base with value 0x601F78
Updated speedhack.speed.base with value 0x6017C4
Updated player_name with value 0x602520
Couldn't update address global_cooldown
        Pattern: 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xD7, 0x00, 0x0
0, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00
        Mask: xxxxxxxxxxxx????x
Couldn't update address loading.base
        Pattern: 0x00, 0xF0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x99, 0xA8, 0x08
        Mask: xx??xxxxxxxxxxxxxx?x


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
I assume this is what you expected to see. The I tried "rom/bot" and got this:
another test.png
In hindsight, I should have tested rom/bot first. Github Desktop cannot find a local copy and has thrown its Dummy out of the Pram. So it seems I'm 1 step forward and many steps back :( I have not given up, I just need a patient and cooler head to advise me. thanks in advance. :)
Tradition and Dogma are the killers of Innovation. challenge them and change them!

BobFromMarketing
Posts: 6
Joined: Tue Feb 18, 2020 1:34 pm

Re: Version 7.4.0.2897 progress

#229 Post by BobFromMarketing » Wed Feb 26, 2020 5:37 pm

buchaneer wrote: Wed Feb 26, 2020 11:17 am Yes there were two copies in /scripts neither of which were correct (memreadrepeat in both "functions.lua"). saved my waypoints and profiles and renamed those directories to gibberish. downloaded Admins Github zip from page1. Renamed the new copy directory to rom having checked that memreadrepeat was not present in Functions. Copied waypoints, profiles and "newupdate.lua" to rom and ran it from within RoM with the following results:

Code: Select all

MicroMacro v1.05.207
SolarStrike Software
http://www.solarstrike.net
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> rom/newupdate.lua
Opening newupdate.lua...
Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------------------------------------
Updated psi with value 0x606B18
Updated exp_table with value 0x65931C
Updated buff_count with value 0x6031C0
Couldn't update address mouse.base
        Pattern: 0x25, 0x22, 0x9E, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x6
0, 0x00, 0x24, 0xDC, 0x19, 0x00, 0x00, 0xEA
        Mask: xxxxxxxx??xxxxxxxx
Couldn't update address text.base
        Pattern: 0x00, 0x80, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0
0, 0x00, 0x0E, 0x00, 0x00, 0x00
        Mask: xx???xxxxxxxxxxx
Updated input_box.base with value 0x660B10
Couldn't update address object_list.size
        Pattern: 0xFF, 0x4A, 0xFF, 0xFF, 0x00, 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0x5
E, 0x00, 0x00, 0x00, 0x00, 0x00
        Mask: ?x??xx????xxxxxx
Couldn't update address object_list.base
        Pattern: 0xFF, 0x4A, 0xFF, 0xFF, 0x00, 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0x5
E, 0x00, 0x00, 0x00, 0x00, 0x00
        Mask: ?x??xx????xxxxxx
Updated client_exe_module_start with value 0x400000
Couldn't update address actionbar.base
        Pattern: 0x20, 0xBC, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x2D, 0xFF, 0xFF, 0x00
        Mask: xx??xxxxxxxxxxxx?x??x
Updated zone_id with value 0x659260
Updated skillbook.base with value 0x663874
Couldn't update address in_game
        Pattern: 0x00, 0x65, 0x00, 0x00, 0x65, 0x00, 0x65, 0x6E, 0x74, 0x00, 0x0
0, 0x4D, 0x69, 0x64, 0x64, 0x6C, 0x65, 0x00, 0x65, 0x00
        Mask: xxxxxxxxxxxxxxxxxxxx
Updated memdatabase.base with value 0x628B34
Updated channel.base with value 0x661198
Updated code_mod.freeze_mousepos.base with value 0x2306F4
Updated code_mod.swimhack.base with value 0x4D959
Updated code_mod.freeze_mousepos2.base with value 0x22FF4A
Updated code_mod.freeze_target.base with value 0x4970B1
Couldn't update address inventory.base
        Pattern: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x42, 0x00, 0x00, 0xF
F, 0xFF, 0x00, 0x00, 0xFF, 0x42, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0x00
        Mask: xxxxxxxxxx??xx?xxx??xx
Updated inventory.bag_ids.base with value 0x7A0C3F
Updated inventory.rent.base with value 0x6024E4
Updated bank.rent.base with value 0x60250C
Updated bank.base with value 0x6144D0
Updated bank.guild.base with value 0x663A24
Couldn't update address bank.open.base
        Pattern: 0x00, 0xF0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x2A, 0xFF, 0xFF, 0x00
        Mask: xx??xxxxxxxxxxxx?x??x
Couldn't update address cursor.base
        Pattern: 0x80, 0x9A, 0xFF, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5
        Mask: xx?xxxxxxxxxxxxxxx
Couldn't update address hotkey.base
        Pattern: 0x80, 0x9A, 0xFF, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xD5
        Mask: xx?xxxxxxxxxxxxxxx
Updated macro.base with value 0x662484
Updated game_time with value 0x601F68
Updated game_root.gold with value 0x6144C4
Couldn't update address game_root.base
        Pattern: 0x00, 0xC0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0
x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x0
0, 0x00, 0x01
        Mask: xx??xxxxxxxxxxxxxxxxxxxxxxxx??x?xxxxxxxxxxxxxxxxxxxxx
Updated equipment.base with value 0x6025AC
Updated cooldowns.base with value 0x601F78
Updated speedhack.speed.base with value 0x6017C4
Updated player_name with value 0x602520
Couldn't update address global_cooldown
        Pattern: 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xD7, 0x00, 0x0
0, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0x00
        Mask: xxxxxxxxxxxx????x
Couldn't update address loading.base
        Pattern: 0x00, 0xF0, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0
0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x99, 0xA8, 0x08
        Mask: xx??xxxxxxxxxxxxxx?x


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
I assume this is what you expected to see. The I tried "rom/bot" and got this:
another test.png

In hindsight, I should have tested rom/bot first. Github Desktop cannot find a local copy and has thrown its Dummy out of the Pram. So it seems I'm 1 step forward and many steps back :( I have not given up, I just need a patient and cooler head to advise me. thanks in advance. :)
The errors in the first run about patterns and masks are totally normal since I am still working on it and needed to see if it would work for other people, thanks for running it!

About the error... You ran in both attempts the same command, the first one was working so most likely something was done in between those. All I can think that would cause the error would be deleting addresses.lua or having the wrong one.

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Version 7.4.0.2897 progress

#230 Post by buchaneer » Thu Feb 27, 2020 7:07 am

Thank you BobfromMarketing. I copied over the addresses.lua from the newest renamed gibberish folder and it works. I thought perhaps you should see the result with debug info:
bot success.png
Keep up the good work :D
Tradition and Dogma are the killers of Innovation. challenge them and change them!

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Version 7.4.0.2897 progress

#231 Post by buchaneer » Thu Feb 27, 2020 8:20 am

After re-downloading your items and memdatabase lua's, the board is clear. Excellent work :D
Tradition and Dogma are the killers of Innovation. challenge them and change them!

Andre235
Posts: 156
Joined: Thu Oct 03, 2019 4:08 am

Re: Version 7.4.0.2897 progress

#232 Post by Andre235 » Thu Feb 27, 2020 1:44 pm

running the newupdate.lua shows some errors
error.png

User avatar
buchaneer
Posts: 33
Joined: Tue Jul 01, 2014 4:30 pm

Re: Version 7.4.0.2897 progress

#233 Post by buchaneer » Sat Feb 29, 2020 7:35 am

@BobfromMarketing: new set of unidentified ID's. All that has changed since last, is location which is between Lyonside camo and Desert Investigation post (Waterfall path):
Bot debug.png
I hope this is helpful to you.
Tradition and Dogma are the killers of Innovation. challenge them and change them!

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

Re: Version 7.4.0.2897 progress

#234 Post by Administrator » Sat Feb 29, 2020 4:33 pm

I just pushed up a bunch of fixes. This should hopefully fix inventory stuff (among other things). Please try running the gitupdate.lua script, or manually downloading the zip package from the first post in this thread.

Andre235
Posts: 156
Joined: Thu Oct 03, 2019 4:08 am

Re: Version 7.4.0.2897 progress

#235 Post by Andre235 » Sat Feb 29, 2020 5:03 pm

Autosell works good in my first test. But since the first update today my client crashes, when he is sending items via UMM. Since the latest update (bag id fix) the client doesn’t crash, but the bot stucks while sending (no error)

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

Re: Version 7.4.0.2897 progress

#236 Post by Administrator » Sat Feb 29, 2020 7:06 pm

The game client crashes? Hmm. Must be related to the codemods, I think. I'm not entirely sure to be honest. Are you able to track it down to at least the function that the macro enters when the client crashes?

tristanlol
Posts: 16
Joined: Sun Dec 29, 2019 5:59 pm

Re: Version 7.4.0.2897 progress

#237 Post by tristanlol » Sat Feb 29, 2020 8:23 pm

Hi!

Is partyhealer.xml waypoint working now? I've tried to use it with the latest version but it crashes with the following error:

Code: Select all

/rom/classes/party.lua:65: Invalid address
It references the following code:

Code: Select all

local address = memoryReadRepeat("uintptr", getProc(), addresses.staticbase_char, addresses.charPtr_offset)
Thanks!

Andre235
Posts: 156
Joined: Thu Oct 03, 2019 4:08 am

Re: Version 7.4.0.2897 progress

#238 Post by Andre235 » Sun Mar 01, 2020 1:41 am

Administrator wrote: Sat Feb 29, 2020 7:06 pm The game client crashes? Hmm. Must be related to the codemods, I think. I'm not entirely sure to be honest. Are you able to track it down to at least the function that the macro enters when the client crashes?
No, the client crashed with the update („Address updates (WIP)“).

With the latest bot version the client doesn’t crash!
But if the bot opens the mailbox, and trying to send items, the bot is waiting a very long time. It seems, that the bot want to send a message, but some value is missing (picture from it is coming soon ;) )

AND: the autosell option is working great! Good Job!

this is the Code from the Waypoint-file:

Code: Select all

		player:target_Object("Mailbox",1000)
		UMM_SendByNameOrId ("NAME", {"209435","209434"}); yrest(300);
and this is shown in MM:
error.png
error.png (4.89 KiB) Viewed 6348 times
EDIT: the same Problem with UMM_SendMoney()...
Last edited by Andre235 on Sun Mar 01, 2020 9:57 am, edited 1 time in total.

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Version 7.4.0.2897 progress

#239 Post by Ego95 » Sun Mar 01, 2020 9:31 am

While trying to use a script I got an error that refered to /classes/player.lua:2917

Code: Select all

function CPlayer:faceDirection(dir,diry)
	local Vec3 = 0
	if diry then
		Vec3 = math.sin(diry);
	else
		Vec3 = memoryReadRepeat("float", getProc(), self.Address + addresses.pawnDirYUVec_offset);
	end
	local hypotenuse = (1 - Vec3^2)^.5
	local Vec1 = math.cos(dir) * hypotenuse;
	local Vec2 = math.sin(dir) * hypotenuse;

	self.Direction = math.atan2(Vec2, Vec1);
	self.DirectionY = math.atan2(Vec3, (Vec1^2 + Vec2^2)^.5 );

	local tmpMountAddress = memoryReadRepeat("uint", getProc(), self.Address + addresses.game_root.pawn.mounted);
	self:updateMounted()
	if self.Mounted and tmpMountAddress and tmpMountAddress ~= 0 then
		memoryWriteFloat(getProc(), tmpMountAddress + addresses.game_root.pawn.rotation_x, Vec1);
		memoryWriteFloat(getProc(), tmpMountAddress + addresses.game_root.pawn.rotation_z, Vec2);
		memoryWriteFloat(getProc(), tmpMountAddress + addresses.game_root.pawn.rotation_y, Vec3);
	else
		memoryWriteFloat(getProc(), self.Address + addresses.game_root.pawn.rotation_x, Vec1);
		memoryWriteFloat(getProc(), self.Address + addresses.game_root.pawn.rotation_z, Vec2);
		memoryWriteFloat(getProc(), self.Address + addresses.game_root.pawn.rotation_y, Vec3);
	end
end
I have added the three offsets below to adresses.lua

pawnDirXUVec_offset = 0x34,
pawnDirYUVec_offset = 0x38,
pawnDirZUVec_offset = 0x3C,

These are from the old bot version before you started to rework it. Now the waypoint works fine so if these offsets are still working we could add them to the newsest bot version or do don't we?

Andre235
Posts: 156
Joined: Thu Oct 03, 2019 4:08 am

Re: Version 7.4.0.2897 progress

#240 Post by Andre235 » Sun Mar 01, 2020 1:19 pm

Ego95 wrote: Sun Mar 01, 2020 9:31 am pawnDirXUVec_offset = 0x34,
pawnDirYUVec_offset = 0x38,
pawnDirZUVec_offset = 0x3C,
this addresses are already listed, but the name is different:

Code: Select all

	game_root = {
		pawn = {
			rotation_x = 0x34,
			rotation_y = 0x38,
			rotation_z = 0x3c,
		},
	},
so we should change the player.lua :)

i've replaced the line 2917 with the new address 8-) :
player.lua
(129.58 KiB) Downloaded 175 times
By the way: the bot will not work with a mounted player

Locked

Who is online

Users browsing this forum: Ahrefs [Bot] and 18 guests