[Future Feature] Run RAT as a service.

Frog

New member
Sep 24, 2020
10
1
0
49
Hey!

I wonder if its possible to split RAT in two parts:
1. the GUI
2. the servermanager itself running as a service.

If Windows resarts, RAT-Service starts automatically and starts the server thread.
That would be nice because there would be no need to be logged in all the time.
Only if one wants to make changes he will log in windows, start the gui and make settings.
Then he will log out again.

That would be perfect!

;) ShockFrog
 
While possible, the amount of work it would take me to do that, I wouldn't really have the time to do. The limited amount of people that would even use it that way also decreases the value in taking the time to do it.

I do like the idea, there just isn't enough time to spend on features a limited amount of people will use.

That being said, you can still accomplish keeping your server up and running (without RAT) by making it run as a service itself. Granted, you won't have RAT functionality available until you log in, but you can start your server without RAT and RAT doesn't care. It'll still function as normal.

I know that's not exactly the best solution, but its the best I can offer at the moment.
 
:) Thank you for the honest answer!
I understand. Do you still play sometimes?

I already have my 4 servers running as service :D.
Maybe i will write a short manual how to do it. But i used 3rd party software.
Maybe pn me about that.

What happens if i run two instances of the same RAT? How often does RAT read/Write database? Maybe it´s possible to run the exe twice. one to connect to server and run as bot... whatever. The other one to edit database?

Everything is running nice here, so its time to try, isn´t it? XD
I will tell you here if i really try.
 
Last edited:
You can run multiple instances of RAT (as many as your system can handle). I know a couple people that run 4 game servers and run 4 instances of RAT. You can find some documentation on how to do that here: [DOC] - Running Multiple Instances of RAT

Short version is, you rename the EXE and then pass in a parameter pointing to that game servers RAT database. So when you start RAT, it points to the database for each server.

You can also put RAT into Client mode (Off of the File menu), which means that none of the events (other that relevant chat events) are processed by the client. That way you can have remote admins that use RAT, but those clients don't handle things like teleports or other types of events, so that they don't double up, etc. Not sure if that's a feature you'd use, but just making you aware of it, if you weren't. =)
 
1278

:) got 4 already.

Thanks for the info about client mode!
Maybe i will have some questions later...
Have to play/try/play/try now ;)
 
  • Like
Reactions: Trekkan
Only bad thing about the server version and client is the client has none of the events and you must edit the events on the server running version that is hosting the DB. You would have to copy the DB from the server and once copied change your client to client mode. This is just to be able to see the events. Would be nice to just run it as a windows service and be able to completely manage it from another machine. I am not sure about the internal DB restrictions.

I have an encrypted autologin on the VM that I use that logs in but locks the session after timeout. Have RATS starting with Windows. Not sure if I can link to the auto login tool I use.

This may sound demanding but its not. Also thank you so much for everything you have done in the production of this amazing program.
 
In the way RAT is today, that's true. If I did do something like this, it'd have to pretty much be rewritten with that in mind. Which isn't really something I'll probably do to be honest.