Quick Modding/Hacking Answers Thread

Feb 20, 2013 at 2:55 PM
Junior Member
"Fresh from the Bakery"
Join Date: Feb 17, 2013
Location: Belfast
Posts: 18
Age: 25
Pronouns: he/him
How do I change the starting map?
 
Feb 20, 2013 at 3:16 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
Use Cave Editor and change it in Game Options (game settings?) or right-click the map and "set start location"

It's not implemented in BL yet if that's what you're using.
 
Feb 22, 2013 at 3:45 AM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337
How many tilesets can the game handle? I remember in my old mailstory mod i had added 5 new tilesets to the game, and by the 5th the game had trouble and it took a few minutes to get the tileset working without the game crashing.
 
Feb 22, 2013 at 3:48 AM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Pronouns: she/her
I just copypasted all of vanilla's tilesets (so that it had twice as many) and it worked perfectly fine.
 
Feb 22, 2013 at 3:49 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
Um, there's not really any issues with adding new tilesets. Maybe the Tile Types weren't configured well because CE is a bit lazy with memory initialization like that.
 
Feb 22, 2013 at 3:56 AM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337
Noxid said:
Um, there's not really any issues with adding new tilesets. Maybe the Tile Types weren't configured well because CE is a bit lazy with memory initialization like that.
Huh, ok. By the way, how does CE add new tileset's to the game without getting rid of NPC's and stuff?
 
Feb 22, 2013 at 3:57 AM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Pronouns: she/her
They're not even in the exe. A tileset is comprised of a .pbm and a .pxa file.
 
Feb 22, 2013 at 3:59 AM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337
MagicDoors said:
They're not even in the exe. A tileset is comprised of a .pbm and a .pxa file.
Oh, ok. I was wondering what pxa's were.
 
Feb 22, 2013 at 5:01 AM
Junior Member
"Wahoo! Upgrade!"
Join Date: Aug 24, 2012
Location: Stuck inside a warehouse with nothing but a mac an
Posts: 46
Age: 27
Pronouns: he/him
MagicDoors said:
It is, but you'd have to find room to put the code into and also write the actual NPC code.
I'm kinda scared to ask...
but how difficult would it be to copy the data for an original npc and just change the image?

For example, using the save point's data and making another image file with it being blue.
I basically want a save point clone that doesn't ruin the original.
 
Feb 22, 2013 at 11:22 AM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337

I dont know about that.

Also, i'm making a cave story + version of my beta mod, and i used curly story as a base (adding my stages to stage tbl in the slots), and after finally getting the damn thing to work (NiCALiS REALLY needs to fix the way cave story+ handles mods), i added a <TRA command to event #0200 in start.tsc to go to the start level, but it doesn't work, it just loads the mod and has a black screen with the message box sound playing over and over, how do i fix this?
 
Feb 22, 2013 at 2:07 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
Are you remembering the <FAI on your target map?
 
Feb 22, 2013 at 2:08 PM
The Eternal Darkness
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Feb 12, 2012
Location: The Enemy of the Truth
Posts: 314
Age: 109
Pronouns: he/him
Oh, ok. I was wondering what pxa's were.
".pxa" files are basically files that tell the game which tiles are solid, which tiles are spikes, and so on.

Anyway, I don't know if these are quick, but I'll ask anyway.
If the questions are stupid, sorry.

(EDIT: Dammit, stupid IP Board deleted my questions :mad: )

EDIT2:
Question 1:
How many ticks does it take Curly to move forward one tile?
Using the <ANP command to let her walk to the player until she's one step away causes her to walk in the air.

Question 2:
Is there a way to set Experience Capsules so that they appear when a certain flag is set, without creating enough XP to be equal to the flag?
When I tried, it created 1341 XP while I wanted it to create 10 XP :o
It was supposed to appear only when flag 1341 was set.

Question 3:
For some reason, <FLJ is breaking the mod I'm working on.
Flag 1533 hasn't been set yet, but whenever I enter an area (map 101), the event that it should jump to (0095) triggers anyway.
I checked all scripts, even set <FL-1533 after a boss fight, yet it happens anyway even if the flag is still impossible to trigger.
And an H/V trigger that is supposed to appear only when that flag has been set appears whether the flag is set or not.

Question 4:
Is it possible to make invisible moving platforms using an H/V Trigger?
(Yes, this question is entirely random.)
 
Feb 22, 2013 at 2:23 PM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337
Noxid said:
Are you remembering the <FAI on your target map?
Yeah, the <FAI is on the event of the map the start goes to in the plus version, and i made a few changes and now the mod wont even start.

Also just a heads up, the stage.tbl's boosters lab makes do not work in cs+.
 
Feb 22, 2013 at 3:59 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
Eh, the format's about right, but looks like there's some kind of bug making them not all save. Probably has to do with null pointers and stuff.

I'll issue a high-priority fix as soon as I figure out what went wrong.
 
Feb 22, 2013 at 4:10 PM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337
Noxid said:
Eh, the format's about right, but looks like there's some kind of bug making them not all save. Probably has to do with null pointers and stuff.

I'll issue a high-priority fix as soon as I figure out what went wrong.
Ok, also, why are the stage.tbl's it saves set for 1x res? As far as i know, there isn't a version of original cave story that uses stage.tbl.
 
Feb 22, 2013 at 4:18 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
Uh, not sure what you mean by that. You mean when you load a stage.tbl it uses 1x graphics scale?
There's nothing in stage.tbl that says what the tile size should be.
 
