Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 34/64

GSC Town Map Editor - Updated 7/27/10

This was fun

This program allows you to easily edit the map that appears on the Pokégear and Town Maps in games Gold, Silver, and Crystal. It allows editing of both Johto and Kanto maps.

This program is able to be compiled on any OS that can run Lazarus. Included is the Windows executable, for any other OS you will have to compile it yourself. The source is included in the zip.

How to Use
It's fairly simple to use. On the right of the screen is your tileset box, which shows you the tiles you can use. Click the tile you want, and you're ready to start editing in the left box. You can also use your mousewheel to scroll through the tiles, or right click a tile on the map to select it for drawing.

Screenshots
wOP9k.png
Cibyc.png
leLBa.png Prism
sFd7H.png Brown (remade)


Download Link
Click here to download.

Version History
7/27/10:
+ Importing and Exporting of maps
+ Mode 2, allowing editing where each place appears on the map
+ Included several blank maps to show functionality of importing and exporting

7/26/10: Initial release.

Notes
Unfortunately, I don't yet know enough to make this load the tileset from ROM. Instead, it's loading it from tileset.bmp. Maybe eventually I'll make it load from ROM, but until then, the current setup works fine.

Offline

#2 1970-01-01 00:33:30

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 237/3,578

Re: GSC Town Map Editor - Updated 7/27/10

Looks nice. I'm assuming it doesn't yet have the ability to edit where the locations show up on the map though?

Offline

#3 1970-01-01 00:33:30

Tauwasser
Member
Registered: 2010-10-16
Post 26/452

Re: GSC Town Map Editor - Updated 7/27/10

Does it load the tileset from the rom itself? Might be worthwhile considering many people edit the tileset for custom region names etc.

cYa,

Tauwasser

Offline

#4 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 35/64

Re: GSC Town Map Editor - Updated 7/27/10


Looks nice. I'm assuming it doesn't yet have the ability to edit where the locations show up on the map though?

No, I honestly hadn't thought of that. That's actually a really good idea though, and I don't think it'd be too hard to implement. I seem to remember the place where I saw what bytes were used to determine where it appeared, but I can't. I seem to remember it being a part of the mapheaders, but it isn't from what I can tell.


Does it load the tileset from the rom itself? Might be worthwhile considering many people edit the tileset for custom region names etc.

cYa,

Tauwasser

No, I don't know enough to do that yet. I do have the tileset location ($F8C94 G/S, $F8BA2 C). Right now though they could just extract the tileset and replace tileset.bmp with it.

Offline

#5 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 102/2,339

Re: GSC Town Map Editor - Updated 7/27/10

I think IImarcus just wrote a comment of editing the map headers and in a part of it, you could edit where the areas are shown in the map.

Anyway, awesome tool.
Really  ☺

Offline

#6 1970-01-01 00:33:30

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 238/3,578

Re: GSC Town Map Editor - Updated 7/27/10

The map headers just show which map name they belong to, such as New Bark Town, etc. As for the locations on the map, they are stored separately.

x92386 = Cursor/map name data! Format: Xloc, yloc, Name pointer [2 bytes] That will be for Gold, probably Silver too. Crystal is likely to be different but you can find it pretty easily once you know what you're looking for.

Offline

#7 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 36/64

Re: GSC Town Map Editor - Updated 7/27/10

Working on this now.

Offline

#8 1970-01-01 00:33:30

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

Re: GSC Town Map Editor - Updated 7/27/10

Ah, changing the locations on the map should come in really handy. It always took a while to do and was really annoying, especially when you got it off by a tiny bit.

If you could figure out how to make it read the tileset from the ROM, it would be helpful. Not necessarily required though.

Offline

#9 1970-01-01 00:33:30

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 240/3,578

Re: GSC Town Map Editor - Updated 7/27/10

Also, I think the ability to save and load the map as an external file could be useful, especially if you end up re-doing one of your hacks and want to copy it over without manually re-drawing it, or if you have multiple hacks with the same region.

Offline

#10 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 37/64

Re: GSC Town Map Editor - Updated 7/27/10

Alright, what do you all think of this?

upldW.png

Ignore my debug box, it's showing wrong coordinates.

Mode 1 is normal drawing mode, and Mode 2 is map position mode. In Mode 2, all you'll have to do is click and the map position gets moved.


Since you all know, where exactly do the X and Y coordinates point for the map position? Is it the center, or the top left corner? I had to use an awkward equation to get it to draw the marker in the right position.

The export and import map is a good idea. Shouldn't be too hard either.

Offline

#11 1970-01-01 00:33:30

Masterge77
Member
From: Sandshore Town, Ameria Region
Registered: 2010-10-16
Post 65/93
Website

Re: GSC Town Map Editor - Updated 7/27/10

Needed one of these for a long time, thanks!


[img]http://p.gpxpl.us/qPTY.png[/img]
CLICK MY ROBOT POKEMON ARMY OR ELSE

Offline

#12 1970-01-01 00:33:30

Luigi-San
Member
Registered: 2010-10-16
Post 9/129

Re: GSC Town Map Editor - Updated 7/27/10

I LOVE YOU

Downloading this now.

Offline

#13 1970-01-01 00:33:30

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

Re: GSC Town Map Editor - Updated 7/27/10

