Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tiles etc.. (https://forums.graalonline.com/forums/showthread.php?t=59369)

KuJi 06-10-2005 11:58 AM

Tiles etc..
 
In New Features 2001:

This is one line of the background layer. 'tilesdata' has a length if w*2
characters; each tile is a 12bit-index into the tile list (pics1.png) and is
encoded in two base64 characters (upper 6 bit first)
base64: String = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789+/'
so AA is tile 0, AB is tile 1, AC is tile 2, // is tile 4095 (=0xFFF)

Can someone explain on how to find what the tiles are. EX: 0xABC = what?

Kaimetsu 06-10-2005 12:15 PM

What are you talking about? You do know what hexadecimal is, right?

KuJi 06-10-2005 12:37 PM

Quote:

Originally Posted by Kaimetsu
What are you talking about? You do know what hexadecimal is, right?

Err..no

Kaimetsu 06-10-2005 12:55 PM

Quote:

Originally Posted by KuJi
Err..no

I'd insult you, but... it's just too easy.

KuJi 06-10-2005 01:25 PM

Quote:

Originally Posted by Kaimetsu
I'd insult you, but... it's just too easy.

Alright, but can u still just explain it?

Kaimetsu 06-10-2005 01:29 PM

Wikipedia certainly can.

KuJi 06-10-2005 01:41 PM

Quote:

Originally Posted by Kaimetsu
Wikipedia certainly can.

http://en.wikipedia.org/wiki/Hexadecimal?

xAndrewx 06-10-2005 01:44 PM

Quote:

Originally Posted by KuJi

Ok, now you read that. :rolleyes:

KuJi 06-10-2005 01:48 PM

Quote:

Originally Posted by xAndrewx
Ok, now you read that. :rolleyes:

I was asking Kaimetsu if that's what he is talking about?

Benm00t 06-10-2005 02:04 PM

Aww if it wasn't for IBM, Hexadecimal might have ended up being called Sexadecimal :-(.

Trevor 06-10-2005 04:43 PM

Why do you need to know how to use the level format?

KuJi 06-10-2005 08:59 PM

Well, nevermind anymore...

and yeah:

Do you know Sexadecimal?

CheeToS2 06-11-2005 12:00 AM

Hex is easy to learn :)

numbers go from 0-F. Think of A,B,C,etc as 10,11,12,etc.

0xBEEF

Start from the right. The last digit is your ones, then the next to the last is your 16s, then your 16^2s, 16^3s, etc. For this example, it is F*1 + E*16 + E*16^2 + B*16^3.

Translating the letters, you get 15 + 14*16 + 14*16^2 + 11*16^3. The answer is 48879.

KuJi 06-11-2005 02:14 AM

Quote:

Originally Posted by CheeToS2
Hex is easy to learn :)

numbers go from 0-F. Think of A,B,C,etc as 10,11,12,etc.

0xBEEF

Start from the right. The last digit is your ones, then the next to the last is your 16s, then your 16^2s, 16^3s, etc. For this example, it is F*1 + E*16 + E*16^2 + B*16^3.

Translating the letters, you get 15 + 14*16 + 14*16^2 + 11*16^3. The answer is 48879.

That helped a ton, but what does the rock thing on the editor do?

vahn32 06-11-2005 05:34 AM

Quote:

Originally Posted by KuJi
That helped a ton, but what does the rock thing on the editor do?

I'm pretty sure it gives you the array of hex codes for the tiles you select on the map?
I could be wrong.


All times are GMT +2. The time now is 12:23 PM.

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