How to make trainer for that game

Tom Bombadildo

Dick, With Balls
Member
Joined
Jul 11, 2009
Messages
14,575
Trophies
2
Age
29
Location
I forgot
Website
POCKET.LIKEITS
XP
19,225
Country
United States
SURE, BY NOT BEING A BITCH AND BEATING IT USING SKILL.


But really I'm not...100% sure. All most trainers do is just edit values in game right? So...hex editor maybe? Find the values you want to change and change them? You probably shouldn't trust my answer for this, as it is from an assumed thought and not fact...
 

Zetta_x

The Insane Statistician
Member
Joined
Mar 4, 2010
Messages
1,844
Trophies
0
Age
34
XP
574
Country
United States
Could only manage to get score and lives... might be able to get save times, but too lazy to keep playing to find that value. The other values (such as powerup state) don't really seem to be kept the same way.

http://www.mediafire...25yiqax2yja1x2b


I'm guessing scores were a multiple of some number (IE the score 290 was not seen by 290 in the game?)

Is there an invincibility timer after you get hit? That's also a perfect value to find.
Levels would be another thing
The Powerup state will be complicated because of the different combinations you can have, but an assumption that the value increases when you have a powerup and decreases when you have none may help.
The location in the level may also be a good value to find
X-Y positions are fun too

But I have had bad luck with cheat engine
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
Scores and lives were stored normally, there's no invincibility (one-hit kill game), attack levels didn't seem to be stored as normal integers (neither the powerups collected to increase the level or the level itself), didn't find much use on the coordinates since shit to kill you can exist anywhere. XD
 

Zetta_x

The Insane Statistician
Member
Joined
Mar 4, 2010
Messages
1,844
Trophies
0
Age
34
XP
574
Country
United States
Ahh, I'm used to 8bit NES games where theoretically scores that high were impossible so it was stored across multiple addresses or they just added a 0 or so to the actual value =P
 

Zetta_x

The Insane Statistician
Member
Joined
Mar 4, 2010
Messages
1,844
Trophies
0
Age
34
XP
574
Country
United States
Usually invincibility comes from ingame functions. The only way I can see it done here is to force the game kill collision detection.

Of course it may be impossible to destroy things =P
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
There is temporary invincibility only after losing your sheild, but that's a rare powerup to get in the first place and my attempts to find/lock the value (either the shield or the resulting invincibility timer) have gone empty.

It's weird, the health and lives are low static addresses, but none of the other values seem to be.
 

Mazor

Z80 master arch
Member
Joined
Feb 14, 2008
Messages
547
Trophies
0
Age
16
Website
Visit site
XP
245
Country
Here's a small trainer I made for you. Invincibility sounded extremely pointless so I didn't go for that, instead I made it so the trainer sets your life count to a high number and overwrites the instruction that decrements the life count. So the result is that there won't be any game overs ever, but you will still die if you get hit.

I GPL'd it, so it includes the extremely well documented source code. Adding more stuff is as easy as adding two lines; one at the top of hax.c for the buffer to inject and one in hax_process() function in hax.c for the WriteProcessMemory() to inject it (as demonstrated in hax.c).

EDIT: Screenshot of the haxbeauty, I love the maximize button:
O5pIi.png
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
Wordwrap fails your secret define.
inb4 "word wrap in a code editor: BLSPHEMY"
Also agreed on smash bros.

Any clues/info on the powerup levels? I really wanna' know WTF's going on in those. I even tried watching the RAM around the lives and score addresses assuming they'd be at least somewhat close to those, but nope.
 

Mazor

Z80 master arch
Member
Joined
Feb 14, 2008
Messages
547
Trophies
0
Age
16
Website
Visit site
XP
245
Country
Interestingly I wrote this in vim which also wraps lines.

I didn't actually play the game past the first 30 seconds so I don't know about powerups.
 

Gagarin

Well-Known Member
OP
Member
Joined
Oct 11, 2007
Messages
970
Trophies
1
Age
44
Location
USA
Website
Visit site
XP
1,098
Country
United States
Sorry for resurrecting that thread:
There is a new version of that game (1.1), and there is a save option now (in level select).
I learned that you can key_config.ini with that line:
Code:
[achievement]
iamatruehero=yesyouare
And you will get a shield for one life, however I can not find its value for Cheat Engine to make it permanent.
Also, I don't know how to find values for weapon upgrades.
Anybody? Game is awesome.
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
Well, I got the temporary invincibility timer value...

invintime.png


...from the invincibility special weapon, which means you need that weapon, it starts upon activation, and doesn't last past changing a room/screen/level. I could probably get the invincibility timer for shield loss too, but the issue there is still that you need a shield in the first place, so it's about as useful as this one.

So I used a long-ass search (all types and relative over a few games) to narrow down the addresses that changed when you gained or lost a shield... and there's a lot, so I decided to check which line of code modified them. The majority were modified by this.

code.png


Which... turns out to be the script update function for Game Maker games (older versions before it stopped being an interpreter and started actually compiling the scripts). That explains a lot about why I wasn't able to do this.

Outside of the few built-in values that are normal ints (health, score, and lives IIRC), everything else is custom and handled with floating-point stuff and changed with the script update function. And that's way too complicated for me, I've never been able to modify something like this. From what I've read, most people just take the scripts out of GM games and modify them since it's way easier, but Idunno' how that would be done... found this.

No clue if it'll rebuild properly and all that jazz, way too lazy to actually install Game Maker.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: 10 tabs open on chrome and no slow downs suck it low ram ple bs lol