Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » JCS & Scripting

Tileset Building trouble >O

Puffie40 Puffie40's Avatar

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Mar 3, 2008, 01:26 AM
Puffie40 is offline
Reply With Quote
Tileset Building trouble >O

I have been playing with modifying a tileset.

I used Neobeo's tileset extractor, which extracted the files into .PNG . I now want to (re)compile the tileset, but I ran into several problems

1: JCS only takes .BMP, .LBM, .ANM, and .PCX files.

2: Anything I try to load up, it gives me a "Cannot open file!" error.

It likes it (And will compile) if I save the tileset as a "256 color BMP file" in MSPaint, but you probably know how poor the quality is if anything get saved on that.

so far, the only other file type I have tried is the .PCX files, but it does not like them one bit either. I tried GIMP and "IRFanveiw" to try and convert it to PCX. Any other applications you guys can recommend to convert this picture?

The picture (.PNG) is 320x2304 pixels, with 24 Bits/Pixel. Because I have not modified the mask for it, I have the making option set to "Automask".

Thanks!
Unhit Unhit's Avatar

Pornocrat

Joined: Nov 2001

Posts: 3,771

Unhit is doing well so far

Mar 3, 2008, 02:40 AM
Unhit is offline
Reply With Quote
I'm not an expert, but afaik JJ2 only takes 256 colour images, so you'd have to safe it as that 256 bmp. I'm not sure, though.
__________________
<center>somebody holds the key</center>
Old Mar 3, 2008, 04:54 AM
Grytolle
This message has been deleted by Stijn. Reason: spam
cooba cooba's Avatar

JCF Veteran

Joined: Jan 2004

Posts: 7,812

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

Mar 3, 2008, 06:17 AM
cooba is offline
Reply With Quote
Converting png to pcx with Irfanview works fine here. What's your trouble with Irfanview exactly?
Puffie40 Puffie40's Avatar

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Mar 3, 2008, 08:06 AM
Puffie40 is offline
Reply With Quote
I get a "Cannot open file" error from JCS when compiling a PCX from Irfanveiw or GIMP. (Just tried it again as I wrote this message. No luck)

Seems strange. I'm pretty sure I used all of the same colors that were already on the tileset. Could there perhaps be something wrong with my JCS?

Last edited by Puffie40; Mar 3, 2008 at 09:44 AM.
cooba cooba's Avatar

JCF Veteran

Joined: Jan 2004

Posts: 7,812

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

Mar 3, 2008, 08:23 AM
cooba is offline
Reply With Quote
Getting a "cannot open" error when saving does seem weird.

Where did you save the .png in any other editor before trying to pcx it? The tileset extractor definitely shouldn't output a 24bit png (JCS won't accept image files with their depths different than 8bit = 256 colors).

Also, the Automask option will make all pixels that don't use a transparent color masked, which I suppose is not what you're looking for. You'll need to use the original mask image, and afaik you'll need to set its depth into 8bit rather than 2 colors.
Puffie40 Puffie40's Avatar

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Mar 3, 2008, 09:43 AM
Puffie40 is offline
Reply With Quote
I made a mistake in that last post. When I said saving, I meant in compiling the tileset with JCS. Sorry

Edit: Reworded it...

I guess my problem is with the colors. Is there a way to convert it to 8bit without altering the image quality?
EvilMike EvilMike's Avatar

JCF Member

Joined: Jun 2001

Posts: 3,478

EvilMike is OFF DA CHARTEvilMike is OFF DA CHARTEvilMike is OFF DA CHARTEvilMike is OFF DA CHART

Mar 3, 2008, 11:50 AM
EvilMike is offline
Reply With Quote
Use tilesetpal
Saphir

JCF Member

Joined: Sep 2003

Posts: 60

Saphir is doing well so far

