Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   Need Help With Tiles! (https://forums.graalonline.com/forums/showthread.php?t=82629)

Ngoc999 11-03-2008 06:46 PM

Need Help With Tiles!
 
I Need Help!!

I Created An Tile But I Dunno How To Open It In Graal Editor Someone Help Me???

Soala 11-03-2008 07:06 PM

Why so much caps ?

Simply use a script like

function onCreated()
{

addtiledef("thetilesetname.png,#L,0);

}

replace with 1 if your tileset is type1.

You should visit the graal bible for lot of tips.

DustyPorViva 11-03-2008 07:22 PM

Ok, first off, tilesets in the editor(or any graphics, for that matter) will not work unless they are indexed. If you have photoshop, open the image up and go to image>mode>index and click ok. If you don't have photoshop, I don't know how to help you there. Saving it in MSPaint though, will not index the image and will instead save it as 24bit(which the Editor can not render).

Otherwise, you want to do something similar to what alex said... but I'll guide you through the steps. His won't be able to be used offline, in the editor, though.

addtiledef imagename.png,levelprefix,0;

Now imagename.png is, of course the image of the tileset.
levelprefix is the prefix of the levels you want the tileset applied to. For example, if you have a gmap full of levels named city_a01, city_a02, city_a03 and so on, you can simply do:

addtiledef citytileset.png,city_,0;

That will make the tileset work for every level that starts with city_. If you want it applied specifically to a level...

addtiledef citytileset.png,city_a01,0;

Will apply it only to the level city_a01, no where else.

DarkIceX 11-03-2008 09:09 PM

Quote:

Originally Posted by DustyPorViva (Post 1438677)
If you don't have photoshop, I don't know how to help you there.

Download Irfanview and open the tileset in irfanview.

From there you can decrease the color depth to 8-bit and save and it will work in editor.

Ngoc999 11-04-2008 04:09 PM

?? stil dunno if i created the tile where i have the put the tile in?? i tried function onCreated()
{

addtiledef("thetilesetname.png,#L,0);

}

And it still wont work if i change the name to the tiles name .... i think the problem is i dunno where to put the tile ???

Deas_Voice 11-04-2008 04:19 PM

is this offline or online?

Chompy 11-04-2008 04:29 PM

Quote:

Originally Posted by Deas_Voice (Post 1438896)
is this offline or online?

Read the first post :o It's offline.

Ngoc999 11-04-2008 05:35 PM

omgosh do anybody knows it?? X_X

Chompy 11-04-2008 05:41 PM

Just one question, did you create one tile, as a 16x16 image or a whole tileset?

Ngoc999 11-04-2008 05:52 PM

i created a whole tileset

DustyPorViva 11-04-2008 05:57 PM

Did you read my post?

Ngoc999 11-04-2008 06:05 PM

ye but i dunno how to do it?? x_X

Ngoc999 11-05-2008 04:47 PM

can anybody help me x_X?!

Darlene159 11-05-2008 04:57 PM

Quote:

Originally Posted by Ngoc999 (Post 1439408)
can anybody help me x_X?!

What are the properties of the tileset image?

Ngoc999 11-05-2008 05:13 PM

if i can ask why u need the properties xD??

Cloven 11-05-2008 05:44 PM

Quote:

Originally Posted by Ngoc999 (Post 1439420)
if i can ask why u need the properties xD??

Asking for help only to ask why somebody needs information to help you is rather foolish and ungrateful, don't you think?

Rufus 11-05-2008 05:50 PM

Can you upload your tileset? I have a feeling that it might have been saved wrong.

Darlene159 11-05-2008 06:02 PM

Quote:

Originally Posted by Ngoc999 (Post 1439420)
if i can ask why u need the properties xD??

So we can make sure it is saved right in order to work.

Soala 11-05-2008 06:03 PM

You don't need to ask why Darlene needs properties, just right click the image, click properties and tell us more about it, for exemple if the image is 8bits (in details)
This can help us to help you ^^

Ngoc999 11-06-2008 06:29 PM

i putted this at the npc in graal ed

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


And If I Try It I Only Get Black Lines In The Editor

Rufus 11-06-2008 06:30 PM

Quote:

Originally Posted by Rufus (Post 1439441)
Can you upload your tileset? I have a feeling that it might have been saved wrong.

...

Ngoc999 11-06-2008 06:32 PM

???

Rufus 11-06-2008 06:34 PM

Quote:

Originally Posted by Ngoc999 (Post 1439755)
???

When you reply click "Manage Attachments" then "Browse" and find your tileset image, click "Open" then "Upload" then "Close this Window" then reply.

DuBsTeRmAn 11-09-2008 09:49 PM

Just to tell u all, This is someone i know. We are both dutch, Someone bought him a server as Birthday-present, But he doenst know anything about scripting etc. This guy is not really known with those things, It is hard for him to understand. If i am right he never did anything like developing.

DustyPorViva 11-09-2008 09:56 PM

Quote:

Originally Posted by DuBsTeRmAn (Post 1440734)
Just to tell u all, This is someone i know. We are both dutch, Someone bought him a server as Birthday-present, But he doenst know anything about scripting etc. This guy is not really known with those things, It is hard for him to understand. If i am right he never did anything like developing.

I figured as much... it might be easier if he found a friend to help him personally with all this stuff.

DuBsTeRmAn 11-10-2008 09:00 AM

I personally dont really know alot about those things, All i can is LAT lol ;)

Tigairius 11-10-2008 09:20 AM

Quote:

Originally Posted by Ngoc999 (Post 1439752)
i putted this at the npc in graal ed

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


And If I Try It I Only Get Black Lines In The Editor

Save the tileset as a .gif, then use gif2mng (in your graal folder) to convert it to png again. If you don't have gif2mng, you can download it from the dev package on the login server (same way you downloaded level editor).

To convert the .gif image to a .png image using gif2mng, simply drag and drop the image on top of the program and it will output the new file in the same folder that the program is in. After you've converted your image, make sure the image is in the same folder as your Graal editor program.

If you post your tileset image I can convert it to the correct format for you without a loss of image quality.

Deas_Voice 11-10-2008 07:35 PM

Quote:

Originally Posted by DuBsTeRmAn (Post 1440840)
I personally dont really know alot about those things, All i can is LAT lol ;)

why dident u tell me then? >_>


All times are GMT +2. The time now is 12:40 AM.

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