Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   GMAP Linking Problem (https://forums.graalonline.com/forums/showthread.php?t=134268524)

baseman101 07-26-2013 08:33 PM

GMAP Linking Problem
 
I have created a simple GMAP file that links together four .nw files. The four .nw files were created from my desktop. The .nw file contains GLEVNW01 like normal new .nw files.

Here's the code for my Gmap. I have written this file by hand, but see no errors in the code.

PHP Code:

GRMAP001
WIDTH 2
HEIGHT 2
LEVELNAMES
"town_test-1.nw","town_test-2.nw"
"town_test-3.nw"
,"town_test-4.nw"
LEVELNAMESEND 

When I upload it to a server, it doesn't work correctly. All I get is this level displayed: town_test-1.nw

I also linked the level in the offline editor, but of course, knowing that this won't solve the issue with the gmap not displaying all the levels.

Angel_Light 07-26-2013 08:36 PM

have you added the gmap name to the gmap= line in server opts?

baseman101 07-26-2013 08:38 PM

Yes, I have. It shouldn't be a problem though. I've used gmaps in the past without adding it to the serveroptions.

baseman101 07-26-2013 08:39 PM

gmaps=town_test

Angel_Light 07-26-2013 08:57 PM

try putting commas around the name (gmaps=,town_test,) then actually warp your player to the gmap (warpto 30 30 town_test.gmap) May need to reconnect to the server

baseman101 07-26-2013 09:13 PM

I have tried the following method, but no ado. I'll try using the loadmap function and load the map with a script.

baseman101 07-26-2013 09:46 PM

Update: The issue has been fixed. No idea what it was, maybe it was loadmap. Thanks anyway!

cbk1994 07-26-2013 10:18 PM

Quote:

Originally Posted by baseman101 (Post 1721082)
Yes, I have. It shouldn't be a problem though. I've used gmaps in the past without adding it to the serveroptions.

Posting this explanation since GMAPs are black magic to most people:

You need to add GMAPs to the server options. They will load clientside but only if you either loadmap or warp to the GMAP (_not_ the levels). They will _not_ load serverside unless you add them to server options. Adding them to the server options will both ensure the server recognizes them properly and make sure that they load on clientside, even if a player is warped to a level and not the GMAP.

Quote:

Originally Posted by cbk1994 (Post 1718507)
GMAPs not in gmaps= will load clientside if you warp to the GMAP name (warpto 30 30 mygmap.gmap) but not if you warp to the levels. They won't load on the server without being in gmaps= (or being loaded dynamically). You always want to make sure they're loaded serverside; that will take care of the clientside loading as well. You can test that easily by looking at a player's level in RC; it should be mygmap.gmap and not something like mygmap_a1.nw. So, even if it seems to be working without adding it to gmaps=, you should add it to gmaps=.


racycle 07-28-2013 01:03 AM

The issue was either due to the folder config or the way the levels were named. I have had cases before where using capitols or using "_" in the names causes the maps not to load. Multiple things were tested at once, of those 2 being the fix.


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

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