Jump to content

TCAdmin 2.0.70 now available


LFA

Recommended Posts

Bug Fixes

 

  • Capturing a script value was only working if "Save script parameter value" was checked.
  • Fixed game server mover on Linux broken in the previous update.
  • FastDownload.db is always excluded from fast download sync.
  • Removed some code that caused service start errors on Linux. If you keep getting this error stop the monitor and service manager services. Execute "killall mono" and start the services again.

Link to comment
Share on other sites

When is he not here? Luis is a workhorse.

 

+1

 

Everytime he replies to a ticket i just hear Enrique Iglesias - Hero.

 

Capturing a script value was only working if "Save script parameter value" was checked.

 

I was wondering why it wasn't inserting into the script! thankyou.

I've done this pretty quickly but i'll share it anyway.

 

just make a custom variable and a custom script.

 

--Custom Script--

@echo off
echo zipping the '%ThisService_WorldName%' folder.
C:\modules\zip\7za.exe a "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\%ThisService_WorldName%_backup.zip" "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\%ThisService_WorldName%" -mx0 -xr!java -xr!plugins -xr!*.jar -xr!*.yml -xr!*.bat
echo your file is now available in your root directory '%ThisService_WorldName%_backup.zip'

Operating System: Windows (it's a batch command)

Batch

Prompt for variables values

Stop service before executing

Execute as the service's user

User access

 

--Variable--

Variable Name: WorldName

Default Value: Blank

- Variable Options

Script Parameter

User/Admin access

Value is required

 

Required message: please select a world

Item Type: Combobox

Label: Select the world folder you want zipped.

Source: File system

Filter Type: Directories

Exclude Filter: plugins*;java*;config*;coremods*;lib*;miscperipherals*;mods*

 

Item Value and Display: Name

 

Modules needed is 7za command line (http://www.7-zip.org/download.html)

You can also change the store options (compression) with -mx 1-9

 

Enjoy

Link to comment
Share on other sites

There have been some new bugs caught after yesterday's update. I will upload a new update in a few days. If you want the bug fixes now I added them to the 2.0.70 update. You can update again to get these fixes:

 

 

  • The script's stderr wasn't redirected to the browser (errors from executed commands were not being shown)
  • Fixed sharing violation error on Linux when creating the service start script.
  • The web console/log viewer was loading the whole file instead of the last 3KB.

 

 

--Custom Script--

@echo off
echo zipping the '%ThisService_WorldName%' folder.
C:\modules\zip\7za.exe a "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\%ThisService_WorldName%_backup.zip" "C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%\%ThisService_WorldName%" -mx0 -xr!java -xr!plugins -xr!*.jar -xr!*.yml -xr!*.bat
echo your file is now available in your root directory '%ThisService_WorldName%_backup.zip'

Operating System: Windows (it's a batch command)

Batch

Prompt for variables values

Stop service before executing

Execute as the service's user

User access

 

--Variable--

Variable Name: WorldName

Default Value: Blank

- Variable Options

Script Parameter

User/Admin access

Value is required

 

Required message: please select a world

Item Type: Combobox

Label: Select the world folder you want zipped.

Source: File system

Filter Type: Directories

Exclude Filter: plugins*;java*;config*;coremods*;lib*;miscperipherals*;mods*

 

Item Value and Display: Name

 

Modules needed is 7za command line (http://www.7-zip.org/download.html)

You can also change the store options (compression) with -mx 1-9

 

Enjoy

 

 

Please post that info in the tips & tricks forums. Instead of all this:

C:\TCAFiles\Users\%ThisUser_UserName%\%ThisService_ServiceId%

use this:

%ThisService_RootDirectory%

Link to comment
Share on other sites

@Luis, can you look into performance for FastDL since the compression update? Files seem to compress longer then they would If I did it manually. I know I pointed this out before compression support and you were able to do major performance improvements.

 

This guy has 3GB of maps and I've been syncing them for about 3 hours now. No, we don't overload our servers.

Link to comment
Share on other sites

The compression speed depends on the .net compression library that we use. I will be adding support for commandline compression tools so you can use any tool you want. You will be able to create uz2 files or anything else with that feature.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 19 Guests (See full list)

    • There are no registered users currently online
×
×
  • 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