What is JMA?

Strictly for discussing ZSNES development and for submitting code. You can also join us on IRC at irc.libera.chat in #zsnes.
Please, no requests here.

Moderator: ZSNES Mods

kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Because of this craziness, I am never using jma.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Kieran wrote:Because of this craziness, I am never using jma.
Your loss.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

Kieran wrote:Because of this craziness, I am never using jma.
Of course JMA's crazy. In fact, it's insane (and I mean that in a good way). ;) It's a compression format for those who want insane maximum compression for their SNES ROMs. :D
Starman Ghost
Trooper
Posts: 535
Joined: Wed Jul 28, 2004 3:26 am

Post by Starman Ghost »

Kieran wrote:Because of this craziness, I am never using jma.
Moron.
[code]<Guo_Si> Hey, you know what sucks?
<TheXPhial> vaccuums
<Guo_Si> Hey, you know what sucks in a metaphorical sense?
<TheXPhial> black holes
<Guo_Si> Hey, you know what just isn't cool?
<TheXPhial> lava?[/code]
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

IceFox wrote:
Kieran wrote:Because of this craziness, I am never using jma.
Of course JMA's crazy. In fact, it's insane (and I mean that in a good way). ;) It's a compression format for those who want insane maximum compression for their SNES ROMs. :D
Crazy.
aprad046
Rookie
Posts: 16
Joined: Thu Jul 29, 2004 4:19 am

Post by aprad046 »

after using jma, four things happened
i) got a good copy of (almost) all my roms
ii)erased some of them which I didn't even know I had (Inspector gadget :shock: ) or I didn't have a reason for keping anymore(Mickey Mouse Magical Quest which downloaded once to amuse my 5-year old cousin)
iii) discovered what a neat little tool NSRT is
iv) saved about 15% more space (from 90 mb - 73 mb)
daft
Rookie
Posts: 27
Joined: Mon Nov 22, 2004 12:56 am

Post by daft »

Is there a quick way to mass convert like 2000 individually zipped roms each into .JMA format?

Bear with me, I'm new to this, but am interested in the benefits of better compression.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Of course.

nsrt -savetype jma -ren83 -saveren *.zip
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Nach wrote:Of course.

nsrt -savetype jma -ren83 -saveren *.zip
The -ren83 renames into 8.3 format, right? If I removed tha tag, would it mass convert, but using full filenames?
Malcster
Hazed
Posts: 72
Joined: Wed Jul 28, 2004 7:30 pm

Post by Malcster »

You need an option that renames or moves files to recompress. Use -rename instead of -ren83if you want full filenames.
Peace Forever!
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Thanks, Malcster.
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Image

Image
Last edited by Jipcy on Wed Mar 10, 2010 6:03 am, edited 6 times in total.
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

bitcopy wrote:Image

Image

