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

0 users currently in ROM Hacking | 1 guest

Main - ROM Hacking - Encryption/software decompression in GBA games New thread | New reply


Techokami
Posted on 03-04-07 09:22 PM Link | Quote | ID: 10473


Red Paragoomba
Level: 18

Posts: 6/50
EXP: 28003
Next: 1894

Since: 02-19-07
From: HoleNet!

Last post: 6083 days
Last view: 5320 days
I believe the art for Pac-Man and enemies are encrypted, or compressed with a format other than LZSS, in the horrible GBA port of Pac-Man World 2. The graphics appear in VRAM as directly-accessed, uncompressed art, yet when you look in the ROM for uncompressed art, you do not find the desired graphics. Which is a big shame, as the graphics are the only things that don't suck horridly in this so-called "port".

So, what kind of encryption format (or software-driven compression format) would be feasible to use in a GBA game so that you can decrypt (or decompress) individual frames of a multi-frame sprite in real-time without affecting performance?

____________________
Click here to enter the SigChat

interdpth
Posted on 03-04-07 09:37 PM Link | Quote | ID: 10476


Buzzy Beetle
Level: 44

Posts: 8/383
EXP: 593573
Next: 17712

Since: 02-22-07

Last post: 4097 days
Last view: 4070 days
If I remember I think the games were just using a variant of PocketNES or something since it's open source. :/

____________________
lawl blog

http://interdpths.blogspot.com/

Techokami
Posted on 03-04-07 11:34 PM Link | Quote | ID: 10525


Red Paragoomba
Level: 18

Posts: 7/50
EXP: 28003
Next: 1894

Since: 02-19-07
From: HoleNet!

Last post: 6083 days
Last view: 5320 days
Pac-Man World 2? It's not an NES-to-GBA game, it's a poorly-coded remake of the 3D platformer from the PS2/GCN/PC onto the GBA as an isometric platformer with good graphics.

____________________
Click here to enter the SigChat

Tweaker
Posted on 03-05-07 12:22 AM Link | Quote | ID: 10538


Red Koopa
Level: 28

Posts: 50/139
EXP: 129807
Next: 1531

Since: 02-19-07
From: Rochester, NY

Last post: 5793 days
Last view: 5699 days
Do the graphics appear to be 3D, or are you SURE they're actual sprite graphics? If the former is true, it's very possible that the game may be using a software based 3D renderer, converting polygons in realtime to uncompressed bitmaps and loading them to VRAM.

I'm not sure how practical compressing constantly updated art on the GBA is anyway - can it handle it well without lagging? I've not messed with GBA much.

____________________
Messenger info:
AIM: SonicTweaker
MSN: nibesto@gmail.com
GTalk: nibesto@gmail.com
Cool IRC Channels:
#retro | #cult | #acmlm

Cool Sites:
Sonic Retro | S2Beta | CulT | SGMC | Something Awful | HPZ | Hacking CulT | Acmlm's Board II

interdpth
Posted on 03-05-07 12:45 AM Link | Quote | ID: 10545


Buzzy Beetle
Level: 44

Posts: 9/383
EXP: 593573
Next: 17712

Since: 02-22-07

Last post: 4097 days
Last view: 4070 days
To check for LZ77 Compression or any compression Open the rom in VBA options -> Logger

Check SWI and DMA3

SWI are the software interrupts where hardware decomp is done. So might have some luck in there.

____________________
lawl blog

http://interdpths.blogspot.com/

Techokami
Posted on 03-05-07 12:55 AM Link | Quote | ID: 10550


Red Paragoomba
Level: 18

Posts: 8/50
EXP: 28003
Next: 1894

Since: 02-19-07
From: HoleNet!

Last post: 6083 days
Last view: 5320 days
Sprites are most definately not 3D-like. Here's a sample:

The GBA's ARM processor can't do on-the-fly LZSS decompression without a serious speed hit, by the way. Speaking of which, yes I did search the ROM for LZSS compressed data - I found some background stuff, but that's it. No dot muncher with legs.

____________________
Click here to enter the SigChat

Dwedit
Posted on 03-07-07 08:36 PM Link | Quote | ID: 11840


Red Paratroopa
Level: 30

Posts: 3/162
EXP: 163115
Next: 2754

Since: 03-07-07
From: Chicago

Last post: 3516 days
Last view: 1611 days
LZSS decompression is actually about 50% the speed of straight memcopy, it's the fastest way to decompress data.

____________________

Main - ROM Hacking - Encryption/software decompression in GBA games New thread | New reply

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

Page rendered in 0.022 seconds. (339KB of memory used)
MySQL - queries: 67, rows: 93/94, time: 0.017 seconds.