Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   FAQ/HowTo: GMAPs (https://forums.graalonline.com/forums/showthread.php?t=55618)

Projectshifter 10-06-2004 09:17 PM

FAQ/HowTo: GMAPs
 
Quote:

Originally Posted by falco10291029
Again, Operator's fault my a**.

Yes, operator's fault m8 >.<

It's come to my attention that there is a lot of problems when people try and setup gmaps. This was originally going to be a reply to falco's post, but I decided it might be better served as a new thread. If I remember I'll ask Jon or Lance to sticky it. It's just a little guide on setting up and troubleshooting gmaps.

If the GMap does not come up there are several reasons it could be. I'm not sure about a loadgmaps file being necessary, but I've seen it done on many servers. Otherwise, there are three main things you need to do in order to get a gmap to work.
(1) Have the GMAP uploaded and make sure it is properly setup in folder config. "gmap *.gmap" is NOT valid, as gmap is not a type. You'll want to do a file and a level line. I prefer to have a gmaps/ folder as it makes it more organized, so you would need two lines, one reading "level gmaps/*.gmap" and the other reading "file gmaps/*.gmap". You can verify that it is being read by doing /find <gmapname> at RC. If it says file not found, then you did not do the folder config properly, hence it cannot find the file. Also you may not have the filename correct (capital letters seem to cause problems when dealing with files)
(2) The gmaps= for serveroptions is very important. You EXCLUDE the .gmap So for example if you have test.gmap then you would just do gmaps=test You can have multiple gmaps= lines, unlike most serveroptions, however it is usually easier to just stick with one.
(3) You need to have a clientsided NPC do the command "loadmap". It is generally preferred to put it in the system NPC. A big problem with Gmaps not loading even after this is done, is caused by people not adding the weapon to themself x.x After the clientside (//#CLIENTSIDE) you'll need to do a "loadmap <gmap name WITHOUT .gmap>;" It is best to do it under if (created) or if (playerenters) so it does get loaded.

Common problems tend to be when people update the gmap or so and they don't close and reopen their client, and wonder why it won't work. You need to CLOSE and REOPEN your client after you change gfx, gmaps, etc. You will also want to start using the .gmap file instead of like start_a-01.nw. Generally you'll want to do /updatelevel <name of gmap WITH .gmap> so that it updates and receives the changes. I find it's best to add a database NPC and put it in the .gmap level to verify that it works. If it puts it in start_a-01.nw (if your gmap is named start) instead of start.gmap then it means you did not set it up properly, or you need to update the level and kill and remake the DB npc. Also, verify that you have all the levels specified. If it seems to work for the most part, except that it does not show the levels and their details, but it DOES show it as .gmap instead of .nw files then it means your level names are probably not valid. (NOTE: Using start.gmap is a bad idea. Kingdoms has a start.gmap and a main.gmap [common names], and it is bad to try and use the same gmap name as another server)
Finally, the best test is to check your playerlist from RC. Check if it shows you in the gmap name .gmap or .nw level. If it's in .nw then it's not setup properly, BUT if it shows .gmap you're good to go =D Hope this helps. If you need help setting it up other than this and you've tried to get it to work for a while, I'll hop on and check it out. Forum PM or email me. Cya l8er and peace.

falco10291029 10-06-2004 10:14 PM

Kno whats funny about this? I did all those things and more before resetting my npc server, so it wasnt my fault. Anyways resetting fixed it so Im fone now ^-^

Dach 10-06-2004 10:14 PM

You seem to have covered everything not in Loriel's tutorial. Good job!
not being sarcastic even though it comes off that way
Someone ought to combine them and stick them in the Wiki...

falco10291029 10-06-2004 10:48 PM

O crap as soon as I posted that my gmap crapped out again and it wont fix the same way as it did last time.

Loriel 10-06-2004 11:31 PM

Hm, I do not think I missed that much.
Just for reference:
- old version: http://ilfirin.org/_graal/?page=gmap
- new version: http://ilfirin.org/graal/index.php?t...ap&action=edit

Malinko 10-07-2004 12:16 AM

Nicely done @ Loriel and PS.

Loriel 10-07-2004 01:39 AM

2 Attachment(s)
Quote:

Originally Posted by Malinko
Nicely done @ Loriel and PS.

Did you not contribute to the Wiki a while ago already?
I had assumed you knew my text.

Dach 10-07-2004 03:54 PM

Quote:

Originally Posted by Loriel
Hm, I do not think I missed that much.
Just for reference:

Ah, I had only seen the old version. Did you just add those to the Wiki? I couldn't find them yesterday, maybe I just suck at the internet.

Projectshifter 10-07-2004 05:56 PM

Quote:

Originally Posted by Loriel
Did you not contribute to the Wiki a while ago already?
I had assumed you knew my text.

I had long since forgotten about the wiki and I'm not too interested in adding to it unless it's put on graalonline's site or so.
I was not trying to set how to make one, but rather how to make one work ;)

Loriel 10-07-2004 06:48 PM

Quote:

Originally Posted by Dach
Ah, I had only seen the old version. Did you just add those to the Wiki? I couldn't find them yesterday

I wikified it only last night after reading this thread, but the non-wiki version was contentically the same.

Loriel 10-07-2004 06:51 PM

Quote:

Originally Posted by Projectshifter
I had long since forgotten about the wiki and I'm not too interested in adding to it unless it's put on graalonline's site or so.

Why is that?
Quote:

I was not trying to set how to make one, but rather how to make one work ;)
But you did not explain anything I did not cover already, did you?

Admins 10-20-2004 03:28 PM

About loadmap: In online mode this command is only used for preloading maps - if you warp to a gmap and the map was not preloaded it will look strange for small moment. But the command is not needed at all to make the gmap itself working - the server is managing that, and tells the client to go on a gmap.
On clientside create a file loadgmaps.txt in the Graal folder, and add the gmaps that you want to have loaded. This is important for level editing.

Inverness 11-08-2004 01:06 AM

GMaps need to be made easier to setup.


All times are GMT +2. The time now is 06:20 PM.

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