Coder Social home page Coder Social logo

dateranoth / conanexilesserverutility Goto Github PK

View Code? Open in Web Editor NEW
15.0 11.0 9.0 169 KB

Utility for automating updates and remotely restarting Conan Exiles server.

License: GNU General Public License v3.0

AutoIt 100.00%
conan restart-server autoit conan-exiles game daily-restarts

conanexilesserverutility's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conanexilesserverutility's Issues

steam bot request

not sure why no one ask for this instead of twitch and discord but steam bot support since everyone uses steam to play the game a group chat with the bot would seem better than spamming stream and voip chats

Running from Asus ROG RamDisk

Hello,

So i love this utility but i ran in to a strange problem. I have moved my Conan server to a Ramdisk, to get max performance out of it. I works like a dream when i start the server with the normal .bat file.

However, when i try to run the server with the Utility it gets stuck right before the server open up and just stalls the conan server. The icon is also missing in the task manger of my windows server, so i think there might be a bug with the utility.

I know that using a ramdisk is a different setup then normal, but it should work. I have tried running the utility form the C: and from the ramdisk it self. It did not change anything.

I'm using this software for the ramdisk: https://rog.asus.com/tag/rog-ramdisk/
It works with everything else :-P Building load times are amazing with this! :-)

Daily Restart Broken

Daily restart is not working on either branch. Believe the issue is with new time loop.

The procedure entry point could not be located

Hello, i get a messagebox from the ConanServer exe, when i start the server utility. it pops up two times and blocks the start of the server. Tested on two different systems: win10 and win server 2008. steam client is running in the background:

https://dl.dropboxusercontent.com/u/6588653/conenserverproblem.png

