Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-06-2004, 09:17 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
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.
__________________
Who has time for life these days?
Reply With Quote
  #2  
Old 10-06-2004, 10:14 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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 ^-^
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #3  
Old 10-06-2004, 10:14 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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...
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #4  
Old 10-06-2004, 10:48 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #5  
Old 10-06-2004, 11:31 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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
Reply With Quote
  #6  
Old 10-07-2004, 12:16 AM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Nicely done @ Loriel and PS.
Reply With Quote
  #7  
Old 10-07-2004, 01:39 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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.
Attached Thumbnails
Click image for larger version

Name:	logo.png
Views:	860
Size:	20.4 KB
ID:	49279  
Attached Images
 

Last edited by Skyld; 09-04-2009 at 03:13 AM.. Reason: Up to no good, as usual
Reply With Quote
  #8  
Old 10-07-2004, 03:54 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
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.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #9  
Old 10-07-2004, 05:56 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
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
__________________
Who has time for life these days?

Last edited by Loriel; 10-07-2004 at 06:49 PM..
Reply With Quote
  #10  
Old 10-07-2004, 06:48 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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.
Reply With Quote
  #11  
Old 10-07-2004, 06:51 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
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?
Reply With Quote
  #12  
Old 10-20-2004, 03:28 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #13  
Old 11-08-2004, 01:06 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
GMaps need to be made easier to setup.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:41 PM.


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