Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » General Jazz Jackrabbit Talk

question about j2e

Reply
 
Thread Tools
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

Apr 11, 2007, 03:07 AM
zapS is offline
Reply With Quote
Question question about j2e

just wondering if anybody knows how the image is stored(what kind of format) in the j2e files.
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Apr 11, 2007, 03:10 AM
Stijn is offline
Reply With Quote
IIRC, it's a PCX file, probably compressed with zlib.
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

Apr 11, 2007, 03:13 AM
zapS is offline
Reply With Quote
so pcx is alot smaller than bmp?
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Apr 11, 2007, 03:28 AM
Stijn is offline
Reply With Quote
PCX is compressed (and in JJ2's case 8bit) while BMP is not. There's probably some info here.

However, the tool used to make J2E's requires you to give it a PCX file, so I guess that's the format used :P
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

Apr 11, 2007, 03:58 AM
Neobeo is offline
Reply With Quote
A J2E contains, among other things, 3 BMPs (not PCX), compressed with zlib. More specifically, the images are stored one byte per pixel (once you get past zlib).
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
Grytolle

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Apr 11, 2007, 05:14 AM
Grytolle is offline
Reply With Quote
Then it would be false of me to say "it's raw - like me"
__________________
<center></center>
DoubleGJ

JCF Member

Joined: Sep 2002

Posts: 3,050

DoubleGJ has disabled reputation

Apr 11, 2007, 07:42 AM
DoubleGJ is offline
Reply With Quote
One image is the episode pic, second is the title. What's the third picture, then?
__________________
"So unless I overwrote my heart with yours, I think not. But I might have." - Violet CLM

Two Games Joined releases:
Control / Splinter (twin singles)
|| Ballistic Bunny (EP)
||
Beyond (maxi-single)
|| Beyond: Remixed (remix EP)
|| Inner Monsters OST (mini-album)
||
Shadows (album)
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Apr 11, 2007, 08:09 AM
Stijn is offline
Reply With Quote
A low-res of the title image, I believe, for the zooming in-and-out effect.
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,090

Violet CLM has disabled reputation

Apr 11, 2007, 10:33 AM
Violet CLM is offline
Reply With Quote
The title switches to a highlighted version when you select it.
ShadeJackrabbit

JCF Member

Joined: Apr 2005

Posts: 1,342

ShadeJackrabbit is doing well so far

Apr 11, 2007, 11:53 AM
ShadeJackrabbit is offline
Reply With Quote
That's just done with shaders I believe.

Also, I used to have the program that made .j2e files, but lost it 3 hard disk deaths ago.
__________________

Stop talking sense, this is an internet argument. ~Doubble Dutch
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

Apr 11, 2007, 11:59 AM
Stijn is offline
Reply With Quote
Quote:
Originally Posted by ShadeJackrabbit View Post
That's just done with shaders I believe.
No, it's done by using the other image.
ShadeJackrabbit

JCF Member

Joined: Apr 2005

Posts: 1,342

ShadeJackrabbit is doing well so far

Apr 11, 2007, 12:03 PM
ShadeJackrabbit is offline
Reply With Quote
*thinks back for a few moments*
Sorry, my bad, it is.
__________________

Stop talking sense, this is an internet argument. ~Doubble Dutch
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

Apr 11, 2007, 05:05 PM
Neobeo is offline
Reply With Quote
Also, the size of the image alone leads me to conclude that JJ2 was meant to be played in a resolution of 640x400.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 19, 2007, 03:49 AM
zapS is offline
Reply With Quote
does all the 3 bmp images start with "BM"when uncompressed?
and where do i find the uncompressed size in the header? i can only find the compressedsize (4 bytes before 78 da).
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

May 19, 2007, 04:57 AM
Neobeo is offline
Reply With Quote
The uncompressed size is not given, because it is a static value. I don't have the exact figure at hand though. Basically width * height.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
Newspaz

JCF Member

Joined: Jan 2001

Posts: 2,678

Newspaz has disabled reputation

May 19, 2007, 05:48 AM
Newspaz is offline
Reply With Quote
Quote:
Originally Posted by Neobeo View Post
Also, the size of the image alone leads me to conclude that JJ2 was meant to be played in a resolution of 640x400.
Well, it makes sense. The game was originally meant for 320x200 like JJ1 was. And 640x400 is exactly the double obviously.
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 19, 2007, 07:13 AM
zapS is offline
Reply With Quote
ok, now i can uncompress everything so no more questions about that, but i don't know what the 8 bytes after the width and height are, can anyone tell me?

and one more thing, when i compress images, they become just 41 bytes and i think that is too small and jj2 doesnt like it. why?

Last edited by zapS; May 20, 2007 at 11:02 PM.
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 20, 2007, 11:14 PM
zapS is offline
Reply With Quote
I think the compressed size in the j2e files are at least around 10000 bytes and 41 is quite small compared to that.
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

May 21, 2007, 12:23 AM
Neobeo is offline
Reply With Quote
Quote:
Originally Posted by zapS View Post
ok, now i can uncompress everything so no more questions about that, but i don't know what the 8 bytes after the width and height are, can anyone tell me?

and one more thing, when i compress images, they become just 41 bytes and i think that is too small and jj2 doesnt like it. why?
I have no idea what the 8 bytes after are. They're marked as "unknown" in my file format specs. And 41 bytes definitely doesn't sound right.

Quote:
Originally Posted by zapS View Post
I think the compressed size in the j2e files are at least around 10000 bytes and 41 is quite small compared to that.
At a guess, you probably used the compress/compress2 function wrongly.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 21, 2007, 12:43 AM
zapS is offline
Reply With Quote
well how should i use it?
it returns Z_OK or something like that.
i tried to increase all the unknown bytes by 1 and it worked just as usual, but when a set the all to ff, there was a memory error, it said something about memAlloc().
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 24, 2007, 02:53 AM
zapS is offline
Reply With Quote
I have found the problem and now i can compress and make my own j2e files!
thanks neobeo for your help.
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

May 24, 2007, 03:03 AM
Neobeo is offline
Reply With Quote
You're welcome. Just out of curiosity, what was the problem?
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 24, 2007, 03:19 AM
zapS is offline
Reply With Quote
i did wrong when i read the file into a char pointer.
in the fread funtion the first parameter must be an adress you know,
and usually i want to read data and put them in int variables or similar types and then i have to write fread(&var,... and i forgot that in this case it was a pointer and i wrote "&" before. the result were just alot of -51, quite a stupid thing to do but that's the kind of small mistakes i often run into
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 24, 2007, 03:22 AM
zapS is offline
Reply With Quote
now i try to read the .LEV files in 1.00g
i have found out how the tileset data is stored.
Neobeo

JCF Member

Joined: Sep 2002

Posts: 409

Neobeo is an asset to this forumNeobeo is an asset to this forum

May 24, 2007, 03:27 AM
Neobeo is offline
Reply With Quote
This probably warrants a thread of its own, but the LEV file format is full of hate. </3 Among other things, each tile is stored differently depending on whether it has any transparent pixels, and where the transparent pixels are.
__________________
<TABLE border=1><TR><TD>Facts:
Jazz Sprite Dynamite (JSD)
Tileset Extractor
Neobeo's Firetruck

</TD><TD>Myths:
Jazz Creation Station Plus (JCS+) - 10%
Coming soon - a dedicated server! - 25%
Jazz Sprite Dynamite v2 (JSDv2) - 2%
Another generic single-player level - 0%
</TD></TR></TABLE>
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 24, 2007, 03:34 AM
zapS is offline
Reply With Quote
i know, and it's really annoying. but i think i've found out how it works.
the reason for doing this is because i want to get the cool jungle tileset.
ShadeJackrabbit

JCF Member

Joined: Apr 2005

Posts: 1,342

ShadeJackrabbit is doing well so far

May 24, 2007, 09:34 AM
ShadeJackrabbit is offline
Reply With Quote
Any chance of releasing a program publicly that allows this j2e editing?
(*dodges really sharp knife*)
__________________

Stop talking sense, this is an internet argument. ~Doubble Dutch
n00b

JCF Veteran

Joined: May 2004

Posts: 5,578

n00b is an asset to this forumn00b is an asset to this forum

May 25, 2007, 05:26 AM
n00b is offline
Reply With Quote
Didn't you already get one?
ShadeJackrabbit

JCF Member

Joined: Apr 2005

Posts: 1,342

ShadeJackrabbit is doing well so far

May 26, 2007, 08:41 AM
ShadeJackrabbit is offline
Reply With Quote
About 4 hard disk crashes ago...
__________________

Stop talking sense, this is an internet argument. ~Doubble Dutch
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 27, 2007, 11:36 PM
zapS is offline
Reply With Quote
that's possible
ShadeJackrabbit

JCF Member

Joined: Apr 2005

Posts: 1,342

ShadeJackrabbit is doing well so far

May 28, 2007, 01:58 PM
ShadeJackrabbit is offline
Reply With Quote
Yay!
__________________

Stop talking sense, this is an internet argument. ~Doubble Dutch
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

Jun 22, 2007, 02:05 PM
zapS is offline
Reply With Quote
ok, now I've made a simple console app, which creates a j2e file. you just have to enter som filenames etc. it works fine. does anyone think that could be something?
cooba

JCF Veteran

Joined: Jan 2004

Posts: 7,823

cooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of lightcooba is a glorious beacon of light

Jun 23, 2007, 02:03 AM
cooba is offline
Reply With Quote
Well if it's made completely by you, it could be freely distributed, by being uploaded to J2O for example
ShadeJackrabbit

JCF Member

Joined: Apr 2005

Posts: 1,342

ShadeJackrabbit is doing well so far

Jun 23, 2007, 06:06 AM
ShadeJackrabbit is offline
Reply With Quote
Excellent idea!
__________________

Stop talking sense, this is an internet argument. ~Doubble Dutch
Olsen

JCF Member

Joined: May 2004

Posts: 1,370

Olsen is doing well so far

Jun 28, 2007, 08:45 AM
Olsen is offline
Reply With Quote
it's uploaded now //zapS
__________________
some kind of nature
Grytolle

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Jun 29, 2007, 06:29 AM
Grytolle is offline
Reply With Quote
zapS, please add me to msn (or unblock me) grytolle@craccoclan.com

And more importantly; nice job
__________________
<center></center>
Doubble Dutch

JCF Member

Joined: Mar 2004

Posts: 3,072

Doubble Dutch is doing well so far

Jun 29, 2007, 07:48 AM
Doubble Dutch is offline
Reply With Quote
So is there something to *extract* said images from the j2e file?
__________________

nonne amicus certus in re incerta cernitur?

/)_/)
(^.^)
((")(")
Grytolle

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Jun 29, 2007, 08:00 AM
Grytolle is offline
Reply With Quote
jj2 and print screen
__________________
<center></center>
Doubble Dutch

JCF Member

Joined: Mar 2004

Posts: 3,072

Doubble Dutch is doing well so far

Jun 29, 2007, 08:35 PM
Doubble Dutch is offline
Reply With Quote
Doesn't that just give you the whole screen and not the image?
__________________

nonne amicus certus in re incerta cernitur?

/)_/)
(^.^)
((")(")
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,090

Violet CLM has disabled reputation

Jun 30, 2007, 12:46 AM
Violet CLM is offline
Reply With Quote
Umm... yes. To be solved by cropping, I suppose.
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 09:16 AM.