Graal Forums  

Go Back   Graal Forums > Development Forums > Graphic Design
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-12-2003, 02:24 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Adding tiles to your tileset - tutorial!

This could have gone in either GFX, or scripting, but I figure, if you need this script, it is for GFX, so I put it here


My prefered use, is addtiledef2
So that is the command I will show you how to use.


In the commands, it tells you to use it like this:

NPC Code:
addtiledef2 image,levelstart,x,y;



So you will start your script with this:

NPC Code:
addtiledef2



Ok, now, your image. To look right, it must fit the graal tiles. The graal tiles are 16pixels x 16pixels. Also, if it is .png, it must be 8bit to be able to be used. Put your image in Graal2001-->Levels-->Webgifs
Then go back to your script, and put the imagename in. My example imagename: untitled.png Now my example script looks like this:

NPC Code:
addtiledef2 untitled.png



Now for the level start. My example level start will be new1.nw Instead of putting new1.nw, I can just put new for my 'levelstart', and this way, any level that starts with new, will have this custom tileset. So put your levelname in. My example script now looks like this:

NPC Code:
addtiledef2 untitled.png,new



Now it is time for the x,y
What tile do you want to replace? Lets say you want to replace the yellow flower in the upper left. Left click, and highlight the tile and while still with the mouse held down look to the bottom of the editor screen. It says:

NPC Code:
(0,1)->(1,2)=(1,1)



All you need are the first two numbers. This means that the Tile is at 0x, and 1y.
This is a point where many people mess up.
Remember, that each tile is 16 pixels, so you can't just put in 0,1 for the x,y.
You should put 0*16,1*16; instead. The asterik (*) command in GScript means to multiply. So my final example script looks like this:

NPC Code:
addtiledef2 untitled.png,new,0*16,1*16;



And if you have done everything properly, it should work.
__________________
(Married to Skyld)

Last edited by Mykel; 08-12-2003 at 09:52 PM..
Reply With Quote
  #2  
Old 08-12-2003, 07:03 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
im still a lil confused... im just now starting on gfx and does that just start replacing the tileset at the specified x,y?
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #3  
Old 08-12-2003, 07:05 AM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Yea, you hover over what tile in the tileset that you want to replace.
__________________
(Married to Skyld)
Reply With Quote
  #4  
Old 08-12-2003, 07:32 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
eww wouldnt that take awhile to use an entire custom tileset X_x theres gotta be another way...
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #5  
Old 08-12-2003, 12:17 PM
Snakeandy7 Snakeandy7 is offline
"Member ID=2610"
Snakeandy7's Avatar
Join Date: Mar 2003
Posts: 987
Snakeandy7 is on a distinguished road
NPC Code:

addtiledef pics1.png,levelstart,0-1;


deciding if it's new or edited..i think 0 - edited and 1- new).
__________________
"Freedom is best I tell thee
of all things to be won
then never live within the bond
of slavery my son".


Reply With Quote
  #6  
Old 08-12-2003, 07:13 PM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Quote:
Originally posted by Snakeandy7
NPC Code:

addtiledef pics1.png,levelstart,0-1;


deciding if it's new or edited..i think 0 - edited and 1- new).
Yea, that's for addtiledef tho, not addtiledef2.
__________________
(Married to Skyld)
Reply With Quote
  #7  
Old 08-12-2003, 09:53 PM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
I had messed up so for anyone who was confused, read back over my x,y part. I edited it. It was wrong.
__________________
(Married to Skyld)
Reply With Quote
  #8  
Old 08-27-2003, 09:19 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
I always went wrong with x and y =x
But now i know it's like setshape.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #9  
Old 08-27-2003, 10:11 PM
HunterTerryon HunterTerryon is offline
Registered User
Join Date: Aug 2003
Posts: 168
HunterTerryon is on a distinguished road
Teach us to do what era did XP I don't want my tile set limited to one bed and 2 chairs
Reply With Quote
  #10  
Old 08-27-2003, 10:54 PM
marcoR marcoR is offline
Registered User
Join Date: Jul 2003
Posts: 1,349
marcoR is on a distinguished road
adding threads to the level section! lol jk... but I think this should be in level editting shouldnt it? meh, it's a half point, and seeing as we know each other i'll be nice. I forget how to do this tho...
__________________
If this is your account, contact me.
- loriel
email, jabber: [email protected]
icq: 67530805
aim: lorielvictrix
Reply With Quote
  #11  
Old 08-28-2003, 07:52 PM
Kappa00p2p Kappa00p2p is offline
Registered theRapist
Kappa00p2p's Avatar
Join Date: Jul 2003
Posts: 198
Kappa00p2p is an unknown quantity at this point
Send a message via AIM to Kappa00p2p
i was trying to get my servers tileset working. the script worked offline perfectly... however online my server almost died because all the tiles messed up... ie u couldnt walk on grass.
__________________

-Kappa
Reply With Quote
  #12  
Old 11-05-2003, 07:09 PM
Mykel Mykel is offline
:o
Mykel's Avatar
Join Date: May 2002
Location: Canton, Ohio.
Posts: 5,526
Mykel has a spectacular aura about
Send a message via AIM to Mykel Send a message via MSN to Mykel
Make sure you have all the GFX uploaded onto the server.
__________________
(Married to Skyld)
Reply With Quote
  #13  
Old 11-05-2003, 07:50 PM
Muha_builder Muha_builder is offline
Registered User
Muha_builder's Avatar
Join Date: Jan 2003
Posts: 246
Muha_builder is on a distinguished road
a server i worked on had the same prob he restarted the server and it worked perfectly
Reply With Quote
  #14  
Old 11-05-2003, 08:51 PM
davidpsy davidpsy is offline
Over Nine THOUSAND!!!!!!!
davidpsy's Avatar
Join Date: Mar 2002
Location: Bandiria
Posts: 5,514
davidpsy is on a distinguished road
Send a message via AIM to davidpsy
Quote:
Originally posted by HunterTerryon
Teach us to do what era did XP I don't want my tile set limited to one bed and 2 chairs

See what era did was use addtiledef with a type 1 tileset. See with addtiledef2 it allows you to cover images either as big or smaller then the current tileset over it. So with addtiledef it puts an entire tileset image over the pics1 tileset. It also allows you to use two different types of tilesets type 0 which is pics1 and then there is type 1 which is this.
Attached Thumbnails
Click image for larger version

Name:	type1.png
Views:	1354
Size:	12.2 KB
ID:	26220  
__________________
-Donald Shimoda
Level oo.

Forces greater than your self, can be over come.
Reply With Quote
  #15  
Old 11-07-2003, 02:42 AM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
well the script i use (i only use this when testing a tile set because you guys must have no lives if you add that script for every lvl)

//#CLIENTSIDE
if (created) {
addtiledef blah.png,lvl,1;
}

//Key//
blah.png (tiles gfx)
1 (the type)
////////

its a simple script and you guys really dont know much about inserting tiles to a server, and i think era split there tiles in 2 parts and uploaded it like that.

To add a tile set to your server (if its more then 64k), you put the tiles on a website then send stefan that website link and he will then add the tile set for you
(Note: the tiles will be placed in every lvl of ur server)

and thats how you do it, but if the tiles is shorter then 64k then you have to do it on your own.
Reply With Quote
Reply


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 Off

Forum Jump


All times are GMT +2. The time now is 06:19 PM.


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