Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Dynamic tileset type 1 (https://forums.graalonline.com/forums/showthread.php?t=79373)

DustyPorViva 04-11-2008 02:55 AM

Dynamic tileset type 1
 
This won't work with type 0 tilesets.
Anyways, all the way to the right of type 1 tilesets is nothing but the top being non-blocking and the bottom being blocking. Because of this, I figure this idea might work. Have it so we can 'extend' our type 1 tilesets to the right, and just let it carry on the type of tile(blocking/non).

If this doesn't make sense, just imagine being able to add on to the right of type 1 tilesets.

cbk1994 04-11-2008 03:21 AM

Yes, please!

I've been wanting to be able to extend tilesets forever, but I never got around to making a thread.

Total approval :)

Admins 04-11-2008 12:32 PM

You mean for larger tilesets than 2048x512 ?

DustyPorViva 04-11-2008 01:24 PM

1 Attachment(s)
Yes... but, only adding tiles to the right of the tileset to keep things simple... look at the attachment.
In this example, the area on the right of the black lines is what I 'added' on--beyond the default tileset size.

Eranian 04-11-2008 02:16 PM

Cool idea

zokemon 04-11-2008 05:37 PM

Do you understand how .nw files work? Each tile bit can only be a number between 0 and 4095 which means there can only be 4096 possibilities. Extending the tileset would make it impossible to place the new tiles as they would just be modulated back to the beginning tiles.

You should also take note that the blocking/non-blocking tiles on the right of type 1 and the ones to the left of them are not the same. One is foreground and one is background.

Dan 04-11-2008 05:40 PM

But Stefan wouldn't be Stefan if he couldn't work around it? ^^

Skyld 04-11-2008 07:42 PM

Quote:

Originally Posted by Dan (Post 1385372)
But Stefan wouldn't be Stefan if he couldn't work around it? ^^

He would probably have to either drastically change how .nw files work and break every existing level, or invent a whole new format.

DustyPorViva 04-11-2008 08:30 PM

Quote:

Originally Posted by zokemon (Post 1385371)
Do you understand how .nw files work? Each tile bit can only be a number between 0 and 4095 which means there can only be 4096 possibilities. Extending the tileset would make it impossible to place the new tiles as they would just be modulated back to the beginning tiles.

You should also take note that the blocking/non-blocking tiles on the right of type 1 and the ones to the left of them are not the same. One is foreground and one is background.

I was aware there would be limits because of .nw, I wasn't aware that it was already used up :(

As for foreground background... I have absolutely no idea what you're talking about.

cbk1994 04-11-2008 10:14 PM

Quote:

Originally Posted by zokemon (Post 1385371)
Do you understand how .nw files work? Each tile bit can only be a number between 0 and 4095 which means there can only be 4096 possibilities. Extending the tileset would make it impossible to place the new tiles as they would just be modulated back to the beginning tiles.

You should also take note that the blocking/non-blocking tiles on the right of type 1 and the ones to the left of them are not the same. One is foreground and one is background.

Saying that "It would take a lot of work" or "we'd have to change things to make it happen" isn't an excuse.

Just make a new, simpler format maybe? NW is pretty simple, but it could probably be made more simple.

Imagine a format like this:

PHP Code:

GLEVEL
WIDTH 1
HEIGHT 1

LAYER 1

TILE 0x0
3x4 6x9 42x78
END LAYER

LAYER 2
etc
END LAYER
SCRIPT AT x
,y IMAGE block.png
// script
SCRIPTEND 

That seems a lot like BASIC ... but it would allow infinite extension since you are using the x and the y. Would probably be easier to make level editors as well. Also could allow larger levels.

Codein 04-11-2008 10:34 PM

I support this idea.

Inverness 04-11-2008 11:20 PM

All NW files have "GLEVNW01" as a header.

Stefan can just make a new format with "GLEVNW02" that would indicate that the level file is in the newer format.

That way none of the old levels would be broken.

Of course then Stefan has to be willing to update the level editor and all that other good stuff to support the new format if he chooses to add it.

GLEVNW02
BOARD 0 0 10 0 "1,45,235,5325,533,2,42,4,25,535,324"
BOARD 0 1 10 0 "1,45,44,234,124,2345,2314,123,123,412"
BOARD 0 2 10 0 "34,4223,200,200,200,200,200,200,200,45"
BOARD 0 3 10 0 "34,4223,200:7,45"

Example of new board format (not to full size obviously) where an array of tile numbers are used. In the last line one of the entries is 200:7 meaning that 200 appears 7 times, making it identical to the line above it. A simple compression technique.

Angel_Light 04-12-2008 03:54 AM

We changed from .graal to .nw. Why not from .nw to .g5? and Maybe in this format Enable GS2! >:O

DustyPorViva 04-12-2008 04:12 AM

The problem with going to a new format is then we'd never be able to use the external level editor... that would suck :(

cbk1994 04-12-2008 04:16 AM

If they made a decent internal one, there would be no need for the external one.


All times are GMT +2. The time now is 01:18 PM.

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