The location features should come in VERY handy. Doing that is time consuming. Does it read the location list from the ROM?

Offline

#14 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 38/64

Re: GSC Town Map Editor - Updated 7/27/10

It does, so it will work correctly even with modified ROMs.

One thing is, once you get into the Kanto side you'll have to change the map manually. I could make the program change it, but then there'd be problems with modified roms if they make more locations on one map. So it'll be a "bug" that stays.

Working on exporting now. All it's going to be is a 360 byte file of the map data.

I really didn't expect this to be so popular suddenly. I just found the offsets when I was going through old messages on here and found them in a list from Melash, and decided to make it.

Offline

#15 1970-01-01 00:33:30

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

Re: GSC Town Map Editor - Updated 7/27/10


It does, so it will work correctly even with modified ROMs.

One thing is, once you get into the Kanto side you'll have to change the map manually. I could make the program change it, but then there'd be problems with modified roms if they make more locations on one map. So it'll be a "bug" that stays.

Working on exporting now. All it's going to be is a 360 byte file of the map data.

I really didn't expect this to be so popular suddenly. I just found the offsets when I was going through old messages on here and found them in a list from Melash, and decided to make it.

I'm glad it reads it from the ROM, that should be helpful. As for it being popular, it's always been something I've wanted for quite some time, editing by hex was time consuming and really annoying, this program makes it much easier.

Offline

#16 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 39/64

Re: GSC Town Map Editor - Updated 7/27/10

Should have it finished by tonight. Currently trying to figure out a problem where saving the changed location is wrong, while it's claiming to write the correct data. Well that was insanely simple.

Offline

#17 1970-01-01 00:33:30

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 242/3,578

Re: GSC Town Map Editor - Updated 7/27/10

I'm not sure exactly if it points to the top or middle, but it looks like you've got it taken care of whether it is exctly the way the game does it or not, as long as it looks right in here and saves it right haha.

Offline

#18 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 40/64

Re: GSC Town Map Editor - Updated 7/27/10

And it's updated!

7/27/10:
+ Importing and Exporting of maps
+ Mode 2, allowing editing where each place appears on the map
+ Included several blank maps to show functionality of importing and exporting

Sorry to those who downloaded already, but this update has everyone's suggestions (minus loading tilesets from ROM). I didn't find any bugs, but if you find one be sure to let me know and I'll fix it ASAP.

If you didn't notice, the "Area" list is generated from the ROM, which makes it compatible* with  hacks.

*: Unless of course you change the internal name of the game, in which case the program will call it an incompatible Rom. Prism is an example of this.

Offline

#19 1970-01-01 00:33:30

jaydenp95
Member
Registered: 2010-10-16
Post 2/79

Re: GSC Town Map Editor - Updated 7/27/10

Wow, really good, job well done   :D

Offline

#20 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 103/2,339

Re: GSC Town Map Editor - Updated 7/27/10

Wow, you actually did it  :D
(Going to download it soon...)

Offline

#21 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 104/2,339

Re: GSC Town Map Editor - Updated 7/27/10

I made the region maps already but found out that if I for example set Olivine City appearing in Kanto, it actually doesn't do that in the game so the map looks a little messed up :|

Practically, it's half well-made but some areas seem to be in weird places anyway.

Offline

#22 1970-01-01 00:33:30

Harrison
Member
Registered: 2010-10-16
Post 42/64

Re: GSC Town Map Editor - Updated 7/27/10

Yeah, that was described a few posts back as a "necessary bug". There's not a way to differentiate between whether or not the box is meant to appear on the Kanto or Johto map, so you'll have to change "Region" manually once you go past whatever the last map is for Johto (I think Mt. Silver). I could have made it change region automatically based on the index of the Area box, but then there would have been problems had someone found out how to increase or decrease the number of map positions on each map.

Offline

#23 1970-01-01 00:33:30

Miksy91
Member
Registered: 2010-10-16
Post 105/2,339

Re: GSC Town Map Editor - Updated 7/27/10

So, there is a way to change which region the areas belong to, right ?
There are several places which I'd like to put to the Kanto map.

If you know how to change them, could you answer me  ☺

EDIT:
I'd have to change the Fly-data somehow too if I did this...
I guess I'll try to remake the region map or leave it as bad-looking as it's now.

Offline

#24 1970-01-01 00:33:30

Masterge77
Member
From: Sandshore Town, Ameria Region
Registered: 2010-10-16
Post 66/93
Website

Re: GSC Town Map Editor - Updated 7/27/10

Works like a charm, the new update is pretty useful, thanks!


[img]http://p.gpxpl.us/qPTY.png[/img]
CLICK MY ROBOT POKEMON ARMY OR ELSE

Offline

#25 1970-01-01 00:33:30

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 243/3,578

Re: GSC Town Map Editor - Updated 7/27/10

I'm not entirely sure how that works either. I assume there is a pointer somewhere saying where Kanto starts, plus there are 2 seperate loop points for kanto. One is the pre-elite four loop, you know if you surf over and "take your first step into kanto" that just loops from the johto route up to the elite four, and the post elite four loop that does all of them. I couldnt find these to edit them right, so in SaR I replaced Johto's Areas and map with Kanto's names and map, which also gave me a few extra locations to use, such as safari zone and whatnot.

Offline

Board footer

Powered by FluxBB