Jump to content

tinboye

Member
  • Posts

    36
  • Joined

  • Last visited

Everything posted by tinboye

  1. If that is not specified then 7z will not work unless I place the exe in the same folder of the script.
  2. So i been trying to get this backup script to to work. But for some reason i keep getting errors. Here is the script: @ECHO off SETLOCAL SET PATH=%PATH%;C:\Program Files\7-Zip\ SET BACKPATH=%ThisService_RootDirectory%MPMissions SET DEST_PATH=%ThisService_RootDirectory%Backups REM Replace space in hour with zero if it?s less than 10 SET hr=%time:~0,2% IF %hr% lss 10 SET hr=0%hr:~1,1% REM This sets the date like this: mm-dd-yr-hrminsecs1/100secs Set TODAY=%date:~4,2%-%date:~7,2%-%date:~10,4%-%hr%%time:~3,2%%time:~6,2%%time:~9,2% ECHO. ECHO Zipping all date files in MpMissions and archiving to Backups Folder ECHO. 7z a -r -tzip ?%DEST_PATH%\%TODAY%.zip? ?%BACKPATH%\*? -mx5 :END ENDLOCAL and here is the error: Zipping all date files in MpMissions and archiving to Backups Folder 7-Zip [64] 15.14 : Copyright (c) 1999-2015 Igor Pavlov : 2015-12-31 Scanning the drive: WARNING: The filename, directory name, or volume label syntax is incorrect. ?C: 0 files, 0 bytes Creating archive: ?C:\TCAFiles\users\admin\5\Backups\05-12-2016-03362406.zip? Items to compress: 0 Scan WARNINGS for files and folders: ?C: : The filename, directory name, or volume label syntax is incorrect. ---------------- Scan WARNINGS: 1 Error: cannot open file ?C:\TCAFiles\users\admin\5\Backups\05-12-2016-03362406.zip? The filename, directory name, or volume label syntax is incorrect. System ERROR: The filename, directory name, or volume label syntax is incorrect. anyone know what the issue is, or have an alternative script to have the user click an icon in their members area and can backup certain folders.
  3. I tried using this script and I got the message: Backup Will Be Saved To: Backups\2016-05-09--03-32-06.zip We Found 5 Files To Backup Compressing Files and Creating Backup global name 'String' is not defined but when i go into the folder, there is no files. Also is it possible to have it zip multiple folders within 1 backup and have it so filename is foldername_date.zip
  4. I was able to just make a batch script that echo'd the variable. echo Mysql Database: %ThisService_MySQLUser% echo Mysql Username: %ThisService_MySQLUser% echo Mysql Password: %ThisService_MySQLPassword% my generate user/pass/mysql scripts were from the http://help.tcadmin.com/Automatically_Create_a_MySQL_Database
  5. that or an option where it places the deleted game into a temp folder, like an email box, where you delete an email u can recover it. I tried several different undelete/recovery programs, none could find the files. so tcadmin must nuke them.
  6. Is it possible to undelete a game server? or when the software deletes the software, does it place it into recycle bin? I tried using an undelete program to locate the deleted files and even that is unable to locate the files/folder deleted.
  7. if there is anyone who would like help with an exile template file msg me.
  8. i been using this template for weeks and no issues at all. make sure your query protocol is set to "half-life 2 new" then in your query port expression is set to $[service.GamePort] + 1
  9. make sure you indicate this in your bat @echo off echo Killing Redis Processes taskkill /f /fi "status eq not responding" /im redis-server.exe taskkill /f /im redis-server.exe timeout 3 echo starting redisDB set redispath="%ThisService_WorkingDirectory%DB\" cd /d %redispath% redis-server.exe redis.conf exit then in your redis.conf file bind 127.0.0.1 port $[service.CustomPort1] dir %ThisService_WorkingDirectory%DB\ maxmemory 1gb maxheap 2gb save 900 1 save 300 10 save 60 1000 requirepass yourpassword appendonly yes then in your template file just have $[service.GamePort] + 6 in your custom port 1 expression that way if your game port is 2302, your redis port will be 2308 as of arma 3 v1.58 your rcon port must be 4 Numbers higher than game port, so make sure you have $[service.GamePort] + 4 in your rcon port expression.
  10. so i set this up, testing it out, but even though the server shows online, it cannot be found on the server list, not even when i add it manually to the steam server list. anyone have anything to try?, I have no firewall enabled, its a dedicated windows server 2008r2 box that its hosted on.
  11. I created a Windows config file, included is banlist.txt if you need to edit that list, and also a serverconfig.cfg file with template already made up so the user can have a password enabled server, set the message of the day, worldname, and if they wish to have the server secured or not. It uses start parms of terrariaserver.exe -config ![configfile] ![worldsize] that way everything is read from that 1 file. server slots, ip, port etc is automatically inputted into the template file to allow the server to start, but does not give the user access to change those settings. I will update this once and if i decide to add mod options. enjoy! terraria - Windows.xml
  12. I have this installed, but when i try and run this i receive this error https://gyazo.com/6365c9434e6af6254390f106bba973b8 for screenshot the server has .NET 4.5 Installed. ARKRemoteConfig.json is in the same folder as ARKRemote.exe
  13. I have the start of a working config. Still working on commandline stuff before i will release it.
  14. yes that was me lol, im still figuring things out. mainly how the configuration editor works. I still have not figured out how a user is only able to edit certain fields of a cfg file. Or if thats even possible. Also trying to figure out how I can make it so mysql user/pass can be retrieved as a link in the user control panel. I have seen this done with gtx gaming. Just not sure how to do that.
  15. So i managed to get this to work by simply taking the http://help.tcadmin.com/Automatically_Create_a_MySQL_Database script of restoring a backup. Operating System: Any Description: Restore MySQL database after move Script Engine: IronPython Event: After move Ignore execution errors Unchecked Script: import clr; import System; clr.AddReference("TCAdmin.DatabaseProviders.MySql"); clr.AddReference("TCAdmin.SDK"); from TCAdmin.DatabaseProviders.MySql import MySqlManager; from System import String; from System.IO import File, Path; mysql_server="localhost"; mysql_root="root"; mysql_password=""; if not ThisService.Variables.HasValue("MySQLUser") : Script.Exit(); backupfile=Path.Combine(ThisService.RootDirectory, "databasename.sql"); with MySqlManager() as mysql: escapeduser=mysql.PrepareSqlValue(ThisService.Variables["MySQLUser"]); escapedpass=mysql.PrepareSqlValue(ThisService.Variables["MySQLPassword"]); mysql.Connect(String.Format("Data Source={0};User Id={1};Password={2};Pooling=False;", mysql_server, mysql_root, mysql_password)); mysql.ExecuteNonQuery(String.Format("DROP DATABASE IF EXISTS {0};", escapeduser)); if mysql.Execute(String.Format("SELECT * FROM mysql.user WHERE user='{0}' AND host='localhost';", escapeduser)).Rows.Count == 1 : mysql.ExecuteNonQuery(String.Format("DROP USER {0}@localhost;", escapeduser)); mysql.ExecuteNonQuery(String.Format("CREATE DATABASE {0};", escapeduser)); mysql.ExecuteNonQuery(String.Format("GRANT ALL PRIVILEGES ON {0}.* TO '{0}'@'localhost' IDENTIFIED BY '{1}';", escapeduser, escapedpass)); if File.Exists(backupfile) : with MySqlManager() as mysql2: mysql2.Connect(String.Format("Data Source={0};Database={1};User Id={1};Password={2};Pooling=False;", mysql_server, ThisService.Variables["MySQLUser"], ThisService.Variables["MySQLPassword"])); mysql2.ImportDatabase(backupfile); File.Delete(backupfile); and made sure that the sql file was in the root directory of the game folder. I have this script execute once the mod for the server is installed. works like a charm
  16. Im trying to get my script to work so when the gameserver is created then it will create mysql user/pass and then import sql data into that database. when i run this script then i get an error 4/22/2016 10:36:29 PM You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''exile_2'' at line 1 4/22/2016 10:36:29 PM TCAdmin.SDK.Database.DatabaseException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''exile_2'' at line 1 ---> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''exile_2'' at line 1 --- End of inner exception stack trace --- at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.RunInstructions(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope) at TCAdmin.SDK.Scripting.Engines.IronPythonEngine.Execute(Credentials credentials) at TCAdmin.SDK.Scripting.ScriptEngineManager.Execute() at TCAdmin.GameHosting.SDK.Objects.GameScript.ExecuteEventScripts(ScriptEngineManager scriptEngineManager, ServiceEvent eventScript, ObjectList scripts) at TCAdmin.GameHosting.Automation.AutomationProcesses.***1345;() at TCAdmin.GameHosting.Automation.AutomationProcesses.Start() at TCAdmin.TaskScheduler.ModuleApi.StepBase.Start(Object arguments) this is the ironpython script im using http://pastebin.com/Fv4zgAz4
  17. Does anyone have an example script or instructions on how i can make it so when a user creates a game account/ adds a gameserver to their account, that if the game requires mysql db, that it will auto import the sql file into the created database. I already have these scripts in the game server template. http://help.tcadmin.com/Automatically_Create_a_MySQL_Database thanks for your help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use