Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > NWN Mod: Escape from Undermountain
FAQ Calendar Arcade Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 09-06-2006, 07:07 AM   #1
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
void main()
{
object oPlayer= GetLastPCRested();
if(GetLastRestEventType() == REST_EVENTTYPE_REST_FINISHED)
{
//ExportAllCharacters();
ExportSingleCharacter( oPlayer );
SendMessageToPC( oPlayer, "Character saved." );

}
}

Put this in the module onrest event, and it will overwrite the char file when the char rests in game. I know I've lost up to 6 hours of work by not logging out to save the char, mostly because I'm used to chars being saved on rest in my other server.
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 09-06-2006, 09:07 AM   #2
StigTC
Avatar
 

Join Date: September 15, 2002
Location: Denmark
Age: 43
Posts: 513
That would be nice.
As a side question, if you press Escape and chose save character, does it save it server side as well or only client side?
__________________
One fine day in the middle of the night, two dead boys got up to fight, <br />Back to back they faced each other, drew their swords and shot each other. <br />The deaf policeman heard the noise, and came and shot those two dead boys. <br />If you don\'t believe this joke is true, ask the blind man, he saw it too!
StigTC is offline   Reply With Quote
Old 09-06-2006, 09:11 AM   #3
Cloudbringer
Ironworks Moderator
 

Join Date: March 1, 2001
Location: Upstate NY USA
Posts: 19,737
I think it saves client side then. Not sure, though.
__________________
"Don't take life for granted." Animal (may he rest in peace)
Cloudbringer is offline   Reply With Quote
Old 09-06-2006, 09:24 AM   #4
JrKASperov
Fzoul Chembryl
 

Join Date: July 16, 2003
Location: Wa\'eni\'n
Age: 38
Posts: 1,701
Save character saves client side, and not even in the server vault.
__________________
God is in the rain.
JrKASperov is offline   Reply With Quote
Old 09-06-2006, 11:46 AM   #5
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
That script will save to the server vault. We use the same one at my other server, and back when we were prone to a lot of crashes, it saved a lot of work.
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 09-10-2006, 04:45 AM   #6
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Excellent! Thanks Rob! I will indeed install it!

So it'll save ALL chars online even if one person rests? (I hope so) [img]smile.gif[/img]
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Old 09-10-2006, 05:19 AM   #7
Ziroc
Ironworks Webmaster

     
     Bow to the Meow

 

Join Date: January 4, 2001
Location: Lakeland, Florida
Age: 51
Posts: 11,720
Done and installed.. let me know if it works ok, next crash.
__________________
Ziroc™
Ironworks Gaming Webmaster
www.ironworksgaming.com

The Great Escape Studios - 2D/3D Modeling
www.tgeweb.com & Ziroc's Facebook Page
Visit My Flickr Photo Album
Ziroc is offline   Reply With Quote
Old 09-10-2006, 06:03 AM   #8
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
If you uncomment out the save all chars, it will, but I'd leave it as is. It should just overwrite the existing, at least that's how it works on Fates, where we use it.
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 09-10-2006, 09:27 AM   #9
robertthebard
Xanathar Thieves Guild
 

Join Date: March 17, 2001
Location: Wichita, KS USA
Age: 60
Posts: 4,537
Seems to work great, but the server didn't crash while I was in. It's nice to see the Character Saved message though, after a rest.
__________________
To those we have lost; May your spirits fly free.
Good Music: Here.
Interesting read, one of my blogs.
robertthebard is offline   Reply With Quote
Old 09-11-2006, 05:15 PM   #10
Greything
Drizzt Do'Urden
 

Join Date: June 25, 2004
Location: UK
Posts: 633
I've had no difficulties with this system over the past few days and I'm not even sure if this is what is causing my current problem. Still, it's a convenient place to make this post

I just tried to log in and was invited to play a local character rather than one from the server vault. I suspect that this is something temporary but thought I ought to mention it just in case.
Greything is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[OBV] Early impressions - stuff you like, stuff you don't like Aelia Jusa Miscellaneous Games (RPG or not) 33 04-03-2006 08:20 PM
Dan, am I losing it? Reeka General Conversation Archives (11/2000 - 01/2005) 9 01-05-2002 04:44 AM
I just keep losing things! Hanz123 Baldurs Gate II Archives 6 07-10-2001 11:50 PM
Char Classes and stuff WizardMen Wizards & Warriors Forum 8 03-24-2001 02:49 PM
Losing stuff in inventory... Siridar Baldurs Gate II Archives 8 12-09-2000 09:16 AM


All times are GMT -4. The time now is 08:43 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved