YimMenu / HorseMenu

HorseMenu, a beta-stage mod menu for Red Dead Redemption 2 and Red Dead Online, inspired by YimMenu, that protects against crashes and enhances your experience.
44 stars 26 forks source link

[Request] Gold/Income & LUA scripts #80

Closed Deadlineem closed 4 months ago

Deadlineem commented 4 months ago

would like to request adding ways to earn income

wicked menu for CE has a gold dropper.

Also, support for LUA would be awesome!

Rxann commented 4 months ago

would like to request adding ways to earn income

wicked menu for CE has a gold dropper.

Also, support for LUA would be awesome!

I will look into the methods for gold dropping. However, right now there is no chance a lua api is going to be created because this menu barely works.

Deadlineem commented 4 months ago

would like to request adding ways to earn income wicked menu for CE has a gold dropper. Also, support for LUA would be awesome!

I will look into the methods for gold dropping. However, right now there is no chance a lua api is going to be created because this menu barely works.

Thats slightly disappointing, I did notice it has some errors during/after injecting, however, just about all the features seem to work in it (just tried for the first time today)

The only feature that doesn't work is the clear wanted button, doesn't do anything for the wanted/bounty.

Id be willing to throw my hat in the ring here for this menu though if i knew what i need to add/tweak and where to find the info i need to make additions to it, this is the only other working menu i've found besides Wicked cheat engine table.

Rxann commented 4 months ago

would like to request adding ways to earn income wicked menu for CE has a gold dropper. Also, support for LUA would be awesome!

I will look into the methods for gold dropping. However, right now there is no chance a lua api is going to be created because this menu barely works.

Thats slightly disappointing, I did notice it has some errors during/after injecting, however, just about all the features seem to work in it (just tried for the first time today)

The only feature that doesn't work is the clear wanted button, doesn't do anything for the wanted/bounty.

Id be willing to throw my hat in the ring here for this menu though if i knew what i need to add/tweak and where to find the info i need to make additions to it, this is the only other working menu i've found besides Wicked cheat engine table.

Did you get the binary from the release page or the pull request page? I am curious. And yeah the features do work. I noticed the issue with clear bounty like 20 minutes ago actually 🤣 . I am about to work on the feature for adding gold and I will let you know how it goes. Personally, I find most of my ideas on the unknowncheats page for rdr2. More specifically, the Reversing, Offsets, and Structs page. There are not many other menus out and this is the only internal menu that I have seen.

Deadlineem commented 4 months ago

would like to request adding ways to earn income wicked menu for CE has a gold dropper. Also, support for LUA would be awesome!

I will look into the methods for gold dropping. However, right now there is no chance a lua api is going to be created because this menu barely works.

Thats slightly disappointing, I did notice it has some errors during/after injecting, however, just about all the features seem to work in it (just tried for the first time today) The only feature that doesn't work is the clear wanted button, doesn't do anything for the wanted/bounty. Id be willing to throw my hat in the ring here for this menu though if i knew what i need to add/tweak and where to find the info i need to make additions to it, this is the only other working menu i've found besides Wicked cheat engine table.

Did you get the binary from the release page or the pull request page? I am curious. And yeah the features do work. I noticed the issue with clear bounty like 20 minutes ago actually 🤣 . I am about to work on the feature for adding gold and I will let you know how it goes. Personally, I find most of my ideas on the unknowncheats page for rdr2. More specifically, the Reversing, Offsets, and Structs page. There are not many other menus out and this is the only internal menu that I have seen.

Yeah i browsed UC forums for about an hour today looking for things to earn some money. I just got RDR2 for PC last night for $20 so im like ik horse menu is a thing, ill try it. Its like YimMenu for me, absolutely love it.

I haven't even begun to look into binaries, reversals or any of that myself yet, I've been working on my YimMenu lua script addon but id imaging its nearly the same as GTA would be.

This may help speed the gold dropper along though, its Wickeds cheat engine script. Can confirm it works as well.

[enable]

aobscanmodule(ExpGold,$process,75 ? 8B 49 14 F6 C1 ? 75 ? C1) define(ExpGold,ExpGold-3)

registersymbol(ExpGold)

ExpGold: xor al,al nop {$lua} if not syntaxcheck then synchronize(function() local t = createTimer() t.Interval,t.OnTimer = 500,function(tm) tm.Destroy() memrec.Active = false end end) end {$asm} [DISABLE]

ExpGold: test [rcx+14],dl //Alt: db 75 13 8B 49 14 unregistersymbol(ExpGold)

tyackman commented 4 months ago

I will look into the methods for gold dropping

Spawning lootable items inside a chest = stonks. https://pastebin.com/XDDDP73D

Rxann commented 4 months ago

I will look into the methods for gold dropping

Spawning lootable items inside a chest = stonks. https://pastebin.com/XDDDP73D

great resource thank you

Rxann commented 4 months ago

would like to request adding ways to earn income wicked menu for CE has a gold dropper. Also, support for LUA would be awesome!

I will look into the methods for gold dropping. However, right now there is no chance a lua api is going to be created because this menu barely works.

Thats slightly disappointing, I did notice it has some errors during/after injecting, however, just about all the features seem to work in it (just tried for the first time today) The only feature that doesn't work is the clear wanted button, doesn't do anything for the wanted/bounty. Id be willing to throw my hat in the ring here for this menu though if i knew what i need to add/tweak and where to find the info i need to make additions to it, this is the only other working menu i've found besides Wicked cheat engine table.

Did you get the binary from the release page or the pull request page? I am curious. And yeah the features do work. I noticed the issue with clear bounty like 20 minutes ago actually 🤣 . I am about to work on the feature for adding gold and I will let you know how it goes. Personally, I find most of my ideas on the unknowncheats page for rdr2. More specifically, the Reversing, Offsets, and Structs page. There are not many other menus out and this is the only internal menu that I have seen.

Yeah i browsed UC forums for about an hour today looking for things to earn some money. I just got RDR2 for PC last night for $20 so im like ik horse menu is a thing, ill try it. Its like YimMenu for me, absolutely love it.

I haven't even begun to look into binaries, reversals or any of that myself yet, I've been working on my YimMenu lua script addon but id imaging its nearly the same as GTA would be.

This may help speed the gold dropper along though, its Wickeds cheat engine script. Can confirm it works as well.

[enable]

aobscanmodule(ExpGold,$process,75 ? 8B 49 14 F6 C1 ? 75 ? C1) define(ExpGold,ExpGold-3)

registersymbol(ExpGold)

ExpGold: xor al,al nop {$lua} if not syntaxcheck then synchronize(function() local t = createTimer() t.Interval,t.OnTimer = 500,function(tm) tm.Destroy() memrec.Active = false end end) end {$asm} [DISABLE]

ExpGold: test [rcx+14],dl //Alt: db 75 13 8B 49 14 unregistersymbol(ExpGold)

Welcome to the community!

also @tyackman do u think i could just return true for this function at the signature and it would have the same affect?

Rxann commented 4 months ago

I will look into the methods for gold dropping

Spawning lootable items inside a chest = stonks. https://pastebin.com/XDDDP73D

How do you spawn those items though? I'm guessing through a native. Could you just spawn those individually and have the same effect?

Deadlineem commented 4 months ago

I will look into the methods for gold dropping

Spawning lootable items inside a chest = stonks. https://pastebin.com/XDDDP73D

How do you spawn those items though? I'm guessing through a native. Could you just spawn those individually and have the same effect?

The way it seems to work is it just gives the player the gold each time you tick the box on wickeds CT. As far as I am aware, theres no need for creating chests and such through it, i've never personally worked with cheat engine before so from what i understand of it

75 ? 8B 49 14 F6 C1 ? 75 ? C1 -- Most likely something to do with the gold?

