Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1806.45e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexf95e-2.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=1806.msg19755e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexf95e-2.html.zx]g^0P.}OKtext/htmlISO-8859-1gzip0|}Tue, 10 Mar 2020 17:45:23 GMT0 0P[g^'} Project II: Final Fantasy IV

Author Topic: Project II: Final Fantasy IV  (Read 25543 times)

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #45 on: August 21, 2013, 02:04:40 PM »
Alternatively you could use phoenix's map editor to change an unused part of an existing map into a copy of what you need and redirect the player there at the appropriate times... just throwing out ideas.
That was actually the first thing I thought of. :happy: But I have no idea how to use Phoenix's map editor. I click the question mark in the upper-left hand corner and nothing pops up, so I don't receive the instructions.

If you'd like you can send me what you have and I can take a look at it.
I'd really appreciate it if you did. :happy:

By all means, please send it my way and I'll see what I can do.

vivify93

  • Liquid Flame
  • *
  • Posts: 304
  • Gender: Male
  • White Wizard
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #46 on: August 21, 2013, 03:35:27 PM »
To use phoenix's editor, first pick which map you want to edit from the drop-down box. Most of the map names are the same as the default map names in FF4kster. Then edit the map using the tile palette. When you're done, highlight the big mess of hex code in the "hex code" box and copy it (ctrl-c). Right next to the hex code should be a label that tells you the address of the map you have highlighted. Go to that address in your favorite hex editor and paste the copied hex code.
Is it that easy? I've actually looked for the drop-down box and it doesn't display anything. It lets me use the tiles on a blank canvas, but it doesn't let me do anything else. I've tried using it in several different browsers, too.

By all means, please send it my way and I'll see what I can do.
Well, let's hope there's something to do. I've sent it your way. Thank you so much for looking into this. :happy:
Hacking is hard. :sad:

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: vivify93's FFIV hacking questions
« Reply #47 on: August 21, 2013, 05:45:14 PM »
Yeah browser support for Phoenix's editor can be hit and miss. I've had the most luck with Firefox, and it was designed for Safari, so give those two a try. (I've got a script that inserts text maps with Atlas, too, if you want it.)

Honestly in your case I'd just extract all the data I knew I changed and stick it in a clean ROM. Better safe than sorry, and you might catch any places data/text overflowed the original boundaries while you're at it.

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #48 on: August 21, 2013, 10:31:51 PM »
There is something Really strange going on here... Those three maps (and all of the maps surrounding them from how it looks) appear to be completely disfigured in your rom data. Somehow changing this to what they should be though does not change the graphic for... whatever is happening here. Now there may be a way around this.

For instance...



This was done by switching the map you go to in viewing the event to the second instance of the Ending - Palom and Leonora maps, in the Underworld section of maps.

In addition was going to the Map Info. Going to the second instance of this map, and changing the NPC Index which was 00 to 12 (In decimal, using FF4kster)



I will see in short order if this cannot be done in some variant with the other maps.


 :edit: Replaced the Dwarven Castle Ending map to the Pitch Black Room. After a bit of work-arounds I got it to look perfect.

You will want to change the information in Pitch Black Room to...

Index: 7
Underground: YES

Tileset: Castle Exterior
Border Tile: 61
Tile Palette: 21
NPC Palette 1: 0
NPC Palette 2: 1
NPC Index: 23

Background: Dwarf Castle Background
Vertical Scroll - No
Horizontal Scroll No

In theory the Rydia problem should also work in that regard.
« Last Edit: August 21, 2013, 11:30:58 PM by Grimoire LD »

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #49 on: August 22, 2013, 05:53:59 AM »
So, I dumped the map data bytes between my project's ROM and FFII US v1.1. I opened them up in a file comparison program, and I got the result that "Both files are identical."

So it's nothing in the map data. Jesus, what could it be...? My only guess now is that "underground" byte, but if it's in the map data, then it wasn't changed.

Something just struck me... if the data is identical, then perhaps it's the pointers for those particular maps that are messed up.
Let's dance!

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #50 on: August 22, 2013, 10:36:07 AM »
 I have a feeling you're onto something there Pinkpuff, but do we know where that data is stored? As I've said I copied map data directly from FF4Tools into the rom, and I saw no change at all. From what I can tell it is only those three maps as if they're being read as one of the many Glitch Worlds. Humorously enough that door in the Leonora and Palom scene actually works and takes you to inside the Kaipo Pub... in the wall.

Pinkpuff

  • Flan Princess
  • *
  • Posts: 924
  • Find a Megalixir in Unprecedented Crisis!
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #51 on: August 22, 2013, 06:29:21 PM »
Usually pointer tables come right before the data they point to. I haven't looked into it yet but my guess would be there's a chunk of pointers, two bytes per map, right before the map data. Try comparing that section in the modified rom vs unmodified...
Let's dance!

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: vivify93's FFIV hacking questions
« Reply #52 on: August 22, 2013, 07:05:39 PM »
Map pointers are definitely known, I don't have the offset handy ATM, but search the forums before digging into the ROM.

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #53 on: August 22, 2013, 08:02:27 PM »
Putting in the search for "Map Pointers" brought up... the last three posts. Hmm, is there any way to fix the search system? It doesn't seem to go back all of that far.

Dragonsbrethren

  • Forum Overlord
  • *
  • Posts: 1,820
    • View Profile
    • Dragonsbrethren Industries
Re: vivify93's FFIV hacking questions
« Reply #54 on: August 22, 2013, 08:46:58 PM »
From Yousei's ancient document:

B8200-B84FF   (178000-1782FF)   Town Map Pointers

No clue on the search; just use Google and specify this site.

vivify93

  • Liquid Flame
  • *
  • Posts: 304
  • Gender: Male
  • White Wizard
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #55 on: August 23, 2013, 10:09:41 AM »
I figured it'd be kind of assholish to sit here and kick back while you guys do everything for me, so I'd like to stop in and say thank you. Do you all think I should use Grimoire LD's method for now, or should I get on board with investigating the town map pointers?
Hacking is hard. :sad:

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #56 on: August 23, 2013, 04:06:58 PM »
I figured it'd be kind of assholish to sit here and kick back while you guys do everything for me, so I'd like to stop in and say thank you. Do you all think I should use Grimoire LD's method for now, or should I get on board with investigating the town map pointers?

For now my method may be the most sound. If it's only those three maps then further exploration is not necessary, but for future reference is likely warranted from our side. The third map you can freely replace is a copy of Cecil's Ending Room, the first entry of that you can come across can be replaced.

Copy the entry in the Ending- Leviathan's Room map completely and then set the event to load up that first entry of Cecil's Ending Room. That should do the trick.

vivify93

  • Liquid Flame
  • *
  • Posts: 304
  • Gender: Male
  • White Wizard
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #57 on: August 23, 2013, 07:52:12 PM »
I'm confused; how will that change anything, though? Even if I copy the maps, won't it still be directing the ending scenes toward the corrupted backdrops?

And your directions were... um...

1. copy Leviathan's ending map
2. set it to load in Cecil's ending room
3. set Cecil's ending room to load regular Cecil's room

But... couldn't I just set Leviathan's ending map to load from the in-game one? Or would that not work? It may just be because I'm tired, but I'm totally clueless; sorry.
Hacking is hard. :sad:

Grimoire LD

  • FF4 Hacker
  • *
  • Posts: 1,684
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #58 on: August 23, 2013, 10:03:47 PM »
Here is where things get... weird. I'm afraid I'm pressed for time so I can give more adequate reasoning on Sunday, but the way this works is that... what seems to be corrupted... is that specific configuration. I cannot say why this is, but when the event is switched to another "map" that uses the same area as intended, (Leviathan ending uses the same map as Leviathan normal) it works properly.

So you want to copy the all of the maps info. of the three corrupted maps. Put them in the space of three unused maps (Cecil's Room - Ending, Pitch Black Room, 2nd Ending - Palom and Leonora scene... I think that might be it) and that should suffice.

vivify93

  • Liquid Flame
  • *
  • Posts: 304
  • Gender: Male
  • White Wizard
    • View Profile
Re: vivify93's FFIV hacking questions
« Reply #59 on: August 24, 2013, 06:41:33 AM »
I think I understand now, but when I go to edit Pitch Black Room to Dwarf Castle, I can't change it to "Dwarf Castle Background". I looked at map.DAT, and "Dwarf Castle Background" is #285, and the background selector only lets me go up to #256. I'll have to await further instruction, I guess!

Thank you so much, Grimoire LD, and you too, Pinkpuff and Dragonsbrethren. You're all definitely going in the readme! :childish:
Hacking is hard. :sad: