Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   Tileset problem. (https://forums.graalonline.com/forums/showthread.php?t=62867)

RavenofEarth 12-19-2005 11:58 AM

Tileset problem.
 
Alrighty, how should I start this off. Okay, let me explain. I'm trying to upload a custom tileset to my server, I have set it to 256(8 bit) colour, I have saved it under .png. As far as coding goes, the level you enter, there is an NPC;

//#CLIENTSIDE
if (created||playerenters) addtiledef2 anzell_tiles.png,#L,0,0;

well, Apprently, it dislikes my tiles, because it wont show them when I uploaded them, and if they have a different name, such as a name of another server's tileset, then they show. I haven't a clue what's wrong.

Please help.

-Takezo

xAndrewx 12-19-2005 12:16 PM

Is this online or offline?

RavenofEarth 12-19-2005 12:17 PM

Both, It seems to me, that if I used a different server's tileset, they show, so I erase them from my server, upload my tileset, no show. and the png is Indexed 8bit too. I just don't get it.

RavenofEarth 12-19-2005 06:26 PM

Here's the tileset that I am apparently having issues with.

http://img509.imageshack.us/img509/4...eset3vs.th.png

haunter 12-19-2005 08:50 PM

Make sure that you're saving your tileset as an 8-bit PNG without transparency.

RavenofEarth 12-19-2005 11:05 PM

They are being saved at 8 bit and no transparencies.

Magadal 12-19-2005 11:05 PM

Quote:

Originally Posted by RavenofEarth
Here's the tileset that I am apparently having issues with.

http://img509.imageshack.us/img509/4...eset3vs.th.png


Umm pics1.png?O.o

RavenofEarth 12-19-2005 11:12 PM

No, if you looked more carefully, on the far bottom right corner, I've made a few edits, in fact, I've been making a few since I posted that.

haunter 12-20-2005 03:33 AM

It might be a problem with where you've saved the .png then... You should also be using {} brackets on your code, but that shouldn't be causing your problem.

RavenofEarth 12-20-2005 04:50 AM

saved them in the tiles folder on my server, and in webgifs. O_o

haunter 12-20-2005 04:59 AM

Quote:

Originally Posted by RavenofEarth
saved them in the tiles folder on my server, and in webgifs. O_o

Hrm... What version of graal are you using? I know that in V4 tiles are now saved in graal/levels/tiles instead of webgifs... not sure if that would cause any problem though.

Maybe it's you code... I can't be certian though, it's been so long since I used any of this stuff D:

NPC Code:
//#CLIENTSIDE
if (created) {
addtiledef2 anzell_tiles.png,#L,0,0;
}



That should work. 0.o;

If you're changing the entire tileset you could just use addtiledef though.

RavenofEarth 12-20-2005 12:24 PM

Well, this is odd, now, I get a totally black set. As if the tilesets were all coloured black. And if I do addtiledef, the screen goes all wigged out. Lots of colours.

WanDaMan 12-20-2005 12:46 PM

Add
NPC Code:
removetiledefs; 


above the script.

Also, instead of #L add the level name including the format. Example:
Quote:

wandaman_level.nw
When in offline mode check that the level is in the same directory as the tileset.

Edit:
Try this, you're using addtiledef2 x_x
NPC Code:

//#CLIENTSIDE
if (created){
removetiledefs;
addtiledef anzell_tiles.png,#L,0;
}


haunter 12-20-2005 12:48 PM

Quote:

Originally Posted by RavenofEarth
Well, this is odd, now, I get a totally black set. As if the tilesets were all coloured black. And if I do addtiledef, the screen goes all wigged out. Lots of colours.

Are you certian that you're using the correct syntax when using addtiledef rather than addtiledef2?

RavenofEarth 12-20-2005 01:11 PM

You know...I feel really stupid right now, Thanks WanDaMan, It happens that my levels weren't saved in the same folder in offline mode. I have to test the other tilesets now.


Edit: They all work now, Thank everyone who tried helping!


All times are GMT +2. The time now is 03:10 AM.

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