Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,435,548
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-19-24 10:57 AM
Guest: Register | Login

0 users currently in Secret of Mana Hacking | 1 guest

Main - Secret of Mana Hacking - Title screen background now loading! New thread | New reply


Moppy
Posted on 06-02-12 07:44 PM Link | Quote | ID: 151184


Red Paragoomba
Level: 18

Posts: 20/53
EXP: 29100
Next: 797

Since: 09-22-08
From: Syracuse, NY

Last post: 2877 days
Last view: 2869 days
Never thought I'd get this to work.

It's stored as a JPEG, of all things. The game takes like twenty seconds to fully decompress and palette it. One of many remaining mysteries solved...



Eponick
Posted on 06-02-12 07:46 PM (rev. 2 of 06-02-12 07:47 PM) Link | Quote | ID: 151185


Octorok
Level: 13

Posts: 19/25
EXP: 8240
Next: 2027

Since: 05-26-12

Last post: 4334 days
Last view: 4244 days



Nice. Didnt know the SNES could even handle something like a JPEG. How did you figure that one out?

____________________
Eastmost penninsula is the secret.



Moppy
Posted on 06-02-12 09:13 PM Link | Quote | ID: 151188


Red Paragoomba
Level: 18

Posts: 21/53
EXP: 29100
Next: 797

Since: 09-22-08
From: Syracuse, NY

Last post: 2877 days
Last view: 2869 days
Lots and lots of debugging, mostly. This is the first I've heard of JPEG being used in an SNES game as well; I was quite surprised when I compared the SOM algorithm I had already traced 75% of the way through and they matched up almost exactly.

"Handle" is a flexible term I suppose.. it does take it around 20 seconds to generate the full image. It starts decompressing when the Squaresoft logo is up. Notice when the screen first comes up, it opens a little window to part of the background--the part it's managed to decompress so far. Once it's done, the music picks up and it opens the rest of the way.

Wouldn't be surprised if they stylized it this way just to hide the fact that their algorithm takes so long to generate the background.

SignZ
Posted on 06-02-12 11:10 PM Link | Quote | ID: 151190

Newcomer
Level: 4

Posts: 2/2
EXP: 189
Next: 90

Since: 01-07-12

Last post: 4338 days
Last view: 4415 days
Sweet, so the title screen can be viewed now. How about editing it?
Also, nice to see you back working on SOMedit.

Moppy
Posted on 06-02-12 11:51 PM Link | Quote | ID: 151191


Red Paragoomba
Level: 18

Posts: 22/53
EXP: 29100
Next: 797

Since: 09-22-08
From: Syracuse, NY

Last post: 2877 days
Last view: 2869 days
Writing the code to import other images for the title background should be .. interesting, to say the least.

I do have to finish the loading, first -- the only thing I'm missing is the paletting.

The version I'm showing there is the raw decompressed 24-bit version, which the game does indeed load in that form; unfortunately the platform lacks the capability to display it, so their last step after decompression is to palette it. How this happens is still a bit of a mystery until I get around to tracing through more code :3

Once that is set I should be able to generate optimum palettes for replacement images you import. Re-compression shouldn't be too difficult, my main concern is the need to rewrite some of the existing code to allow the image to be moved or split if needed. I do this automatic code-rewriting already for everything else that is writable and of variable size, but the code they use to read this image in is largely runtime-generated and run out of the 7E RAM bank, so there's really just an extra step I have to deal with before everything can work the way that I like.

Scrydan
Posted on 06-03-12 12:57 AM Link | Quote | ID: 151196


Shyguy
Level: 22

Posts: 59/92
EXP: 58348
Next: 2

Since: 04-30-12

Last post: 3165 days
Last view: 3144 days
Posted by Moppy
Lots and lots of debugging, mostly. This is the first I've heard of JPEG being used in an SNES game as well; I was quite surprised when I compared the SOM algorithm I had already traced 75% of the way through and they matched up almost exactly.

"Handle" is a flexible term I suppose.. it does take it around 20 seconds to generate the full image. It starts decompressing when the Squaresoft logo is up. Notice when the screen first comes up, it opens a little window to part of the background--the part it's managed to decompress so far. Once it's done, the music picks up and it opens the rest of the way.

Wouldn't be surprised if they stylized it this way just to hide the fact that their algorithm takes so long to generate the background.

So is this why when you fly with Flammie that the one map takes like forever to load bit by bit when you decide to look at the big map?

I've always thought it to be interesting on why it loaded so slowly.

Moppy
Posted on 06-03-12 01:08 AM Link | Quote | ID: 151197


Red Paragoomba
Level: 18

Posts: 23/53
EXP: 29100
Next: 797

Since: 09-22-08
From: Syracuse, NY

Last post: 2877 days
Last view: 2869 days
Posted by Scrydan
So is this why when you fly with Flammie that the one map takes like forever to load bit by bit when you decide to look at the big map?

I've always thought it to be interesting on why it loaded so slowly.


That thing.. is another story. I haven't gotten around to looking at it yet, but yes, it is horribly slow and largely useless as a map to begin with.

Fun fact: if you modify the world map with the current version of my editor, then open that map, it crashes.

:3

kaB00M
Posted on 07-16-12 07:29 PM Link | Quote | ID: 151639

Newcomer
Compromised account. Please contact staff for a password reset.
Level: 4

Posts: 1/2
EXP: 185
Next: 94

Since: 07-16-12

Last post: 4294 days
Last view: 2780 days
Hi good sirs.

Posted by Moppy

Wouldn't be surprised if they stylized it this way just to hide the fact that their algorithm takes so long to generate the background.


I heard that even today games do this. Loading screens are hiddden all over the place. Most elevators seem to be really loading screens.


Main - Secret of Mana Hacking - Title screen background now loading! New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.021 seconds. (321KB of memory used)
MySQL - queries: 72, rows: 88/89, time: 0.016 seconds.