Cleaning period

Mod development and tools for UE1 game titles here.
Post Reply
Nelsona
Posts: 1737
Joined: Sat Sep 30, 2017 5:03 am

Cleaning period

Post by Nelsona »

At a moment perhaps memory fragmentation and management in some UT server is not what we need.
In such cases we probably need a controlled restart at a specific time. I've found a so-called older mutator, but which has not always helped, did not do it because of the load which a server can handle at time. When I took a look at what the precious mutator contains, I think I did not have a second of thought, and I decided to love him a little. Such a mutator seems to work much better as ServerActor than as an ordinary mutator that has another networking deal, the logged lines appear to work very well as an actor not as a mutator. If we consider such a ServerActor, it may have defined a configuration read from an INI file as desired. We define the hour, minute and second required, and the server will stop and restart immediately at a clean stage at that scheduled time + 1 second. We leave this second to observe this activity.
INI file has a simple format - sample below:

Code: Select all

[ServerReset.ServerReset]
ResetHour=1
ResetMinute=1
ResetSecond=10
In this case our actor will stop server at 1:1:10 AM and BAT application will restart it properly saving log accordingly if everything is configured as should. INT file might open preferences options for a configuring it from game or generating a new INI if original is lost.
ServerReset.zip
(1.81 KiB) Downloaded 444 times
Setup:
  • ServerActors=ServerReset.ServerReset
MonsterGamingServer has now this feature and default config managed by NfoServers which was ruining logs is now DISABLED. We can manage to restart our servers letting engine to exit properly instead of a TaskKill lousy deal.
UncodeX Stuff
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -
medor
Posts: 76
Joined: Sat Sep 30, 2017 4:14 pm

Re: Cleaning period

Post by medor »

Is it the same from 06/06/2012 ?
medor.no_ip.org
Image
Image
Image
Image
Nelsona
Posts: 1737
Joined: Sat Sep 30, 2017 5:03 am

Re: Cleaning period

Post by Nelsona »

Nope. There are several differences from version 2004 - that was initial base - I did not see that one from 2012.
- won't crash server as predecessor mentioned at ut99.org - that one was crashing not restarting - restarting was a matter of configuration;
- won't use a timer code, it uses a state code;
- is an Actor running, not a Mutator;
- for figuring functionality it does a report after first second.

Perhaps in a future version an admin command would be implemented but it would be useless, as admin you can send a command "admin exit" and server is quitting without any issue.
UncodeX Stuff
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -
medor
Posts: 76
Joined: Sat Sep 30, 2017 4:14 pm

Re: Cleaning period

Post by medor »

ok i think i will rename the zip with the dated or v2 before archive it
medor.no_ip.org
Image
Image
Image
Image
Nelsona
Posts: 1737
Joined: Sat Sep 30, 2017 5:03 am

Re: Cleaning period

Post by Nelsona »

Do what you think it helps, or might help others.
UncodeX Stuff
Not often maintained
My UT Mapping works...
Learn the rules like a pro, so you can break them like an artist.
- Pablo Picasso -
Post Reply