Hyper.nl Unreal Services Forum Index Hyper.nl Unreal Services
The forum of Hyper.nl Unreal Services and the semi-offical resource for Winged Unicorn's Unreal mods
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[solved] var config ### ###, changable?

 
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk
View previous topic :: View next topic  
Author Message
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Thu Oct 05, 2006 6:32 pm    Post subject: [solved] var config ### ###, changable? Reply with quote

Solved

Hello, im stuck on the following problem:

Im making a kind of message object, it stores a message into a string:

var string Message;

Now, i want the string to be saved into a file, so on the next serverboot it will load it again. This can be done with config:

var config string Message;

Now, the message is written to a file. But if i change Message ingame, then exit the server, it does not write the new string to the file (i tested)

So, if it possible to let it write the new string in the file if it gets changed?


Thanks in advance,
-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.


Last edited by SoulReaver on Fri Oct 06, 2006 11:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Zombie



Joined: 27 Jan 2004
Posts: 295

PostPosted: Fri Oct 06, 2006 7:26 am    Post subject: Reply with quote

From uscript use SaveConfig() after any config variable changes. In Advanced Options any INT file for a mod needs "Immediate=True" as part of the Preferences struct. If you're trying to 'set' save on the server then use the admin command, else use 'set' by itself for client local.


-Zombie
_________________
GameType: JCoopZ1 - Build137 (11/30/12)
Mutator: DZMapM - 2.34 (12/15/11)
Back to top
View user's profile Send private message Send e-mail
SoulReaver



Joined: 15 May 2004
Posts: 162

PostPosted: Fri Oct 06, 2006 11:29 am    Post subject: Reply with quote

Ah, i tought there was a kind of function to save it, but it could not seem to find it in the parent classes, anyway. thanks.

Regards,
-SR
_________________
Before asking, try the Unreal wiki here.
------------------------------
New UT3 Community site.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Hyper.nl Unreal Services Forum Index -> HelpDesk All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group