• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
July 04, 2020, 08:20:04 am

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen/RetroArch is recommended for playing/testing, pSX is recommended for debugging.


[TUTORIAL] Lighting up the Deep Dungeon maps

Started by Nyzer, July 11, 2019, 12:53:30 am

Nyzer

July 11, 2019, 12:53:30 am Last Edit: June 30, 2020, 11:26:17 pm by Nyzer
Originally this topic talked about using Ganesha to edit the lighting of the maps. However, the maps have a hard cap on the max amount of light allowed per state, with the highest light levels only being allowed on states inaccessible to the ATTACK.OUT editor. This post has now been altered to show how to make them work with full light, which is done via hex editing instead.

If you just want to download the files directly without editing them yourself, you can find them here.


All credit goes to Xifanie, of course! She's the one who showed me what to edit in the first place.

To get this to work, you've got to do some hex editing. To the best of my understanding, the Deep Dungeon maps use multiple different states to determine the lighting, and the fully lit map is set as the fifth state. Which you can't access with the ATTACK.OUT editor since only the DD maps work this way. So, instead, we just hex edit the .GNS files for each of the maps to set all four previous states to have the same texture lighting settings as the fifth.

Open up your ISO in CDMage. Open the MAP section. Scroll down to the .GNS files for each of the maps (you can tell which of them is which by looking at the numbers on FFH's Maps page). Export them. Open them up in a hex editor. I'm using HxD, personally, and I don't have a whole lot of experience with other hex editors so I'm not sure how they might look, but hopefully enough of the process is similar to be able to follow along. For the sake of this example I'm going to be cracking open MAP106.GNS.


It's currently set to show the rows 16 bytes wide, but it'll be a lot easier to see the parts we need if they're set to 20.


Now you can see the five separate states labeled in order here under column 02. They start at 00, not 01, as is common with hexadecimal work, so they go from 00 to 04. And 04 is where the useful data is. Looks like the only difference is with the bytes under column 08, so let's take the one from state 04 and copy it to 00-03.


That's that. Save it, reimport it with CDMage, and test it out in game.


Success.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

CONMAN

I've only played with the lighting in Ganesha once or twice before.  Anyway I believe that Xifanie (I think? Maybe Emmy) gave me a copy of the deep dungeon maps with the lights turned on a couple years ago.  I simply imported them and then changed the maps to the 2nd state in the Attackout editor and got perfectly lit up dd maps.  I don't have the sprite issue that you detailed.  How that was accomplished you probably know better than I. 

Anyway.... Here are some maps.
  • Modding version: PSX

Nyzer

I did try the maps on both states before Ganeshaing the light up IIRC, but not after. I'll try that on its own and if that doesn't work out I'll import the maps you've got. Thanks!
  • Modding version: PSX & WotL
  • Discord username: Nyzer

Nyzer

And... nope. Loading the VALKYRIES map gives me the same look - darkened sprites, and the map light itself is set low (just not to zero like normal).

And I checked the ATTACK.OUT state. I did have it set to Second State already - and setting it to First State left it dark, no matter how bright the map was.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

CONMAN

 :oops: Damn Sorry Nyzer.  I just peeked through all my old inbox messages and couldn't find an answer.  I might take a look at my old hard drive tomorrow and see if I can find something.  I can't exactly recall how I got my dungeon lit up but I'll peak around.  I feel like the maps I posted are at least part of the puzzle.
  • Modding version: PSX

Xifanie

Well, I decided to download the zip files to get back my .GNS file edits from the good old days... and what do I find in that zip file? No GNS edit. Only mesh file edits. I did not create that. Someone from Arena didn't bother asking me what my edits were and instead just created new ones for the newer arena. MY edits handle what Nyzer tried to accomplish perfectly fine. Arena's doesn't.

It's pretty simple, I just made all states load the last mesh file, i.e. the one used with map state 0x04
  • Modding version: PSX
Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Nyzer

Yeah, we're still running into some issues with it stemming from using ChangeMap, but Xif provided a .GNS of 110 that works perfectly in First State if I don't ChangeMap from another map. I'll update this with fixed files later once we're all done playing around with it.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

Nyzer

June 30, 2020, 01:00:46 am #7 Last Edit: June 30, 2020, 11:22:18 pm by Nyzer
Nearly a year later is still technically "later", right?

Updated the OP of this topic.
  • Modding version: PSX & WotL
  • Discord username: Nyzer

Nyzer

And all uploaded & updated, just in case anyone's watching this topic but missed the new topic with the files.
  • Modding version: PSX & WotL
  • Discord username: Nyzer