| View previous topic :: View next topic |
| Author |
Message |
AskaLangly Advanced Cheater
Reputation: 0
Joined: 22 Apr 2009 Posts: 74 Location: New Jersey
|
Posted: Thu Apr 09, 2015 3:26 pm Post subject: Have one address alter another... |
|
|
So, messing around with volume levels.
Say music has two values: the slider (1-byte, 00~100) and the actual volume output (float, 0~1).
Then you have the effects and voices. Again, the slider and the actual output (this time 0~0.875).
Say I adjust the 1-byte value. I want that to also adjust the float value.
Is it possible?
_________________
[Tables Created] Shantae: RR DX, Croixleur Σ (Debug), SRB2, Sonic CD, Gyromancer, LoH: Trails in the Sky... |
|
| Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Thu Apr 09, 2015 3:34 pm Post subject: |
|
|
| If you know both addresses (i.e. when they're static) you could easily write a script that writes to both values.
|
|
| Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Thu Apr 09, 2015 3:44 pm Post subject: |
|
|
@AskaLangly: one way would be to create 3 lua custom types (one for bgm, one for sfx, and one for voices) that would behave like the built-in byte datatype, but would additionally overwrite the corresponding float variable in their valuetobytes() function.
_________________
DO NOT PM me if you want help on making/fixing/using a hack. |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Thu Apr 09, 2015 4:05 pm Post subject: |
|
|
Or you can just try to find a common function where you can check both addresses. These values are not completely independent from each other, so some functions are probably accessing to both values.
_________________
|
|
| Back to top |
|
 |
AskaLangly Advanced Cheater
Reputation: 0
Joined: 22 Apr 2009 Posts: 74 Location: New Jersey
|
Posted: Thu Apr 09, 2015 4:25 pm Post subject: |
|
|
/getting over my head/
Just be lucky I'm getting by with pointer scans.
To be honest, keeping up with game updates, therefore updating tables the tedious way, keeps me occupied.
Was never good with AOB scans and Lua to begin with, lol.
_________________
[Tables Created] Shantae: RR DX, Croixleur Σ (Debug), SRB2, Sonic CD, Gyromancer, LoH: Trails in the Sky... |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Thu Apr 09, 2015 4:32 pm Post subject: |
|
|
Then the easiest way is probably to assign the same hotkey to both values and when the user is decreasing/increasing the value with the hotkey, he is adjusting both of them with the same amount.
_________________
|
|
| Back to top |
|
 |
|