View Single Post
Puffie40 Puffie40's Avatar

JCF Member

Joined: May 2002

Posts: 894

Puffie40 is doing well so far

Mar 3, 2008, 09: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...)