define(ExpGold,ExpGold-3) -- Looks to be something like a limiter to limit the amount of gold (probably to keep it under the radar?)

and of course it runs on a timer and then destroys or unregisters it so it doesn't run again until clicked.

Rxann commented 4 months ago

I will look into the methods for gold dropping

Spawning lootable items inside a chest = stonks. https://pastebin.com/XDDDP73D

How do you spawn those items though? I'm guessing through a native. Could you just spawn those individually and have the same effect?

The way it seems to work is it just gives the player the gold each time you tick the box on wickeds CT. As far as I am aware, theres no need for creating chests and such through it, i've never personally worked with cheat engine before so from what i understand of it

75 ? 8B 49 14 F6 C1 ? 75 ? C1 -- Most likely something to do with the gold?

define(ExpGold,ExpGold-3) -- Looks to be something like a limiter to limit the amount of gold (probably to keep it under the radar?)

and of course it runs on a timer and then destroys or unregisters it so it doesn't run again until clicked.

The 75 ? 8B 49 14 F6 C1 ? 75 ? C1 is the signature to the function, basically the way it identifies it.

the define is defining ExpGold as ExpGold-3.

I am experimenting with a pointer to this signature above right now, i will let you know

tyackman commented 4 months ago

do u think i could just return true for this function

Not a clue. Why not just stop al from being cleared like in the CE script? Patch that instruction with a nop.

How do you spawn those items

CREATE_OBJECT.

Could you just spawn those individually and have the same effect?

I'm sure you could, not sure if they will be lootable though. Check the game scripts for how they create lootable pickups.

Deadlineem commented 4 months ago

do u think i could just return true for this function

Not a clue. Why not just stop al from being cleared like in the CE script? Patch that instruction with a nop.

How do you spawn those items

CREATE_OBJECT.

Could you just spawn those individually and have the same effect?

I'm sure you could, not sure if they will be lootable though. Check the game scripts for how they create lootable pickups.

I coloaded both and logged all the events through horse

