Quick Modding/Hacking Answers Thread

Jun 23, 2016 at 12:38 PM
Deliverer of Sweets
Bobomb says: "I need a hug!"
Join Date: Jul 20, 2015
Location: Under sea level or something
Posts: 804
Age: 26
Pronouns: 菓子
Hmm... did you change the damage he does in npc.tbl? Because you shouldn't
Damage is still 0 in npc.tbl, so i don't think that's it.
 
Jun 23, 2016 at 12:38 PM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
Jun 23, 2016 at 12:49 PM
Deliverer of Sweets
Bobomb says: "I need a hug!"
Join Date: Jul 20, 2015
Location: Under sea level or something
Posts: 804
Age: 26
Pronouns: 菓子
Jun 23, 2016 at 12:51 PM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
So.. do you know the other one?

Hmm... did you change the damage he does in npc.tbl? Because you shouldn't

EDIT: I missed one of the damage functions. This should be the other one.
CPU Disasm
Address Command
00434EF6 PUSH 2
00434EF8 CALL 00419910
00434EFD ADD ESP,4
00434F00 JMP 0043525B
^ This is for the damage while running. Separate to the damage while jumping on you
I edited my other post before you replied. Lol
 
Jun 23, 2016 at 4:16 PM
Soup Man
"In Soviet Russia, graves keep YOU!"
Join Date: Jul 15, 2014
Location: IN YOUR HEAD, SHIT FOR BRAINS
Posts: 670
Age: 8
Pronouns: she/her
Where do I edit Ironheads Attack damage and HP?
 
Jun 23, 2016 at 4:59 PM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
Damage is at 0x47AA2E:
CPU Disasm
Address Command
0047AA2E MOV DWORD PTR DS:[ECX+0A4],0A
0A is the damage.
HP is at 0x047AA4B.
*Cough cough* I wonder why you got the HP but not the damage since they were within the same function lol
 
Jun 23, 2016 at 5:04 PM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
Because I knew someone had already asked about the big boss health, (me) and I knew in the answer there was the address to Iron Head's health. Interestingly, that person was you.
And surprisingly, you weren't bothered to lift a single finger to find a command 1D bytes away from the health!
 
Jun 24, 2016 at 4:53 AM
Junior Member
"Fresh from the Bakery"
Join Date: Jun 20, 2016
Location:
Posts: 13
Pronouns: he/him
Now please, i'm new to modding so, how do i add someone's hack to a .exe using OllyDbg, like the IMG hack or the infinite mimiga mask hack? :critter:
 
Jun 24, 2016 at 7:38 AM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
If you want to keep your sanity then you will never use OllyDbg to apply ready made hacks.
I recommend you grab a copy of Doukutsu Assembler and use that to apply assembly hacks that aren't in hex. If you find an assembly hack that IS in hex you can apply it using the BL hex patcher.
You can just paste the hex into an address in ollydbg.
 
Jun 24, 2016 at 10:24 AM
Deliverer of Sweets
Bobomb says: "I need a hug!"
Join Date: Jul 20, 2015
Location: Under sea level or something
Posts: 804
Age: 26
Pronouns: 菓子
How do I increase the range of how far the Fire Whirrrs can see the player and attack?
 