Entire NSRT Log: http://www.geocities.com/sendads2me/nsrtlog.html
How fast is your pc?
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Kieran wrote:How fast is your pc?
AMD Athlon 1.1 Ghz
256 MB SDR SDRAM
250 gb Hitachi hard drive (can't remember model)

The JMA compression format doesn't seem quite polished yet. I realize that it can compress SNES roms (slightly) better than pretty much any other format, but I think the time it takes to compress ROMS is a large tradeoff. Compressing with ZIPs at max compression takes a fraction of the time that it takes to use JMA. Anyway, if Nach can tune and speed up compression time for JMA, it would be much more desirable.
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

The only reason that I want to use jma is that it will allow for Zsnes to open roms inside a solid state archive. This will happen, right?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

bitcopy wrote: The JMA compression format doesn't seem quite polished yet. I realize that it can compress SNES roms (slightly) better than pretty much any other format, but I think the time it takes to compress ROMS is a large tradeoff. Compressing with ZIPs at max compression takes a fraction of the time that it takes to use JMA. Anyway, if Nach can tune and speed up compression time for JMA, it would be much more desirable.
I'm working on it.

Kieran wrote:The only reason that I want to use jma is that it will allow for Zsnes to open roms inside a solid state archive. This will happen, right?
It already can.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Kieran wrote:The only reason that I want to use jma is that it will allow for Zsnes to open roms inside a solid state archive.
I see the future: single NSRT complete solid JMA archive, available over all the usual channels. NO unpacking required. Just open with any emulator that supports the archive, and you see all your roms just like in a directory.

Maybe Nach can implement paths within the archive, divided by region or what have you.

Also, does anyone know, I extracted a single rom from a large RAR archive. The uncompressed rom size was about 4mb. Instead of WinRAR just quickly extracting the file, it started going through EVERY file in the archive, but it said "skipping" for those files. Then it finally got to the file I chose and extracted it. Is this behavior typical of solid archives? To extract a single file from a solid archive, does it need to read through the entire archive?
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Sweet.
As for the speed issue, I would be really fucked, with a 333mhz PII. But if I compressed one letter at a time then it'd be all good.
bitcopy wrote:
Kieran wrote:The only reason that I want to use jma is that it will allow for Zsnes to open roms inside a solid state archive.
Also, does anyone know, I extracted a single rom from a large RAR archive. The uncompressed rom size was about 4mb. Instead of WinRAR just quickly extracting the file, it started going through EVERY file in the archive, but it said "skipping" for those files. Then it finally got to the file I chose and extracted it. Is this behavior typical of solid archives? To extract a single file from a solid archive, does it need to read through the entire archive?
As far as I know, Yes.

Also, can you only compress NSRT verifies roms, or could I make a solid-state archive of all of the Goodsnes variations of a rom?
Last edited by kieran_ on Mon Mar 14, 2005 5:24 pm, edited 1 time in total.
Nightcrawler
Romhacking God
Posts: 922
Joined: Wed Jul 28, 2004 11:27 pm
Contact:

Post by Nightcrawler »

bitcopy wrote: Also, does anyone know, I extracted a single rom from a large RAR archive. The uncompressed rom size was about 4mb. Instead of WinRAR just quickly extracting the file, it started going through EVERY file in the archive, but it said "skipping" for those files. Then it finally got to the file I chose and extracted it. Is this behavior typical of solid archives? To extract a single file from a solid archive, does it need to read through the entire archive?
Yes.. The data in the file you're looking for can be based on previous data found in another file. It is necessary to decompress all data found before the file requested to be able to rebuild the file requested. That's an inherent trait of solid archiving.
[url=http://transcorp.romhacking.net]TransCorp[/url] - Home of the Dual Orb 2, Cho Mahou Tairyku Wozz, and Emerald Dragon SFC/SNES translations.
[url=http://www.romhacking.net]ROMhacking.net[/url] - The central hub of the ROM hacking community.
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Nightcrawler wrote:Yes.. The data in the file you're looking for can be based on previous data found in another file. It is necessary to decompress all data found before the file requested to be able to rebuild the file requested. That's an inherent trait of solid archiving.
That's what I thought. If Nach is planning to allow ZSNES to look into a solid JMA archive, how will ZSNES decompress the single rom you want to play, without taking forever? Please correct me if I'm mistaken about anything here.

Oh, I just realized something. Few people would probably attempt to compress ALL their roms into a single solid JMA archive. Probably at most 10 or something, depending on the rom title and all its variations. So that wouldn't take too long. Still, I forsee performance issues.
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

bitcopy wrote: If Nach is planning to allow ZSNES to look into a solid JMA archive
I already said ZSNES can.
bitcopy wrote: how will ZSNES decompress the single rom you want to play, without taking forever? Please correct me if I'm mistaken about anything here.
http://cvs.sourceforge.net/viewcvs.py/z ... ma/jma.cpp

The code is quite efficient.

I have a JMA with ~20 ROMs in it, and it took ZSNES for me ~4 seconds to load it.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Nach wrote:
bitcopy wrote: If Nach is planning to allow ZSNES to look into a solid JMA archive
I already said ZSNES can.
bitcopy wrote: how will ZSNES decompress the single rom you want to play, without taking forever? Please correct me if I'm mistaken about anything here.
http://cvs.sourceforge.net/viewcvs.py/z ... ma/jma.cpp

The code is quite efficient.

I have a JMA with ~20 ROMs in it, and it took ZSNES for me ~4 seconds to load it.
Just out of curiosity, what are your system specs? Also, does Nsrt only allow the creation of Solid State Jma's which only contain nsrt verified roms, or can you have a jma archive which contains any from from GoodSnes?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Kieran wrote: Just out of curiosity, what are your system specs?
Athlon TB 1.4 GHz.
256 MB DDR RAM.
7200RPM 133 IDE drive.
Kieran wrote: Also, does Nsrt only allow the creation of Solid State Jma's which only contain nsrt verified roms
NSRT currently only JMAs ROMs it can rename.
Kieran wrote: or can you have a jma archive which contains any from from GoodSnes?
I can JMA whatever I want.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
bohdy
Rookie
Posts: 13
Joined: Sun Feb 13, 2005 9:28 pm

Post by bohdy »

What is the point of telling us that Zsnes can handle solid multi-file JMA's if there is no way for us to make such JMA's?

Is there an ETA for this feature in NSRT? Preferably at least allowing the user to JMA all roms under each parent name together?
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

bohdy wrote:What is the point of telling us that Zsnes can handle solid multi-file JMA's if there is no way for us to make such JMA's?

Is there an ETA for this feature in NSRT? Preferably at least allowing the user to JMA all roms under each parent name together?
A stand alone JMA compresser, separate from NSRT and not yet released to the public, can put multiple files in a JMA. It can JMA any file you want, not just SNES ROMs.

BTW, as grinvader pointed out, JMA offers excellent compression for GBA ROMs. It'd be cool to see JMA support in VisualBoyAdvance. :)
Post Reply