Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   NW Algorithm (https://forums.graalonline.com/forums/showthread.php?t=46093)

tlf288 07-11-2003 06:00 AM

NW Algorithm
 
If this was realesed I could make my own level editor. Please realese this Stefan.

Kaimetsu 07-11-2003 07:40 AM

Algorithm...?

Tseng 07-11-2003 12:57 PM

Quote:

Originally posted by Kaimetsu
Algorithm...?
People always seem to love using buzz words; whether or not they know what they mean is another story. :o

Thought 07-11-2003 01:13 PM

Quote:

Originally posted by Kaimetsu
Algorithm...?
The content in the file which represents tiles, is encoded.

It's encoded with Base64 IIRC, I remember reading about it in a text file that came with Graal.

Thought 07-11-2003 01:15 PM

Found it.

Quote:

The new level format is text based. Use a text editor which doesn't wrap lines.
It begins with the signature GLEVNW01.
It can contain following data types:

- board lines:

BOARD x y width layerindex <tilesdata>

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.gif) 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)

- level links:

LINK <destination-level> x y width height newx newy

The link attributes are the same like in the link options window in Graal.
destination-level, newx and newy must not contain spaces.

- signs:

SIGN x y
text
...
SIGNEND

Signs may be empty, but SIGNEND must always be there.

- npcs:

NPC imagefilename x y
script
...
NPCEND

If the npc doesn't have a filename (invisible npc), then write '-' for imagefilename.
x and y may be floating point values. The npc script may be empty, but NPCEND
must always be there

- baddies:

BADDY x y type
attackverse
hurtverse
winverse
BADDYEND

'type' is the baddy name (graysoldier ... dragon ) or index (0...9). You don't need
to write all 3 verses, it's also possible to only write attackverse+hurtverse or only
attackverse, but BADDYEND must always be there.

- chests:

CHEST x y item signindex

item is the item name (greenrupee ... spinattack) or item index (0...24)

TripleE 07-11-2003 09:57 PM

Re: NW Algorithm
 
Quote:

Originally posted by tlf288
If this was realesed I could make my own level editor. Please realese this Stefan.
What's wrong with the level ediotr we have now?Do you mean customize it?

Thought 07-11-2003 10:26 PM

Re: Re: NW Algorithm
 
Quote:

Originally posted by TripleE

What's wrong with the level ediotr we have now?Do you mean customize it?

He wants to develop his own level editor. (Third party).

tlf288 07-11-2003 11:03 PM

Quote:

Originally posted by Kaimetsu
Algorithm...?
Um... Yeah. That is what it is called.

Kaimetsu 07-12-2003 07:31 AM

Quote:

Originally posted by tlf288
Um... Yeah. That is what it is called.
An algorithm is, in simple terms, a method for achieving a task. You don't need to know the algorithm Graal uses, you just need to know the format it uses.


All times are GMT +2. The time now is 10:51 PM.

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