.GFX format?

Discuss coding questions, pull requests, and implementation details.
Post Reply
User avatar
numidium3rd
Posts: 31
Joined: Sun Mar 25, 2018 12:34 am

.GFX format?

Post by numidium3rd » Fri Jul 05, 2019 3:11 pm

I've made some progress on reverse-engineering the class questions screen. I found all the necessary data for getting it to work mechanically but there are a couple of graphical things I need to work out.

The screen uses GFX files for its animations - a format I haven't seen used elsewhere in DFU. I haven't found any documentation on these files. Has anyone looked into this before?

User avatar
Interkarma
Posts: 4690
Joined: Sun Mar 22, 2015 1:51 am

Re: .GFX format?

Post by Interkarma » Fri Jul 05, 2019 10:23 pm

First up, thank you so much for making a start on that UI. :)

I haven't looked deeply into the GFX format, other than opening it briefly in a hex editor. I can see the image dimensions at the front (320x80). I think (guessing) from there it follows one of the other formats internally, probably close to IMG.

I'm happy to help break this down soon. My main focus right now is clearing off last few items in 0.9 roadmap and kicking pre-alpha over the fence. I'll be able to take a deeper dive soon.

User avatar
Interkarma
Posts: 4690
Joined: Sun Mar 22, 2015 1:51 am

Re: .GFX format?

Post by Interkarma » Mon Aug 05, 2019 8:58 am

Just confirming the GFX format is now solved and supported by ImageReader. It actually used a row offset & RLE format almost identical to TEXTURE files.

The only thing missing now is correct palette. My suspicion is this is handled by the .CEL data, which I'm yet to look at. Once this is reverse engineered, we should be able to put together the class questions UI in its entirety.

User avatar
numidium3rd
Posts: 31
Joined: Sun Mar 25, 2018 12:34 am

Re: .GFX format?

Post by numidium3rd » Sun Aug 11, 2019 7:13 pm

Thanks for helping me out with this. It took me a while to figure out how this feature works mechanically. Graphical formats would have been a whole other ordeal, for me at least.

User avatar
Interkarma
Posts: 4690
Joined: Sun Mar 22, 2015 1:51 am

Re: .GFX format?

Post by Interkarma » Sun Aug 11, 2019 9:03 pm

My pleasure! Chipping away at CEL format - It's something a bit different. Looks like all this does is the lightning now. Once I have that, will wire up other moving parts for you to reference.

Even if we implement UI without lightning animation at first and add it later once reversed, that will be fine too. It's just window dressing and the UI can function without it for a while. Still, would love to sort this one out in time.

Post Reply