JMA Compression

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
Astxist
Rookie
Posts: 32
Joined: Wed Jul 28, 2004 12:40 pm

Post by Astxist »

Nach wrote:The future is now.
Go forth and compress.
Lol, will do.


Astxist
Player1
Hazed
Posts: 74
Joined: Sun Oct 03, 2004 10:03 pm
Contact:

Post by Player1 »

What about a shell registration, that you can simply select roms, klick with the right mouse button on the selection in the explorer and select compress to jma like winzip or 7zip?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

I'll look through my old notes later and see if I can whip up something that can do that for you.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
anewuser
Rookie
Posts: 43
Joined: Wed Jul 28, 2004 4:22 am
Location: x.x

Post by anewuser »

What about a batch file in the sendto folder?
[url=http://www.fsf.org/resources/formats/playogg]PlayOgg[/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 »

anewuser wrote:What about a batch file in the sendto folder?
That's basically what I'm going to be doing.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Okay, I looked through my notes, but bear in mind I didn't test this yet.

To make a converter for when right clicking on directories:

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\JMA]
@="Convert SNES ROMs to JMA"

[HKEY_CLASSES_ROOT\Directory\shell\JMA\command]
@="c:\\nsrt_dir\\nsrt.exe -r -savetype jma -rename %1"
Of course modify the drive and directory to NSRT as appropriate. You can also change which rename type you want there.

Save that as a .reg file and double click it for Windows to integrate it.

For various filetypes, change Directory to .sfc or whatever extension you want to bind for, and remove the -r in the NSRT command.

Any questions?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Cecil
Paladin
Posts: 75
Joined: Fri Jul 30, 2004 2:25 am

Post by Cecil »

I have a question. Is there any way to compress a ROM that nsrt doesn't recognize? I have a bunch of english patched ROMs that NSRT won't compress (Like Star Ocean & ToP, among others).
System Specs:

2.2GHz Athlon64 X2 4400+, 2GB DDR 400 SDRAM
EVGA Geforce 7600GT 256MB
Realtek AC '97
Microsoft Windows Vista Home Premium
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Cecil wrote:I have a question. Is there any way to compress a ROM that nsrt doesn't recognize? I have a bunch of english patched ROMs that NSRT won't compress (Like Star Ocean & ToP, among others).
Currently no, but next release it will be possible.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Cecil
Paladin
Posts: 75
Joined: Fri Jul 30, 2004 2:25 am

Post by Cecil »

Nach wrote:
Cecil wrote:I have a question. Is there any way to compress a ROM that nsrt doesn't recognize? I have a bunch of english patched ROMs that NSRT won't compress (Like Star Ocean & ToP, among others).
Currently no, but next release it will be possible.
Ok, I can wait. Great work on all of this! :D
System Specs:

2.2GHz Athlon64 X2 4400+, 2GB DDR 400 SDRAM
EVGA Geforce 7600GT 256MB
Realtek AC '97
Microsoft Windows Vista Home Premium
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Cecil wrote:
Nach wrote:
Cecil wrote:I have a question. Is there any way to compress a ROM that nsrt doesn't recognize? I have a bunch of english patched ROMs that NSRT won't compress (Like Star Ocean & ToP, among others).
Currently no, but next release it will be possible.
Ok, I can wait. Great work on all of this! :D
So how much space did you save with JMA so far?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Cecil
Paladin
Posts: 75
Joined: Fri Jul 30, 2004 2:25 am

Post by Cecil »

Nach wrote:
Cecil wrote:
Nach wrote:
Cecil wrote:I have a question. Is there any way to compress a ROM that nsrt doesn't recognize? I have a bunch of english patched ROMs that NSRT won't compress (Like Star Ocean & ToP, among others).
Currently no, but next release it will be possible.
Ok, I can wait. Great work on all of this! :D
So how much space did you save with JMA so far?
Uh... I forgot to check. :oops: I'll go do a comparison right now.

Edit: Before, with zip format - 34MB
After, with jma format - 30.4MB

So I saved 3.6MB. That's just with the ROMs on my hard drive. I have a bunch of ROMs on a cd as well that I'm going to convert after NSRT can compress ROMs it doesn't recognize, whenever that'll be.
System Specs:

2.2GHz Athlon64 X2 4400+, 2GB DDR 400 SDRAM
EVGA Geforce 7600GT 256MB
Realtek AC '97
Microsoft Windows Vista Home Premium
deathtok
Hazed
Posts: 59
Joined: Tue Oct 12, 2004 6:30 pm

