• Please stop embedding files/images from Discord. Discord has anti-hotlinking logic in place that breaks links to Discord hosted files and images when linked to from anywhere outside of Discord. There are a multitude of file/image hosting sites you can use instead.

    (more info here)

Quick Modding/Hacking Answers Thread

Feb 22, 2016 at 7:47 AM
Moo~
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location:
Posts: 2914
Age: 30
Pronouns: She/Her
@TLincoln:
Oh oops I forgot that sorry

EDIT: Looking at it again, it's the only boss health that doesn't use [ECX+40].
I wonder why.
From the wise words put in this post:
Omegas coding is so wierd
Really though, when I was making CSTSF Mod, I took a guess based on this thread. The offsets didn't really match up, but they were close, and it worked. And I guess I never bothered to mention it at the time.
 
Last edited:
Feb 22, 2016 at 4:37 PM
Its dark in here
"Deaths: 4000"
Join Date: Nov 21, 2013
Location: farther
Posts: 922
Age: 28
Pronouns: he/him
Thank you both very much.
Now I can make Ballos truly impossible.
If you're just gonna give him a shit ton of health, then that doesn't really count.
 
Feb 22, 2016 at 10:24 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
because it wasn't programmed to use ammo
 
Feb 22, 2016 at 11:28 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
@zxin:
If you're going to give the booster infinite fuel, just change the 32 in
4157A1: MOV DWORD PTR DS:[49E6E8],32 for Booster v2.0;
4157B7: MOV DWORD PTR DS:[49E6E8],32 for Booster v0.8.
Otherwise you could do the <IBF command:
; <IBF Infinite Booster Fuel
; 0002 = infinite fuel
; 0000 = not infinite fuel


offset 0046D5D0 ;replaces npc 352

#define

:variable = 493873

#enddefine

MOV EAX,DWORD PTR DS:[4A5AD8]
ADD EAX,DWORD PTR DS:[4A5AE0]
CMP BYTE [ECX+1],49 ;Check for the letter I
JNE SHORT 00424F33
CMP BYTE [ECX+2],42 ;Check for the letter B
JNE SHORT 00424F33
CMP BYTE [ECX+3],46 ;Check for the letter F
JNE SHORT 00424F33


;---First Argument---


MOV EAX,DWORD PTR DS:[4A5AE0]
ADD EAX,4
PUSH EAX
CALL 00421900
ADD ESP,4 ;Get the argument from the <IBF command, and store it into EAX

CMP EAX,2
JE :infinite_fuel
mov [:variable],0
JMP :END


:infinite_fuel
mov [:variable],2 ; infinite fuel

:end
ADD [4A5AE0],8 ;Fix the script position
JMP 004252A7 ;Jump back to the beginning of the TSC parser


;===============================
;===============================
;===============================




:after_the_fact
ADD BYTE PTR DS:[EAX],AL ;this is just a buffet to keep my sanity

:NONONONONONO ;begining of booster fuel branch
MOV EAX,DWORD PTR DS:[49E6E8]
CMP [:variable],2 ;Was our variable set in the above code?
JE :end_booster_code
SUB EAX,1
:end_booster_code
MOV [49E6E8],EAX
JMP 00415C64

; jump address 00415C5D
offset 00415C5D


JMP 0046D633
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
offset 00424EAF

JMP 0046D5D0
^That's the <IBF command.
EDIT: Also remember to give credit to Bombchu Link for this, otherwise he'll destroy you
@Kenzo ITC:
Curly can only use 2 types of bullet: Polar Star and Machine Gun.
The most I know about Curly AI is that its offset is 0x044B210
EDIT: Oh I thought you meant Curly AI. Yes, you can change the bullets shot by Curly Carried.
 
Last edited:
Feb 22, 2016 at 11:36 PM
Lvl 1
Forum Moderator
"Life begins and ends with Nu."
Join Date: May 28, 2008
Location: PMMM MMO
Posts: 3713
Age: 32
So another question, is there like, an offset where I could change what type of bullet curly shoots when she's on your back?

