09-06-2006, 07:07 AM | #1 |
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. |
09-06-2006, 09:07 AM | #2 |
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! |
09-06-2006, 09:11 AM | #3 |
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) |
09-06-2006, 09:24 AM | #4 |
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. |
09-06-2006, 11:46 AM | #5 |
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. |
09-10-2006, 04:45 AM | #6 |
Ironworks Webmaster
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 |
09-10-2006, 05:19 AM | #7 |
Ironworks Webmaster
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 |
09-10-2006, 06:03 AM | #8 |
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. |
09-10-2006, 09:27 AM | #9 |
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. |
09-11-2006, 05:15 PM | #10 |
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. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |