• Hey everyone happy Christmas Eve we're aware of what's happened with the source code so to keep this simple absolutely don't post it on the site or use it to make mods with (it's not particularly preferable toward this end anyway) and tread lightly in general until we see how this settles, thanks to all and have a great holiday season -DT

Changing your Character...

Mar 27, 2008 at 9:33 PM
Novice Member
"Officially Worth 1 Rupee"
Join Date: Mar 27, 2008
Location:
Posts: 1
Hey Doukutsu fans! I'm new to the community, but not new to Cave Story. I would love to begin creating my own mod ( A completly different take on the game... through curly's side of the story, and modified a little bit... :cool: ) But I'm noo good at scripting and my best editor is paint, so I'm stuck asking the basic question... How can you change the Avatar for the main character? I can do King's easily, but I cannot figure out how to get rid of the Mimigma in front of Curly's avatar... anybody wanna help me on this one?
 
Mar 27, 2008 at 11:25 PM
Starbound sucked sadly
"Life begins and ends with Nu."
Join Date: Jan 7, 2007
Location:
Posts: 2587
Age: 34
AntiHero said:
Hey Doukutsu fans! I'm new to the community, but not new to Cave Story. I would love to begin creating my own mod ( A completly different take on the game... through curly's side of the story, and modified a little bit... :cool: ) But I'm noo good at scripting and my best editor is paint, so I'm stuck asking the basic question... How can you change the Avatar for the main character? I can do King's easily, but I cannot figure out how to get rid of the Mimigma in front of Curly's avatar... anybody wanna help me on this one?

this should be in the hacking section,
i got no experience with modding so ^^'
someone else will tell you how
 
Mar 28, 2008 at 12:43 AM
It's a Sony
"Keep on rollin'!"
Join Date: Mar 7, 2008
Location:
Posts: 460
Age: 33
Well I never managed to find a direct answer searching this forum, but through some tricky Google searching I finally discovered that the .pbm files in your "data" folder are actually renamed .bmp files, with Pixel's signature written into the binary (otherwise doukutsu.exe won't read it).

I'd advise against using Paint since it's going to blow up the filesize enormously (I'm not sure; does Paint have an indexed color option for BMPs? I'm fairly certain only more advanced apps like Photoshop would have that) but if that's all you have it shouldn't be too bad.

You need to download a hex editor, apparently the advised one is XVI32. What you do is, take the file MyChar.pbm from the data folder, rename it MyChar.bmp, if you have to you might need to right-click on the file and deselect "read-only." Open MyChar.bmp in Paint. You may also want to go to the NPC folder and find and convert to bmp the "NpcRegu.pbm" file, since that contains Curly's sprites (NpcCurly.pbm contains Curly's boss sprites, and I don't think it has all the necessary poses). Change Quote's sprites to match Curly's, then save. You might have to play around with the files and saving since Pixel's files are all indexed color: that is to say you can't have any new colors in the image, since the specific colors used are written into the file itself. Once you have your new MyChar.bmp, copy it (or don't, if you don't want to; I like to keep copies of my original images) and convert to MyChar.pbm. Then (and this is important, or it will crash Doukutsu.exe) open MyChar.pbm in XVI32, go to the VERY end of the file, go edit->Insert string and insert a "(C)Pixel" exactly as I've typed it here. Make sure it's lined up so the VERY LAST SPACE in the file is the "l" in "Pixel," I'm probably doing it wrong but every time my (C)Pixel always ends up a space from the end so I have to overwrite it... but anyway, save it, copy it into your data folder, overwriting the original MyChar.pbm, and it should work.

Something on a related vein is the spritesheet layout, so you don't "go outside of the lines" so to speak.

The spritesheets are actually laid out, in general, in 16x16 pixel squares; in general, I say, because sometimes Pixel further subdivides to 8x8 pixel squares. Therefore you actually often have more room than the smallest rectangle that will surround a sprite; I figured that one out by turning Igor into a sprite a good deal taller and a bit wider.
 
Mar 28, 2008 at 1:49 AM
Administrator
Forum Administrator
"Life begins and ends with Nu."
Join Date: Jul 15, 2007
Location: Australia
Posts: 6225
Age: 39
Pronouns: he/him
Lyger said:
I'd advise against using Paint since it's going to blow up the filesize enormously (I'm not sure; does Paint have an indexed color option for BMPs? I'm fairly certain only more advanced apps like Photoshop would have that) but if that's all you have it shouldn't be too bad.
You are better off using Fireworks because it has many options for working with indexed images. Look for an option called "export wizard".
 
Mar 28, 2008 at 2:42 PM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Couldn't you just ignore MyChar.pbm, edit NpcRegu.pbm, and then rename it MyChar.pbm, replacing the original?
 
Mar 28, 2008 at 2:56 PM
It's a Sony
"Keep on rollin'!"
Join Date: Mar 7, 2008
Location:
Posts: 460
Age: 33
You could, but you'd have to make sure all the sprites are in the exact right places... easier with a program with layers, really... :/
 
Mar 28, 2008 at 5:13 PM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Like the GIMP!
 
Back
Top