Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Java Based Compressor

Reply to topic
Author Message
  • Joined: 01 Jan 2014
  • Posts: 291
Reply with quote
Java Based Compressor
Post Posted: Sun Aug 06, 2017 10:15 pm
Hi,

Anyone aware of a compression format that is targeted (and ideally already implemented) for low end systems such as SMS and has a compressor available in java?
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 11826
  • Location: London
Reply with quote
Post Posted: Mon Aug 07, 2017 6:20 am
No, but it wouldn't be hard to port one, they're not that complicated. If you want cross platform, there's an aPLib compressor in Python.
  View user's profile Send private message Visit poster's website
  • Joined: 01 Jan 2014
  • Posts: 291
Reply with quote
Post Posted: Mon Aug 07, 2017 8:10 am
That is my current go to option using Jython. A concern was the original author Jørgen Ibsen explicitly forbid the reverse engineering of the compressor in his licence so not where the python version sits. I might pop him an email.

I do very much like aPLib and you have done all the hard work for me (many thanks).

EDIT: I should mention. Looking for an alternative that is fully done in java. Doubt it exists but fishing.
  View user's profile Send private message
  • Joined: 21 May 2007
  • Posts: 136
Reply with quote
Post Posted: Mon Aug 07, 2017 9:25 pm
i'd say there are some RLE java classes online.
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 11826
  • Location: London
Reply with quote
Post Posted: Mon Aug 07, 2017 10:35 pm
Given the format spec it's not that hard to write a compressor. Well, it's a bit painful because it's hard to be optimal, but a simple implementation is OK. Maybe go for ZX7 if the aPLib restrictions worry you.
  View user's profile Send private message Visit poster's website
  • Joined: 16 Dec 2008
  • Posts: 31
  • Location: UK
Reply with quote
Post Posted: Wed Aug 09, 2017 7:23 pm
There are a set of compressors/decompressors in AspectEdit. I lost the source code a long time ago but feel free to run that through JD-GUI or something. Take a look in the aspectedit.io package. The LevelReader/Writer classes handle Sonic 2/Sonic Chaos level formats (RLE). TTLevelReader/Writer handles Sonic Triple Trouble level compression (an LZSS variant). CompressedTilesetReader/Writer handles the art compression.
[/url]
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!