my config:
[Use MULTIHOME to Bind IP? Disable if having connection issues (yes/no)]
BindIP=yes
[Game Server IP]
ListenIP=xxx.xxx.xxx.xxx
[Game Server Port]
GamePort=7777
[Steam Query Port]
QueryPort=27015
[Server Name]
ServerName=Bandis Testserver - Do what you want
[Server Password]
ServerPass=
[Admin Password]
AdminPass=mysecretpassnobodyfindsout
[Max Players]
MaxPlayers=70
[Server Directory. NO TRAILING SLASH]
serverdir=N:\Dateranoth\ConanServer
[Use SteamCMD To Update Server? yes/no]
UseSteamCMD=yes
[SteamCMD Directory. NO TRAILING SLASH]
steamcmddir=N:\Dateranoth\SteamCMD
[Validate Files Every Time SteamCMD Runs? yes/no]
validategame=no
[Use Remote Restart ?yes/no]
UseRemoteRestart=yes
[Remote Restart Port]
ListenPort=57520
[Remote Restart Password]
RestartCode=geheim
[Hide Passwords in Log? yes/no]
ObfuscatePass=yes
[Restart Server Daily? yes/no]
RestartDaily=no
[Check for Update Every X Minutes? yes/no]
CheckForUpdate=yes
[Update Check Interval in Minutes 05-59]
UpdateInterval=05
[Daily Restart Hours? 00-23]
HotHour1=00
HotHour2=00
HotHour3=00
HotHour4=00
HotHour5=00
HotHour6=00
[Daily Restart Minute? 00-59]
HotMin=01
[Excessive Memory Amount?]
ExMem=6000000000
[Restart On Excessive Memory Use? yes/no]
ExMemRestart=yes
[Running Server with Steam Open? (yes/no)]
SteamFix=yes
[Rotate X Number of Logs every X Hours? yes/no]
logRotate=yes
logQuantity=10
logHoursBetweenRotate=24
[Use Discord Bot to Send Message Before Restart? yes/no]
UseDiscordBot=no
DiscordWebHookURL=https://discordapp.com/api/webhooks/XXXXXX/XXXX <- NO TRAILING SLASH AND USE FULL URL FROM WEBHOOK URL ON DISCORD
DiscordBotName=Conan Exiles Discord Bot
DiscordBotUseTTS=yes
DiscordBotAvatarLink=
DiscordBotTimeBeforeRestart=5
[Use Twitch Bot to Send Message Before Restart? yes/no]
UseTwitchBot=no
TwitchNick=twitchbotusername
ChatOAuth=oauth:1234 (Generate OAuth Token Here: https://twitchapps.com/tmi)
TwitchChannels=channel1,channel2,channel3
TwitchBotTimeBeforeRestart=5

Not clicking past Steam .dll popups

I have not yet found a consistent reason for this yet. my VM has been running for days without any changes to settings or programs running and sometimes on a server restart it will click through them just fine and others it won't and my server won't be restarted. This is creating an issue for players on my server, as sometimes the server will be down for hours before I realize what's happened.

Any fix or workaround?

Server Update Not working

RSS Title changed again. I'm going to have to change the way I parse the header or just switch to using Steam. Would be ultimately more accurate, instead of relying on an RSS feed title to be correct.

I wasnt sure how to message you

Took me a while to figure out the config file, but I love this tool. I normally just use a batch file to handle server crashes, but have never had a stable way of auto restarts but since rcon came out and you already had discord built in and the remote restart option, this will be great, my admins are dying for this to kick in so they dont have to worry about restarts and logging in for announcements.

Is there anyway you could add in an option to run a batch file after the server is shutdown/before the validate kicks in and possibly an extra 30 seconds on the delay in between? I have set of scripts that I run in between each restart to keep up on server decay manually removing all inactive players and structures after a specific amount of days and if this were an option I don't think I would have much more to ask of you for writing this.

Thanks again!
[email protected]

Two servers, one of the two with the script, bug?

Infos :
Two servers, first PVP and second PVE on OVH dedicated server with windows server 2012.

I tried your script only on the PVE server, to test.

I only use "ConanServerUtility.exe" and I do not use the "ConanServerRemoteRestart (x64)" script.

I use the script only on the PVE server, but I still renamed "ConanServerUtility.exe" to "UpdatePVEv2.8.6.1" (Because I would like to run the script on both servers soon)

My "ConanServerUtility.ini"

[Use MULTIHOME to Bind IP? Disable if having connection issues (yes/no)]
BindIP=yes
[Game Server IP]
ListenIP=xxx.xxx.xxx.xxx
[Game Server Port]
GamePort=xxxxx
[Steam Query Port]
QueryPort=xxxxx
[Server Name]
ServerName=[EU/FR]-[PVE] SOG - New Server 09/02
[Server Password]
ServerPass=
[Admin Password]
AdminPass=xxxxxxxx
[Max Players]
MaxPlayers=70
[Server Directory. NO TRAILING SLASH]
serverdir=C:\ConanexilePVE
[Use SteamCMD To Update Server? yes/no]
UseSteamCMD=yes
[SteamCMD Directory. NO TRAILING SLASH]
steamcmddir=C:\SteamCMD
[Validate Files Every Time SteamCMD Runs? yes/no]
validategame=yes
[Use Remote Restart ?yes/no]
UseRemoteRestart=no
[Remote Restart Port]
ListenPort=xxxxx
[Remote Restart Password]
RestartCode=Admin1_xc69ckxu38m66
[Hide Passwords in Log? yes/no]
ObfuscatePass=yes
[Restart Server Daily? yes/no]
RestartDaily=no
[Check for Update Every X Minutes? yes/no]
CheckForUpdate=yes
[Update Check Interval in Minutes 05-59]
UpdateInterval=30
[Daily Restart Hours? 00-23]
HotHour1=00
HotHour2=00
HotHour3=00
HotHour4=00
HotHour5=00
HotHour6=00
[Daily Restart Minute? 00-59]
HotMin=01
[Excessive Memory Amount?]
ExMem=6000000000
[Restart On Excessive Memory Use? yes/no]
ExMemRestart=no
[Running Server with Steam Open? (yes/no)]
SteamFix=no
[Rotate X Number of Logs every X Hours? yes/no]
logRotate=yes
logQuantity=10
logHoursBetweenRotate=24
[Use Discord Bot to Send Message Before Restart? yes/no]
UseDiscordBot=no
DiscordWebHookURL=https://discordapp.com/api/webhooks/XXXXXX/XXXX <- NO TRAILING SLASH AND USE FULL URL FROM WEBHOOK URL ON DISCORD
DiscordBotName=Conan Exiles Discord Bot
DiscordBotUseTTS=yes
DiscordBotAvatarLink=
DiscordBotTimeBeforeRestart=5

Problematic :

When there is an update, the server "PVP" shutdown while it should be the "PVE" server, and this without installing the update or rebooting ..

Did I make a mistake?

PS ; Also, do you know this script that I can not make it work ? https://github.com/C0nw0nk/SteamCMD-AutoUpdate-Any-Gameserver

Update and Log Rotate Last Time Variables Wrong

The variables that are updated after running checks to see if it's time to rotate the logs or update are wrong.

They are pointing to _NowCalc instead of _NowCalc() so they both only run once after the script starts.

broadcast messages

Hello !

New patch note with :

Added ability for server admin to broadcast messages to players on the server

i don't know how to use it, but perhaps you can use it for broadcast restart server / update / update mod ?

Mod download is not working

Hey there,
firstly thanks for that tool. Now I wanted to try to use the modlist feature and added there some random mods. But the server is not using them. So I had a look into logs and saw that they are not downloaded.

Here logs:

2018/05/31 17:59:13 Running SteamCMD without validate. [steamcmd.exe +@ShutdownOnFailedCommand 1 +@NoPromptForPassword 1 +login anonymous +force_install_dir D:\TerraTex\Spiele\Conan_Exiles_Updated +app_update 443030 +quit]
2018/05/31 17:59:17 [TerraTex Community Server (PID: 0)] Something went wrong downloading update information for mod [861928199] Check your Mod List for incorrect Mod numbers.
2018/05/31 17:59:17 [TerraTex Community Server (PID: 0)] Something went wrong downloading update information for mod [910895723] Check your Mod List for incorrect Mod numbers.
2018/05/31 17:59:17 [TerraTex Community Server (PID: 0)] Something went wrong downloading update information for mod [867616052] Check your Mod List for incorrect Mod numbers.
2018/05/31 17:59:17 [TerraTex Community Server (PID: 0)] Could not find Mod name for 861928199 in D:\TerraTex\Spiele\Conan_Exiles_Updated\ConanServerUtility_modid2modname.ini Please refer to README and manually update list.
2018/05/31 17:59:17 [TerraTex Community Server (PID: 0)] Could not find Mod name for 910895723 in D:\TerraTex\Spiele\Conan_Exiles_Updated\ConanServerUtility_modid2modname.ini Please refer to README and manually update list.
2018/05/31 17:59:17 [TerraTex Community Server (PID: 0)] Could not find Mod name for 867616052 in D:\TerraTex\Spiele\Conan_Exiles_Updated\ConanServerUtility_modid2modname.ini Please refer to README and manually update list.
2018/05/31 17:59:17 [TerraTex Community Server (PID: 9472)] Started [ConanSandboxServer-Win64-Test.exe ConanSandBox -Port=7777 -QueryPort=27035 -RconEnabled=1 -RconPassword=***573v******************* -RconPort=25578 -MaxPlayers=64 -ServerName="TerraTex Community Server" -listen -nosteamclient -game -server -log]
2018/05/31 17:59:24 [TerraTex Community Server (PID: 9472)] Window Handle Found: 0xFFFFFFFFEFF60AA6```

What could be the issue?

Any way to have this work on a rented server?

I'm leasing a Conan Exiles server from G-Portal. Most of the operations are done through their web interface, but I also have FTP access. Is there a way to get this utility functioning for it? I'm particularly interested in the mod-updating feature.

ModList

Lots of issues using the mod update feature. It doesn't seem to be putting them in the order I specified and further, when I try rearranging the order in both the utility config ini and the modlist.txt, it seems to either overwrite it or ignore what I changed in the ini.

Request - Add More Menu Items

Request to add options to icon

  • Start Server
  • Stop Server
  • Restart Server

Also, prevent two of the same utilities running at once.

RSS Feed for Update Unreliable

The RSS feed has continuously proven to be unreliable to use for update checks. Switch to method using SteamCMD to check for latest version.

Server not showing up

Hello did everything you said in the instructions but the server is not showing up in the server browser.
as far as i know you dont have to set the Server name etc in the server startup anymore?

Crash after some time

I get a AutoIT Error
Line: 7553
The requested action with this object has failed

This error comes after some time .. after press OK .. it ask me to shutdown the server with yes/no

My Config File
[Use MULTIHOME to Bind IP? Disable if having connection issues (yes/no)]
BindIP=yes
[Game Server IP]
ListenIP=X.X.X.X.X
[Game Server Port]
GamePort=7777
[Steam Query Port]
QueryPort=27015
[Server Name]
ServerName=DE ConanExiles.Zone RP
[Server Password]
ServerPass=5678
[Admin Password]
AdminPass=1234
[Max Players]
MaxPlayers=60
[Server Directory. NO TRAILING SLASH]
serverdir=C:\conanrp
[Use SteamCMD To Update Server? yes/no]
UseSteamCMD=yes
[SteamCMD Directory. NO TRAILING SLASH]
steamcmddir=C:\SteamCMD
[Validate Files Every Time SteamCMD Runs? yes/no]
validategame=no
[Use Remote Restart ?yes/no]
UseRemoteRestart=no
[Remote Restart Port]
ListenPort=57520
[Remote Restart Password]
RestartCode=FVtb2DXgp8SYwj7J
[Restart Server Daily? yes/no]
RestartDaily=no
[Check for Update Every X Minutes? yes/no]
CheckForUpdate=yes
[Update Check Interval in Minutes 05-59]
UpdateInterval=30
[Daily Restart Hours? 00-23]
HotHour1=00
HotHour2=06
HotHour3=12
HotHour4=18
HotHour5=00
HotHour6=00
[Daily Restart Minute? 00-59]
HotMin=00
[Excessive Memory Amount?]
ExMem=6000000000
[Restart On Excessive Memory Use? yes/no]
ExMemRestart=no
[Running Server with Steam Open? (yes/no)]
SteamFix=no
[Rotate X Number of Logs every X Hours? yes/no]
logRotate=yes
logQuantity=10
logHoursBetweenRotate=24

Create Better Method for Checking INI

master

Need to create better code for handling INI updates. Currently I'm manually updating the section comparison and using a functions to compare the number that I put in the code to the number in the existing INI.

This has many flaws, including that it does not look for missing variables, only sections.

Local $iniArray = IniReadSectionNames("ConanServerUtility.ini") Local $iniLength = UBound($iniArray) If $iniLength <> 23 Then MsgBox(4096, "ERROR: INI INCORRECT", "ConanServerUtility.ini missing section. Please delete and recreate default.") Exit EndIf

new version

never starts serve rand just opens validates then restarts over and over

Mod error detection?

So I'm looking more and more to migrating to a local server and using this, but my latest problem with my rented server turned out to be an issue with a mod that was updated; Savage Steel was screwed up by an update and refused to load. Problem is that the server still restarted, only without the mod, which caused items that had been placed on top of Savage Steel assets to be destroyed.

Can this system be made to prevent the server from starting if a mod update breaks it? Or to create a specific save-game backup prior to restarting due to a mod update?

TCP Error

Getting error when launching the (ConanServerUtility_x64_v3.2.1.exe) - Could not bind IP [xxx.xxx.xxx.xxx] Check server IP or disable Remote Restart in INI.
The server is being setup on a hosted dedicated server, and I have entered the servers correct and only IP address. I changed the ConanServerUtility.ini from BindIP=yes to BindIP=no, as the server only has 1 WAN IP address, so I can only assume I don't need the BindIP option enabled. Is the toggle for BindIP working correctly in the current release as it doesn't seem to register being turned off/toggled to no.
Thank you.

Server not actually updating

I have no idea when this started as a problem. Last time anyone was on my servers was the 11th. So Im assuming some time after that. Server restarts have been happening as they should. Restarts for updates are happening too. When prior to the server start, the check is made to update the server. Both of mine were showing "up to date" and moving on to load the server. I ran my own update batch today after finding both of my servers showing as "invalid" in the server browser. Both updated properly and are now running fine.

Not sure whats broke or missing really

Discord Bot Does Not work with TTS off

When DiscordBotUseTTS=no the message does not get sent to the server.

I missed a check. For now it must be set to DiscordBotUseTTS=False to work properly.

No check for log file existing before checking modified date

AddLogRotate
Need to write log file before running check in case it does not exist on first run.

If ($logRotate = "yes") And ((_DateDiff('h', $logStartTime, _NowCalc())) >= 1) Then Local $logFileTime = FileGetTime($logFile,1) Local $logTimeSinceCreation = _DateDiff('h', $logFileTime[0] &"/"& $logFileTime[1] &"/"& $logFileTime[2] &" "& $logFileTime[3] &":"& $logFileTime[4] &":"& $logFileTime[5], _NowCalc()) If $logTimeSinceCreation >= $logHoursBetweenRotate Then RotateLogs() EndIf $logStartTime = _NowCalc EndIf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.