Jun 27, 2016 at 10:32 AM
Deliverer of Sweets
Bobomb says: "I need a hug!"
Join Date: Jul 20, 2015
Location: Under sea level or something
Posts: 785
Age: 25
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...
Thanks, can you also tell me where the value for the waiting time is(aka the waiting time between shots), if there's any?
 
Jun 27, 2016 at 10:45 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: 23
Thanks, can you also tell me where the value for the waiting time is(aka the waiting time between shots), if there's any?

0x0449B3D:
CMP DWORD PTR DS:[ECX+6C], 14
^ That 14 is the value you're looking for, the delay between attacks. The lower the amount of delay, the faster the attack rate.

EDIT: Looks like that value can go into negative! Start counting from -100 (dec) or -64 (hex), so if you want it to shoot one every frame, you'd CMP DWORD PTR DS: [ECX+6C], -63
 
Last edited:
Jul 6, 2016 at 1:28 AM
Soup Man
"In Soviet Russia, graves keep YOU!"
Join Date: Jul 15, 2014
Location: IN YOUR HEAD, SHIT FOR BRAINS
Posts: 670
Age: 7
Jul 8, 2016 at 4:32 AM
Soup Man
"In Soviet Russia, graves keep YOU!"
Join Date: Jul 15, 2014
Location: IN YOUR HEAD, SHIT FOR BRAINS
Posts: 670
Age: 7
Jul 8, 2016 at 9:02 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: 23
That just changes how the background scrolls, i meant to change how the maps follows you. Is it not posible?
You can't have the background follow you in a special way AND scroll at the same time.
To have the screen follow the player slower, use <FOM0032 or <FOM0064.
 
Jul 8, 2016 at 4:46 PM
Its dark in here
"Deaths: 4000"
Join Date: Nov 21, 2013
Location: farther
Posts: 922
Age: 27
That just changes how the background scrolls, i meant to change how the maps follows you. Is it not posible?
you can change the speed at which it does with the <FMC command, its usually set to 0016 but can be made faster by setting it to a smaller number and slower to a bigger number. just don't set it to 0000 otherwise it will crash
 
Last edited:
Jul 9, 2016 at 1:38 AM
Junior Member
"Fresh from the Bakery"
Join Date: Jun 20, 2016
Location:
Posts: 13
you can change the speed at which it does with the <FMC command, its usually set to 0016 but can be made faster by setting it to a smaller number and slower to a bigger number. just don't set it to 0000 otherwise it will crash
Oh thanks.
 
Jul 13, 2016 at 3:18 AM
Junior Member
"Fresh from the Bakery"
Join Date: Jul 13, 2016
Location: no no no, not today
Posts: 15
Age: 26
Hey, I'm not sure if this is the right place to ask this, but what's the best way to find finished cave story mods? The "Quickie guide to the mods section" has some, but I've played them all, and a lot of the unfinished ones I've tried were either REALLY early when they were abandoned, or the links are dead and I can't download them.
 
Jul 16, 2016 at 11:29 PM
beep boop
Bobomb says: "I need a hug!"
Join Date: Aug 16, 2014
Location: no
Posts: 845
Age: 22
How would I make the walking Shovel Brigade npc change it's sprites based on it's flag id, like in the <MIM command?
 
Jul 19, 2016 at 2:46 AM
Junior Member
"Wow! The more I drink of this magical beverage, the more games I can play! Wheee!"
Join Date: Sep 10, 2012
Location: Liberty City
Posts: 22
Age: 24
How can I have a background fill the entire screen, no tileing? I assume if I make it the same resolution as what the game runs at, it will, but I don't know the resolution.
 
Aug 1, 2016 at 3:34 PM
beep boop
Bobomb says: "I need a hug!"
Join Date: Aug 16, 2014
Location: no
Posts: 845
Age: 22
How fast in Ctone are the text blips?
 
Aug 5, 2016 at 9:04 AM
Junior Member
"Fresh from the Bakery"
Join Date: Dec 2, 2015
Location:
Posts: 14
Age: 28
How would I go about adding a background to the Title Screen?
 
Top