Cave Story profile.dat hacking guide Version 1.0 Date: 2005-04-24 This guide is copyright (C)2005 Mitchell "Noxious Ninja" Mebane Thanks to Pixel for making this game, The guys at AGTP for translating it, and the guys at the ZSNES Board for getting me into the game, and encouraging me in this guide. A few bits of info in here may have come from some of them. Feel free to do whatever you want with this guide, except claim you wrote it in whole or in part. If you find any errors in this guide, or wish to make a suggestion, email me at noxious_ninja@yahoo.com. 1.0) First major release. Lots of this has been posted at the ZSNES Board, but not in this form. Some sections are incomplete, and I may or may not ever complete them. In particular, the "Misc Events" section covers script state, and I have absolutely no intention of ever finishing that. --- All numbers are in hex unless otherwise noted! Addresses are zero-based - i.e., the first byte of the file is 000. xxx/y = Byte/bit For bits, 1 is the LSB and 8 is the MSB. --- 000-007: Version code. This guide covers version Do041220, generated by Cave Story 1.0.0.5. This guide may or may not work with other versions. Health: 01C: Max Health, low byte 01D: Max Health, high byte 020: Current Health, low byte 021: Current Health, high byte The maximum health the game will allow is decimal 9999, or 270F. Equipped Items: 1 = equipped/enabled, 0 = unequipped/disabled None of these switches seem to actually require the item to be in your inventory. 02C/1: Booster v0.8 278/7: Equipped message 02C/2: Map button 02C/6: Booster v2.0 278/8: Equipped message 02C/8: Whimsical Star 276/3: Equipped message 01E/1: Whimsical Star "activated". Activated means the green sparks are flying. Disregarded when Whimsical Star is not equipped. Normally in the game, it is activated by getting one experience piece, and AFAICT can never be de-activated. Weapons: Ammo counters go up to decimal 9999, or 270F For the max ammo slots, 00 means infinite ammo. When set to infinite, the current ammo value is disregarded. 024: Currently selected weapon, 00 - 04 038: Slot 1 weapon 03C: Slot 1 lvl. 040: Slot 1 exp. 044: Slot 1 max ammo, low byte 045: Slot 1 max ammo, high byte 048: Slot 1 current ammo, low byte 049: Slot 1 current ammo, high byte 04C: Slot 2 weapon 050: Slot 2 lvl. 054: Slot 2 exp. 058: Slot 2 max ammo, low byte 059: Slot 2 max ammo, high byte 05C: Slot 2 current ammo, low byte 05D: Slot 2 current ammo, high byte 060: Slot 3 weapon 064: Slot 3 lvl. 068: Slot 3 exp. 06C: Slot 3 max ammo, low byte 06D: Slot 3 max ammo, high byte 070: Slot 3 current ammo, low byte 071: Slot 3 current ammo, high byte 074: Slot 4 weapon 078: Slot 4 lvl. 07C: Slot 4 exp. 080: Slot 4 max ammo, low byte 081: Slot 4 max ammo, high byte 084: Slot 4 current ammo, low byte 085: Slot 4 current ammo, high byte 088: Slot 5 weapon 08C: Slot 5 lvl. 090: Slot 5 exp. 094: Slot 4 max ammo, low byte 095: Slot 4 max ammo, high byte 098: Slot 4 current ammo, low byte 099: Slot 4 current ammo, high byte Value listing for weapon slots: 00 = No weapons in this slot and following slots. 01 = Snake 02 = Polar Star Levels outside of normal range == Snake lvl 1 behavior Max exp @ lvl 3 = 09 03 = Fireball Max exp. @ lvl 3 = 14 04 = Machine Gun 05 = Missle Launcher 07 = Bubbler 09 = Blade 0A = Super Missle Max exp. @ lvl 3 = 0A 0C = Nemesis 0D = Spur Other values for weapon slots: 06 = Broken Bubbler with a triple-normal-missle icon 08 = Broken Blade with a solid green icon 10 = Hajime It does nothing and has no icon. 0B = Broken Nemesis with a triple-super-missle icon 0E-0F = Hajime A0 = Blank icon, description says: Jenka's pet and leader of the dogs. while searching for his brothers, he got lost and was taken in by Curly. Note: I have not yet tested codes above 0F, except for A0 on accident. Items: 0D8: Item 1 0DC: Item 2 0E0: Item 3 0E4: Item 4 0E8: Item 5 0EC: Item 6 0F0: Item 7 0F4: Item 8 0F8: Item 9 0FC: Item 10 100: Item 11 104: Item 12 108: Item 13 10C: Item 14 110: Item 15 114: Item 16 118: Item 17 11C: Item 18 120: Item 19 124: Item 20 128: Item 21 12C: Item 22 130: Item 23 134: Item 24 Value listing for item slots: 00 = No item in this and following slots 01 = Arthur's Key The key to Arthur's house. It was hidden near Arthur's gravestone. 02 = Map System 03 = Santa's Key The key to Santa's house. 04 = Silver Locket A silver locket in the shape of a fish. From the condition it's in, it looks like it's been treasured for years. 05 = Beast Fang -- ??? A sharp fang found at the Yamashita Farm. Is its owner still alive...? 06 = Life Capsule -- Worthless, as it can't be used. A life capsule. 07 = ID Card An ID Card found in Egg No. 06. 08 = Jellyfish Juice A fluid that can quench fireplaces. 09 = Rusty Key A rusty key. 0A = Gum Key A tag says "Gum". 0B = Gum Base A clump of gum. 0C = Charcoal Taken from a fireplace. 0D = Explosive An explosive for blowing up doors and such. 0E = Puppy Jenka's pet dog. 0F = Life Pot This will restore your life, but only once. Will you use it? 10 = Cure-All Apparently, this cures anything and everything... 11 = Clinic Key It says "Labyrinth Clinic". 12 = Booster v0.8 Push the jump button again in midair to fly even higher. 13 = Arms Barrier When you take damage, the amount oweapon energy lost will be halved. 14 = Turbocharge Increases the rate at which the machine gun replenishes ammo. 15 = Curly's Air Tank You can breathe underwater with this. Curly used to use it. 16 = Nikumaru Counter A fully automatic stopwatch. You can't see any buttons. 17 = Booster v2.0 Push the jump button in midair and you can move in any direction. 18 = Mimiga Mask -- It can't be worn A Mimiga mask Sue's mother made. It's a bit big... 19 = Teleporter Room Key A key fish out by a certain Mimiga. 1A = Sue's Letter Will you read it? 1B = Controller Necessary to make a rocket. Pride of Itoh, the cowardly man. 1C = Broken Sprinkler A busted water sprinkler. 1D = Sprinkler It's brand-new. ...Perhaps. 1E = Tow Rope A tow rope for robots. 1F = Clay Figure Medal Small and profoundly heavy. It has no use. 20 = Little Man Hey! We there yet? 21 = Mushroom Badge The mushroom badge you got from the mushroom. It has no real use. To be honest, you don't really need it... 22 = Ma Pignon Allegedly, it has the power to restore memories... 23 = Curly's Underwear Retreived from behind the wall. Yellow-green panties with a cute little insignia. They have no use. 24 = Alien Medal Engraved with the silhouette of an alien. It has no use. 25 = Chaco's Lipstick Red lipstick. It has no use. 26 = Whimsical Star A little trinket you got from Chaba in the labyrinth. A whimsical star. 27 = Iron Bond Your tie to Curly Brace, the only warrior you would trust your back to. Surely you will meet again one day... 28-29 = No Item -- Blank filler Note: I haven't tested item values above 29, but I assume they all are "No Item" Chests: 1 = collected, 0 = not collected 2E9/1: Chest with Polar Star in Hermit Gunsmith's shop The cutscene after getting the Polar Star is triggered by opening this chest. 21C/1: Unknown, gets set to 1 after getting the Polar Star. Does NOT control the cutscene 244/3: Map chest in Mimiga Village Health Containers: 1 = collected, 0 - not collected 242/1: First Cave, 3 HP Misc Events: 241/5: Evil door in first cave destroyed Upon leaving First Cave the first time, the following flags are set: 241/6 - Kazuma's "feeding on cockroaches" spiel + the falling animation and the first fight between King and Toroko + King getting knocked back 244/1 - 0 = King and Toroko's pre-fight positions, 1 = Toroko gone and King not in original position 244/2 - 0 = King will appear in the knocked-back position, 1 = He will not appear there. 2E9/2 - 0 = The sleeping Hermit Gunsmith will be in his shop, 1 = He will be gone 2E9/3 - 1 = The sign that says "Out" will be in the Hermit Gunsmith's shop, 0 = It won't