Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2005, 01:46 AM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
Tileset properties

Currently, there are two sets of tileset properties, an older one and a newer one.

By a set of tileset properties, I mean the orientation of the tiles (ie which tiles act as chairs, which act as blocking, which act as non-blocking, water, lava, etc.). Currently, playerworlds have to conform to a Graal standard. I would request that it is possible to make new tileset properties sets.

An example of the scripting may look like:

addtiledef tileset.png,level.nw,tilesetprop.txt;

Where tilesetprop.txt would be a file containing the information that would designate each tile a property.

tilesetprop.txt may look like this:

0,0,1,2,3,1,2,0,0,1,2,4,5,6,9,2 ...
2,2,1,6,1,2,1,5,8,1,3,5,6,3,1,2 ...

Where each number represents a property and each line represents a horizontal line of the tileset.

A possible scenerio for what the numbers may represent:

blocking: 0
non-blocking: 1
deep water: 2
shallow water: 3
sitting: 4
bed: 5
swamp: 6
deep lava: 7
shallow lava: 8
hurting ground: 9
animated:
10a (10b,10c,10d,10e ... range of letters determines range of frames)
or any other number 10 or above, where a letter represents a frame.

Anything I miss? Input please. Hopefully this can be implemented soon, adding on to Graal's already staggering customizability, it's strongest point.
Reply With Quote
  #2  
Old 01-11-2005, 05:43 AM
Eagle Eagle is offline
Registered User
Eagle's Avatar
Join Date: Jul 2004
Location: Boston, MA
Posts: 584
Eagle will become famous soon enough
Send a message via AIM to Eagle
Good idea as it may not be as confusing like when useing a blank template if you make the template yourself.
__________________

AIM : FCartman007
Old account - 190
Reply With Quote
  #3  
Old 01-11-2005, 09:08 AM
Snakeandy7 Snakeandy7 is offline
"Member ID=2610"
Snakeandy7's Avatar
Join Date: Mar 2003
Posts: 987
Snakeandy7 is on a distinguished road
I really like that, Mabie area's what show under + over the player if you understand me.
__________________
"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
  #4  
Old 01-11-2005, 05:43 PM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
Quote:
Originally Posted by Snakeandy7
I really like that, Mabie area's what show under + over the player if you understand me.
Yeah, I thought about the drawing over idea, but that might involve too big a leap right away.

Quote:
Originally Posted by haro41
theres no need for commas. just use hexidecimal formation im sure that would be enough. and much cleaner too.
I'm not quite sure what you mean. Could you please give an example?

EDIT:

I forgot bushes, stones, and signs.

I'm sure if this idea is actually looked at, that bomber already has his own already-coded format anyways, based on Graal's already existing format. These are just suggestions to give examples.

Last edited by Shaun; 01-11-2005 at 06:02 PM..
Reply With Quote
  #5  
Old 01-11-2005, 10:40 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
theres no need for commas. just use hexidecimal formation im sure that would be enough. and much cleaner too.
__________________

Zenkou for life
Reply With Quote
  #6  
Old 01-12-2005, 05:29 AM
haro41 haro41 is offline
zenkou
haro41's Avatar
Join Date: Jul 2003
Location: Sol Grotto
Posts: 689
haro41 will become famous soon enough
Send a message via AIM to haro41
in hex the numbers 0-9 are represented normally as 0-9. but from 10-16. they are represented as the letters A-F. so 15 in hex is E
__________________

Zenkou for life
Reply With Quote
  #7  
Old 01-12-2005, 05:33 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I am not sure if it would be really good, it is better if you use the new tileset format where you have different areas for different type of tiles. If you would like to change the tiletypes of existing tilesets then you would need to define 2048 values by script (since it must be secure, so it must be put in a weapon script), which is not really simple.
Reply With Quote
  #8  
Old 01-12-2005, 05:31 AM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
Wouldn't letters already be used for animated tiles? Such as the flower
Reply With Quote
  #9  
Old 01-13-2005, 11:01 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
Quote:
Originally Posted by Shaun
Wouldn't letters already be used for animated tiles? Such as the flower
animated tiles shouldn't require any annoying special stuff

