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 12-12-2009, 09:53 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Customized Tileset Templates

Right now we have addtiledef(img,prefix,type). I suggest that servers are able to upload templates and access them via the type. How this can be done could possibly be via a special folder named TileTypes, where you can upload a txt file like so...

TileTemplate#.txt and use it like so: addtiledef(img,prefix,#);

Inside the file would be the arrays that store the tiles of your desired tile types in such a format:
PHP Code:
type_22 = {
  
0x0,  0x1,  0x2,  0x3,  0x4,  0x5,  0x6,  0x7,  0x8,  0x9,  0xA,
 
0x100x110x120x130x140x150x160x170x180x190x1A,
 
0x200x210x220x230x240x250x260x270x280x290x2A,
 
0x300x310x320x330x340x350x360x370x380x390x3A,
 
0x400x410x420x430x440x450x460x470x480x490x4A,
 
0x500x510x520x530x540x550x560x570x580x590x5A,
 
0x600x610x620x630x640x650x660x670x680x690x6A,
 
0x700x710x720x730x740x750x760x770x780x790x7A,
 
0x800x810x820x830x840x850x860x870x880x890x8A,
 
0x900x910x920x930x940x950x960x970x980x990x9A,
 
0xA00xA10xA20xA30xA40xA50xA60xA70xA80xA90xAA,
 
0xB00xB10xB20xB30xB40xB50xB60xB70xB80xB90xBA,
 
0xC00xC10xC20xC30xC40xC50xC60xC70xC80xC90xCA,
 
0xD00xD10xD20xD30xD40xD50xD60xD70xD80xD90xDA,
 
0xE00xE10xE20xE30xE40xE50xE60xE70xE80xE90xEA,
 
0xF00xF10xF20xF30xF40xF50xF60xF70xF80xF90xFA,
0x100,0x101,0x102,0x103,0x104,0x105,0x106,0x107,0x108,0x109,0x10A,
0x110,0x111,0x112,0x113,0x114,0x115,0x116,0x117,0x118,0x119,0x11A,
0x120,0x121,0x122,0x123,0x124,0x125,0x126,0x127,0x128,0x129,0x12A,
0x130,0x131,0x132,0x133,0x134,0x135,0x136,0x137,0x138,0x139,0x13A,
0x140,0x141,0x142,0x143,0x144,0x145,0x146,0x147,0x148,0x149,0x14A,
0x150,0x151,0x152,0x153,0x154,0x155,0x156,0x157,0x158,0x159,0x15A,
0x160,0x161,0x162,0x163,0x164,0x165,0x166,0x167,0x168,0x169,0x16A,
0x170,0x171,0x172,0x173,0x174,0x175,0x176,0x177,0x178,0x179,0x17A,
0x180,0x181,0x182,0x183,0x184,0x185,0x186,0x187,0x188,0x189,0x18A,
0x190,0x191,0x192,0x193,0x194,0x195,0x196,0x197,0x198,0x199,0x19A,
0x1A0,0x1A1,0x1A2,0x1A3,0x1A4,0x1A5,0x1A6,0x1A7,0x1A8,0x1A9,0x1AA,
0x1B0,0x1B1,0x1B2,0x1B3,0x1B4,0x1B5,0x1B6,0x1B7,0x1B8,0x1B9,0x1BA,
0x1C0,0x1C1,0x1C2,0x1C3,0x1C4,0x1C5,0x1C6,0x1C7,0x1C8,0x1C9,0x1CA,
0x1D0,0x1D1,0x1D2,0x1D3,0x1D4,0x1D5,0x1D6,0x1D7,0x1D8,0x1D9,0x1DA,
0x1E0,0x1E1,0x1E2,0x1E3,0x1E4,0x1E5,0x1E6,0x1E7,0x1E8,0x1E9,0x1EA,
0x1F0,0x1F1,0x1F2,0x1F3,0x1F4,0x1F5,0x1F6,0x1F7,0x1F8,0x1F9,0x1FA
};
type_11 = {
  
0xB,  0xC,  0xD,  0xE,  0xF,0x200,0x201,
 
0x1B0x1C0x1D0x1E0x1F,0x210,0x211,
 
0x2B0x2C0x2D0x2E0x2F,0x220,0x221,
 
0x3B0x3C0x3D0x3E0x3F,0x230,0x231
};
type_9 = {
 
0x4B0x4C0x4D0x4E0x4F,0x240,0x241,
 
0x5B0x5C0x5D0x5E0x5F,0x250,0x251,
 
0x6B0x6C0x6D0x6E0x6F,0x260,0x261,
 
0x7B0x7C0x7D0x7E0x7F,0x270,0x271,
 
0x8B0x8C0x8D0x8E0x8F,0x280,0x281,
 
0x9B0x9C0x9D0x9E0x9F,0x290,0x291,
 
0xAB0xAC0xAD0xAE0xAF,0x2A0,0x2A1,
 
0xBB0xBC0xBD0xBE0xBF,0x2B0,0x2B1,
 
0xCB0xCC0xCD0xCE0xCF,0x2C0,0x2C1,
 
0xDB0xDC0xDD0xDE0xDF,0x2D0,0x2D1,
 
0xEB0xEC0xED0xEE0xEF,0x2E0,0x2E1,
 
0xFB0xFC0xFD0xFE0xFF,0x2F0,0x2F1
}; 
The numbers reflect the default values:
0 nonblocking
2 hurting underground
3 chair
4 bed upper side
5 bed lower side
6 swamp
7 lava swamp
8 near water
9 near lava
11 water
12 lava
20 throw-through (fences)
21 jumping stone
22 blocking tile


However, alternatively, there could be a much more simpler system where an image is used... color values can represent tiletypes(like how the level generator does). People can lay out a template over a regular sized tileset and shrink it so that each tile is represented by a single pixel, like so:


I guess ideally Graal would download and encrypt these definitions on a per-server basis. Either way, I'd love either one of these suggestions to be implemented. The image template seems like the easiest for anyone to work with though may be more complicated for Stefan to work with as it would involve translating an image into an array and such. Though if the first is implemented, it would be fairly easy to make a script that would process an image template and sort it into arrays.

Would be really cool to allow us to customize our own tileset layouts, though.
Reply With Quote
  #2  
Old 12-12-2009, 10:00 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I agree, this would be great.
__________________
Reply With Quote
  #3  
Old 12-12-2009, 10:21 PM
Draenin Draenin is offline
Magnificent Bastard
Draenin's Avatar
Join Date: Dec 2004
Location: Bermuda Triangle
Posts: 6,790
Draenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud ofDraenin has much to be proud of
Send a message via AIM to Draenin Send a message via MSN to Draenin Send a message via Yahoo to Draenin
Yes, please do include this in the next language or client update. Graal needs it badly, as the default tileset is a nightmare to find tiles in.
Reply With Quote
  #4  
Old 12-12-2009, 10:25 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
This would be awesome.
Reply With Quote
  #5  
Old 12-12-2009, 11:35 PM
Dnegel Dnegel is offline
Rjax Shizibz
Join Date: Jul 2009
Posts: 1,334
Dnegel will become famous soon enough
A great idea, would be very neat to have.

I support.
Reply With Quote
  #6  
Old 12-12-2009, 11:51 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
*supports*
Reply With Quote
  #7  
Old 07-15-2010, 09:01 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Support this highly, Would make things a lot easier.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #8  
Old 07-28-2010, 04:43 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
do it
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:07 AM.


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