Glitch City Laboratories Forums

Lab δ: Tech => Emulation & ROM Hacking => Topic started by: Stormxeaglex on June 12, 2018, 06:46:29 pm

Title: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Stormxeaglex on June 12, 2018, 06:46:29 pm
So It has recently come to my attention that the ROMs for the generation two prototype that was shown at Space World 1997 has been leaked. I was really excited to hear this and downloaded the Gold Debug ROM and started exploring its contents. I decided to spend some time looking at the ram of these games to develop some useful Gameshark codes for anyone playing around with these ROMs. I used the Gold Debug ROM which I downloaded off The Cutting Room Floor so these codes might only work in that version or they could work in all of them.

Cheat Codes
01XX39CC- Allows you to set the map to warp to when using the debug warp feature. Replace the XX with the Map Name ID

01XXC0CD- Allows you to set the room to be loaded when you enter a warp. Replace the XX with the Map ID of the Room

01XX02CE- Allows you to set the trainer class to be fought when you are entering a battle with a trainer. Replace XX with Trainer Class ID

01XX05CE- Allows you to set the trainer loadout to be fought when you are entering a battle with a trainer. Replace XX with the Hex ID of the loadout you want

01XXD7CD- Allows you to set the Species of wild pokemon to be encountered. Replace XX with the ID of the pokemon

01XXBBCD- Allows you to set the Level of the wild pokemon being encountered. Replace XX with the Level you want

01XXA7C1- Allows you to set the Music to be played when entering a new area. Replace XX with the Music you want to play

01XX39C0- The Warp code with a typo so it doesn't warp you, but that random typo makes the code play a nice song so I might as well include it in the list. Replace XX with 20

Hopefully they are of use to people checking out these games for the secrets they have to offer  :)

Also I am including a link to the google spreadsheet made by The Cutting Room Floor which has a hex list so people will know what result they will get by putting in a certain hex into the codes
https://docs.google.com/spreadsheets/d/1B5epMdm1Wcvh33qFABpw-SO76uZt6WNSl0UsD5yq_dI/htmlview (https://docs.google.com/spreadsheets/d/1B5epMdm1Wcvh33qFABpw-SO76uZt6WNSl0UsD5yq_dI/htmlview)

(Update)
I went ahead and converted the raw codes into Gameshark codes. They should all work but I only tested the map loading one which showed the most interest. The reason why they weren't Gameshark codes in the first place was because I use Bizhawk as an emulator and Bizhawk has its own way of doing cheat codes. Cheats in that emulator are just telling Bizhawk to freeze a memory address and put in some value but ignorance lead me to think that they would be Gameshark codes.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: jo12100 on June 13, 2018, 04:20:16 pm
I'm really interested by the warp code however yours don't work.

Here's for example the Gameshark one for modifying wild Pokemon 01XXD7CD.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: ISSOtm on June 14, 2018, 08:22:42 am
OP's codes are not GameShark codes. Not sure what they're supposed to be.
If you need addresses, you can check out the disassembly, here (https://github.com/pret/pokegold-spaceworld/blob/master/wram.asm) and here (https://github.com/pret/pokegold-spaceworld/blob/master/shim.sym).
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: jo12100 on June 14, 2018, 02:57:42 pm
So what would be Gameshark codes for Warps?
In the dissassembly I found many mentions to warp but none of them worked.

Thanks in advance.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Stormxeaglex on June 15, 2018, 11:34:55 am
I have two warp codes, the first just changes which map you will warp to when warping in the field debug menu while the room warp code changes where warp tiles take you. Each map has its own separate rooms that will load, so the room at hex #$01 on one map would be different then the room at hex #$01 on a different map.

The codes themselves just are the first 4 digits which is the ram value being frozen and the last 2 are the value being written to the ram.

Ram address $CC39 is the place in memory which stores the room being warped to by the debug menu's warp feature
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Stormxeaglex on June 15, 2018, 04:51:07 pm
New Codes

01XXB4D6- Allows you to set the 1st move of the 1st pokemon in your party to whatever you want. Replace XX with the Move ID
01XX9FD1- Allows you to set the ID of the 1st item in your bag. Replace XX with the item ID
01XXABD6- Allows you to set the Species of the 1st pokemon in the party. Replace XX with the Hex ID of the pokemon species
01XXD1D6- Allows you to set the level of the 1st pokemon in the party. Replace XX with the level you want set
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: ISSOtm on June 15, 2018, 05:25:15 pm
Ram address $0C39 is the place in memory which stores the room being warped to by the debug menu's warp feature
0C39 is ROM, not RAM.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: xeno on June 15, 2018, 06:43:16 pm

I'm going to ask a stupid question...what is the map code for the map ID taking from? I'm unsure if its actually the map ID...
I probably just don't know how to use it, but I'm trying to use the map ID code: 01XXC0CD.

But no matter what I do, it does not produce the expected parameters. For instance, I put in, 04 instead of xx, and it does take me to ROUTE_1_GATE_1F, but then the warps go haywire and takes me to an old couples house, and then to the void, but not in old town...

Then I tried using 16, and instead of taking me to Old town, it takes me to sugar town, and then takes me to a house(call center?) in West town, then it takes me silph co(?), then to a kids house, then to the void. I apologize, I'm just confused...
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Stormxeaglex on June 16, 2018, 06:29:47 pm

I'm going to ask a stupid question...what is the map code for the map ID taking from? I'm unsure if its actually the map ID...
I probably just don't know how to use it, but I'm trying to use the map ID code: 01XXC0CD.

But no matter what I do, it does not produce the expected parameters. For instance, I put in, 04 instead of xx, and it does take me to ROUTE_1_GATE_1F, but then the warps go haywire and takes me to an old couples house, and then to the void, but not in old town...

Then I tried using 16, and instead of taking me to Old town, it takes me to sugar town, and then takes me to a house(call center?) in West town, then it takes me silph co(?), then to a kids house, then to the void. I apologize, I'm just confused...

Whats happening to you is when you enter the warp its taking you to a different city. When you enter a new city it changes the rooms loaded. Its kind of like when you go to glitch city in the Generation 1 games. The game tries to load the map for Fuchsia City but because your not in Fuchsia City when you preform the glitch, it tries to load the map with the same Map ID as Fuchsia City but ends up loading something different like a house or glitch city itself. In your case these warps kept loading different city's so I understand if it was confusing.

For the actual Hex ID's you can find them on this google spreadsheet https://docs.google.com/spreadsheets/d/1B5epMdm1Wcvh33qFABpw-SO76uZt6WNSl0UsD5yq_dI/htmlview# (https://docs.google.com/spreadsheets/d/1B5epMdm1Wcvh33qFABpw-SO76uZt6WNSl0UsD5yq_dI/htmlview#). Just click on the tab that says Maps and Under the Column Labeled Map You will find the ID's of the maps. Also You can look under the group Column to see which area this map loads in. The group the map is in is the same number as the Hex ID of the area which you can find under the Map Names Tab.(P.S. I don't remember if you have to subtract 1 from the Hex ID of the map and put that in the code. If the code loads the wrong map try doing this.)
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: xeno on June 17, 2018, 12:53:09 pm
OH! That makes total sense. I'm sorry.
That makes a lot of sense to why it was warping me to random places outside the maps (like the void) :)

Thank you very much :)
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: MewFlare on November 19, 2018, 10:07:38 am
Is there a hex list for the demo? I looked around but could only find hex lists for the released games :/ Unless item IDs are the same as the final.

Also, is there a code to change item quantity? Being able to easily get 255 Master Balls and Rare Candies would be a HUGE help on my quest to research the demo glitchmons.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Sherkel on November 19, 2018, 12:55:15 pm
Is there a hex list for the demo? I looked around but could only find hex lists for the released games :/ Unless item IDs are the same as the final.

Also, is there a code to change item quantity? Being able to easily get 255 Master Balls and Rare Candies would be a HUGE help on my quest to research the demo glitchmons.
For Pokémon species, the index numbers follow the Pokédex numbers, starting at $01. Here are item hexes from the disassembly (https://github.com/pret/pokegold-spaceworld/blob/master/constants/item_constants.asm). ASM instructions will be the same.

When catching the glitch species, I believe I used the built-in debug features to get Master Balls. For what it's worth I'll just attach the savestate I kept loading from. The GlitchDex has some basic info on them already (https://glitchcity.info/wiki/GlitchDexJP#Japanese_Gold.2FSilver_Demo_GlitchDex), but there is still more to be found if you want to do that!
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: MewFlare on November 19, 2018, 02:08:36 pm
I checked TCRF but there doesn’t seem to be any debug features that allow you to add items into your inventory, just a shop menu that supposedly doesn’t work.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Sherkel on November 19, 2018, 02:23:38 pm
I checked TCRF but there doesn’t seem to be any debug features that allow you to add items into your inventory, just a shop menu that supposedly doesn’t work.
You're probably right. I think I just modified the address and quantity manually. The savestate should have Master Ball x0 in the bag.
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: MewFlare on November 19, 2018, 02:36:48 pm
Thanks :] but do you have a savestate that also has Rare Candy x255?
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Sherkel on November 19, 2018, 03:01:34 pm
Never mind, that savestate doesn't load for some reason. Want to take a break from this now, but to get this out of the way:
D19F is item 1 ID; set it to 01 for Master Balls. Then set D1A0 to FF for 255 of them. Set D19F (or D1A1) to 20 for Rare Candies, then D1A0 (or D1A2) to FF for 255 of them. I've attached a cheat list with these. Hope this helps!
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: MewFlare on November 19, 2018, 03:04:20 pm
Thank you! Gotta figure out how to make Gameshark codes from those since i’m not sure if SameBoy has a memory editor, and even if it does I have no idea how to use one :/
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: Sherkel on November 20, 2018, 06:52:23 am
Thank you! Gotta figure out how to make Gameshark codes from those since i’m not sure if SameBoy has a memory editor, and even if it does I have no idea how to use one :/
If you open the .CHT as text, they are already in Gameshark format. If you use BGB, though, you can load it directly.

(Moved to Emulation & ROM Hacking)
Title: Re: Gameshark codes for the leaked Pokemon Nintendo 1997 Space World Demo
Post by: MewFlare on November 20, 2018, 08:01:57 am
My mistake, I meant mGBA. That’s why I shouldn’t do stuff like this when I’m tired!