View previous topic :: View next topic |
Author |
Message |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Thu Mar 24, 2016 8:08 pm Post subject: Value only updates after a kill? |
|
|
Alright, so in all of the command and conquer games, I managed to find a pointer that accesses the veterancy of every unit. However, newer games such from Generals Zero Hour and above all have this same problem I'm having.
For starters, Command and Conquer 3 uses the system based on how many points of damage is dealt, 3 times its original cost value.
Ex. NOD Buggy = 500$
Promotion 1 = 1500$ worth of damage
Promotion 2 = 3000$
Promotion 3 = 4500$
Problem is, if I change the value to 10000 or something, Promotion 3 won't be applied until that unit kills something. I'd like it to be able to automatically be Promotion 3, rather having to kill something to get it.
I know pointers aren't the best way to go with these things, but attempts to make a script for myself have failed.
What would be my best option to do?
_________________
P∃ɑ¢∈ƘεεքΘɼ |
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4700
|
Posted: Thu Mar 24, 2016 9:15 pm Post subject: |
|
|
It seems like the asm that checks whether or not a unit should be promoted is only run when the game updates the unit's damage dealt (or whatever unit of measure is used to determine prestige level).
One way of getting around this would be to call the asm yourself like the game does. Ultimap would probably be the easiest thing to use to find any subroutines related to this; however, you could look at what writes to (and/or accesses) that address and backtrace it to some calling procedure that you could call yourself.
If you take the backtracing route, you also might be able to modify some conditional jump around one of the calls to always automatically prestige your own units but not your enemies' units. You'll probably have to look through the structure of the unit to find something you can use to discern friendly units.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Thu Mar 24, 2016 10:08 pm Post subject: |
|
|
Appreciate the response, do you know of any tutorials or tips to get started? I won't lie and say I know what I'm looking for...
However, I plan on giving it a shot tomorrow and see what I make of it, this thing has bothered me for the longest time.
_________________
P∃ɑ¢∈ƘεεքΘɼ |
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4700
|
Posted: Thu Mar 24, 2016 10:22 pm Post subject: |
|
|
Ultimap YouTube videos - (1) (2)
CEF topic involving backtracing here
If you don't have a decent knowledge of asm, you should learn that first:
CEF topic - very simple (sometimes oversimplified) w/ a few misconceptions here and there
YouTube playlist - more correct but quite lengthy and a bit more advanced
Some stuff you just have to learn by playing around. Look at how already existing asm works and learn from that. Google anything you're uncertain of, and if you don't find an answer, don't hesitate to ask.
If you want some practice, try solving a few crackmes. There are tons of YouTube video tutorials on that.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
PeaceKeep0r Cheater
Reputation: 0
Joined: 01 Sep 2014 Posts: 32
|
Posted: Sun Mar 27, 2016 2:25 pm Post subject: |
|
|
Alright, so first issue...i can't seem to find the ID between different players. I thought I was doing the right thing, but I guess not maybe?
I can add smaller images if it's necessary.
Edit: After this image I did add -08 to my addresses, but still could not find a difference
Description: |
|
Filesize: |
470.29 KB |
Viewed: |
3753 Time(s) |

|
_________________
P∃ɑ¢∈ƘεεքΘɼ |
|
Back to top |
|
 |
|