mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 09:41:33 +02:00
use new console
This commit is contained in:
parent
0778a193e3
commit
84c4477eb2
@ -53,11 +53,7 @@ public class ClientManagement
|
||||
{
|
||||
try
|
||||
{
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint("ERROR - No clientinfo.nov detected with the client you chose. The client either cannot be loaded, or it is not available. Novetus will attempt to generate one.", 2, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint("ERROR - No clientinfo.nov detected with the client you chose. The client either cannot be loaded, or it is not available. Novetus will attempt to generate one.", 2);
|
||||
#endif
|
||||
GenerateDefaultClientInfo(Path.GetDirectoryName(clientpath));
|
||||
|
||||
#if LAUNCHER
|
||||
@ -75,13 +71,8 @@ public class ClientManagement
|
||||
{
|
||||
#endif
|
||||
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint("ERROR - Failed to generate default clientinfo.nov. Info: " + ex.Message, 2, box);
|
||||
Util.ConsolePrint("Loading default client '" + GlobalVars.ProgramInformation.DefaultClient + "'", 4, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint("ERROR - Failed to generate default clientinfo.nov. Info: " + ex.Message, 2);
|
||||
Util.ConsolePrint("Loading default client '" + GlobalVars.ProgramInformation.DefaultClient + "'", 4);
|
||||
#endif
|
||||
name = GlobalVars.ProgramInformation.DefaultClient;
|
||||
#if LAUNCHER
|
||||
ReadClientValues(name, box, initial);
|
||||
@ -96,11 +87,7 @@ public class ClientManagement
|
||||
|
||||
if (initial)
|
||||
{
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint("Client '" + name + "' successfully loaded.", 3, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint("Client '" + name + "' successfully loaded.", 3);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@ -1053,14 +1040,7 @@ public class ClientManagement
|
||||
case ScriptType.Server:
|
||||
if (GlobalVars.GameOpened == ScriptType.Server)
|
||||
{
|
||||
#if LAUNCHER
|
||||
if (box != null)
|
||||
{
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (A server is already running.)", 2, box);
|
||||
}
|
||||
#elif CMD
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (A server is already running.)", 2);
|
||||
#endif
|
||||
|
||||
#if LAUNCHER
|
||||
MessageBox.Show("Failed to launch Novetus. (Error: A server is already running.)", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
@ -1093,14 +1073,7 @@ public class ClientManagement
|
||||
default:
|
||||
if (GlobalVars.GameOpened != ScriptType.None)
|
||||
{
|
||||
#if LAUNCHER
|
||||
if (box != null)
|
||||
{
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (A game is already running.)", 2, box);
|
||||
}
|
||||
#elif CMD
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (A game is already running.)", 2);
|
||||
#endif
|
||||
|
||||
#if LAUNCHER
|
||||
MessageBox.Show("Failed to launch Novetus. (Error: A game is already running.)", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
@ -1150,12 +1123,7 @@ public class ClientManagement
|
||||
{
|
||||
#if URI
|
||||
UpdateStatus(label, "The client has been detected as modified.");
|
||||
#elif LAUNCHER
|
||||
if (box != null)
|
||||
{
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (The client has been detected as modified.)", 2, box);
|
||||
}
|
||||
#elif CMD
|
||||
#elif LAUNCHER || CMD
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (The client has been detected as modified.)", 2);
|
||||
#endif
|
||||
|
||||
@ -1229,11 +1197,7 @@ public class ClientManagement
|
||||
|
||||
try
|
||||
{
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint("Client Loaded.", 4, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint("Client Loaded.", 4);
|
||||
#endif
|
||||
|
||||
if (type.Equals(ScriptType.Client))
|
||||
{
|
||||
@ -1249,12 +1213,7 @@ public class ClientManagement
|
||||
{
|
||||
#if URI
|
||||
UpdateStatus(label, "The client has been detected as modified.");
|
||||
#elif LAUNCHER
|
||||
if (box != null)
|
||||
{
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (The client has been detected as modified.)", 2, box);
|
||||
}
|
||||
#elif CMD
|
||||
#elif LAUNCHER || CMD
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (The client has been detected as modified.)", 2);
|
||||
#endif
|
||||
|
||||
@ -1316,12 +1275,7 @@ public class ClientManagement
|
||||
{
|
||||
#if URI
|
||||
UpdateStatus(label, "Error: " + ex.Message);
|
||||
#elif LAUNCHER
|
||||
if (box != null)
|
||||
{
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (Error: " + ex.Message + ")", 2, box);
|
||||
}
|
||||
#elif CMD
|
||||
#elif LAUNCHER || CMD
|
||||
Util.ConsolePrint("ERROR - Failed to launch Novetus. (Error: " + ex.Message + ")", 2);
|
||||
#endif
|
||||
|
||||
|
@ -152,34 +152,17 @@ public class NovetusFuncs
|
||||
GlobalVars.ServerID = "N/A";
|
||||
}
|
||||
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint("Pinging master server. " + reason, 4, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint("Pinging master server. " + reason, 4);
|
||||
#endif
|
||||
|
||||
#if LAUNCHER
|
||||
Task.Factory.StartNew(() => TryPing(box));
|
||||
#else
|
||||
Task.Factory.StartNew(() => TryPing());
|
||||
#endif
|
||||
}
|
||||
|
||||
#if LAUNCHER
|
||||
public static void TryPing(RichTextBox box)
|
||||
#else
|
||||
private static void TryPing()
|
||||
#endif
|
||||
{
|
||||
string response = Util.HttpGet(GlobalVars.PingURL);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(response))
|
||||
{
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint(response, response.Contains("ERROR:") ? 2 : 4, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint(response, response.Contains("ERROR:") ? 2 : 4);
|
||||
#endif
|
||||
|
||||
if (response.Contains("ERROR:"))
|
||||
{
|
||||
@ -189,11 +172,7 @@ public class NovetusFuncs
|
||||
|
||||
if (!GlobalVars.ServerID.Equals("N/A"))
|
||||
{
|
||||
#if LAUNCHER
|
||||
Util.ConsolePrint("Your server's ID is " + GlobalVars.ServerID, 4, box);
|
||||
#elif CMD
|
||||
Util.ConsolePrint("Your server's ID is " + GlobalVars.ServerID, 4);
|
||||
#endif
|
||||
}
|
||||
|
||||
GlobalVars.PingURL = "";
|
||||
|
@ -600,60 +600,6 @@ public static class Util
|
||||
return (p <= 0);
|
||||
}
|
||||
|
||||
#if LAUNCHER
|
||||
public static void ConsolePrint(string text, int type, RichTextBox box, bool noLog = false, bool noTime = false)
|
||||
{
|
||||
if (box == null)
|
||||
return;
|
||||
|
||||
if (!noTime)
|
||||
{
|
||||
box.AppendText("[" + DateTime.Now.ToShortTimeString() + "] - ", Color.White);
|
||||
}
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case 1:
|
||||
box.AppendText(text, Color.White);
|
||||
if (!noLog)
|
||||
LogPrint(text);
|
||||
break;
|
||||
case 2:
|
||||
box.AppendText(text, Color.Red);
|
||||
if (!noLog)
|
||||
LogPrint(text, 2);
|
||||
break;
|
||||
case 3:
|
||||
box.AppendText(text, Color.Lime);
|
||||
if (!noLog)
|
||||
LogPrint(text);
|
||||
break;
|
||||
case 4:
|
||||
box.AppendText(text, Color.Aqua);
|
||||
if (!noLog)
|
||||
LogPrint(text);
|
||||
break;
|
||||
case 5:
|
||||
box.AppendText(text, Color.Yellow);
|
||||
if (!noLog)
|
||||
LogPrint(text, 3);
|
||||
break;
|
||||
case 6:
|
||||
box.AppendText(text, Color.LightSalmon);
|
||||
if (!noLog)
|
||||
LogPrint(text);
|
||||
break;
|
||||
case 0:
|
||||
default:
|
||||
box.AppendText(text, Color.Black);
|
||||
if (!noLog)
|
||||
LogPrint(text);
|
||||
break;
|
||||
}
|
||||
|
||||
box.AppendText(Environment.NewLine, Color.White);
|
||||
}
|
||||
#elif CMD
|
||||
public static void ConsolePrint(string text, int type, bool notime = false, bool noLog = false)
|
||||
{
|
||||
if (!notime)
|
||||
@ -699,7 +645,6 @@ public static class Util
|
||||
Console.ForegroundColor = color;
|
||||
Console.Write(text);
|
||||
}
|
||||
#endif
|
||||
#endregion
|
||||
}
|
||||
#endregion
|
||||
|
@ -158,14 +158,14 @@ public class ModManager
|
||||
Util.ConsolePrint("ModManager - Extracting: "
|
||||
+ e.CurrentEntry.FileName + ". Progress: "
|
||||
+ e.BytesTransferred + "/" + e.TotalBytesToTransfer
|
||||
+ " (" + intPercent + "%)", 3, consoleBox, true);
|
||||
+ " (" + intPercent + "%)", 3, true);
|
||||
|
||||
pastPercentage = intPercent;
|
||||
}
|
||||
}
|
||||
else if (e.EventType == ZipProgressEventType.Extracting_BeforeExtractEntry)
|
||||
{
|
||||
Util.ConsolePrint("ModManager - Extracting: " + e.CurrentEntry.FileName, 3, consoleBox);
|
||||
Util.ConsolePrint("ModManager - Extracting: " + e.CurrentEntry.FileName, 3);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -72,12 +72,12 @@ namespace NovetusLauncher
|
||||
try
|
||||
{
|
||||
NetFuncs.InitUPnP(DeviceFound, DeviceLost);
|
||||
Util.ConsolePrint("UPnP: Service initialized", 3, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Service initialized", 3);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Util.LogExceptions(ex);
|
||||
Util.ConsolePrint("UPnP: Unable to initialize UPnP. Reason - " + ex.Message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Unable to initialize UPnP. Reason - " + ex.Message, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -90,12 +90,12 @@ namespace NovetusLauncher
|
||||
{
|
||||
NetFuncs.StartUPnP(device, protocol, port);
|
||||
string IP = !string.IsNullOrWhiteSpace(GlobalVars.UserConfiguration.AlternateServerIP) ? GlobalVars.UserConfiguration.AlternateServerIP : device.GetExternalIP().ToString();
|
||||
Util.ConsolePrint("UPnP: Port " + port + " opened on '" + IP + "' (" + protocol.ToString() + ")", 3, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Port " + port + " opened on '" + IP + "' (" + protocol.ToString() + ")", 3);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Util.LogExceptions(ex);
|
||||
Util.ConsolePrint("UPnP: Unable to open port mapping. Reason - " + ex.Message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Unable to open port mapping. Reason - " + ex.Message, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -108,12 +108,12 @@ namespace NovetusLauncher
|
||||
{
|
||||
NetFuncs.StopUPnP(device, protocol, port);
|
||||
string IP = !string.IsNullOrWhiteSpace(GlobalVars.UserConfiguration.AlternateServerIP) ? GlobalVars.UserConfiguration.AlternateServerIP : device.GetExternalIP().ToString();
|
||||
Util.ConsolePrint("UPnP: Port " + port + " closed on '" + IP + "' (" + protocol.ToString() + ")", 3, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Port " + port + " closed on '" + IP + "' (" + protocol.ToString() + ")", 3);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Util.LogExceptions(ex);
|
||||
Util.ConsolePrint("UPnP: Unable to close port mapping. Reason - " + ex.Message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Unable to close port mapping. Reason - " + ex.Message, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -124,14 +124,14 @@ namespace NovetusLauncher
|
||||
{
|
||||
INatDevice device = args.Device;
|
||||
string IP = !string.IsNullOrWhiteSpace(GlobalVars.UserConfiguration.AlternateServerIP) ? GlobalVars.UserConfiguration.AlternateServerIP : device.GetExternalIP().ToString();
|
||||
Util.ConsolePrint("UPnP: Device '" + IP + "' registered.", 3, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Device '" + IP + "' registered.", 3);
|
||||
StartUPnP(device, Protocol.Udp, GlobalVars.UserConfiguration.RobloxPort);
|
||||
StartUPnP(device, Protocol.Tcp, GlobalVars.UserConfiguration.RobloxPort);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Util.LogExceptions(ex);
|
||||
Util.ConsolePrint("UPnP: Unable to register device. Reason - " + ex.Message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Unable to register device. Reason - " + ex.Message, 2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,14 +141,14 @@ namespace NovetusLauncher
|
||||
{
|
||||
INatDevice device = args.Device;
|
||||
string IP = !string.IsNullOrWhiteSpace(GlobalVars.UserConfiguration.AlternateServerIP) ? GlobalVars.UserConfiguration.AlternateServerIP : device.GetExternalIP().ToString();
|
||||
Util.ConsolePrint("UPnP: Device '" + IP + "' disconnected.", 3, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Device '" + IP + "' disconnected.", 3);
|
||||
StopUPnP(device, Protocol.Udp, GlobalVars.UserConfiguration.RobloxPort);
|
||||
StopUPnP(device, Protocol.Tcp, GlobalVars.UserConfiguration.RobloxPort);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Util.LogExceptions(ex);
|
||||
Util.ConsolePrint("UPnP: Unable to disconnect device. Reason - " + ex.Message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("UPnP: Unable to disconnect device. Reason - " + ex.Message, 2);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@ -156,17 +156,17 @@ namespace NovetusLauncher
|
||||
#region Discord
|
||||
public void ReadyCallback()
|
||||
{
|
||||
Util.ConsolePrint("Discord RPC: Ready", 3, ConsoleBox);
|
||||
Util.ConsolePrint("Discord RPC: Ready", 3);
|
||||
}
|
||||
|
||||
public void DisconnectedCallback(int errorCode, string message)
|
||||
{
|
||||
Util.ConsolePrint("Discord RPC: Disconnected. Reason - " + errorCode + ": " + message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("Discord RPC: Disconnected. Reason - " + errorCode + ": " + message, 2);
|
||||
}
|
||||
|
||||
public void ErrorCallback(int errorCode, string message)
|
||||
{
|
||||
Util.ConsolePrint("Discord RPC: Error. Reason - " + errorCode + ": " + message, 2, ConsoleBox);
|
||||
Util.ConsolePrint("Discord RPC: Error. Reason - " + errorCode + ": " + message, 2);
|
||||
}
|
||||
|
||||
public void JoinCallback(string secret)
|
||||
@ -210,8 +210,8 @@ namespace NovetusLauncher
|
||||
{
|
||||
Parent.Text = "Novetus " + GlobalVars.ProgramInformation.Version;
|
||||
}
|
||||
Util.ConsolePrint("Novetus version " + GlobalVars.ProgramInformation.Version + " loaded. Initializing config.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("Novetus path: " + GlobalPaths.BasePath, 4, ConsoleBox);
|
||||
Util.ConsolePrint("Novetus version " + GlobalVars.ProgramInformation.Version + " loaded. Initializing config.", 4);
|
||||
Util.ConsolePrint("Novetus path: " + GlobalPaths.BasePath, 4);
|
||||
|
||||
if (FormStyle != Settings.Style.Stylish)
|
||||
{
|
||||
@ -221,7 +221,7 @@ namespace NovetusLauncher
|
||||
}
|
||||
else
|
||||
{
|
||||
Util.ConsolePrint("ERROR - " + GlobalPaths.RootPath + "\\changelog.txt not found.", 2, ConsoleBox);
|
||||
Util.ConsolePrint("ERROR - " + GlobalPaths.RootPath + "\\changelog.txt not found.", 2);
|
||||
}
|
||||
|
||||
if (File.Exists(GlobalPaths.RootPath + "\\README-AND-CREDITS.TXT"))
|
||||
@ -230,28 +230,28 @@ namespace NovetusLauncher
|
||||
}
|
||||
else
|
||||
{
|
||||
Util.ConsolePrint("ERROR - " + GlobalPaths.RootPath + "\\README-AND-CREDITS.TXT not found.", 2, ConsoleBox);
|
||||
Util.ConsolePrint("ERROR - " + GlobalPaths.RootPath + "\\README-AND-CREDITS.TXT not found.", 2);
|
||||
}
|
||||
}
|
||||
|
||||
if (!File.Exists(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName))
|
||||
{
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName + " not found. Creating one with default values.", 5, ConsoleBox);
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName + " not found. Creating one with default values.", 5);
|
||||
WriteConfigValues();
|
||||
}
|
||||
if (!File.Exists(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigNameCustomization))
|
||||
{
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigNameCustomization + " not found. Creating one with default values.", 5, ConsoleBox);
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigNameCustomization + " not found. Creating one with default values.", 5);
|
||||
WriteCustomizationValues();
|
||||
}
|
||||
if (!File.Exists(GlobalPaths.ConfigDir + "\\servers.txt"))
|
||||
{
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\servers.txt not found. Creating empty file.", 5, ConsoleBox);
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\servers.txt not found. Creating empty file.", 5);
|
||||
File.Create(GlobalPaths.ConfigDir + "\\servers.txt").Dispose();
|
||||
}
|
||||
if (!File.Exists(GlobalPaths.ConfigDir + "\\ports.txt"))
|
||||
{
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\ports.txt not found. Creating empty file.", 5, ConsoleBox);
|
||||
Util.ConsolePrint("WARNING - " + GlobalPaths.ConfigDir + "\\ports.txt not found. Creating empty file.", 5);
|
||||
File.Create(GlobalPaths.ConfigDir + "\\ports.txt").Dispose();
|
||||
}
|
||||
|
||||
@ -806,12 +806,12 @@ namespace NovetusLauncher
|
||||
}
|
||||
else
|
||||
{
|
||||
Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("Please specify 'save', 'load', or 'reset'.", 4);
|
||||
}
|
||||
break;
|
||||
case string help when string.Compare(help, "help", true, CultureInfo.InvariantCulture) == 0:
|
||||
@ -824,12 +824,12 @@ namespace NovetusLauncher
|
||||
if (GlobalVars.UserConfiguration.DisableReshadeDelete == true)
|
||||
{
|
||||
GlobalVars.UserConfiguration.DisableReshadeDelete = false;
|
||||
Util.ConsolePrint("ReShade DLL deletion enabled.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("ReShade DLL deletion enabled.", 4);
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalVars.UserConfiguration.DisableReshadeDelete = true;
|
||||
Util.ConsolePrint("ReShade DLL deletion disabled.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("ReShade DLL deletion disabled.", 4);
|
||||
}
|
||||
break;
|
||||
case string altserverip when altserverip.Contains("altserverip", StringComparison.InvariantCultureIgnoreCase) == true:
|
||||
@ -840,31 +840,31 @@ namespace NovetusLauncher
|
||||
if (vals[1].Equals("none", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
GlobalVars.UserConfiguration.AlternateServerIP = "";
|
||||
Util.ConsolePrint("Alternate Server IP removed.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("Alternate Server IP removed.", 4);
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalVars.UserConfiguration.AlternateServerIP = vals[1];
|
||||
Util.ConsolePrint("Alternate Server IP set to " + vals[1], 4, ConsoleBox);
|
||||
Util.ConsolePrint("Alternate Server IP set to " + vals[1], 4);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Util.ConsolePrint("Please specify the IP address you would like to set Novetus to.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("Please specify the IP address you would like to set Novetus to.", 4);
|
||||
}
|
||||
break;
|
||||
case string important when string.Compare(important, LocalVars.important, true, CultureInfo.InvariantCulture) == 0:
|
||||
GlobalVars.AdminMode = true;
|
||||
Util.ConsolePrint("ADMIN MODE ENABLED.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("YOU ARE GOD.", 2, ConsoleBox);
|
||||
Util.ConsolePrint("ADMIN MODE ENABLED.", 4);
|
||||
Util.ConsolePrint("YOU ARE GOD.", 2);
|
||||
break;
|
||||
case string decode when (string.Compare(decode, "decode", true, CultureInfo.InvariantCulture) == 0 || string.Compare(decode, "decrypt", true, CultureInfo.InvariantCulture) == 0):
|
||||
Decoder de = new Decoder();
|
||||
de.Show();
|
||||
Util.ConsolePrint("???", 2, ConsoleBox);
|
||||
Util.ConsolePrint("???", 2);
|
||||
break;
|
||||
default:
|
||||
Util.ConsolePrint("Command is either not registered or valid", 2, ConsoleBox);
|
||||
Util.ConsolePrint("Command is either not registered or valid", 2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -873,27 +873,27 @@ namespace NovetusLauncher
|
||||
{
|
||||
NovetusSDK im = new NovetusSDK();
|
||||
im.Show();
|
||||
Util.ConsolePrint("Novetus SDK Launcher Loaded.", 4, ConsoleBox);
|
||||
Util.ConsolePrint("Novetus SDK Launcher Loaded.", 4);
|
||||
}
|
||||
|
||||
public void ConsoleHelp()
|
||||
{
|
||||
Util.ConsolePrint("Help:", 3, ConsoleBox, true);
|
||||
Util.ConsolePrint("---------", 1, ConsoleBox, true);
|
||||
Util.ConsolePrint("= client | Launches client with launcher settings", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= solo | Launches client in Play Solo mode with launcher settings", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= server 3d | Launches server with launcher settings", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= server no3d | Launches server in NoGraphics mode with launcher settings", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= studio map | Launches Roblox Studio with the selected map", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= studio nomap | Launches Roblox Studio without the selected map", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= sdk | Launches the Novetus SDK Launcher", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= dlldelete | Toggle the deletion of opengl32.dll when ReShade is off.", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= altserverip <IP> | Sets the alternate server IP for server info. Replace <IP> with your specified IP or specify 'none' to remove the current alternate server IP", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("---------", 1, ConsoleBox, true);
|
||||
Util.ConsolePrint("= config save | Saves the config file", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= config load | Reloads the config file", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint("= config reset | Resets the config file", 4, ConsoleBox, true);
|
||||
Util.ConsolePrint(LocalVars.important2, 0, ConsoleBox, true, true);
|
||||
Util.ConsolePrint("Help:", 3, true);
|
||||
Util.ConsolePrint("---------", 1, true);
|
||||
Util.ConsolePrint("= client | Launches client with launcher settings", 4, true);
|
||||
Util.ConsolePrint("= solo | Launches client in Play Solo mode with launcher settings", 4, true);
|
||||
Util.ConsolePrint("= server 3d | Launches server with launcher settings", 4, true);
|
||||
Util.ConsolePrint("= server no3d | Launches server in NoGraphics mode with launcher settings", 4, true);
|
||||
Util.ConsolePrint("= studio map | Launches Roblox Studio with the selected map", 4, true);
|
||||
Util.ConsolePrint("= studio nomap | Launches Roblox Studio without the selected map", 4, true);
|
||||
Util.ConsolePrint("= sdk | Launches the Novetus SDK Launcher", 4, true);
|
||||
Util.ConsolePrint("= dlldelete | Toggle the deletion of opengl32.dll when ReShade is off.", 4, true);
|
||||
Util.ConsolePrint("= altserverip <IP> | Sets the alternate server IP for server info. Replace <IP> with your specified IP or specify 'none' to remove the current alternate server IP", 4, true);
|
||||
Util.ConsolePrint("---------", 1, true);
|
||||
Util.ConsolePrint("= config save | Saves the config file", 4, true);
|
||||
Util.ConsolePrint("= config load | Reloads the config file", 4, true);
|
||||
Util.ConsolePrint("= config reset | Resets the config file", 4, true);
|
||||
Util.ConsolePrint(LocalVars.important2, 0, true, true);
|
||||
}
|
||||
|
||||
public void SwitchStyles()
|
||||
@ -987,7 +987,7 @@ namespace NovetusLauncher
|
||||
break;
|
||||
}
|
||||
|
||||
Util.ConsolePrint("Config loaded.", 3, ConsoleBox);
|
||||
Util.ConsolePrint("Config loaded.", 3);
|
||||
ReadClientValues(initial);
|
||||
}
|
||||
|
||||
@ -995,7 +995,7 @@ namespace NovetusLauncher
|
||||
{
|
||||
FileManagement.Config(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigName, true);
|
||||
ClientManagement.ReadClientValues(ConsoleBox);
|
||||
Util.ConsolePrint("Config Saved.", 3, ConsoleBox);
|
||||
Util.ConsolePrint("Config Saved.", 3);
|
||||
if (ShowBox)
|
||||
{
|
||||
MessageBox.Show("Config Saved!", "Novetus - Config Saved", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
@ -1005,7 +1005,7 @@ namespace NovetusLauncher
|
||||
public void WriteCustomizationValues()
|
||||
{
|
||||
FileManagement.Customization(GlobalPaths.ConfigDir + "\\" + GlobalPaths.ConfigNameCustomization, true);
|
||||
Util.ConsolePrint("Config Saved.", 3, ConsoleBox);
|
||||
Util.ConsolePrint("Config Saved.", 3);
|
||||
}
|
||||
|
||||
public void ResetConfigValues(bool ShowBox = false)
|
||||
@ -1114,7 +1114,7 @@ namespace NovetusLauncher
|
||||
await addon.LoadMod();
|
||||
if (!string.IsNullOrWhiteSpace(addon.getOutcome()))
|
||||
{
|
||||
Util.ConsolePrint("ModManager - " + addon.getOutcome(), 3, ConsoleBox);
|
||||
Util.ConsolePrint("ModManager - " + addon.getOutcome(), 3);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@ -1122,7 +1122,7 @@ namespace NovetusLauncher
|
||||
Util.LogExceptions(ex);
|
||||
if (!string.IsNullOrWhiteSpace(addon.getOutcome()))
|
||||
{
|
||||
Util.ConsolePrint("ModManager - " + addon.getOutcome(), 2, ConsoleBox);
|
||||
Util.ConsolePrint("ModManager - " + addon.getOutcome(), 2);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1145,7 +1145,7 @@ namespace NovetusLauncher
|
||||
{
|
||||
Directory.Delete(GlobalPaths.AssetCacheDir, true);
|
||||
FileManagement.CreateAssetCacheDirectories();
|
||||
Util.ConsolePrint("Asset cache cleared!", 3, ConsoleBox);
|
||||
Util.ConsolePrint("Asset cache cleared!", 3);
|
||||
MessageBox.Show("Asset cache cleared!", "Novetus - Asset Cache Cleared", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user