Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   GMap help? (https://forums.graalonline.com/forums/showthread.php?t=84402)

xfazex 02-26-2009 07:11 AM

GMap help?
 
Is there a decent walkthrough for gmap? I have like 50 levels... Much easier if it were all one! :D

maximus_asinus 02-26-2009 07:18 AM

offline or online?

FOR OFFLINE USE ONLY:

Open up notepad and paste in the following:
HTML Code:

GRMAP001
WIDTH 2
HEIGHT 2
LEVELNAMES
"level_name_01.nw","level_name_02.nw"
"level_name_03.nw","level_name_04.nw"
LEVELNAMESEND

In my example I specified that the GMAP was 2 levels wide and 2 level high. You would change the values for width and height to fit the dimensions of your overworld. You would also add the level names you're using inbetween "LEVELNAMES" and "LEVELNAMESEND" formatted with the top levels of your overworld to the top of the list.

Click "Save As", name it something appropriate, and give it the extension ".GMAP".

Open up the Graal editor and in one of the levels you're using add these lines:
HTML Code:

if (created) loadmap YOUR_MAP_NAME;
It is important not to put ".GMAP" here because it assumes what the filetype is.

salesman 02-26-2009 07:26 AM

there's a gmap generator somewhere...would be useful unless you've already made all of the levels. I'll see if I can find it.

xfazex 02-26-2009 07:28 AM

Quote:

Originally Posted by maximus_asinus (Post 1469577)
offline or online?

Online. Right now the server's in dev. I'm just wondering how it's done, and maybe a way I can test it as I'm waiting on new tilesets (for whoever wants to make them). I have a thread about that in the staff openings section.

maximus_asinus 02-26-2009 07:32 AM

Quote:

Originally Posted by xfazex (Post 1469579)
Online. Right now the server's in dev. I'm just wondering how it's done, and maybe a way I can test it as I'm waiting on new tilesets (for whoever wants to make them). I have a thread about that in the staff openings section.

Okay my example is purely offline, I'll try to dig up an answer for you, but I believe it has something to do with the server options...

xfazex 02-26-2009 07:40 AM

Quote:

Originally Posted by maximus_asinus (Post 1469580)
Okay my example is purely offline, I'll try to dig up an answer for you, but I believe it has something to do with the server options...

Doesn't it just merge all of the outdoor maps (or maps you select) together? That's really all I want to do.


Edit: Saw your update about the offline method, can I just upload the newly created file to the server?

maximus_asinus 02-26-2009 07:40 AM

Okay I believe I found the answer, don't kill me if it is incorrect, because I'm new to this thing (GMAPs online).

You would upload the GMAP file I mentioned earlier into the levels folder, and then in your server options you add a line called "gmaps=" and then add the name of the GMAP here (without .gmap extension).

Found the information here and here.

maximus_asinus 02-26-2009 07:42 AM

Also additional information about GMAPs can be found here.

xfazex 02-26-2009 07:55 AM

Quote:

Originally Posted by maximus_asinus (Post 1469577)
offline or online?

FOR OFFLINE USE ONLY:

Open up notepad and paste in the following:
HTML Code:

GRMAP001
WIDTH 2
HEIGHT 2
LEVELNAMES
"level_name_01.nw","level_name_02.nw"
"level_name_03.nw","level_name_04.nw"
LEVELNAMESEND

In my example I specified that the GMAP was 2 levels wide and 2 level high. You would change the values for width and height to fit the dimensions of your overworld. You would also add the level names you're using inbetween "LEVELNAMES" and "LEVELNAMESEND" formatted with the top levels of your overworld to the top of the list.

Click "Save As", name it something appropriate, and give it the extension ".GMAP".

Open up the Graal editor and in one of the levels you're using add these lines:
HTML Code:

if (created) loadmap YOUR_MAP_NAME;
It is important not to put ".GMAP" here because it assumes what the filetype is.

So make an NPC with that script and it merges everything together and ends up with a *.gmap file?

xfazex 02-26-2009 08:20 AM

I've created a gmap using the terrain generator, but when I warp to it, i just move to the specified x/y in the current level... Any idea what is wrong?

maximus_asinus 02-26-2009 02:22 PM

Quote:

Originally Posted by xfazex (Post 1469588)
I've created a gmap using the terrain generator, but when I warp to it, i just move to the specified x/y in the current level... Any idea what is wrong?

These paragraphs will probably help you:

Quote:

As you are going to use the GMap on your Playerworld, you need to make it available for Players to download, by putting it inside the levels/ folder hierarchy using the RC file manager, and adding it to the Folder configuration as mere Level; level *.gmap, for example. It is neccessary to additionally register it as file in the folder configuration, but there is no gmap category to put it under.

To make the NPC Server aware of your gmaps, you need to list them in the Server options too. Add a new option gmaps= followed by a comma seperated list of names without the .gmap extension. If your line gets too stuffed, you can as well use multiple lines, as long as you prefix each one with gmaps=. The entries in each lines will be added, and not replace each other.

If you are converting levels that are already uploaded to use a GMap, you will need to restart the GServer, or you can keep all players out of the levels for about 5 to 10 minutes. The latter may be difficult, however, because players could log on to one of the levels nobody should be in, which would disrupt the 5/10 minute wait time, so restarting the GServer may be a better choice.

Bell 02-26-2009 04:38 PM

You seem to have it set up correctly in server ops and you have the gmap in the right folder. I restarted the server for you but the map still isn't working. It doesn't appear to be downloading into my Graal folder so I can't see if you have it set up correctly. I'll try to catch you when you're online to get some access rights to the server and give you a hand in getting it sorted.

xfazex 02-26-2009 09:04 PM

I'm on now if you don't mind helping. I actually figured out that the gmap file wasn't the whole thing, that terrain editor splits it up to like 10,000 .nw files. Not sure what the gmap does but yeah. Tig told me this.

I'm RC'd now if you want to talk. Need some help getting this server going.


All times are GMT +2. The time now is 02:52 AM.

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