## Recommended Posts

So, I made this in Notepad++. It's a script to keep your Renegade X server from crashing. If your server dies for some reason, it'll come back. Don't touch anything in the batch, unless the comment says you can, or you know what you're doing.

Spoiler
@echo off
rem The only two lines you should be touching are line 7 and line 20. Don't touch anything else.
cls
echo Protecting Renegade X from crashes...
echo If you want to close your Renegade X Server and this script, close the Renegade X window and the command prompt. You can also do CTRL+C.
title Renegade X Watchdog - Modified by Giygas
cd "D:\path\to\RenX\Binaries\Win32"
SETLOCAL EnableExtensions
set EXE=UDK.exe
:END
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto ProcessFound
goto ProcessNotFound
:ProcessFound
timeout /t 5 /nobreak > NUL
goto END
:ProcessNotFound
timeout /t 5 /nobreak > NUL
goto END
:FIN

Version 1.0 -- Initial Release watchdog.bat

Spoiler
@echo off
cls
echo Protecting Renegade X from crashes...
echo If you want to close your Renegade X Server and this script, close the Renegade X window and the command prompt. You can also do CTRL+C.
title Renegade X Watchdog - Modified by Giygas
cd "D:\path\to\renx\Binaries\Win32"
:END
SETLOCAL EnableExtensions

set EXE=UDK.exe

FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto ProcessFound

goto ProcessNotFound

:ProcessFound

timeout /t 5 /nobreak > NUL
goto END
:ProcessNotFound
timeout /t 5 /nobreak > NUL
goto END
:FIN

Q&A Section:

Q: Is this for Linux?

A: No, but if you want a Linux one made in Shell, I could do that, and even integrate tmux.

Q: IT DOESN'T WORK! FIX IT! FIX IT! FIX IT!
A: That isn't even a question, and your statement isn't helpful. If you have problems, give me, and other people, steps to reproduce whatever error or bug you're encountering.

Q: Which version of Windows is this for?

A: Idunno. I only tested it on Windows Server 2016. Feel free to test it on older Windows, but don't expect it to work 100%.

Q: Can I ch-
A: DON'T. TOUCH. IT. Unless you KNOW what you're doing, don't touch the bloody file. If you break anything by changing values, don't come to me for support.

Q: How do I use this?
A: Well, take the contents of the code wrapped text, or just be lazy and download the attached .bat, and put it into a .bat file in your base Renegade X server folder. Something like this.

Edited by Giygas
• 2
• 1

**Reserved**

##### Share on other sites

• 4 months later...

Its always awesome to see someone make tools for the community!

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.