Skeetendo

’Cause all games were better on the GBC

You are not logged in.

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

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

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

Thanks to Datacrystal, I've found how the game determines which areas belong to which map. It's a single byte at $90FB8 that tells the game how many locations are in Johto. I'm going to add in the reading of this byte, as well as a way to change it.

Anything else you guys can think of for me to add/change when I do this (other than reading tileset from ROM  :P )?

EDIT: Just found the pointers for both maps too, so I'll get it to follow them as well.

Offline

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

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

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

Great  :D

But does changing it have an effect on the flying data ?
I'm going to move Olivine and Blackthorn to Kanto so do you know if it just hops from Johto to Kanto and all over again (Ecruteak (Johto) - Olivine - (Kanto) - Mahogany (Johto) - Blackthorn (Kanto) - Indigo P. (Johto)) ?

Offline

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

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

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

There are actually two offsets for those values and all have to be changed accordingly. I remember that different routines that display the map would use own limits for determining Johto and Kanto. In any case, if you expand flying coordinates, you will have to append to the flying table in order for the game not to crash I think.

cYa,

Tauwasser

Offline

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

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

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

Miksy, for what you're doing, you're going to have to change the order of the areas in the Fly-to and area names table.

Yeah, it looks like there are other offsets I'll need to find as well, that tells the game where the Kanto areas start, and how many locations are in Kanto. I think I'll either just read them from ROM, and let the user hex edit the rom if they want to change the number of areas for each map, or let them change it, but add a warning that it may cause the game to crash.

Offline

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

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

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

Would it be a possibility to find the offsets for that  ☺ ?
If so, I'll make it so that you can't fly to Olivine or Blackthorn until you reach Kanto.

Offline

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

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

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

I think that is a great idea, being able to add more labels. Also reading the tilesets from the ROM, haha.

Offline

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

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

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

Miksy, Mateo told the table earlier. "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." Crystal's table is located at $1CA8C5.

I think (for now), adding new areas will have to be done via hex editor. My plans for the next release are:
1. Adjust the loop that handles reading area names to combine the number from $90FB8 and the number of Kanto maps (byte still needs to be found)
2. Find where the game is told that Kanto starts (changing $90FB8 to a higher number makes Kanto areas show up in both Kanto and Johto) and use it to automatically change the map when that number is passed in the area drop box
3. Read pointers instead of the actual map locations (though I can't see why you'd need to repoint the maps)

Offline

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

swampert22
Member
From: Switzerland
Registered: 2010-10-16
Post 1/26
Website

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

Hey Harrison, your programming has inspired me to get back into ROM Hacking again, and re-write my programs in Lazarus  ☺

I have been using Ubuntu for about a year now, and was dissapointed to find that my programs didn't work when run through WINE or other such programs. Besides, open source is the way to go right?

I'll probably start with something simple first and post it here in the next few weeks  ☺

Swampert (Back from the Dead)  ;)


For Pokémon ROM hacking tools, please visit my site www.swamperttools.co.nr!

Check out my latest tool release, a trainer editor for Pokémon Red and Blue!

Offline

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

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

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

Haha, awesome. Looks like now's the time for me to admit that you're actually the reason I started making programs, because I was annoyed at how all RBY/GSC Tools (which you had on your site) were closed source. If you ever need help or something, feel free to hit me up on AIM (Username: HarrisonHopkins).

I've been distracted lately (finally have my car), but I'll get back to work on finishing this soon.

Offline

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

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

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

Actually, I'm glad that more tools for R/B/Y/G/S/C are starting to appear.......


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

Offline

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

swampert22
Member
From: Switzerland
Registered: 2010-10-16
Post 2/26
Website

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


Haha, awesome. Looks like now's the time for me to admit that you're actually the reason I started making programs, because I was annoyed at how all RBY/GSC Tools (which you had on your site) were closed source. If you ever need help or something, feel free to hit me up on AIM (Username: HarrisonHopkins).

I've been distracted lately (finally have my car), but I'll get back to work on finishing this soon.

Well, you're totally right  ☺ To be honest the reason I didn't release the sources to my programs was that they were in my opinion, really badly coded, anybody wanting to learn to program would just get lost in my sources lol, besides they worked just fine anyway, I saw no need to release sources...

Starting anew with Lazarus will allow me to rewrite everything from scratch and do a GOOD job this time, plus the opportunity to make them cross-platform  ☺

Thanks for the help offer, I'll definitely let you know if I come across any problems, (which in my experience is very likely...   ;))

I too have many distractions at the moment, driving back to the UK from Switzerland tomorrow which should knock me out for a few days   ;D


For Pokémon ROM hacking tools, please visit my site www.swamperttools.co.nr!

Check out my latest tool release, a trainer editor for Pokémon Red and Blue!

Offline

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

35/703

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

Swampert22 wrote:

To be honest the reason I didn't release the sources to my programs was that they were in my opinion, really badly coded, anybody wanting to learn to program would just get lost in my sources lol, besides they worked just fine anyway, I saw no need to release sources...

I can sympathize with this point of view (having once held it myself), but think of it this way: not releasing the source code to a messy program means you’re the only one who can clean it up. Releasing the source means than anyone can clean it up, and thus helps more people in the long run.

Board footer

Powered by FluxBB