Perhaps I don't understand how saving the players info to servervault works. I'm under the assumption that it's automatic, but not on every heartbeat.
My question is: Can I have the player 'save' to servervault when they rest? Again, I think I'm asking this question without knowing how the save works in the first place.
Thanks for any clearification.
Buddywarrior
Save on rest
Débuté par
Buddywarrior
, juin 14 2012 10:53
#1
Posté 14 juin 2012 - 10:53
#2
Posté 14 juin 2012 - 11:13
Player character is saved automatically into servervault only when: player exit module or player hit the export character button in game options.
Therefore is recommended to save them manually by script.
Function ExportSingleCharacter will do that - simply add this function into OnRest code.
Should consider adding it into Acquire/UnAcquire as well and and to make recursive delayed function in OnLoad that save all characters in game too.
Think I ve made such function in my no-hak PW starter module.
Therefore is recommended to save them manually by script.
Function ExportSingleCharacter will do that - simply add this function into OnRest code.
Should consider adding it into Acquire/UnAcquire as well and and to make recursive delayed function in OnLoad that save all characters in game too.
Think I ve made such function in my no-hak PW starter module.
Modifié par ShaDoOoW, 14 juin 2012 - 11:14 .
#3
Posté 14 juin 2012 - 11:58
done and done! Thanks ShadoOow!
#4
Posté 15 juin 2012 - 12:43
You can also save them on death/raise/entering safe town etc... whenever you think a important event happens.
#5
Posté 15 juin 2012 - 01:20
That functions saves to the vault the server is using? I did not realize that. *slaps head*
For the server vault, does it create a new version of the character file or overwrite the existing?
For the server vault, does it create a new version of the character file or overwrite the existing?
#6
Posté 15 juin 2012 - 01:25
overrride existing
also note: beware ExportAllCharacter function, I did not tested it myself actually but in past I heard rumours it does causes lags. Perhaps not "lagging" but maybe a instant server-side pause to save all characters in one moment. Maybe problem only in big player count, its more safer to use ExportSingleCharacter with some delay for each PC.
also note: beware ExportAllCharacter function, I did not tested it myself actually but in past I heard rumours it does causes lags. Perhaps not "lagging" but maybe a instant server-side pause to save all characters in one moment. Maybe problem only in big player count, its more safer to use ExportSingleCharacter with some delay for each PC.
#7
Posté 17 juin 2012 - 02:14
is it possible to suppress the "Player was exported successfully" when using the ExportSingleCharacter?
#8
Posté 17 juin 2012 - 02:22
its not a standard behavior at servervault. You get this message only in singeplayer mode where the character is also saved into your localvault (something you should consider not to do otherwise your localvault will blown up)Buddywarrior wrote...
is it possible to suppress the "Player was exported successfully" when using the ExportSingleCharacter?
Or player might see this message when exporting a character from servervault, but in this case its usefull.
#9
Posté 17 juin 2012 - 02:44
Just another warning of note. I have heard it reported that exporting a PC who has left the game will cause a server crash. It has been suggested in the past that the Export always be wraped with a check to make sure that the PC being exported is still valid.
#10
Posté 30 juin 2012 - 02:41
Is it also necessary to check whether the PC is polymorphed?
This from the Lexicon:
1.61 Bug: Exporting polymorphed characters causes the character to de-polymorph and re-polymorph. For the Hordes of the Underdark Shifter Prestige class, this causes all the equipment bonuses to be lost. (Early versions of Neverwinter Nights would incorrectly write out the data for the polymorphed creature causing character corruption.)
This from the Lexicon:
1.61 Bug: Exporting polymorphed characters causes the character to de-polymorph and re-polymorph. For the Hordes of the Underdark Shifter Prestige class, this causes all the equipment bonuses to be lost. (Early versions of Neverwinter Nights would incorrectly write out the data for the polymorphed creature causing character corruption.)





Retour en haut