Feb 22, 2013 at 4:26 PM
Veteran Member
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Aug 21, 2012
Location: At a computer
Posts: 337
Noxid said:
Uh, not sure what you mean by that. You mean when you load a stage.tbl it uses 1x graphics scale?
There's nothing in stage.tbl that says what the tile size should be.
I mean if i load a stage.tbl created by BL from a mod of original cave story, it shows in 1x scale, but if i open stage.tbl from cave story+, it shows 2x.
 
Feb 22, 2013 at 6:14 PM
Based Member
"Life begins and ends with Nu."
Join Date: Dec 31, 2011
Location: United States
Posts: 2326
Age: 28
Pronouns: he/him
Shane said:
Question 1:
How many ticks does it take Curly to move forward one tile?
15 ticks. (Just tried it myself)
Shane said:
Question 2:
Is there a way to set Experience Capsules so that they appear when a certain flag is set, without creating enough XP to be equal to the flag?
When I tried, it created 1341 XP while I wanted it to create 10 XP :o
It was supposed to appear only when flag 1341 was set.
As you yourself have discovered, the number of power crystals emitted by an energy capsule corresponds to that entity's flag ID.
So first set that energy capsule's flag ID to 10, if that's the amount you want it to give you if you destroy it. Now give that energy capsule an event number. In addition, make that energy capsule a blank entity. After that, add an <FLJ somewhere in the room's script that mandatorily executes before you see the place where the energy capsule is. (I.E., in the room's fade in script, or in which ever event was called by the <TRA that brought you to that room.) Make this <FLJ check for the flag you want (in your case 1341), and if that flag if set, have the event it jumps to change the blank entity into type 253, an energy capsule.
Shane said:
Question 3:
For some reason, <FLJ is breaking the mod I'm working on.
Flag 1533 hasn't been set yet, but whenever I enter an area (map 101), the event that it should jump to (0095) triggers anyway.
I checked all scripts, even set <FL-1533 after a boss fight, yet it happens anyway even if the flag is still impossible to trigger.
And an H/V trigger that is supposed to appear only when that flag has been set appears whether the flag is set or not.
I hate it when stuff like that happens. Sometimes, it's the result of some part of some script setting the flag that you're not aware of. If you haven't already, use either Booster's Lab or Noxid's TSC script editor to generate a flag listing of your mod, and see if that flag isn't being set by some script you're not aware of. If you can't get it to work, then just rewrite all the parts of your mod's scripts that are supposed to use flag 1533, and use a different flag ID. If, after trying everything you could think of, then I hope you've been following a very good fundamental practice that all Cave Story modders should know to do: Back up your game.
Shane said:
Question 4:
Is it possible to make invisible moving platforms using an H/V Trigger?
(Yes, this question is entirely random.)
I believe that would be possible. I haven't tried this myself, but it should work.
Take the entities that are used in the Labyrinth that are moving platforms, and set them up for your own mod. Now take note of where in PrtMaze.bmp the tiles that have the appearance of those moving platforms are, and have that area completely black in your own tileset. Hopefully this will make moving platforms invisible. Just note that using these would crush you if you got in their way.
 
Feb 22, 2013 at 8:01 PM
The Eternal Darkness
"Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-Wacka-BLEIUP"
Join Date: Feb 12, 2012
Location: The Enemy of the Truth
Posts: 314
Age: 109
Pronouns: he/him
15 ticks. (Just tried it myself)

As you yourself have discovered, the number of power crystals emitted by an energy capsule corresponds to that entity's flag ID.
So first set that energy capsule's flag ID to 10, if that's the amount you want it to give you if you destroy it. Now give that energy capsule an event number. In addition, make that energy capsule a blank entity. After that, add an <FLJ somewhere in the room's script that mandatorily executes before you see the place where the energy capsule is. (I.E., in the room's fade in script, or in which ever event was called by the <TRA that brought you to that room.) Make this <FLJ check for the flag you want (in your case 1341), and if that flag if set, have the event it jumps to change the blank entity into type 253, an energy capsule.
Thanks!

I hate it when stuff like that happens. Sometimes, it's the result of some part of some script setting the flag that you're not aware of. If you haven't already, use either Booster's Lab or Noxid's TSC script editor to generate a flag listing of your mod, and see if that flag isn't being set by some script you're not aware of. If you can't get it to work, then just rewrite all the parts of your mod's scripts that are supposed to use flag 1533, and use a different flag ID. If, after trying everything you could think of, then I hope you've been following a very good fundamental practice that all Cave Story modders should know to do: Back up your game.
Thanks.
So, apparently an event in the Sacred Grounds B3 area (that is inaccessible) decided to set itself.

I believe that would be possible. I haven't tried this myself, but it should work.
Take the entities that are used in the Labyrinth that are moving platforms, and set them up for your own mod. Now take note of where in PrtMaze.bmp the tiles that have the appearance of those moving platforms are, and have that area completely black in your own tileset. Hopefully this will make moving platforms invisible. Just note that using these would crush you if you got in their way.
Thanks!

EDIT:
Looks like IP Bored destroys long posts sometimes...
 
Feb 22, 2013 at 8:14 PM
Professional Whatever
"Life begins and ends with Nu."
Join Date: Jan 13, 2011
Location: Lasagna
Posts: 4481
Pronouns: she/her
SirGuy said:
I'm kinda scared to ask...
but how difficult would it be to copy the data for an original npc and just change the image?

For example, using the save point's data and making another image file with it being blue.
I basically want a save point clone that doesn't ruin the original.
Not too hard; just find the code for the entity, duplicate it in place of a different entity, then change the framerects.
 
Back
Top