Jun 24, 2016 at 11:29 AM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
How do I increase the range of how far the Fire Whirrrs can see the player and attack?
CPU Disasm
Address Command
00449A89 MOV EAX,DWORD PTR SS:[ARG.1]
00449A8C MOV ECX,DWORD PTR DS:[EAX+0C]
00449A8F ADD ECX,0A000
00449A95 CMP DWORD PTR DS:[49E658],ECX
00449A9B JGE SHORT 00449AE1
00449A9D MOV EDX,DWORD PTR SS:[ARG.1]
00449AA0 MOV EAX,DWORD PTR DS:[EDX+0C]
00449AA3 SUB EAX,0A000
00449AA8 CMP DWORD PTR DS:[49E658],EAX
00449AAE JLE SHORT 00449AE1
00449AB0 MOV ECX,DWORD PTR SS:[ARG.1]
00449AB3 MOV EDX,DWORD PTR DS:[49E654]
00449AB9 CMP EDX,DWORD PTR DS:[ECX+8]
00449ABC JGE SHORT 00449AE1
00449ABE MOV EAX,DWORD PTR SS:[ARG.1]
00449AC1 MOV ECX,DWORD PTR DS:[EAX+8]
00449AC4 SUB ECX,14000
00449ACA CMP DWORD PTR DS:[49E654],ECX
00449AD0 JLE SHORT 00449AE1
00449AD2 MOV EDX,DWORD PTR SS:[ARG.1]
00449AD5 MOV EAX,DWORD PTR DS:[EDX+6C]
00449AD8 ADD EAX,1
00449ADB MOV ECX,DWORD PTR SS:[ARG.1]
00449ADE MOV DWORD PTR DS:[ECX+6C],EAX
00449AE1 JMP SHORT 00449B3A
00449AE3 MOV EDX,DWORD PTR SS:[ARG.1]
00449AE6 MOV EAX,DWORD PTR DS:[EDX+0C]
00449AE9 ADD EAX,0A000
00449AEE CMP DWORD PTR DS:[49E658],EAX
00449AF4 JGE SHORT 00449B3A
00449AF6 MOV ECX,DWORD PTR SS:[ARG.1]
00449AF9 MOV EDX,DWORD PTR DS:[ECX+0C]
00449AFC SUB EDX,0A000
00449B02 CMP DWORD PTR DS:[49E658],EDX
00449B08 JLE SHORT 00449B3A
00449B0A MOV EAX,DWORD PTR SS:[ARG.1]
00449B0D MOV ECX,DWORD PTR DS:[EAX+8]
00449B10 ADD ECX,14000
00449B16 CMP DWORD PTR DS:[49E654],ECX
00449B1C JGE SHORT 00449B3A
00449B1E MOV EDX,DWORD PTR SS:[ARG.1]
00449B21 MOV EAX,DWORD PTR DS:[49E654]
00449B26 CMP EAX,DWORD PTR DS:[EDX+8]
00449B29 JLE SHORT 00449B3A
00449B2B MOV ECX,DWORD PTR SS:[ARG.1]
00449B2E MOV EDX,DWORD PTR DS:[ECX+6C]
00449B31 ADD EDX,1
00449B34 MOV EAX,DWORD PTR SS:[ARG.1]
00449B37 MOV DWORD PTR DS:[EAX+6C],EDX
^ Distance codes:
CPU Disasm
Address Command
00449A8F ADD ECX, 0A000 - How far down
CPU Disasm
Address Command
00449AA3 SUB EAX, 0A000 - How far up
CPU Disasm
Address Command
00449AC4 SUB ECX, 14000 - How far left
CPU Disasm
Address Command
00449AE9 ADD EAX, 0A000 - How far down
CPU Disasm
Address Command
00449AFC SUB EDX, 0A000 - How far up
CPU Disasm
Address Command
00449B10 ADD ECX, 14000 - How far right
BTW, in the Cave Story engine, 1 block = 2,000 units, so A,000 units = 5 blocks and 14,000 units = 10 (dec) blocks.
You may have noticed there were two checks for up and down; another example of Pixel's inefficient code, one is for left, one for right. You don't actually need to check it twice for the same value...
 
Last edited:
Jun 24, 2016 at 11:44 AM
Bonds that separate us
Forum Administrator
"Life begins and ends with Nu."
Join Date: Aug 20, 2006
Location:
Posts: 2859
Age: 34
Pronouns: he/him
Hiyo, I have a couple of small hacks I'd like to make. Mostly I think I just need the offsets I haven't been able to find yet:
-I want to set the directional firing randomness of the Machine Gun to 0, and remove the air boosting effect that level 3 has. Can I just do the latter by setting the check to a non-weapon-level value (i.e. 0, or 5)?
-The address for the Booster 2.0's speed value.

That should be basically all I need for the time being.
 
Jun 24, 2016 at 11:54 AM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
Hiyo, I have a couple of small hacks I'd like to make. Mostly I think I just need the offsets I haven't been able to find yet:
-I want to set the directional firing randomness of the Machine Gun to 0, and remove the air boosting effect that level 3 has. Can I just do the latter by setting the check to a non-weapon-level value (i.e. 0, or 5)?
-The address for the Booster 2.0's speed value.

