Server restart ?

Blumse

New member
7D2D RAT Supporter
Feb 11, 2017
8
0
0
40
So i added some times to the table but its not working
Sometimes the server does restart, but it seems to be random

So i wonder if there is any issues with the restart server or if its me doing it wrong :)

http://i.imgur.com/Igl6GBn.jpg
Here is a picture, so the question is, does the restart table only work when server hits 10gig of ram or should it work without using 10gigs of ram ?

I would really like it to restart every 4 hours even if the max usage is not hit, im not sure if this is possible in the current version?

Also since the program is doing a whois on IP's can you maybe make a "ban by country" option ?

Thanks for an awesome server manager :)
 
Admittingly, this area needs some work...

That being said, its mostly around design as it's difficult to understand.

The max ram usage, is independent of the restart timers. Basically, if it hits the max ram, it'll restart the server.

I think the issue here is, you need to set your player count higher than 1. The check is basically if currentPlayers < restartPlayers, then restart.

Meaning, only restart if the current players are less than the number you set in your restart config. If you want it to restart no matter how many people are online, just set the players to a high number (typically your max players + 1 to ensure a restart no matter what).

The way you have it set right now is, only restart if there is less than 1 player online. The reason it seems random is, if there is a player online when your timer hits, RAT will keep checking as it does. As soon as there are fewer players online than you have set, RAT will restart the server. So in your case, as soon as that last player logs off, the server will restart.

You can ban by country already by using the "Host Bans", add in ".cn" for example (no quotes) to ban Chinese IPs. This could be better, but catches the majority.
 
I have already tried with a higher max player count, i tried 26 and even 3000, i did have a issue when i first did the setup, when i clicked the max player count i could edit the hole line, like enabled,countdown, and so on, so i just deleted it all, this could maybe be the problem, i will do a clean install of RAT tomorrow and report back if everything is working :)

Thanks once again for this awesome manager that i hope you will continue working on when alpha 16 is out :)

EDIT:
What kind of data is stored in 7d2dusa.sdf ?
 
Last edited:
I have already tried with a higher max player count, i tried 26 and even 3000, i did have a issue when i first did the setup, when i clicked the max player count i could edit the hole line, like enabled,countdown, and so on, so i just deleted it all, this could maybe be the problem, i will do a clean install of RAT tomorrow and report back if everything is working :)

Thanks once again for this awesome manager that i hope you will continue working on when alpha 16 is out :)

EDIT:
What kind of data is stored in 7d2dusa.sdf ?

I can't see how that initial issue would cause the problem, but... right now there doesn't seem to be an obvious answer. I'll keep working on RAT as long as people use it and it makes sense. =)

As for the kind of data stored there, are you talking about actual file format or the content? The file format is SQLCE, the content is pretty much whatever you see in RAT, all of the server settings, player info, teleports, etc.
 
Yeah, i wanted to update my question to ask if its important to backup when i do a clean install, thats all, i know it stores some data, just wasn't sure if it was the program data or game, right now its 16mb which seems like alot if it only stores the settings :)
 
Yeah, i wanted to update my question to ask if its important to backup when i do a clean install, thats all, i know it stores some data, just wasn't sure if it was the program data or game, right now its 16mb which seems like alot if it only stores the settings :)

It also stores all of the logs, console and RAT logs. So that's where the file size comes into play. You can change how much data is kept for those logs from within the RAT Settings. =)

RAT stores things in two ways.

#1, Windows Registry. This is for all of the RAT application settings. Window positions, etc. Stuff the RAT app itself needs to run.

#2, The Database, this is for anything like server settings, logs, all of the config you as a server admin would do.

The Windows Registry doesn't typically get removed, so if you reinstall RAT, the RAT settings will remain (usually, its Windows, so I have no idea why sometimes the uninstalller does remove them).

Ultimately though, if you just rename/delete the .sdf file, you should be good to go for anything that would actually matter for your server.
 
I did the complete reinstall of RAT and everything is working now, host bans, restarts, and all other issues i had is working

Thanks once again :)
 
Okay so i ran into another problem now, i can click continue and it seems to work, but wondering what is causing this ?

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at WindowsApplication1.frmMain.tmrServerMessages_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1648.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
7D2DRAT
Assembly Version: 1.0.0.0
Win32 Version: 0.1.11.6
CodeBase: file:///C:/Program%20Files%20(x86)/NomadSoft/7D2DRAT/7D2DRAT.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1647.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data.SqlServerCe
Assembly Version: 4.0.0.1
Win32 Version: 4.0.8876.1
CodeBase: file:///C:/Program%20Files%20(x86)/NomadSoft/7D2DRAT/System.Data.SqlServerCe.DLL
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1636.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1647.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 9.0.0.0
Win32 Version: 9.0.1.19813
CodeBase: file:///C:/Program%20Files%20(x86)/NomadSoft/7D2DRAT/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1637.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.IO.Compression.FileSystem
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll
----------------------------------------
System.IO.Compression
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1586.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
It looks like you have either no server messages set, or that you do, but RAT things you have more than you do.

Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at WindowsApplication1.frmMain.tmrServerMessages_Tick(Object sender, EventArgs e)

Basically says that. But any kind of crash like that, is my issue. =) What you can do is try saving a server message. Close RAT and reopen it. See if it continues.
 
Yeah works now, had one message disabled, deleted and now its fine


Now the restart stopped working again, if you ever have the time, you could get rdp access and see if im doing something wrong

//blumse

EDIT:
Okay so the restart works when there is 1 or 0 players online, even tho i changed the max player count to 100, it could seem like its not saving my input and is using the default setting :)
 
Last edited: