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 04-11-2004, 02:25 AM
Callant Callant is offline
Registered User
Join Date: Nov 2003
Posts: 5
Callant is on a distinguished road
Question Preloading npc's?

Newbie question i guess

Basically i have a gmap however some npc's are based around where 4 maps connect at thier corners, So being in the bottom left hand corner of the screen means the npc's on thatmap load up but not on any of theother maps until you walk into them.
So question is this, can u preload npc's in maps the user isn't in, if so how? (i posted this here as i am not sure whether its scripting or level design really)

Thx
Reply With Quote
  #2  
Old 04-11-2004, 07:55 AM
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
Oh, I didn't catch what you meant at first, hehe.
You'll need to redesign the setup of your gmaps if you want smooth linking. Just don't connect gmaps like that and you should be fine (for what you have, put it all in one gmap maybe).
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #3  
Old 04-11-2004, 11:37 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
I might aswell post here to about my GMAP problem..
Well, I set up a sign and it dosn't let you read it.., how can I fix this?
npcs don't load either..
__________________
V$:CONFL16T

Last edited by WanDaMan; 04-11-2004 at 02:45 PM..
Reply With Quote
  #4  
Old 04-11-2004, 03:34 PM
VeX_RaT_Boy VeX_RaT_Boy is offline
WannaBe Scripter
VeX_RaT_Boy's Avatar
Join Date: Aug 2002
Location: Norway
Posts: 960
VeX_RaT_Boy is on a distinguished road
Send a message via ICQ to VeX_RaT_Boy Send a message via AIM to VeX_RaT_Boy Send a message via Yahoo to VeX_RaT_Boy
Quote:
Originally posted by WanDaMan
I might aswell post here to about my GMAP problem..
Well, I set up a sign and it dosn't let you read it.., how can I fix this?
Use say2
npcs don't load either..
I've never had that problem o.O
__________________
-Kjetil Valen
Reply With Quote
  #5  
Old 04-11-2004, 04:06 PM
Callant Callant is offline
Registered User
Join Date: Nov 2003
Posts: 5
Callant is on a distinguished road
i think i may have put my point accross incorrectly , i only have 1 gmap, but its the maps or levels or watever u wanna call em INSIDE that gmap thats are causing the problems. the npc's only load for the level you are standing in, but as its a gmap and you can see the other levels around you they all look lifeless because the npc's don't load until u cross the invisible line into the next level, so u can image 2 levels, a & b, and 2 guys throwing a ball at each other, 1 guy in a, the other in level b, i enter level a and i can only see 1 guy, yet i can see where the 2nd guy should be but he doesn't appear until i walk into level b. If that makes sense I was just wondering if i can load level b at some point whilst still in level a and vice versa.

Thx
Reply With Quote
  #6  
Old 04-11-2004, 05:12 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Callant
i think i may have put my point accross incorrectly , i only have 1 gmap, but its the maps or levels or watever u wanna call em INSIDE that gmap thats are causing the problems. the npc's only load for the level you are standing in, but as its a gmap and you can see the other levels around you they all look lifeless because the npc's don't load until u cross the invisible line into the next level, so u can image 2 levels, a & b, and 2 guys throwing a ball at each other, 1 guy in a, the other in level b, i enter level a and i can only see 1 guy, yet i can see where the 2nd guy should be but he doesn't appear until i walk into level b. If that makes sense I was just wondering if i can load level b at some point whilst still in level a and vice versa.

Thx
Same here, but It's not about loading. I just want to know why it's doing this..
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 04-11-2004, 06:11 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
Oh, you must not have done the gmap correctly, or are confusing it with a regular map. I'll attach Loriel's cool little tutorial to explain everything, since it does that pretty well and I don't feel like doing it since I don't know it all off the top of my head.
Attached Files
File Type: txt gmap.txt (5.2 KB, 220 views)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #8  
Old 04-12-2004, 04:33 AM
Callant Callant is offline
Registered User
Join Date: Nov 2003
Posts: 5
Callant is on a distinguished road
Still no joy on this one guys, i read the txt above, but i still can't seem to sort it

Just to clarifiy yet again wat i mean to make sure i explained it right is a little piccy

http://mysite.freeserve.com/tstore/npchitch.jpg

At the red 'X' the ghost would not appear (works fine in offline mode btw) in order to make the ghost appear i would have to cross the yellow line above the 'X' that the arrow points to. Again this all works fine in offline mode, e.g. the ghost is visible without having to cross the yellow line.

Ill attach the gmap file i am using too if anyone wants to look at it

thx.
Attached Files
File Type: gmap dark.gmap (9.7 KB, 135 views)
Reply With Quote
  #9  
