Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2011-11-25 22:44:40

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,043/2,925

Creating a working Town Map item!

Creating a "Town Map" tutorial

Ever wanted to do away with the Pokegear and go back to a simpler time, when we carried around a map? Now you can! In this tutorial, I will explain how I set up the Town Map item in Pokemon Secrets and Rumours. The item works almost perfectly, although there is a very minor pallet bug when you return to the bag. When I fix the bug, I'll update the code in this tutorial.

What you will need:
-Pokemon Silver Rom
-Hex Editor
-Item Editor GSC

Before getting started:
The first thing you want to do is decide which item you will be replacing to create your new item. The best route is to replace one of the Teru-Sama items. In SaR, I replaced item number x32, but you can use any item you want. The existing(non functional) beta town map item is the Teru-Sama x06, if you want to replace that one.

Getting Started- The Easy part:
Now let's open up our rom in the Item Editor and load the item we decided on. The first thing we will want to do is get its item data set up appropriately.

As the Town Map is a key item, we'll set the price to 0. All key items have it set to 0, because you can't buy or sell them anyway.

For the "Effect" and "Var." bytes, we will set these both to "00". As the item has no effect in the typcial sense, and no supporting variable for this effect, we set these to 00.

For the Pocket, we will choose "Key". This tells the game that it goes in the Key Items pocket with our other Key Items.

For Use, we will type "C0". This gives us the "Use" and "Quit" options in the pack, and only the "Quit" option when in battle. This is what we want.

For the Type, we will put "50". This makes it behave the way we want it to when it runs the item's ASM script.


For ASM Pointer, type in "1844". This should tell it to load the data for the Town Map when you access it. This will make the item function like the Town Map you find on the wall of almost every NPC house in the game.

The only bug with this is that the colours will look a little off when you return to the menu after viewing the map, because it will load the map pallets instead of the menu pallets. I'm working on a fix for this. My plan for fixing this will be to write a small code which will call the Town Map code, then draw the correct pallets to the screen after returning. I'll be taking a look through the thread we've all read a hundred times from Acmlm's board. (HyperHacker vs Tauwasser in Battle Tileset Hack)

Also please note, this code has been tested on Silver only, the offset in Gold is different, but I will post the pointer to use in Gold Version once I find it.

Last edited by Mateo (2012-01-29 07:01:37)

Offline

#2 2011-11-29 23:04:39

tysonrss
Member
From: US, Ohio
Registered: 2011-08-27
Post 235/649

Re: Creating a working Town Map item!

Interesting. I missed this. But I decided to go without it and use the Pokegear as a protoype instead.


Pokemon Blue DX is reborn!

Offline

#3 2011-11-29 23:39:15

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,058/2,925

Re: Creating a working Town Map item!

That's cool, its however you want to do it after all. But that reminds me that I need to look up the value for Gold Version and Crystal Version so I can update this. Maybe add screenshots too.

Offline

#4 2012-01-29 06:36:31

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 88/516
Website

Re: Creating a working Town Map item!

@Mateo, first open pokemon rom on item editor GSC
Then, I edit Teru-Sama item (after poke ball position) and change the "Val" and "Effect" to "00".
Then, for item choose "Key", for use enter "C0", for type enter "50", and for ASM Pointer type "1844"
And Save it...,After I buy in Cherrygrove market, why the Teru-sama doesn't work and make crash the game.
Why it happen?
Pleasssse answer..,


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#5 2012-01-29 07:01:18

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,205/2,925

Re: Creating a working Town Map item!

Which version of the ROM are you using? The tutorial said it has only been tested on Silver, and Gold most likely uses a different ASM pointer that I haven't looked into yet. I should probably make that more clear in the first post.

Offline

#6 2012-01-30 08:35:51

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 89/516
Website

Re: Creating a working Town Map item!

@Mateo, I have try this tutorial in my pokemon gold rom
But, it doesn't work


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#7 2012-01-30 17:37:15

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,206/2,925

Re: Creating a working Town Map item!

Alright, when I'm not in class I will look up the offset to use for Gold version (and Crystal hopefully) and update this tutorial to work for all three.

Offline

#8 2012-01-30 18:14:55

Miksy91
Member
Registered: 2010-10-16
Post 756/2,143

Re: Creating a working Town Map item!

To hacker, read this topic about item editing: http://mail.pokecommunity.com/showthread.php?t=116847

