Server watch

Page:1  

  • Forsaken

    Here's the keepalive script that I made for my server. I got bored the other day and improved it with a utility that will move the server and monitor windows to coordinates on your screen when the server is started or restarted. Its quick and dirty, but it works :D I don't know if it will work on mods other than cryfire, so let me know if it does. If not, its easy to modify It uses cmdow.exe, which some antivirus programs don't like, just a heads up. Hopefully it will be of use to someone. https://www.dropbox.com/s/lrveyh33lz003rw/ServerWatcher.zip?dl=1 Edit* oops, I meant to post this in scripts... oh well

    ❤️ 0
  • Comrade

    Haven't tested yet, but it looks good. Just few minor things to note: - Maybe you can remove that useless waiting. The epic progress bar won't work on most non-English versions of Windows anyway. - Automatic server restart will work if and only if no crash dialog appears. Crysis has sys_no_crash_dialog cvar, but i'm not sure if it really works. You can also probably disable crash dialogs globally somewhere in Windows registry. - https://serverfault.com/questions/432322/how-to-sleep-in-a-batch-file Anyway, good luck with using Windows on server. :)

    ❤️ 0
  • Forsaken

    Yeah, like I said, its quick and dirty. I started this a long time ago, and just thought I would add some goofy batch stuff, and make it more universal. My main goal with this was the auto resize/move of the server console, and I decided to make it look cool with the loading screen. I have a good idea of what I want to do as far as monitoring the server process, but this has sat for a couple years without me touching it until this morning. I would like to set up a linux server, but haven't had the time to set it up with wine... has someone made the wars linux server stuff work with crysis and I'm just unaware of it?

    ❤️ 0
  • Comrade

    Crysis Wars has native Linux version of its dedicated server, but it's only 32-bit and no existing SSM works with it because all SSMs have Windows DLL, so it's not very useful. However, as you know there's Wine project that allows you to run Windows apps on Linux and other systems. It works quite well with Crysis. Not only dedicated server, but even the game works there. With some sneaky tricks i get almost same FPS as on Windows. That's quite impressive. Few weeks ago i bought Linux VPS from Hetzner to host Crysis server on it. Right now, the "something" server lives there and as you can see it works. The original Crysis dedicated server is not so nice because of that damn ineffective console window. It's basically GUI application, so it requires GUI to live in. Having GUI on server is possible, but it's just useless waste of server resources. This is one reason why Windows Server is so bad, because it has the GUI always. To fix this issue i made another custom Crysis dedicated server launcher that doesn't have that console window. You can find it here https://github.com/ccomrade/c1-headless. It acts as simple console application (no GUI), so it can be easily started as background service. So, yes, running Crysis server on Linux is possible. There are still some things to do and even Crysis server itself is far from perfect, but it works. For example, my server automatically goes to next map even when nobody is playing there, so it does map change like 10 times every day. The problem is that every map change slightly increases memory usage of the server because of some memory leaks in Crysis code. After few days without restart it eats noticeably more memory, so it needs restart time to time. Also, automatic server restart after crash or something works well thanks nice service management in Linux, so you don't have to mess with some batch files (worst scripting language in the world by the way). I want to run ctaoistrach's server on the VPS as well. He has own custom SSM called nCX with interesting features, but its code requires small clean up. Sadly, nCX seems to be the only SSM that is still under active development. The VPS probably has enough power to run more than 2 Crysis servers, so if you or anyone else has some nice Crysis server with unique features, i can run it there too. Maybe it will attract more new players, so we will finally have more highly active players than servers. :D

    ❤️ 0
  • Forsaken

    Thanks for the info, and server launcher! I have been scratching my head trying to figure out how to make it work on my ubuntu VPS. Hopefully Ill get some time to play with it over the next couple of weeks. I appreciate the offer, but I don't really have anything ready to go as of yet, as far as a 'fire and forget' server. as for batch... yeah, I prefer python, who doesn't? :D

    ❤️ 0
Page:1