Aller au contenu

Photo

Permanet map pins?on a PW


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
Bansidhe

Bansidhe
  • Members
  • 37 messages
Is it possible,or will they all just dissapear when the module is reset/reloaded,just too clarify this is a multiplayer internet server.

Any help,pointing out the B****y obvious,or links would be appreciated.

#2
Shadooow

Shadooow
  • Members
  • 4 465 messages
if you mean player-made mappins, it is possible to save them via scripting, but its not a very good idea because it may flood database especially if you using BIO db...

http://nwn.wikia.com/wiki/Map_pin

#3
kalbaern

kalbaern
  • Members
  • 824 messages
***laggy double posting

Modifié par kalbaern, 27 mars 2011 - 07:20 .


#4
kalbaern

kalbaern
  • Members
  • 824 messages
Save them as variables to a database item instead.

I save the variables to player dicebags on my own PW and have had no issues. Just PM if if you wish the actual code. It's not my own, I'd found it on NWN Vault a few years ago.

Modifié par kalbaern, 27 mars 2011 - 07:22 .


#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
Just remember that the area the MapPin belongs to is stored as a local the Object of the area. This means that if you added areas to the PW the area ID's may change. So you may want to store the Area as Tag of the area in the DB or on the DB item and convert them back to the correct Object when placing them as a local object on the PC.

#6
kalbaern

kalbaern
  • Members
  • 824 messages
Found the old link: nwvault.ign.com/View.php

Modifié par kalbaern, 27 mars 2011 - 09:39 .


#7
Bansidhe

Bansidhe
  • Members
  • 37 messages
Excellant1...thank you all so much! :)

#8
henesua

henesua
  • Members
  • 3 861 messages
At the risk of being blamed for necromancy, allow me to update this thread.
Jassper also created a set of functions for managing persistent map pins.

All you need of Jassper's work is the one file which I appreciate given my desire to conserve resources.