As you can see, KBM explains that "each one of these points to an ASM Script, and the pointer is 2 bytes long, and MUST be inside the same bank. Example, if you change one of the pointer to 2669 (Which translates to E926 for this bank) it will become a Pokeball."

Now, as Mateo wrote above, the pointer leading to asm of town map is 1844 in Silver (U) so let's go to the offset where that pointer leads:

0xC000 + 0x4418 - 0x4000 = 0xC418

In that offset you see the following bytes: C8 0E 2C 3E... so let's search for them with Gold (U) as the base rom and we come up with offset 0xC41A.
And the pointer to that offset can be calculated the same way:

0xC000 + 0x[Pointer] - 0x4000 = 0xC41A
--> [Pointer] = 0x441A --> 1A 44

Last edited by Miksy91 (2012-01-30 18:28:30)

Offline

#9 2012-01-30 21:12:29

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,207/2,925

Re: Creating a working Town Map item!

^ Thanks Miksy! You did my work for me, and in a much better fashion by explaining the steps I was going to take, instead of just taking them and posting the end results. I'll still get the offset for Crystal though and update the first post though at some point.

Offline

#10 2012-01-31 04:38:58

Miksy91
Member
Registered: 2010-10-16
Post 758/2,143

Re: Creating a working Town Map item!

No problem :)

Mateo wrote:

The only bug with this is that the colours will look a little off when you return to the menu after viewing the map, because it will load the map pallets instead of the menu pallets.

I'm not saying this can be easily fixed but still, it shouldn't be too hard to be done.
I'll check the asm routine later and see if I can find a way to make the game not to go to the menu after town map is closed with B button.

When town map is closed, the game tries to return to the in-game engine but instead goes to the menu because it was loaded before hand.
I could try to make it not remember that town map was loaded from the menu so that way it should work.

Last edited by Miksy91 (2012-01-31 05:22:27)

Offline

#11 2012-01-31 14:13:40

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 98/516
Website

Re: Creating a working Town Map item!

@Miksy91, what you mean "Example, if you change one of the pointer to 2669 (Which translates to E926 for this bank) it will become a Pokeball."?
Do you mean if I change the pointer of item to 2669 it will to be a pokeball?


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#12 2012-01-31 14:18:09

Miksy91
Member
Registered: 2010-10-16
Post 762/2,143

Re: Creating a working Town Map item!

hacker wrote:

@Miksy91, what you mean "Example, if you change one of the pointer to 2669 (Which translates to E926 for this bank) it will become a Pokeball."?
Do you mean if I change the pointer of item to 2669 it will to be a pokeball?

It acts like one but each ball in the game uses the same pointer: for example both Master Ball and Poke Ball are different although both of them have 2669 as the ASM pointer.

ASM pointer points to an asm code - it doesn't tell anything of how the item works in the gameplay.
The asm code then again defines how the item works (=in E926 is assembly code that determines how each ball works in the gameplay).

Try what happens if you for example change Antidote point to 2669 and put in in ball pocket and use the same "Use" and "Type" bytes as balls do.
I believe the game will freeze when you try to throw it though (if you even can try to throw it).

Last edited by Miksy91 (2012-01-31 14:20:32)

Offline

#13 2012-01-31 14:23:06

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 102/516
Website

Re: Creating a working Town Map item!

So, if I want to make town map on teru-sama...
What ASM pointer I'am use?
"1844" or "4418"?


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#14 2012-02-01 17:32:13

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,208/2,925

Re: Creating a working Town Map item!

when I said 1844, that was exactly the way to type it into the pointer box.

Offline

#15 2012-02-02 10:14:03

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 108/516
Website

Re: Creating a working Town Map item!

Ok,Mateo
Thank you !


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#16 2012-02-04 06:29:26

Melash
Member
Registered: 2010-10-16
Post 83/132

Re: Creating a working Town Map item!

I would definitely like to see a fix that will cause the game to return to the ingame engine rather than the menu. Really anything to fix that aesthetic bug.

Offline

#17 2012-02-05 00:15:21

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 113/516
Website

Re: Creating a working Town Map item!

