Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-06-2006, 12:26 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Gmap Trouble

I am having problems with my gmap. I can't get it to display as a gmap in the level editor, I thought the command for this was "loadmap name;" but apparently I'm mistaken because thats not working.

Also, on the server, the gmap isn't displaying graphics/npcs, it's not reacting to update level, and it's not detecting signs that I have placed.

If anyone could shed some light on this I'd really appreciate it.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #2  
Old 09-06-2006, 01:45 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Ok. Offline it -SHOULD- work. Try this:

Put the GMAP and all it's levels in one folder. In the very first level (a1 usually) add loadmap yourgmapnamehereWITHOUT.GMAP;.

For example:

if (playerenters) {
loadmap lolimcool;
}

It should work offline. Once that works we'll start with online =]
__________________
Reply With Quote
  #3  
Old 09-06-2006, 03:28 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Uhm..


1) Create a .txt document in your graal folder named "loadgmaps.txt"

2) Add the name of the GMAP in it (without the .gmap extentsion)

3) Open Graal and voilá! If it doesnt work, your gmap is 'broken'
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 09-06-2006, 05:15 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Ok, I fixed it offline, I managed to figure out what was wrong. I already had a loadgmaps.txt from a previous Gmap with the same name which I have long since deleted, so I deleted the text file and remade it exactly the same and then loadmap worked again.

Now how would I fix it online?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #5  
Old 09-06-2006, 05:21 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by xXziroXx
* Correct order to install a gmap:
1) Upload the GMAP.
2) Add the gmap name without the extention in the serveroptions under gmaps=
3) Upload the levels of the gmap.

Quote:
Originally Posted by Stefan
Eventually restart the npcserver or gserver, it can happen when the gmap is adding incorrectly (first the gmap should be uploaded and added to the server options, then the map part levels)

Good luck!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 09-06-2006, 08:09 PM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by xXziroXx
Good luck!
Thank you Ziro, as usual you have saved the day and been incredibly helpful. I restarted the server and all is well with the world now.

I will be erecting a statue or some sort of monument to you on Aetherforge for all your help over the months. So once we're hosted or classic you should stop by and check it out, roar.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #7  
Old 09-06-2006, 09:00 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Raelyn
Thank you Ziro, as usual you have saved the day and been incredibly helpful. I restarted the server and all is well with the world now.

I will be erecting a statue or some sort of monument to you on Aetherforge for all your help over the months. So once we're hosted or classic you should stop by and check it out, roar.
*bows* glad I could be of assistance.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 09-10-2006, 04:04 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
More gmap trouble.

Ok, I am working with the gmap and realized that for some reason, tiles are coming up on the gmap that were from an old custom classic-type tileset. I deleted the tileset from the server, but am unsure of how to set the tileset back to normal. Should I set some sort of removetiledefs; npc on the gmap temporarily?
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #9  
Old 09-10-2006, 04:06 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Raelyn
Ok, I am working with the gmap and realized that for some reason, tiles are coming up on the gmap that were from an old custom classic-type tileset. I deleted the tileset from the server, but am unsure of how to set the tileset back to normal. Should I set some sort of removetiledefs; npc on the gmap temporarily?
Assuming that you have a Weapon that sets your tiles, just add removetiledefs(); before it sets them.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 09-10-2006, 04:55 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by xXziroXx
Assuming that you have a Weapon that sets your tiles, just add removetiledefs(); before it sets them.
I have no weapons setting the tiles, however, I may have at one point. I am using the classic tileset, and apparently there is still the old tileset in effect. However, attempts at placing an NPC on the map to set the tiles went unsuccessful.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #11  
Old 09-10-2006, 05:00 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
If you are using classic tiles, just add

PHP Code:
removetiledefs(); 
in one of your System NPCs (onCreated()).
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 09-11-2006, 01:26 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by xXziroXx
If you are using classic tiles, just add

PHP Code:
removetiledefs(); 
in one of your System NPCs (onCreated()).
I tried this Ziro, it didn't work. I don't know what else to do, there is no set for this in the server, and I deleted the tileset it keeps using, so I dunno why it hasn't changed back, am restarting the server, maybe that will help.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #13  
Old 09-11-2006, 02:02 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Might me removetiledefs(""); when I think about it.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #14  
Old 09-12-2006, 03:24 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Quote:
Originally Posted by xXziroXx
Might me removetiledefs(""); when I think about it.
You sir, never cease to amaze. <3

That worked.
__________________
*Don't let the door hit you on the way out.*
Reply With Quote
  #15  
Old 09-12-2006, 02:31 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
You could've also deleted the tiledefsServerName.txt file (in the levels/tiledefs/ folder, IIRC)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #16  
Old 09-13-2006, 04:33 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by ApothiX
You could've also deleted the tiledefsServerName.txt file (in the levels/tiledefs/ folder, IIRC)
True, but, now he have an automatic system for him and all other players!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:14 PM.


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