Quick Modding/Hacking Answers Thread

Jul 10, 2012 at 4:19 AM
Senior Member
"This is the greatest handgun ever made! You have to ask yourself, do I feel lucky?"
Join Date: Jul 4, 2012
Location: somewhere....
Posts: 97
Pronouns: he/him
Quick Question:
I'm trying to add a new map, the door works fine, but when I enter the map, the screen is black,ecept for the HUD. Then the screen flashes white, and Cavestory crashes with no error report.


Code I'm using
Code:
The code for the door:
#350
#0350
<SOU0011<FAO0004<TRA0096:0090:0000:0007

Code for the area:

#0090
<MNA<CMU0030<FAI0000<END
#0091
<MNA<CMU0030<FAI0001<END
#0092
<MNA<CMU0030<FAI0002<END
#0093
<MNA<CMU0030<FAI0003<END
#0094
<MNA<CMU0030<FAI0004<END


#0100
<SOU0011<FAO0004<TRA0016:0094:0037:009


#0300
<PRI<SOU0022<DNP0400<CMU0016
<MSG<GIT1006Got a =Life Capsule=!<WAI0160<NOD<RMU<ML+0003
Max health increased by 3!<NOD<END

EDIT:Using Sue's Workshop. After opening in CE, the .EXE was corrupted. Here's the creepy part. I had a backup from a few days ago. When i opened the backup, i found every change from the corrupt file was ALSO on my backup!!(except for the corruption)

EDIT #2:Changed the code. The area's name shows up and music plays, but it still crashes.
 
Jul 10, 2012 at 4:26 AM
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
1. 350 does not come before 90 and 100 in the standard interpretation of decimal notation
2. All event numbers must be 4 digits long or the earth itself will open up to swallow you whole, never to be heard of again
 
Jul 10, 2012 at 10:25 AM
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
Oh.
Well, point 2 still holds.
 
Jul 20, 2012 at 2:09 PM
Been here way too long...
"What're YOU lookin' at?"
Join Date: Oct 17, 2011
Location: probably somewhere else
Posts: 1104
Age: 27
Pronouns: none
why isn't this thread sticky

Anyway, my question.
How to make the weapon fire bullets with a delay, ex. Press X - Fire-4secs delay-fire again if X is pressed
 
Jul 20, 2012 at 3:49 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
Use the Nikumaru Timer offset and calculate the difference between two times. This is how the exp bar flashes at regular intervals when you grab exp.
 
Jul 20, 2012 at 5:38 PM
Been here way too long...
"What're YOU lookin' at?"
Join Date: Oct 17, 2011
Location: probably somewhere else
Posts: 1104
Age: 27
Pronouns: none
How to calculate it???
 
Jul 20, 2012 at 8:18 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
one tick = 1/50 seconds?
(note that this may be erroneous bc I don't know how the nika counter counts up)
 
Jul 20, 2012 at 8:54 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
Actually you don't need to use the Nikumaru timer.
You can use any RAM offset that can be incremented.

Here's code that heals the player every two seconds or so.

Code:
offset 426530
INC [49e2a0]
CMP [49e2a0], 40
JL :no_action
INC [49E6CC]
MOV EAX, [49E6CC]
CMP EAX, [49E6D0]
JL :don't_set_health
MOV EAX, [49E6D0]
MOV [49E6CC], EAX
:don't_set_health
MOV [49e2a0], 0
:no_action
MOV esp, ebp
POP ebp
RETN

Turn the labels into real addresses, or use the Doukutsu Assembler.
 
Jul 22, 2012 at 7:49 AM
Been here way too long...
"What're YOU lookin' at?"
Join Date: Oct 17, 2011
Location: probably somewhere else
Posts: 1104
Age: 27
Pronouns: none
And how does it help my weapon? I still don't know how to block the shot for a short period of time.
 
Jul 22, 2012 at 10:15 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
And how does it help my weapon? I still don't know how to block the shot for a short period of time.

What? Have you forgotten all your assembly?
Just increment some RAM address repeatedly. While it is not a certain positive value, jump to the end of the function (don't shoot the bullet). When it reaches a certain positive value, shoot the bullet and reset the RAM address to 0.
 
Jul 22, 2012 at 1:28 PM
Been here way too long...
"What're YOU lookin' at?"
Join Date: Oct 17, 2011
Location: probably somewhere else
Posts: 1104
Age: 27
Pronouns: none
Ah, I understand now. Thanks.
 
Jul 30, 2012 at 10:41 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Jul 30, 2012
Location: Germany
Posts: 74
Age: 25
Pronouns: he/him
Hy, yes thats my very first Topic, because of that I dosen't want silly answers.
yes when you watch to the topic, then you know what's up, I'm wanting to know,
how I can change the picture of the Snake for my Cave story project.

In my projekt Myseri made the snaik,but Chaba only want to trade it for a fierball
and a polarstar. With this "magik snake" you can destroy the "red kristal"
and when you go to ballos, he's wanting his old life wiht Jenka and Myseri.
In the end Ballos is going to jenka with Myseri, they all are a famyli and they are
helping every mimiga.


Thank for every answer
 
Jul 30, 2012 at 11:06 PM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
Use CaveEditor to change the .pbm extension to .bmp. Also remove the (C)Pixel requirement.

Then use MS paint to open the image in the data folder and modify the snake's image. That's it.
Next time, use the Quick Hacking/Modding Answers Thread.
 
Jul 30, 2012 at 11:08 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Jul 30, 2012
Location: Germany
Posts: 74
Age: 25
Pronouns: he/him
Yes, thaaanks!
 
Jul 30, 2012 at 11:45 PM
Senior Member
"Master using it, and you can have this!"
Join Date: Jul 30, 2012
Location: Germany
Posts: 74
Age: 25
Pronouns: he/him
Everytime when I want to save, is there
"Error saving file"
Why??? and more interesting Wath can I do???
 
Jul 30, 2012 at 11:52 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
Hi

Thanks for not using the quick modding/hacking answers thread like you were asked. I'm going to merge this in a moment.
In the meantime, consider putting some effort into a) not being 12 and b) reading the stickies
 
Jul 31, 2012 at 12:22 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
Everytime when I want to save, is there
"Error saving file"
Why??? and more interesting Wath can I do???

Right click on the game folder and uncheck read-only.
 
Aug 19, 2012 at 1:48 AM
Based Member
"Life begins and ends with Nu."
Join Date: Dec 31, 2011
Location: United States
Posts: 2326
Age: 28
Pronouns: he/him
Does anyone know the <SOU number for the lightning sound? It didn't seem to be listed in TSC.txt. That, or there's something wrong with my eyes.
 
Aug 19, 2012 at 3:42 AM
Not anymore
"Run, rabbit run. Dig that hole, forget the sun."
Join Date: Jan 28, 2010
Location: Internet
Posts: 1369
Age: 34
Pronouns: he/him
Use <SOU0101.

If you ever forget, use SeaTone to listen to all the sounds. The numbers are in hex, so convert them to decimal.
 
Back
Top