Jump to content

dimitrifrom31

Member
  • Posts

    1,674
  • Joined

  • Last visited

Everything posted by dimitrifrom31

  1. Here is answer from LUis via support ticket. this is to set a custom link using service variables:
  2. Hi, I got that feature on tcav1? trying to port it to v2. Im trying to create a custom button to redirect to an url (url contains tcadmin variables). Could anyone show me the correct path to achieve this ? Thanks
  3. you can do that with custom scripts: http://clientforums.tcadmin.com/showthread.php?t=11414
  4. "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "DROP USER '%ThisUser_UserName%'@'%%'" "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "DROP DATABASE IF EXISTS `%ThisService_IpAddress%:%ThisService_GamePort%`"
  5. thanks I was looking for that ; too bad you cannot insert those in custom batch scripts with a click but I will live with it for now. Converting v1 scripts to v2...
  6. As I am testing v2 for future upgrade from v1 I may just group my questions here so they can potentially help other TCA users assuming someone can answer them I will try to keep this post up to date editing it adding answers. Q1) On v1 in service settings you could execute the install/uninstall scripts in 1 click. I do not seem to find where to execute custom scripts for an existing service on v2, is that possible and where ? A1) Q2) On v1 I was using install scripts to create an user per server, on v2 this is a built in feature. What is the user name template being used by TCAdmin? A2) tcagame_svc%serviceid% - if a service has 122 as the ID, the user name will be tcagame_svc122
  7. "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "CREATE USER '%ThisUser_UserName%'@'%%'" "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "SET PASSWORD FOR '%ThisUser_UserName%'@'%%' = PASSWORD('%ThisUser_Password%')" "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "GRANT USAGE ON * . * TO '%ThisUser_UserName%'@'%%' IDENTIFIED BY '%ThisUser_Password%' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0" "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "CREATE DATABASE IF NOT EXISTS `%ThisService_IpAddress%:%ThisService_GamePort%`" "Path_to_your_bin_folder\mysql.exe" -h localhost -u root -pYour_Root_Pass -e "GRANT ALL PRIVILEGES ON `%ThisService_IpAddress%:%ThisService_GamePort%` . * TO '%ThisUser_UserName%'@'%%'" The above will create a database named serverip:serverport on localhost User will be set using tca user name and password. It allows remote mysql connection. You can edit the script to match your needs if they are specific. Note that this is a conversion of a script Im using in v1 so it may require testing.
  8. Thjank you for your answer, could you please be ab it more specific? I am referring to this: http://puu.sh/6eKHe.png Edit: I mean 1 user per service and not a single preconfigured user For what it says I first assumed tcadmin was creating the user. If not should I create it via custom scripts? How should I name it so tcadmin uses it ? on v1 I was creating the user and assigning the %serviceid% to be ran under that user name (I was using %serverip%_%serverport% as user name to make it easy).
  9. I am just trying to figure out under what user the game server is running if the game is set to run each server under a specific user. On v1 windows I was creating user via the install script and was setting the service to run under that specific account. As I got some scripts Id like to port to v2 I need to figure this out, is it using a windows user or anythingelse? I cannot seem to find a new windows services/user created... Thanks
  10. Im still runing v1 and testing v2. I noticed the custom scripts do not have an option to insert variables (server ip, port, etc). I also noticed we cannot insert user variables (user name, user id) in the default configuration files which is a bit annoying. About the config import tool it would be great if it was converting v1 install/uninstall scripts as well.
  11. Another question actually, is there any benefit to run master on linux other than on windows? We are considering MySQL replication to give lower latency/response time between master and remotes/clients in our different locations, do you know if that is doable with windows AND linux ? And is it possible to run multiple web frontends as well? thank you
  12. Thanks for the tips we may give it a try soon!
  13. Yes but I'm also looking at some kind of procedure as we have a lot of machines, how should we proceed? Install a new master server running v2 (beside the v1 or on another machine) ? Then install v2 on each and every remote and import users then services then ts servers ? Do you have to import users/services 1 by 1 or can you batch import? As for secondary gaming services do they have to be imported as stand alone ones ? thank you for your answer !
  14. Hey, I checked about upgrade possibilities some time ago, there used to be a tool for it but it was not importing secondary gaming services. Was there any progress with it. If yes is there a quick how-to about how to proceed smoothly with an upgrade (I would have to perform it for 2 GSP's, about 600 and 5,000 game servers). Any help/link will be apreciated. If no progress was made on the upgrade tool, how should we go with secondary gaming services? Manually? Thank you.
  15. for v1 only but creating the full config will take you 5 mins max. Just make sure to use command line changer to set the main settings. Here is a default command line: -name "SERVER NAME" -config_path "%gameserverroot%config" -ip %serverip% -port %serverport% -limit %slots% -modstorage "%gameserverroot%Workshop" -map ns2_mineshaft -webadmin -webdomain "%serverip%" -webport %customport1%
  16. you need to use an account owning a copy of the game.
  17. http://forums.bistudio.com/showthread.php?148288-Dedicated-server-status
  18. Trying to use that code to redirect to the config editor for a specific "default config file" but I get an error. My vb skills being nearly null here is the code if someone can help troubleshooting: <%@ Page LANGUAGE="VB" %> <%@ Register TagPrefix="cc1" Namespace="TCAdminSDK.Web.UI" Assembly="TCAdminSDK" %> <html> <head> <title><%=TCAdminSDK.Web.Templates.GetCustomTitle() %> - Custom Page</title> <SCRIPT LANGUAGE="VB" RUNAT="server"> Private _SelectedService As TCAdminSDK.Objects.Service Public ReadOnly Property SelectedService() As TCAdminSDK.Objects.Service Get If _SelectedService Is Nothing Then _SelectedService = New TCAdminSDK.Objects.Service _SelectedService.ServiceID = Request.QueryString("serviceid") If _SelectedService.Find() Then ' ''''''''''''''''''' ' 'Basic security check ' ' ''''''''''''''''''' ' Select Case TCAdminSDK.Web.Session.CurrentUserType Case TCAdminSDK.Objects.UserType.Admin, TCAdminSDK.Objects.UserType.SubAdmin ' ''''''''''''''''''''''''''''''''''''''' ' 'Admin and subadmin always has permission ' ' ''''''''''''''''''''''''''''''''''''''' ' Case TCAdminSDK.Objects.UserType.User ' ''''''''''''''''''''''''''''''''''''''''''' ' 'Current user should be the game server owner ' ' ''''''''''''''''''''''''''''''''''''''''''' ' If Not _SelectedService.UserID = TCAdminSDK.Web.Session.CurrentUser Then TCAdminSDK.Web.Util.RedirectToHome() End If Case TCAdminSDK.Objects.UserType.SubUser ' ''''''''''''''''''''''''''''''''''''''''''''''''' ' 'Current user owner should be the game server owner ' ' ''''''''''''''''''''''''''''''''''''''''''''''''' ' If Not _SelectedService.UserID = TCAdminSDK.Web.Session.CurrentUserParentAccount Then TCAdminSDK.Web.Util.RedirectToHome() End If End Select End If End If Return _SelectedService End Get End Property Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init 'Redirect to login page if not authenticated If Not TCAdminSDK.Web.Session.IsAuthenticated Then Response.Redirect(String.Format("Login.aspx?returnto={0}", Request.RawUrl)) End If End Sub Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' '''''''''''''''''''''''''''''''''''''''' ' 'You can add code for the page load event. ' ' '''''''''''''''''''''''''''''''''''''''' ' <% If TCAdminSDK.Web.Session.IsAuthenticated() Then Dim service As New TCAdminSDK.Objects.Service service.ServiceID = Request.QueryString("serviceid") If service.Find() Then Response.Redirect(String.Format("http://cp.roxservers.com/Templates/Default/supported_games_config_editor.aspx?serviceid={0}&filepath=Minecraft%5cserver.properties", service.serviceid)) End If End If %> End Sub </SCRIPT> </head> <body> <!-- #Include virtual="header.aspx" --> <!-- --------------------------------- --> <!-- Create the breadcrumb manually --> <!-- --------------------------------- --> <div style="width: 100%; text-align: center;" id="NavigationPanel"> <table cellspacing="0" cellpadding="0" border="0" align="center" class="navigation_menu"><tr> <td style="width: 90%;" class="description_labels_small"><a href="admin_home.aspx"><%=iif(TCAdminSDK.Web.Session.CurrentUserType=TCAdminSDK.Objects.UserType.Admin, "Admin", "User") %> Home</a> > <a href="services.aspx">Game Servers</a> > <a href="<%=String.Format("service_home.aspx?serviceid={0}&svc_short_desc={1}",Me.SelectedService.ServiceId, Me.SelectedService.ShortGameNameAndSlots) %>"><%=Me.SelectedService.ShortGameNameAndSlots %></a> > <%=Me.MenuHeader1.Text %> </td> <td align="right" class="description_labels_small"> <span>[</span> <a href="login.aspx?action=LogOff">Log Out</a> <span>]</span></td> </tr> </table> </div> <!-- ----------------- --> <!-- End of breadcrumb --> <!-- ----------------- --> <cc1:menuheader id="MenuHeader1" runat="server" Width="695px" Text="Custom Page"></cc1:menuheader> <!-- -------------------------- --> <!-- Your custom code Goes Here --> <!-- -------------------------- --> <br/>Game Server Ip: <%=Me.SelectedService.ServerIP %><br/> Game Server Port: <%=Me.SelectedService.ServerPort %><br/> <!-- ------------------ --> <!-- End of custom code --> <!-- ------------------ --> <!-- #Include virtual="footer.aspx" --> </body> </html>
  19. You need to set a TS master server up then add it to tcadmin > systme settings > voice servers
  20. figured out a work around and got a basic config up but im sure it can be improved, I emailed you through the tca form.
  21. I know some of you (at least 1) are using 25assist to run America's army 2.5 servers. This software is generating 2 executable files when starting the server and it deletes them on stop: aasrvX.exe and aasrvX.exe where X is a number set in the settings.dat file. I managed to find how to set that number so the executables always have the same name however if manually editing the settings.dat it adds new lines and seems to reset most settings including the autostart and the executables names which is very annoying since it breaks the firewall rules. I only got 1 server running this game but would like to allow my customer to edit the settings.dat file since you have to set the admin password there. Any work around/suggestion? thank you
  22. you are using service importing apparently. use "Create a Game and Voice Server" instead. Make sure your install script adds a firewall exception on srcds.exe or add it yourself manually afterwards
  23. on your pc (steam client install)
×
×
  • 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