Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tilelayer glitch on gmaps (https://forums.graalonline.com/forums/showthread.php?t=73777)

zokemon 05-01-2007 08:54 AM

Tilelayer glitch on gmaps
 
I didn't mean to bring this up as a forum thread but it seems I can't ever find Stefan to tell him my self. Plus I would like the Graal public to be aware of such a glitch.

I recently just compiled a really nice set of systems, levels and tilesets that all use tilelayers. I edited the .nw files of each level on the overworld and placed tiles on both layer 0 and layer 1. When I enter any of these levels (I put layer 1 at 50% transparency so I can see both layers) all of the tiles on both layers load perfectly fine without failure. The problem is, when these levels are inside of a map, there is a major error: on almost all of the levels, only layer 0 (the default layer) is loaded.

Through enough debugging and checking into this I have managed to get the following:
- When a player is on a gmap, the level he enters onto loads perfectly fine.
- When he is on this gmap, all levels bordering his own are loaded by the gmap. (We all know this much)
- All .nw data loaded from these levels through the gmap (not the one that is entered onto when first entering the gmap) will ONLY load data on layer 0.
- The gmap still shows that there are two tilelayers but the data on layer 1 is all empty (except for the first level entered onto).

I am basically asking for just this:

Could you (Stefan) possibly make it so that when levels are loaded through the gmap, ALL .nw data is loaded?

Thank you :)

Inverness 05-01-2007 09:17 AM

I like it when people take Graal to its limits.

zokemon 05-01-2007 09:19 AM

1 Attachment(s)
Quote:

Originally Posted by Inverness (Post 1304831)
I like it when people take Graal to its limits.

:)

xXziroXx 05-01-2007 09:42 AM

I agree, it should be fixed! :D

zokemon 05-01-2007 09:47 AM

Quote:

Originally Posted by xXziroXx (Post 1304842)
I agree, it should be fixed! :D

:)

DustyPorViva 05-01-2007 03:19 PM

There is a line you can add into the .gmap file that loads all the levels instead of just surrounding.
Sadly, I don't know what it is, but you should be able to find it with a quick search.

EDIT: LOADFULLMAP

zokemon 05-01-2007 10:28 PM

Quote:

Originally Posted by DustyPorViva (Post 1304862)
There is a line you can add into the .gmap file that loads all the levels instead of just surrounding.
Sadly, I don't know what it is, but you should be able to find it with a quick search.

EDIT: LOADFULLMAP

I have thought of that and will try using it but I don't think it will solve the problem (read the conclusions I came up with. It isn't an issue of loading the levels but rather the layers above 0)

zokemon 05-04-2007 08:44 PM

Still waiting for a response...

Rapidwolve 05-04-2007 09:08 PM

response**

zokemon 05-04-2007 09:48 PM

Quote:

Originally Posted by DustyPorViva (Post 1304862)
There is a line you can add into the .gmap file that loads all the levels instead of just surrounding.
Sadly, I don't know what it is, but you should be able to find it with a quick search.

EDIT: LOADFULLMAP

Oh yeah and, that didn't work.

zokemon 05-18-2007 06:29 AM

Still nothing done about this!
Anyone found a workaround yet?
Anyone even LOOKED at this yet?

ToNy_W 05-18-2007 04:10 PM

In my opinion getting the problem fixed by Stefan would be the only good solution. Finding a workaround would just leave the problem there and somebody else would eventualy bump into it, but that's not how things work on graal :D

Admins 05-18-2007 08:37 PM

At which location (level name) can i test the glitch?

zokemon 05-22-2007 11:40 AM

Quote:

Originally Posted by Stefan (Post 1309182)
At which location (level name) can i test the glitch?

Server: Gileada
Level: world_s_00.nw (32,32)



Here is more detailed instructions along with the actual problem on these levels:

Quote:

First sign onto Gileada. You should start out in myworld_zerotest.nw (if you don't, warp to 30,30 there).

You should see that I have managed to place an image behind the tiles. I have done this by editing the .nw file and putting all the tiles on layer 1 rather then layer 0 (I made layer 0 transparent with level.tilelayers[0].alpha = 0). Another thing to note of that the "water" tiles I made into the transparent color on the tileset graphic so that you could see this effect.

Now warp to 32,32 at world_s_00.nw
You should see a similar like level placed on a small 2x2 level gmap. The problem now is, the tile layers above 0 won't load on a gmap if they are loaded outside of the level you entered the gmap on. You can see this by walking down or to the right as the tiles on layer 1 just won't be there in the other levels. If you warp to those other levels and reconnect, they will show up but the others will not.

zokemon 05-24-2007 09:31 PM

Anything?

MrAnonymous_P2P 05-25-2007 12:23 AM

:d

Kristi 05-25-2007 01:24 AM

may i see the code youre using to set the layer trans? on a map you cant set a levels' trans, you have to set the map's trans, and that probably is your problem.

zokemon 05-25-2007 01:28 AM

Quote:

Originally Posted by Kristi (Post 1311588)
may i see the code youre using to set the layer trans? on a map you cant set a levels' trans, you have to set the map's trans, and that probably is your problem.

I offered to show you it many times but you keep ignoring me x_x

It isn't an issue of transperency since I see layer 1 on the level I enter the map from but all level surrounding do not load. It is not an issue of visualization either since I have done checks to see what the tiles where (via tilelayers[1].tiles[x,y]) on these other levels and each tile returned -1 (meaning, it did not load the tiledata). All of the levels DID show to have 2 layers though (0 and 1).

It is best you just let me show you visually so you can get a concept of what I mean.

Kristi 05-25-2007 01:42 AM

try using player.gmap.tilelayer

zokemon 05-25-2007 01:43 AM

Quote:

Originally Posted by Kristi (Post 1311600)
try using player.gmap.tilelayer

I have used both.

zokemon 05-26-2007 12:12 AM

Quote:

Originally Posted by zokemon (Post 1311601)
I have used both.

Kristi and Skyld have both seen this and they both seem to agree that this can only be fixed by the main man himself!

Admins 05-28-2007 01:47 PM

Seems to be a problem of level caching on clientside, if you remove the files (from weblevels/194.5.30.16) then it is displaying correctly, until next login. Will try to fix this (caching all layers).

zokemon 05-29-2007 04:29 AM

Quote:

Originally Posted by Stefan (Post 1312627)
Seems to be a problem of level caching on clientside, if you remove the files (from weblevels/194.5.30.16) then it is displaying correctly, until next login. Will try to fix this (caching all layers).

Thank you! I figured it was something along those lines :)

Admins 05-29-2007 02:23 PM

Ok fixed it in my version

zokemon 05-30-2007 12:27 AM

Quote:

Originally Posted by Stefan (Post 1312957)
Ok fixed it in my version

Thank you! I will probably never use layer 0 now since it doesn't support tileset transparency in the .png :)


All times are GMT +2. The time now is 12:14 AM.

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