@Mateo, did you know how to create a working phone?
(It means, we can use an item for called and registered trainer's phone number)
Pleasse answer,.,


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#18 2012-02-05 07:18:54

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,211/2,925

Re: Creating a working Town Map item!

Hmm, I haven't actually looked into that one yet, but I'm sure it would be doable. All we would have to do is document where the code for the Cell Phone part of Pokegear is and have an item call it, I would assume. It might be a little more complicated though because it probably would not be in the same bank (we got lucky with the Town Map that its code and the items' scripts were in the same bank already) and you would probably have to modify it some, since it is designed to be a page in the Pokegear and allows you to switch to other pages in the gear. But it would be doable. I just don't know how yet.

Offline

#19 2012-03-03 13:42:41

hacker
Member
From: Batam Grove City
Registered: 2011-07-30
Post 124/516
Website

Re: Creating a working Town Map item!

@Mateo, Do you know how to create a working town map for Pokemon Gold?


[POKÉMON JOURNEY] hacking planning 2012
Visit my website  www.pokemonhackingblog.blogspot.com

Offline

#20 2012-03-03 15:34:33

FireSlasher
Member
From: massachusetss
Registered: 2011-06-24
Post 89/178
Website

Re: Creating a working Town Map item!

I did this for Pokemon Gold, Using 1A44 as the ASM pointer, and I got an error code, "mismatch", what was I doing wrong =0?
EDIT: I fixed the error, but it doesn't load as a Town Map when I put it in my game, I replaced the Mint Berry for it and put what would be the Mint Berry in the starting map, but when I pick it up, it's just a plain old Mint Berry, why didn't it change =0?
EDIT2: I used the first Teru Sama in the game now, and to test it I put it into the Cherrygrove Mart, but it still doesn't load as a Town Map..

Last edited by FireSlasher (2012-03-03 23:40:07)


I'm working on Sterling Silver: Cry of Celebi, if you have any questions, suggestions, or comments, feel free to email me

Offline

#21 2012-04-08 08:38:25

jwibagi
Member
From: Route 29
Registered: 2011-05-13
Post 229/750

Re: Creating a working Town Map item!

Has anyone found a fix for the aesthetic bug yet? I'd like to implement this into my hack with errors free. I do not mean to sound whiny and I apologize in advance for it.

By the way, @Mateo, I think you could improve this tutorial by adding a precursor "doing away with the PokeGear" section that explains how to disable the option for PokeGear.


On a long break until my computer arrives.

Offline

#22 2012-04-08 16:23:22

Miksy91
Member
Registered: 2010-10-16
Post 848/2,143

Re: Creating a working Town Map item!

It's not an impossible bug to fix but doing it requires a lot of coding (and I don't know how to do that either).
I've a feeling KBM, IImarckus and Tauwasser could to do it though (after some investigation).

About taking out Pokegear, write these bytes in the following offsets:
0x181666 - 03 75
0x18169F - 54 03 B4

That way, some of the code is skipped but it's probably the most newbie-friendly way of doing the job (requires text editing to work properly though).

Last edited by Miksy91 (2012-04-08 16:23:56)

Offline

#23 2012-08-03 20:26:38

PixelEye
Member
From: Philippines
Registered: 2012-08-02
Post 8/162
Website

Re: Creating a working Town Map item!

Is this can be applied on Crystal?


LIKE US on Facebook!
---
Berries Inc.,Corp. Graphical Resource
---
I'M BACK, BUT MY WORKS BEEN ACCIDENTALLY DELETED ON MY PHONE(INCLUDING MY HACK THAT I'M DOING AND GEN 5 SPRITES AND TILESETS). SO THE SOLUTION WILL BE REVISING MY WORKS FROM 0 TO 456.

CHEERS.

Offline

#24 2012-08-03 20:38:43

Mateo
Member
From: PHO usually
Registered: 2009-11-25
Post 1,460/2,925

Re: Creating a working Town Map item!

The ASM pointer to use would be different, but the same principle should work. I haven't looked into Crystal that thoroughly to know which pointer to tell you though.

Offline

#25 2012-08-04 03:29:25

PixelEye
Member
From: Philippines
Registered: 2012-08-02
Post 10/162
Website

Re: Creating a working Town Map item!

Oh well, I'll keep to search..thanks bro.

Cheers.


LIKE US on Facebook!
---
Berries Inc.,Corp. Graphical Resource
---
I'M BACK, BUT MY WORKS BEEN ACCIDENTALLY DELETED ON MY PHONE(INCLUDING MY HACK THAT I'M DOING AND GEN 5 SPRITES AND TILESETS). SO THE SOLUTION WILL BE REVISING MY WORKS FROM 0 TO 456.

CHEERS.

Offline

Board footer

Powered by FluxBB