That should be basically all I need for the time being.
For removing MG's air boosting:
0x41E591
71
(Yes, that's how short it is!)
For removing MG's spread:
0x405383
6A 00 90 90 90 6A 00 90 90 90 E8 BE 9F 00 00 83
C4 08 8B 4D 08 89 41 1C EB 72 8B 95 7C FF FF FF
F7 DA 8B 45 08 89 50 1C 6A 00 90 90 90 6A 00 90
90 90 E8 96 9F 00 00 83 C4 08 8B 4D 08 89 41 18
EB 4A 8B 55 08 8B 85 7C FF FF FF 89 42 18 6A 00
90 90 90 6A 00 90 90 90 E8 70 9F 00 00 83 C4 08
8B 4D 08 89 41 1C EB 24 8B 55 08 8B 85 7C FF FF
FF 89 42 1C 6A 00 90 90 90 6A 00 90 90 90
As for the speed of the Booster v2.0, that will have to wait. IIRC, it has 16 values.
If you could tell me what velocity exactly, or as a fraction of the original boosting speed, I could make you a hack for it tho
 
Last edited:
Jun 24, 2016 at 12:14 PM
Bonds that separate us
Forum Administrator
"Life begins and ends with Nu."
Join Date: Aug 20, 2006
Location:
Posts: 2859
Age: 34
Pronouns: he/him
As for the speed of the Booster v2.0, that will have to wait. IIRC, it has 16 values.
If you could tell me what velocity exactly, or as a fraction of the original boosting speed, I could make you a hack for it tho
I don't know exactly yet, I'll need to test it out
 
Jun 24, 2016 at 12:29 PM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
I don't know exactly yet, I'll need to test it out
^ *Completely ignores my other hacks*

Just say, like 1.5 times? I'll give you a hack for 1.5 times
0x415996
A1 10 E2 49 00 23 05 34 36 49 00 74 20 C6 05 E6
E6 49 00 02 C7 05 6C E6 49 00 00 00 00 00 C7 05
70 E6 49 00 01 E0 FF FF E9 9B 00 00 00 8B 0D 10
E2 49 00 23 0D 30 36 49 00 74 1D C6 05 E6 E6 49
00 01 C7 05 70 E6 49 00 00 00 00 00 C7 05 6C E6
49 00 01 E0 FF FF EB 70 8B 15 10 E2 49 00 23 15
38 36 49 00 74 1D C6 05 E6 E6 49 00 01 C7 05 70
E6 49 00 00 00 00 00 C7 05 6C E6 49 00 FF 1F 00
00 EB 45 A1 10 E2 49 00 23 05 3C 36 49 00 74 1D
C6 05 E6 E6 49 00 03 C7 05 6C E6 49 00 00 00 00
00 C7 05 70 E6 49 00 FF 1F 00 00 EB 1B C6 05 E6
E6 49 00 02 C7 05 6C E6 49 00 00 00 00 00 C7 05
70 E6 49 00 01 E0 FF FF
0x41607D
81 3D 6C E6 49 00 81 FB FF FF 7D 0A C7 05 6C E6
49 00 81 FB FF FF 81 3D 6C E6 49 00 7F 04 00 00
7E 0A C7 05 6C E6 49 00 7F 04 00 00 81 3D 70 E6
49 00 81 FB FF FF 7D 0A C7 05 70 E6 49 00 81 FB
FF FF 81 3D 70 E6 49 00 7F 04 00 00 7E 0A C7 05
70 E6 49 00 7F 04 00 00 EB 58 81 3D 6C E6 49 00
01 F7 FF FF 7D 0A C7 05 6C E6 49 00 01 F7 FF FF
81 3D 6C E6 49 00 FF 08 00 00 7E 0A C7 05 6C E6
49 00 FF 08 00 00 81 3D 70 E6 49 00 01 F7 FF FF
7D 0A C7 05 70 E6 49 00 01 F7 FF FF 81 3D 70 E6
49 00 FF 08 00 00 7E 0A C7 05 70 E6 49 00 FF 08
00 00
EDIT: FOR GOODNESS' SAKE TELL ME WHETHER IT'S WORKING OR NOT SO I DON'T HAVE TO KEEP FUSSING OVER THIS THREAD AND RELOADING IT ALREADY
 
Last edited:
Jun 24, 2016 at 2:27 PM
Bonds that separate us
Forum Administrator
"Life begins and ends with Nu."
Join Date: Aug 20, 2006
Location:
Posts: 2859
Age: 34
Pronouns: he/him
AHHHHHH I've barely done any of this before so I had to figure out what I was doing then I got to fiddling around with direction values

Yes they all work great, thanks heaps, this will make life much easier for me

Although I've since realised I needed the machine gun bullet speed address as well :koron: Is that them at 0x405322? I only see three values there...
SPEEDEDIT: Yes it's them, guess they only get one value per level each
 
Back
Top