Post by deathtok »

I saved a smooth 10MB for my small collection. That really is cool. Anyway, thanks for creating a good compression format and sharing.
Player1
Hazed
Posts: 74
Joined: Sun Oct 03, 2004 10:03 pm
Contact:

Post by Player1 »

Is the Jma format compatible to any other formats out there? I would just like to know if you for example want to know what files a jma file contains.

If jma is that good for roms, are the jma specs free that it can be adopted by other emulators also?

thanks to nach and all other developers
Stifu
Regular
Posts: 245
Joined: Fri Dec 10, 2004 10:02 pm

Post by Stifu »

Player1 wrote:If jma is that good for roms, are the jma specs free that it can be adopted by other emulators also?
If I got things right, this is a compression format optimized for *SNES* ROMs, not for ROMs in general...
And ZSNES and Snes9x, the 2 biggest SNES emulators, support JMA already... I don't think Nach would mind sharing with other SNES emu authors, but I can't speak for him.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Nach is currently adding JMA support into sneese.

JMA is a compression format, designed for SNES roms, but it actually can be good with other stuff, like GBA roms, and probably anything 7z is good with.
皆黙って俺について来い!!

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
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

grinvader wrote: and probably anything 7z is good with.
Why is this?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

kilivipin wrote:
grinvader wrote: and probably anything 7z is good with.
Why is this?
7z and JMA are based on the same algorithm. So if 7z is effective on a certain format, JMA will probably do well on that format too.
皆黙って俺について来い!!

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
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

grinvader wrote:
kilivipin wrote:
grinvader wrote: and probably anything 7z is good with.
Why is this?
7z and JMA are based on the same algorithm. So if 7z is effective on a certain format, JMA will probably do well on that format too.
How come the 7zip creators are not credited?
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

"How come the guys who wrote printf are not credited ?"

Edit : all the due credit is given. You just have to READ it, f00
皆黙って俺について来い!!

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
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

grinvader wrote:"How come the guys who wrote printf are not credited ?"
What are you saying?
Did the 7zip creators just mod the zip format or something?
And... What's with the sarcasm, and the arrogance?
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

kilivipin wrote:
grinvader wrote:
kilivipin wrote:
grinvader wrote: and probably anything 7z is good with.
Why is this?
7z and JMA are based on the same algorithm. So if 7z is effective on a certain format, JMA will probably do well on that format too.
How come the 7zip creators are not credited?
They are.

Any files made by them has their info at the top, and in addition:
http://nsrt.edgeemu.com/forum/viewtopic.php?t=344
I would like to give thanks all around to the ZSNES team, Snes9x team, 7-Zip team, AdvanceMame team, and our own staff for making JMA - the ultimate compression available for SNES ROMs a possibility.
- JMA compression support
(Nach, Lord Nightmare, Igor Pavlov, Andrea Mazzoleni, grinvader, CL, malcster, zones)
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:
kilivipin wrote:
grinvader wrote:
kilivipin wrote:
grinvader wrote: and probably anything 7z is good with.
Why is this?
7z and JMA are based on the same algorithm. So if 7z is effective on a certain format, JMA will probably do well on that format too.
How come the 7zip creators are not credited?
They are.

Any files made by them has their info at the top, and in addition:
http://nsrt.edgeemu.com/forum/viewtopic.php?t=344
I would like to give thanks all around to the ZSNES team, Snes9x team, 7-Zip team, AdvanceMame team, and our own staff for making JMA - the ultimate compression available for SNES ROMs a possibility.
- JMA compression support
(Nach, Lord Nightmare, Igor Pavlov, Andrea Mazzoleni, grinvader, CL, malcster, zones)
Oh.. Thanks.
I just didn't see any credits in the nsrt 3.3 binary.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

kilivipin wrote:And... What's with the sarcasm, and the arrogance?
I'm only reflecting the lack of trust you are so willing to demonstrate.

You've asked 4 questions answered by the SAME sentence, and doubt people about stuff you didn't even check. And you expect sarcasmless nice replies ?
Go you.
皆黙って俺について来い!!

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
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

kilivipin wrote: Oh.. Thanks.
I just didn't see any credits in the nsrt 3.3 binary.
Read the readme next time.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Okay, got SNEeSe to load JMA files. I sent the changes to TRAC, hopefully you'll see it in the next version of SNEeSe.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Post Reply