[Release] Windows Auto Restarter/Server Manager v1.1

Windows FiveM Server Manager

NEW VERSION FROM SCRATCH AVAILABLE - FASTER AND BETTER

The new version is finally here! All the bugs are fixed, it’s way faster than this one and has more features. Download the new version here. It is also multiplatform, not Windows only anymore!

DOWNLOAD HERE - NEWER AND BETTER

Features

  1. Up to 4 schedulable reboots
  2. Ensures that your Test Server is closed when the main server starts
  3. Ensures that the Test Server is closed when the main server reboots
  4. Ensure that the browser is closed when the server reboots
  5. Deletes the cache when the server starts
  6. Deletes the cache when the server reboots
  7. Creates a log with all the outputs and possible errors
  8. Set the priority of the server and server manager process
  9. Avaliable in English and Portuguese
  10. More features on the way!

ALL these features can be easyly turned ON/OFF at the config section!

If you think that something is missing, like another language or another feature, please give me you suggestion that I will work on it or make the changes yourself and send them here so I can update the post!

In the “READ-ME.md” you will find a step-by-set on how to install this script, some observations, tips and debugging instructions.

Download ***OUTDATED*** - v1.0 (8.5 KB)


NEW VERSION - CLICK HERE


Note: the version 1.1 is avaliable but it might be broken. If you still want it, you can download it at the Change Log. Soon i will fix it, until there, use the v1.0.

Change Log

A note with what have changed is avaliable at the “READ-ME.md”

The direct download always will be the last version!

Known Bugs

Known Bugs

  1. “hitch warning: frame time of X milliseconds” all the time in the CMD window" - That does not affect the server if the number is under 500
    hitch%20warning
  • I will start working on that soon. I just noticed that now. When I start the server through the “START SERVER.bat”, everything is perfect but, when I start the server throught the “Server Manager.bat”, I keep getting these hitch warning. I didn’t notice any difference/bugs in the server yet. If you are having these errors too, while the number is low (below 500 or 600 - I know that the first one is extremely high, 1223, but it’s normal the first one after the server start be higher) it’s fine but I will try to fix this as soon as possible. I will try to get rid of unnecessary loops and make that the server starts with a higher priority and the manager with a low priority. When it have been fixed I update the download link.
  1. If you start the “Server Manager.bat” after the time set for the first restart, it will not work unitl the next day when the first restart is made. Meanwhile, you have two options to “fix” this bug:
    a) Use task scheduler to start the server manager the next day before the first restart;
    b) Start the server manager and wait until the next day to it start working
  • When I re-release the version 1.1, this will be fixed and a few more features will be avaliable. Until there, use one of these two solutions.

I recommend using this script made by @Random_0100 to prompt messages to the players in game a few minutes before the restart. Click here to see his release.

Hope you all enjoy!

3 Likes

hmm shall test it out

I’ll will have to see how this works.

no image? It would be great to see how it looks.

1 Like

This is a .bat file, only testing to see. The only image I would be able to put is the cmd window running or the server log.

1 Like

Remove your discord link.

You are the second guy that says me that. I did but I would like to know why I had to do that? I put the Discord link to people be able to reach me out if they need any help…

Oh, ok. Didn’t know that. Tks!

that would be what I am looking for but ill wait for hitch warning fix

@Sentaku have you tried using the v1.0? I acctually don’t know if the problem is with me or with the script cuz in my local pc its fine but at my vps i keep getting these warnings.

I will try this out later

hey guys i have an problem the server is starting and all but it will not restart.
The restart done status of all restarts was settled to not done - false

how can i fix this.

Works fine, but second console in the background keeps running in circles and it doesn’t look right. Is that normal? Also, history in the log doesn’t go further then

Script Created by feR#8191 
Check out my server! 
City Life Roleplay - IP 144.217.32.38 
Discord.gg/s3HUypg  
Website: http://144.217.32.38 
Script Version: 1.0 

[19/04/2019 - 13:40:57.69] Starting High Stakes Roleplay log... 

###Config### 
lang=en 
sys_lang=en  
serverName=High Stakes Roleplay 
serverIP=127.0.0.1 
stopTestServer=false 
stopTestServerAlways=false 
stopBrowser=false 
browserIm=chrome.exe 
clearCache=false 
clearCacheAlways=false 
location=D:\FXServer\ 
startServer_bat_location=D:\FXServer\serverstarter.bat 
backup=false 
backup_name=resources 
title_main=Administrator:  High Stakes Roleplay 
title_test=Administrator:  High Stakes TEST SERVER 
title_this=Server Manager 
log_name=serverlog 
log_type=log 
log_path=D:\FXServer 

###Retart Times### 
First restart at 000h00m 
Second restart at 000h00m 
Third restart at 000h00m 
Fourth restart at 000h00m 

[19/04/2019 - 13:40:57.69] Starting the server for the first time... 
[19/04/2019 - 13:40:57.69] The restart done status of all restarts was settled to not done - false 

Where I might made mistake, please?

‘set$’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
‘set$’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
‘set$’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
‘set$’ n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

I got these errors on the server launch…

I WILL ACTUALLY REDO THIS SOON

Hey guys! Sorry for the long wait without touching this or giving support, I did not have too much free time until now.

In a few weeks - I hope - I will release a better and working version of the server manager, compatible with Linux as well. As soon as get the new version working, I will re-release it and let you guys now.

Sorry for the wait!

Obs.: I will not be answering more questions about this release since it’s not very stable and I’ve already started working on a new - and better - version. Check this post regularly or activate notification for it because I will let you guys know through here when the new version is available.

Thanks for your comprehension!

2 Likes

I’m releasing a FXServer Admin soon and I’m interested in hearing from you guys how important is the auto cache cleaner?

I personally never had to delete the cache folder. I think FIVEM hashes the files for integrity checking.

1 Like

THE NEW VERSION IT’S FINALLY HERE

Now it is way better! These old bugs have been fixed, the performance is incredibly better and new features are available! Besides, this new version is also multiplatform!

@Brutalboy @MoravianLion @Tig3rClaw @Sentaku @IceHax @JayJayAuto @QuantumVI @ejb1123 @godgutten

1 Like

Is it possible for you to add the option to run additional commands at schedule times before the restart?

15 minutes before restart - call function / command
10 minutes same thing
5 minutes… etc

I myself have the functions already built, but it could be nice just to have it in the manager, so you just say when notifications should go out, and an in-game notice will be sent for all users at the specified times letting them know of the upcoming reboot

Also kicking everyone just before the reboot and letting them know it’s rebooting would be nice too

how can i set it up to work with an hosted server