Old 04-12-2004, 05:17 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
- Have you called loadmap (mapname) in one of the client's weapons?

- Does the map exist in your gmaps= serveroption?
Reply With Quote
  #10  
Old 04-12-2004, 06:49 AM
Callant Callant is offline
Registered User
Join Date: Nov 2003
Posts: 5
Callant is on a distinguished road
yeah the gmap is specified in the server option and it's called in the control npc with if(actionplayeronline) , the gmap works, u can walk around as if its 1 huuuuge map, but the only npc's that load are the ones in the level u are standing in e.g. levela03.nw. But seeing as all works offline u think this is a serverside config problem?

thx for any help
Reply With Quote
  #11  
Old 04-12-2004, 11:16 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Paste the gmaps= serveroption's line, please.

Also, I'll note that it's been said to put the loadmap command_in_client_weapon_, not in actionplayeronline. Move the loadmap mapname command to some kind of hidden/system weapon that the player cannot see.
Reply With Quote
  #12  
Old 04-12-2004, 11:42 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
I forgot to add the folder config.. thanks chad
__________________
V$:CONFL16T
Reply With Quote
  #13  
Old 04-13-2004, 12:56 AM
Uiaad_dice_mage Uiaad_dice_mage is offline
Registered User
Join Date: Nov 2003
Location: England
Posts: 39
Uiaad_dice_mage is on a distinguished road
Send a message via AIM to Uiaad_dice_mage Send a message via Yahoo to Uiaad_dice_mage
on the same server ....

we are are also having a problem with that we cant draw a night effect so that the levels look dark ... any help here ?
__________________
Tumbling, burning with white-hot fire, I plunged into the depths of the abyss. Unspeakable pain... relentless agony... ... time ceased to exist... ... only this torture... and a deepening hatred of the hypocrisy that damned me to this hell.
An eternity passed, and my torment receded, bringing me back from the precipice of madness. The descent had destroyed me... and yet I lived.
- Raziel - Legecy of Kain: Soul Reaver
Reply With Quote
  #14  
Old 04-13-2004, 03:31 PM
Alexander Alexander is offline
Registered User
Join Date: Apr 2003
Location: California
Posts: 246
Alexander is on a distinguished road
Send a message via AIM to Alexander
I believe the question is if she can load npcs in other levels before she enters them o.O?
Reply With Quote
  #15  
Old 04-13-2004, 06:22 PM
Uiaad_dice_mage Uiaad_dice_mage is offline
Registered User
Join Date: Nov 2003
Location: England
Posts: 39
Uiaad_dice_mage is on a distinguished road
Send a message via AIM to Uiaad_dice_mage Send a message via Yahoo to Uiaad_dice_mage
LOL... then some more serious stuff

firstly Alexander .... the "she" is infact a he, that i used to go to college a few years ago. And on a more serious note i would just like to say i just thought we could kill two birds with one stone rather that having to open up a whole nother thread and screw about with things that way
__________________
Tumbling, burning with white-hot fire, I plunged into the depths of the abyss. Unspeakable pain... relentless agony... ... time ceased to exist... ... only this torture... and a deepening hatred of the hypocrisy that damned me to this hell.
An eternity passed, and my torment receded, bringing me back from the precipice of madness. The descent had destroyed me... and yet I lived.
- Raziel - Legecy of Kain: Soul Reaver
Reply With Quote
  #16  
Old 04-13-2004, 08:24 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Re: LOL... then some more serious stuff

Quote:
Originally posted by Uiaad_dice_mage
firstly Alexander .... the "she" is infact a he, that i used to go to college a few years ago. And on a more serious note i would just like to say i just thought we could kill two birds with one stone rather that having to open up a whole nother thread and screw about with things that way
get back on topic, stop wondering off..

Why have GMAPS? i mean what's the difference from actually original maps?
Reply With Quote
  #17  
Old 04-13-2004, 08:58 PM
Uiaad_dice_mage Uiaad_dice_mage is offline
Registered User
Join Date: Nov 2003
Location: England
Posts: 39
Uiaad_dice_mage is on a distinguished road
Send a message via AIM to Uiaad_dice_mage Send a message via Yahoo to Uiaad_dice_mage
Gmaps is the file that tell graal how the levels are linked together so that they for one whole world rather than just indervidual levels which is rather redundent on graal servers these days
__________________
Tumbling, burning with white-hot fire, I plunged into the depths of the abyss. Unspeakable pain... relentless agony... ... time ceased to exist... ... only this torture... and a deepening hatred of the hypocrisy that damned me to this hell.
An eternity passed, and my torment receded, bringing me back from the precipice of madness. The descent had destroyed me... and yet I lived.
- Raziel - Legecy of Kain: Soul Reaver
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 10:04 PM.


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