they should just work when you addtiledef2 an animated image

Quote:
Originally Posted by Stefan
Tilesets are 2048x512 pixels and contain 4096 tiles.
With weapon script i mean you would need to put the scripting command to set the tile types in a weapon script because it would need to be done on clientside.
What is the problem with the new tileset formats exactly?
What I think he is suggesting is something to completely change the layout of the tileset tile types using a script command or server option.

like say you make this command for Graal: loadnewtilesetformat file.txt;
where file.txt contains an array of the hex numbers corresponding to different tile types
__________________

Reply With Quote
  #10  
Old 01-12-2005, 05:36 AM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
The current existing tileset formats may be limitting to some developers. I am not sure what you mean when you say "weapon script", unfortunately. Does a tileset have to be a specific size?
Reply With Quote
  #11  
Old 01-13-2005, 12:52 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Tilesets are 2048x512 pixels and contain 4096 tiles.
With weapon script i mean you would need to put the scripting command to set the tile types in a weapon script because it would need to be done on clientside.
What is the problem with the new tileset formats exactly?
Reply With Quote
  #12  
Old 01-14-2005, 06:11 PM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
I know we havesomething to get tiletypes from a setshape2 but we need something to get the tile type from in level IE tilestype[x,y] would be equal to the values allready defined IE 22 blocking 3 chair ect...
__________________

To the sun of your age, I arise
Reply With Quote
  #13  
Old 01-14-2005, 08:43 PM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
Quote:
Originally Posted by Stefan
With weapon script i mean you would need to put the scripting command to set the tile types in a weapon script because it would need to be done on clientside.
I'm still uncertain by what you mean with weapon script. NPCW? When you mention clientside, I become nervous, because I haven't scripted anything using any stuff added since around 1.34.

Quote:
Originally Posted by Stefan
What is the problem with the new tileset formats exactly?
There are only 2 tileset formats if I understand correctly. The newer one, addtiledef _,_,1; , is inadequately explained (the tileset templates on the forums are partially incorrect I discovered), as well, it would allow developement teams to have greater organization possibilities and flexibility with tilesets.
Reply With Quote
  #14  
Old 01-18-2005, 09:45 AM
TB3 TB3 is offline
Registered User
TB3's Avatar
Join Date: May 2001
Location: US of A State of VA
Posts: 658
TB3 is on a distinguished road
Send a message via Yahoo to TB3
Quote:
Originally Posted by Shaun
I'm still uncertain by what you mean with weapon script. NPCW? When you mention clientside, I become nervous, because I haven't scripted anything using any stuff added since around 1.34.
He means that if you wanted to redefine the tileset yourself it would need to be in a "NPC weapon" in the players inventory with arrays defining every single tile which would be a pain.


Quote:
Originally Posted by Shaun
There are only 2 tileset formats if I understand correctly. The newer one, addtiledef _,_,1; , is inadequately explained (the tileset templates on the forums are partially incorrect I discovered), as well, it would allow developement teams to have greater organization possibilities and flexibility with tilesets.
I thought they where explained adequately just no realy good template for it.
Its simple giant blocks of tiles defined for 1 purpose. One section for chairs , one for water tiles , ect...
__________________

To the sun of your age, I arise
Reply With Quote
  #15  
Old 01-18-2005, 05:18 PM
Shaun Shaun is offline
Registered User
Shaun's Avatar
Join Date: Jul 2003
Location: Canada
Posts: 1,070
Shaun is a jewel in the roughShaun is a jewel in the rough
Quote:
Originally Posted by TB3
He means that if you wanted to redefine the tileset yourself it would need to be in a "NPC weapon" in the players inventory with arrays defining every single tile which would be a pain.
So an NPCW.

Quote:
Originally Posted by TB3
I thought they where explained adequately just no realy good template for it.
Its simple giant blocks of tiles defined for 1 purpose. One section for chairs , one for water tiles , ect...
The templates/definitions that are up though, they are less than 100% accurate.
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 02:15 AM.


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