Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-29-2012, 04:46 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Getting tile location

In the graal editor you can view a tile location like 0x1A2, where its not just the tiles[x,y] since number as 412.

Unless there is some magic I can't get a tileset type 1 to load in the graal editor, so I went to gonstruct. Gonstruct just gives the single number like 421 as far as I saw, so how do yall get these locations?

Might be better served in the scripting part. Wasn't sure...
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #2  
Old 12-29-2012, 04:52 PM
zerxusgraal zerxusgraal is offline
Making Levels
Join Date: Apr 2012
Location: Sweden
Posts: 48
zerxusgraal will become famous soon enough
You can load type 1 in editor
Just add
Addtiledef tileset.png,,1;
__________________
GraalOnline Level Designer
Reply With Quote
  #3  
Old 12-29-2012, 04:57 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
I did that its just black and no tileset loaded. I also made sure it's the right name and all, and even moved it to the folder with the levels in it.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #4  
Old 12-29-2012, 05:01 PM
mewtoo18 mewtoo18 is offline
Registered User
Join Date: Sep 2003
Location: Southbend IN
Posts: 41
mewtoo18 is on a distinguished road
I am asumming you are trying to figure out where the tile is on the tileset.. like how many tiles to the left and down to find the tile you see in the level.. It would take be a bit to explain but if you understand php maybe you can cut out what you need from this:

http://pastebin.com/f74418c73

But to try and explain it simply.

PHP Code:
  $base64 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
  
$temp $test[$k][$i]; // your tile number
  
$tile dechex(strpos($base64,$temp[0])*64+strpos($base64,$temp[1])); // the hex value for tile
  
$tilex hexdec(substr($tile0, -1)) % 32;
  
$tiley floor(hexdec(substr($tile0, -1))/32)*16 hexdec(substr($tile, -1)); 
But I think I may have had my x and y backwards.. either way it should give you the positions.. this is kinda old.. wish I could find the post that explained it on the the forums..
Reply With Quote
  #5  
Old 12-29-2012, 05:02 PM
zerxusgraal zerxusgraal is offline
Making Levels
Join Date: Apr 2012
Location: Sweden
Posts: 48
zerxusgraal will become famous soon enough
There is a color limit or filesize limit im not sure but its 1 of those
Take you tileset and make it indexed color in ps
__________________
GraalOnline Level Designer
Reply With Quote
  #6  
Old 12-29-2012, 05:07 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by zerxusgraal View Post
There is a color limit or filesize limit im not sure but its 1 of those
Take you tileset and make it indexed color in ps
It used to be 256 color's. But I don't know if that only applies to the offline Editor of if the online Game itself can handle more.. might also be filesize tho. dunno
Reply With Quote
  #7  
Old 12-29-2012, 05:09 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
That did it. xD

Thank you.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #8  
Old 12-29-2012, 05:13 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Which part was helpful?
Reply With Quote
  #9  
Old 12-29-2012, 05:44 PM
Gos_pira Gos_pira is offline
Registered Pirate Ghost
Gos_pira's Avatar
Join Date: Sep 2009
Location: Pirate Ghost Ship
Posts: 175
Gos_pira is a splendid one to beholdGos_pira is a splendid one to beholdGos_pira is a splendid one to beholdGos_pira is a splendid one to beholdGos_pira is a splendid one to behold
The offline editor only supports 256 colors. (the official one)

That editor is basically a downscaled Graal v2.3 client. Images with more colors wasn't introduced until Graal v4. The level editor hasn't been updated since then.
Reply With Quote
  #10  
Old 12-29-2012, 05:50 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Quote:
Originally Posted by scriptless View Post
Which part was helpful?
Taking the tileset and indexing the color instead to 256.
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote
  #11  
Old 12-29-2012, 06:16 PM
zerxusgraal zerxusgraal is offline
Making Levels
Join Date: Apr 2012
Location: Sweden
Posts: 48
zerxusgraal will become famous soon enough
Cool
__________________
GraalOnline Level Designer
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 09:45 AM.


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