-
Posts
217 -
Joined
-
Last visited
-
Days Won
22
Content Type
Profiles
Forums
Events
Downloads
Everything posted by Alexr03
-
@kakofff Goto System >> Themes then click "Import" then drag the .zip that you downloaded here and import it.
-
@numptyTake a look at this https://demos.telerik.com/aspnet-mvc/notification
-
Discord Webhook on task execution
Alexr03 replied to SuperPenguin's topic in Feature and Module Ideas
No worries. We're here to help ? -
Discord Webhook on task execution
Alexr03 replied to SuperPenguin's topic in Feature and Module Ideas
This can be done with custom scripts. import clr clr.AddReference("System.Net") from System.Net import HttpWebRequest, WebRequest from System.Text import Encoding webhookUrl = "WEBHOOK-URL-HERE" name = "NAME-HERE" message = "The server will restart in 5/10/15 minutes. bla bla" data = "{ \"username\": \"" + name + "\", \"content\": \"" + message + "\" }" bytes = Encoding.UTF8.GetBytes(data) webRequest = WebRequest.Create(webhookUrl) request = clr.Convert(webRequest, HttpWebRequest) request.Method = "POST" request.ContentType = "application/json" request.ContentLength = bytes.Length stream = request.GetRequestStream() stream.Write(bytes, 0, bytes.Length) stream.Close() request.GetResponse() -
Hi All! So i've decided to just throw out a TCAdmin Wrapper for the community to use to create custom applications that integrate with TCAdmin, at least until a REST API comes around from Luis. But for now we have to either stick with the limitations of the Billing API or take full advantage of the TCAdmin SDK. (Duh! I used the latter). The possibilities are probably endless using this library, I've currently made custom Discord bots that I posted here on the forums a few months back using it. Here is the project, it is open source, so feel free to contribute to it if you wish: https://gitlab.openshift.alexr03.dev/Alex/tcadmin-wrapper You can download the binary here: https://cloud.openshift.alexr03.dev/s/a9dGbZZrKCsWP4W Make sure to read the "README.md", it has examples on how to use the library and how to install the TCAdmin dependencies. If you need some help i'll be lurking around on the new TCAdmin discord, so just ping me there and if I have some time i'll help you out. http://discord.gg/invite/Bpe574k I may also release a boilerplate for creating custom endpoints on TCAdmin MVC webpages if you are interested in that too, let me know. README.md TCAdmin-Wrapper A Wrapper for the TCAdmin SDK. Easily create a TCAdmin instance without using a configuration file. Notes Host the custom application as close as possible to the master MySQL server that hosts the TCAdmin database. This majorly reduces latency and much faster response times between commands. Connecting to a MySQL slave is supported but functionality is reduced due to read only access. Specifically saving custom variables or properties on a TCAdmin object will not work as data is not synced between the two databases. You only need to initialize TCAdminClient once in the program, after this, you can then access all of TCAdmins SDK which will be configured already to use. Dependencies Please ensure that you have these libraries installed either inside the program you are creating or installed on the OS itself. MySQL Connector (6.6.4) TCAdmin is installed locally and added to the System PATH variable. (Not required if using NuGet) Getting started Install MySQL.Data 6.6.4 (optional) Add https://nexus-repository.openshift.alexr03.dev/repository/tcadmin/ as a source to your NuGet/Package Manager. (optional) Install TCAdminWrapper into your project via NuGet: Install-Package TCAdminWrapper -Source https://nexus-repository.openshift.alexr03.dev/repository/tcadmin/ Open TCAdmin.Monitor.Config on your master server (Located in TCAdmin/Monitor) find TCAdmin.Database.MySql.ConnectionString and copy its value. DO NOT SHARE THIS VALUE ANYWHERE IT WILL ALLOW ACCESS TO YOUR TCADMIN DATABASE Follow the examples below Examples Basic Example: This example will show you how to initialize the TCAdminClient class. You only need to do this once in the program. And then will get the Server in TCAdmin with ID 1, and print the name to the console public static void Main(string[] args) { string sqlString = "SQL_STRING_HERE"; TCAdminClientConfiguration configuration = new TCAdminClientConfiguration(sqlString, true, "TCAdminWrapperTest", new TCAdminSettings()); TcAdminClient client = new TcAdminClient(configuration); Console.WriteLine("Name: " + new TCAdmin.SDK.Objects.Server(1)); } Debug Configuration If you'd like to take advantage of using TCAdmin's debug messages like seeing what SQL commands are being executed for debugging, you can do this: When running this you will see more messages in the console until it finally prints out the server name. public static void Main(string[] args) { string sqlString = "SQL_STRING_HERE"; TCAdminSettings settings = new TCAdminSettings(debug: true, debugSql: true); TCAdminClientConfiguration configuration = new TCAdminClientConfiguration(sqlString, true, "TCAdminWrapperTest", settings); TcAdminClient client = new TcAdminClient(configuration); Console.WriteLine("Name: " + new TCAdmin.SDK.Objects.Server(1)); } Restarting a service You can easily restart a service by using the TCAdmin SDK. Grab the service object by creating a new instance using the serviceId constructor and proceed to call the Restart() method. public static void Main(string[] args) { string sqlString = "SQL_STRING_HERE"; TCAdminClientConfiguration configuration = new TCAdminClientConfiguration(sqlString, true, "TCAdminWrapperTest", settings); TcAdminClient client = new TcAdminClient(configuration); Service service = new Service(1); Console.WriteLine("Service: " + service.NameNoHtml); Console.WriteLine("Restarting service."); service.Restart(); Console.WriteLine("Restarted service."); } Thats all for now! ?
-
Ah right, just looks a bit weird, on the right side its grey and on the left its white. /shrug
-
Just a list of issues i'll throw out there. When tagging someone the background is too blue, for example its hard to see your name specifically @ucjohn as your name is blue and the tag background is blue. Maybe a transparent background would be fine? Can't re-enable messages, ends with error 404 (https://cloud.openshift.alexr03.dev/s/yyoEeW9tq2MSCmH) Only just noticed this one, isn't this meant to be grey?
-
Ahhhh, Nah, LYHME #1. I shall always back our company! ?
-
Ahhhh yayy! @DennisMidjord Been asking for a Discord for a while now! After all, Discord & TCAdmin are for games haha. I had asked for a Discord before and I didn't get a response about it ? Yep, was about to comment that there is a addon that deals with Webhooks easily with the forums. I'm sure a discord server would be a massive improvement to this community. After all, a lot of host providers also have their own discords too especially ones that use TCAdmin, LYHME Streamline GTX Low.ms I'm sure all of them would like to join the discord and become active on the forums once again.
-
Hi ya bud, Looks like you are using the classic theme. For a full customizable website, its best to enable MVC then edit the MVC templates, otherwise you are limited to only editing CSS. If you want to try and make your login page like that with CSS you will have to create a new theme via TCAdmin and upload the CSS under the `Advanced` tab.
-
I agree, this forum does just feel rushed out. While I do appreciate that stuff is changing to be modern. (I was going through the web archive looking at the TCAdmin site & forums, they had not changed much/at all from 2006/7 till now and for that I appreciate that changes are finally happening) It was installed on the 21st and went live on the 24th. The features that the community wanted didn't come until after the forum was publicly released. It probably would of been better for them to be installed, tested, validated then deployed here to the forum before any changes were made. How about any testers? You have a whole community here that want to help change TCAdmin for the better, wherever that be create themes/plugins/configs for you, help test and develop new features like the forums and/or future TCAdmin releases, the last *beta* phase I was in was MVC. I've personally been here long enough to actually see the TCAdmin logo show on the documentation website, instead of the default MediaWiki logo crying out to be replaced. There is a large community here and has been for years but sometimes I guess we (or at least I) feel neglected. Just going to throw this out there, is it maybe time for a cleanup of the forums? There are users here that seem to just be spam and accounts that have not been used in over 10 years. Maybe time to remove them and clean them up, especially with the introduction of `Reputation` and the fact that i'm not interested in seeing 40 odd birthdays on the sidebar of the forums when the accounts will not be active. I second what Dennis said too. That thread should not have been removed if you did not like the result of what was posted. The forums should be a place to share our opinions on certain topics. May I quote rule 4: And yes, asking the community for donations to something we already pay for should of been discussed, Yes, we do only pay for the license to for TCAdmin, but shouldn't the ability to easily download and share game configurations a given?
-
He said CPU & Ram for windows. Just CPU for Linux
-
Create a variable and tick the `Max Memory` option.
-
Have you tried configuring the `Additional Allowed`? It may not be exactly what you are looking for though. This is probably possible using Custom Scripts to act as the query then have like an array of service ID's, if their slots are higher than allowed, just return the max slots, this would stop TCAdmin from stopping those whitelisted services. But having this feature natively would be nice though.
-
Hey All, We asked our clients what they'd thought would be better about the control panel. Once client suggested an audit log for them to monitor sub-users and their actions. Like logging what actions they do via FTP like creating/editing files, etc. Yes, this logging already exists via files in the Logs folder. This is a pretty good suggestion. But how about completely reworking the logging system? Yeah, current system is `okay` and I say that lightly. To be honest its a lot of effort having to login to a node then navigate to the logs folder, find the log you want manually since windows server doesn't seem to pick up the the files i'm searching for. This is a very old way of storing logs nowadays. How about having a web interface? -- Store the logs in the database, which eliminates the spreading of the logs on each machine. Makes finding logs soooooo much simpler.
-
We have seen it happen on all versions of Windows Server from 2012 R2 through to 2019.
-
It is an issue with TCAdmin that the service manager memory leaks. Its been happening for a while now. Easiest solution is to restart the service manager every day using a task or something.
-
Try restarting the monitor on the machine. If that doesn't work: Press F12, goto network and monitor the `GetStatus` call that happens every 5 seconds, does it return a error 500?
-
Hi, Contact me on discord Alexr03#1525 (PM's are disabled)
-
===Update=== Full discord integration has been implemented. A players menu has been integrated, allowing the user to send commands directly to the console to do actions on them. **Unturned Specific** Built-in Rocket home page. Easy to use permission editor https://cloud.alexr03.com/s/LBoMz8ortGdkQgF
-
You can edit this basic script to move the files. import clr; from System.IO import File, Path, Directory; from System import String; installFolder = Path.Combine(ThisService.RootDirectory, String.Format("Path/To/Where/Workshop/Files/Install/To/{0}", FileId)) Directory.Move(InstallPath, installFolder ) I've never hosted a Wreckfest server, maybe it doesn't have to install onto the server, maybe it just makes use of a config file to put the ID's in? If thats the case you can make use of the Variable options for workshop then use that variable in the config file.
-
You are meant to create a custom script to move the files into the correct directory on the game server. Take a look at the documentation on the feature, and the Sample Scripts should give you an idea how to do it. https://help.tcadmin.com/Workshop_Browser#Sample_Scripts If you are still struggling i'm sure some of us here will help you on the forums