Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Why doesn't my tileset show in the Editor? (https://forums.graalonline.com/forums/showthread.php?t=78151)

Kittah 12-31-2007 10:17 AM

Why doesn't my tileset show in the Editor?
 
Perhaps a stupid question and I may be totally missing something, but I'm having problems getting my tileset to load in the Graal Level Editor. Basically, it just doesn't appear in the Editor.

The file is an 8-bit .png, first saved as .gif and then converted using the program included with Graal. I've added an NPC to set the tiles using addtiledef and the appropriate line has been added in offlinetiledefs.txt or whatever it is, but it just won't appear...

Any help, obvious or otherwise? I'm running Vista, if that changes things at all... I know that when I close the Level Editor I must do so through the task manager or it'll come up with some kind of runtime error... ugh.

Banditz 12-31-2007 02:10 PM

Use a NPC. And i use:

if (created) {removetiledefs; addtiledef tilesethere.gif,,0
}
if (playertouchsme) {
}

Works fine for me on Vista.

cbk1994 12-31-2007 06:03 PM

PHP Code:

removetiledefs;
addtiledef tileset.png,,; 

Will work fine offline.

On a side note, I wish people would stop saving things as GIFs and then using gif2mng to convert them to PNG. Just save them as an 8-bit PNG in the first place z.z

EDIT: Also, for tilesets, can't you use up to 32-bit online?

Angel_Light 12-31-2007 10:42 PM

Yes, but the offline editor can only read 8-bit images currently.

Kittah 01-01-2008 05:30 PM

Thanks for the tips all, but that's basically what I've already done... it seems as though Graal just doesn't like my tile image, despite it being an 8-bit .png as required.

As far as saving as .gif and then converting, it's the easiest method for me as I don't know how to set the image to 8-bit when saving as a .png in Gimp whereas saving it into .gif works fine.

cbk1994 01-01-2008 06:14 PM

Quote:

Originally Posted by Kittah (Post 1367362)
Thanks for the tips all, but that's basically what I've already done... it seems as though Graal just doesn't like my tile image, despite it being an 8-bit .png as required.

As far as saving as .gif and then converting, it's the easiest method for me as I don't know how to set the image to 8-bit when saving as a .png in Gimp whereas saving it into .gif works fine.

There are tutorials to save 8-bit PNGs in GIMP.

Personally, get Fireworks.

Kittah 01-02-2008 02:16 PM

Quote:

Originally Posted by cbkbud (Post 1367375)
There are tutorials to save 8-bit PNGs in GIMP.

Personally, get Fireworks.

It's more a matter of laziness than anything else :p

I'll have a look into Fireworks, though... no harm in trying out some new and interesting software.


All times are GMT +2. The time now is 07:04 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.