Mar 3, 2008, 12:23 PM
Saphir is offline
Reply With Quote
Probably the amount of colors, yes. If you used any special effects while creating the tileset, the amount of colors may have been auto-increased (I know PSPX does that for me).
__________________
Proud noob member of the Cracco Clan.
Puffie40 Puffie40's Avatar

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Mar 3, 2008, 10:34 PM
Puffie40 is offline
Reply With Quote
tilesetpal does the 8bit conversion fine, and I can now compile the stuff onto JCS

BUT-

Tilesetpal gives me an error when saving to PCX.


Quote:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at tilesetpal.bitmap.save_as_pcx(bitmap* , basic_ofstream >* p_pcxFile)
at ?save@bitmap@tilesetpal@@$$FQAEXABV?$basic_string@ DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4Fi leType@12@@Z(bitmap* , basic_string,std::allocator >* p_bitmapFileName, Int32 p_fileType)
at tilesetpal_win.Form1.save_dialog()
at tilesetpal_win.Form1.i_saveButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.(-)(EventArgs e)
at System.Windows.Forms.Button.(-)(EventArgs e)
at System.Windows.Forms.Button.(-)(-)(-)(-)(-)(-)(-)(-)(-)(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I can save it as a BMP, but the colors are still screwed up in JCS, although not as bad as with MSPaint.

Basically, the background color is a different shade, and anything I shaded black is transparent (Even though it's supposed to be the same shade of black as the rest...)
blurredd blurredd's Avatar

JCF Member

Joined: Nov 2001

Posts: 1,896

blurredd is an asset to this forumblurredd is an asset to this forum

Mar 4, 2008, 01:37 PM
blurredd is offline
Reply With Quote
You'll probably find this somewhat useful (see 24-bit Tileset Nightmare), and the rest of DTR for that matter. If you don't have anything else, you can use TilesetPal to replace black with something slightly black, though it's somewhat complicated. You'll have to make sure the black entries in the first row of the palette remain unchanged and unused.
__________________
D3
Extra. No CTO v0.75
Animating Tiles Properties.
ATB Contest. Scripting Language.
Gameplay Theories.
1UP. Pitfall. Desolation.
SC2.

Nonomu198 Nonomu198's Avatar

JCF Member

Joined: Feb 2007

Posts: 2,066

Nonomu198 is a forum legendNonomu198 is a forum legendNonomu198 is a forum legend

Mar 5, 2008, 07:17 AM
Nonomu198 is offline
Reply With Quote
Really, is this thing (DTR or wutever you call it) even linked anywere on J2O? It really should be. Really.
__________________
<img src="http://www.majhost.com/gallery/Lijik/Star-Wars-Figures-1/ewjclay.png" alt="I miss the techno Cheat." style="float: left; display: block;">

((\_/))
((<a href="http://www.explosm.net/db/files/Comics/Dave/comicbullyroot.jpg" target="_blank">o</a>.<a href="http://drmcninja.com/page.php?pageNum=44&issue=11" target="_blank">o</a>))
(()_())

Classical zombie retro extra fur rabbit.

Guys, remember 2010? LOL

Quote:
Originally Posted by Classical zombie retro extra fur rabbit
I sure miss non-living in ancient Greece!
Puffie40 Puffie40's Avatar

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Mar 5, 2008, 08:48 AM
Puffie40 is offline
Reply With Quote
I managed to fix the problem with the colors. I changed the transparent colors to bright red and green, and used it for a reference to change them (In MSPaint no less!) Now I got a tileset that compiles fine with no color loss.

Thanks guys. The learning curve was a little steep (Mainly because I had to download two 20mb applications to play with the images. --Dialup. ) But now it looks like clear sailing here.

Iconguy, there is a direct link to DTR in the JCS section of J2O, so it's just two clicks away.
Stijn Stijn's Avatar

Administrator

Joined: Mar 2001

Posts: 6,964

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

Mar 5, 2008, 10:34 AM
Stijn is offline
Reply With Quote
IconGuy's question is justified. J2O's navigation is far from perfect.
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 06:11 AM.