GrowtopiaAI 1.0.1
dotnet add package GrowtopiaAI --version 1.0.1
NuGet\Install-Package GrowtopiaAI -Version 1.0.1
<PackageReference Include="GrowtopiaAI" Version="1.0.1" />
paket add GrowtopiaAI --version 1.0.1
#r "nuget: GrowtopiaAI, 1.0.1"
// Install GrowtopiaAI as a Cake Addin
#addin nuget:?package=GrowtopiaAI&version=1.0.1
// Install GrowtopiaAI as a Cake Tool
#tool nuget:?package=GrowtopiaAI&version=1.0.1
About
Welcome to the README.md of the GTPS Anti-crash repository. GTPS Anti-crash is a C# anti-crash software created for GTPSes. This Anti-crash has 2 versions. Simple and advanced. The exe (not the source) is the simple one. When using the simple one, your server executable must be named server.exe. However, the source code has a primary option to choose the file path + name & executable type. You can check the code out and upgradeit/change it.
GrowtopiAI.dll
GrowtopiaAI.dll is a Library created for Growtopia C# projects. It will have such methods like checking your gtps status (LOCAL), starting your gtps, etc. It is currently open-source and is in the solution for the anti-crash. GrowtopiaAI is 30% complete and is still under development. Want to add some stuff? Feel free to do so.
Credits
If you're thinking of using the anti-crash's code for your own project, please consider crediting me for the code. I'd really appreciate it.
GrowtopiaAI.dll current codes
static void GTPSChecker(string gtpsName) // Include executable type (e.g. ".exe", ".py").
{
int counter = 0;
foreach (Process process in Process.GetProcessesByName(gtpsName))
{
counter++;
}
if (counter > 0)
{
Console.WriteLine("Server is currently online.");
}
else
{
Console.WriteLine("Server is currently offline.");
}
}
static void GTPSStarter(string gtpsName)
{
Console.WriteLine("Request to start growtopia private server");
try
{
Process.Start(gtpsName);
Console.WriteLine("Growtopia server has successfully started.");
}
catch
{
string msg = "There was a problem starting the server...";
Console.WriteLine(msg);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
.NETStandard 2.1
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
GTPS Anti-crash is a C# anti-crash software created for GTPSes. This is currently the first version.