You can, and it's hilarious when you do. I changed it once to fire fully charged spur shots and it was great.

I don't remember the offest off the top of my head, but check the AI function for the "curly on your back" entity (it'll be an entity in the top left corner of the hell maps where she appears).
 
Feb 23, 2016 at 5:13 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
I have a question. I was editing some asm stuff and looks like I messed with the wrong offsets, because now my mod crashes whenever I level up any weapon. The crash is an access violation at 0x0040C7A6. Could you guys maybe find the problem?
 
Feb 23, 2016 at 1:31 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
looks fine to me
 
Feb 23, 2016 at 1:45 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
the jet puffs are tied to the amt of fuel it has. So if you keep the fuel a constant #, it will either always or never puff.
The correct way to do it is to make the fuel reset when it hits zero but that's more work.
 
Feb 23, 2016 at 2:01 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
well go make it then I'm not your mom
 
Feb 23, 2016 at 2:12 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
there's more than enough resources available for you to learn
 
Feb 23, 2016 at 11:00 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
You could always just change
4157A1: MOV DWORD PTR DS:[49E6E8],32 to 7FFFFFF and
4157B7: MOV DWORD PTR DS:[49E6E8],32 to 7FFFFFF for nearly unlimited fuel.
 
Feb 23, 2016 at 11:43 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Mar 13, 2012
Location: Jourzar
Posts: 64
If you remove all the code in the event then the game doesn't work, if you leave the <WAI9999 then there's still an intro which lasts approx. 3 seconds and consists of nothing. I believe he's asking how to change the time between the <WAI9999 being hit and the cut-scene going to the title screen.

Yup. Exactly what I am asking. Makes me wish I knew how to use assembly.

Also BL (Booster's Lab) is far superior to CE (Cave Editor) at this point, the only thing BL can't do which CE can is change the "starting flags," let you use any file extension you want (not a filetype, you can't use .pngs or anything, but you can use some made-up filetype just as long as they're essentially .bmps) and change the name of the Profile.dat (saved game) files.
You can change the Profile.dat and .pbm/.bmp extensions to whatever you want using Notepad++'s find (and replace) tool, but it's much more convenient to be able to do it with your editor.
Hopefully someday BL can be the IDE of Cave Story modding, being able to resource hack and such.

To be honest, I just like CaveEditor more then BL. It just works out for me better. I do, however, use BL when I need it (which is almost never since I have a bunch of hacking tools already).

0049E638 PlayerFlags [0x01 Inspecting | 0x02 Removed | 0x04 Walking | 0x08 | 0x10 | 0x20 | 0x40 | 0x80 Visible | 0x100 Water]
translation: ###### nothing useful

Thanks. Just seeing if I could do anything cool with those on my mod without wrecking the game.

EDIT: Whoops, double post. :muscledoc:
 
Last edited by a moderator:
Feb 23, 2016 at 11:47 PM
Senior Member
"Huzzah!"
Join Date: Dec 2, 2015
Location:
Posts: 211
Age: 26
Pronouns: he/him
Yup. Exactly what I am asking. Makes me wish I knew how to use assembly.



To be honest, I just like CaveEditor more then BL. It just works out for me better. I do, however, use BL when I need it (which is almost never since I have a bunch of hacking tools already).

Hey, would you care to explain to us how you got the infinite booster hack to work for you?
 
Feb 23, 2016 at 11:50 PM
Senior Member
"Wahoo! Upgrade!"
Join Date: Mar 13, 2012
Location: Jourzar
Posts: 64
Hey, would you care to explain to us how you got the infinite booster hack to work for you?

With CSHacker. Sure, it's in Japanese, but if you just change the "50" value to "99999999" it works fine.

p212839-0-28iq39c.png
 
Last edited:
Feb 24, 2016 at 6:23 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
Back
Top