[21:46:04.1840850][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.1841218][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.1841355][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.1841393][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.2366871][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.2367130][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.2367236][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.2367269][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.2891400][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.2891678][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.2891790][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.2891817][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.3421201][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.3421546][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.3421696][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.3421746][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.3946821][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.3947178][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.3947345][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.3947390][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.4490738][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.4491117][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.4491260][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.4491301][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.5010370][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.5010642][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.5010748][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.5010779][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:04.5535913][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":2987611862,"st":1710568800,"et":1710655200,"ngc":2,"ngr":1,"streak":1,"awards":[2943176789] [21:46:04.5536261][INFO/SendMetric.cpp:31] METRIC: DAILY_CHALLENGE; DATA: "c":[2360.39,-421.00,41.60],"gh":4281624099,"st":1710568800,"et":1710655200,"ngc":3,"ngr":1,"streak":1,"awards":[2192625981] [21:46:04.5536414][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":817603296,"at":3930831140,"alvl":1 [21:46:04.5536458][INFO/SendMetric.cpp:31] METRIC: AWARD; DATA: "a":2881633879,"at":1344412784,"alvl":1 [21:46:05.1578832][INFO/SendMetric.cpp:31] METRIC: USE_SCENARIO; DATA: "id":2028722809,"pos":[2480.11,-469.47,40.50],"name":3113573578,"condAnims":3113573578 [21:46:05.4735518][INFO/SendMetric.cpp:31] METRIC: GAMESERVER_TXN_AWARDS; DATA: "c":[2360.39,-421.00,41.60],"rpcid":"6516fc005b6c11b9a9e9e78e79c7ab62","ttype":644809794,"xpc":63252,"rc":26,"cc":3737,"ptime":4928842,"shopid":0,"shoptype":0,"tid":"3100ebb8aa354a2cac82b163d9f28dac" [21:46:05.4994852][INFO/SendMetric.cpp:31] METRIC: GAMESERVER_TXN_AWARDS; DATA: "c":[2360.39,-421.00,41.60],"rpcid":"b922e0005b6e11b9a9e9e78e79c7ab62","ttype":644809794,"xpc":63652,"rc":26,"cc":3737,"ptime":4928868,"shopid":0,"shoptype":0,"tid":"37bbb58a1acd408086eb7da849939707" [21:46:05.5268711][INFO/SendMetric.cpp:31] METRIC: GAMESERVER_TXN_AWARDS; DATA: "c":[2360.39,-421.00,41.60],"rpcid":"b922e0015b6e11b9a9e9e78e79c7ab62","ttype":644809794,"xpc":64052,"rc":26,"cc":3737,"ptime":4928894,"shopid":0,"shoptype":0,"tid":"33a86333ab1240e988a38d141265c1ed" [21:46:05.5524541][INFO/SendMetric.cpp:31] METRIC: GAMESERVER_TXN_AWARDS; DATA: "c":[2360.39,-421.00,41.60],"rpcid":"b922e0025b6e11b9a9e9e78e79c7ab62","ttype":644809794,"xpc":64452,"rc":26,"cc":3737,"ptime":4928920,"shopid":0,"shoptype":0,"tid":"edc0a9e954e8470bb97d31b6aedaee86"

Deadlineem commented 4 months ago

do u think i could just return true for this function

Not a clue. Why not just stop al from being cleared like in the CE script? Patch that instruction with a nop.

How do you spawn those items

CREATE_OBJECT.

Could you just spawn those individually and have the same effect?

I'm sure you could, not sure if they will be lootable though. Check the game scripts for how they create lootable pickups.

CREATE_OBJECT? Just like GTA's OBJECT.CREATE_OBJECT native? Can R* be any lazier lmao

Rxann commented 4 months ago

Not a clue. Why not just stop al from being cleared like in the CE script? Patch that instruction with a nop.

So, do I need to just patch the instruction? right now I have patched the instruction. Do I need to hook the function too because we need to call it to profit right?

Rxann commented 4 months ago

do u think i could just return true for this function

Not a clue. Why not just stop al from being cleared like in the CE script? Patch that instruction with a nop.

How do you spawn those items

CREATE_OBJECT.

Could you just spawn those individually and have the same effect?

I'm sure you could, not sure if they will be lootable though. Check the game scripts for how they create lootable pickups.

CREATE_OBJECT? Just like GTA's OBJECT.CREATE_OBJECT native? Can R* be any lazier lmao

A majority of RDR2 code is gta5.1

Deadlineem commented 4 months ago

do u think i could just return true for this function

Not a clue. Why not just stop al from being cleared like in the CE script? Patch that instruction with a nop.

How do you spawn those items

CREATE_OBJECT.

Could you just spawn those individually and have the same effect?

I'm sure you could, not sure if they will be lootable though. Check the game scripts for how they create lootable pickups.

CREATE_OBJECT? Just like GTA's OBJECT.CREATE_OBJECT native? Can R* be any lazier lmao

A majority of RDR2 code is gta5.1

Y'know.. I have been telling people RDR2 is just GTA5 remade into something old west style and that when playing the two you can tell the similarities in how the characters move/shoot and such. Never thought it was THIS similar lmao

theofficialhackclean commented 4 months ago

I think rdr2 uses basket transactions so you could possibly do something for that

tyackman commented 4 months ago

Do I need to hook the function too because we need to call it to profit right?

That would be my guess.

I think rdr2 uses basket transactions so you could possibly do something for that

Or this ^^

Rxann commented 4 months ago

Do I need to hook the function too because we need to call it to profit right?

That would be my guess.

I think rdr2 uses basket transactions so you could possibly do something for that

Or this ^^

I am almost done implementing a system to drop collectibles. A PR will be opened later today assuming all goes well.