Some 1.0 and early 1.1 changes.

This commit is contained in:
Bitl 2019-12-20 15:08:24 -07:00
parent 5487e67c5b
commit d3c4d5ea6c
26 changed files with 22388 additions and 160 deletions

5
.gitignore vendored
View File

@ -347,4 +347,7 @@ healthchecksdb
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
.ionide/
# Novetus EXE Build dir
build/

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NovetusCMD
{
public static class LocalVars
{
public static bool StartInNo3D = false;
public static bool OverrideINI = false;
public static bool RequestToOutputInfo = false;
}
}

View File

@ -76,6 +76,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="CommandLineArguments.cs" />
<Compile Include="LocalVars.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
@ -86,7 +87,11 @@
<Import Project="..\NovetusFuncs\NovetusFuncs.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>SET path=$(SolutionDir)build
if not exist "%25path%25" mkdir "%25path%25"
copy $(ProjectDir)$(OutDir) "%25path%25"\*
del "%25path%25"\*.vshost.exe
del "%25path%25"\*.vshost.exe.config
del "%25path%25"\*.vshost.exe.manifest</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@ -16,7 +16,7 @@ namespace NovetusCMD
{
public static class Program
{
public static void InitUPnP()
public static void InitUPnP()
{
if (GlobalVars.UPnP == true)
{
@ -181,10 +181,6 @@ namespace NovetusCMD
public static void Main(string[] args)
{
bool StartInNo3D = false;
bool OverrideINI = false;
bool RequestToOutputInfo = false;
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
string version = lines[0];
GlobalVars.DefaultClient = lines[1];
@ -221,13 +217,13 @@ namespace NovetusCMD
if (CommandLine["no3d"] != null)
{
StartInNo3D = true;
LocalVars.StartInNo3D = true;
ConsolePrint("NovetusCMD will now launch the server in No3D mode.", 4);
}
if (CommandLine["overrideconfig"] != null)
{
OverrideINI = true;
LocalVars.OverrideINI = true;
ConsolePrint("NovetusCMD will no longer grab values from the INI file.", 4);
if (CommandLine["upnp"] != null)
@ -267,7 +263,7 @@ namespace NovetusCMD
if (CommandLine["outputinfo"] != null)
{
RequestToOutputInfo = true;
LocalVars.RequestToOutputInfo = true;
}
if (CommandLine["script"] != null)
@ -277,7 +273,7 @@ namespace NovetusCMD
}
}
if (!OverrideINI)
if (!LocalVars.OverrideINI)
{
ConsolePrint("NovetusCMD is now loading all server configurations from the INI file.", 5);
@ -296,53 +292,12 @@ namespace NovetusCMD
InitUPnP();
StartWebServer();
if (RequestToOutputInfo)
{
string IP = SecurityFuncs.GetExternalIPAddress();
string[] lines1 = {
SecurityFuncs.Base64Encode(IP),
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1));
string[] lines2 = {
SecurityFuncs.Base64Encode("localhost"),
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2));
Process currentProcess = Process.GetCurrentProcess();
int pid = currentProcess.Id;
string text = GlobalVars.MultiLine(
"Process ID: " + pid.ToString(),
"Don't copy the Process ID when sharing the server.",
"--------------------",
"Server Info:",
"Client: " + GlobalVars.SelectedClient,
"IP: " + IP,
"Port: " + GlobalVars.RobloxPort.ToString(),
"Map: " + GlobalVars.Map,
"Players: " + GlobalVars.PlayerLimit,
"Version: Novetus " + GlobalVars.Version,
"Online URI Link:",
URI,
"Local URI Link:",
URI2,
GlobalVars.IsWebServerOn == true ? "Web Server URL:" : "",
GlobalVars.IsWebServerOn == true ? "http://" + IP + ":" + GlobalVars.WebServer.Port.ToString() : "",
GlobalVars.IsWebServerOn == true ? "Local Web Server URL:" : "",
GlobalVars.IsWebServerOn == true ? GlobalVars.LocalWebServerURI : ""
);
File.WriteAllText(GlobalVars.BasePath + "\\" + GlobalVars.ServerInfoFileName, GlobalVars.RemoveEmptyLines(text));
ConsolePrint("Server Information sent to file " + GlobalVars.BasePath + "\\" + GlobalVars.ServerInfoFileName, 4);
}
AppDomain.CurrentDomain.ProcessExit += new EventHandler(ProgramClose);
ConsolePrint("Launching a " + GlobalVars.SelectedClient + " server on " + GlobalVars.Map + " with " + GlobalVars.PlayerLimit + " players.", 1);
StartServer(StartInNo3D);
StartServer(LocalVars.StartInNo3D);
Console.ReadKey();
}
@ -402,8 +357,9 @@ namespace NovetusCMD
client.EnableRaisingEvents = true;
ReadClientValues(GlobalVars.SelectedClient);
client.Exited += new EventHandler(ServerExited);
client.Start();
client.Start();
SecurityFuncs.RenameWindow(client, ScriptGenerator.ScriptType.Server);
CreateTXT(client);
}
catch (Exception ex) when (!Env.Debugging)
{
@ -415,6 +371,51 @@ namespace NovetusCMD
{
Environment.Exit(0);
}
static void CreateTXT(Process process)
{
if (LocalVars.RequestToOutputInfo)
{
string IP = SecurityFuncs.GetExternalIPAddress();
string[] lines1 = {
SecurityFuncs.Base64Encode(IP),
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines1));
string[] lines2 = {
SecurityFuncs.Base64Encode("localhost"),
SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()),
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2));
int pid = process.Id;
string text = GlobalVars.MultiLine(
"Process ID: " + pid.ToString(),
"Don't copy the Process ID when sharing the server.",
"--------------------",
"Server Info:",
"Client: " + GlobalVars.SelectedClient,
"IP: " + IP,
"Port: " + GlobalVars.RobloxPort.ToString(),
"Map: " + GlobalVars.Map,
"Players: " + GlobalVars.PlayerLimit,
"Version: Novetus " + GlobalVars.Version,
"Online URI Link:",
URI,
"Local URI Link:",
URI2,
GlobalVars.IsWebServerOn == true ? "Web Server URL:" : "",
GlobalVars.IsWebServerOn == true ? "http://" + IP + ":" + GlobalVars.WebServer.Port.ToString() : "",
GlobalVars.IsWebServerOn == true ? "Local Web Server URL:" : "",
GlobalVars.IsWebServerOn == true ? GlobalVars.LocalWebServerURI : ""
);
File.WriteAllText(GlobalVars.BasePath + "\\" + GlobalVars.ServerInfoFileName, GlobalVars.RemoveEmptyLines(text));
ConsolePrint("Server Information sent to file " + GlobalVars.BasePath + "\\" + GlobalVars.ServerInfoFileName, 4);
}
}
static void ConsolePrint(string text, int type)
{

View File

@ -79,7 +79,7 @@ public class ScriptGenerator
return "_G.CSSolo(" + GlobalVars.UserID + ",'" + GlobalVars.PlayerName + "'," + GlobalVars.sololoadtext + ")";
}
} else if (type == ScriptType.Studio) {
return "";
return "_G.CSStudio()";
} else {
return "";
}

View File

@ -354,16 +354,6 @@ namespace NovetusLauncher
InitUPnP();
StartDiscord();
StartWebServer();
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + GlobalVars.SelectedClient + @"\\RobloxApp_client.exe";
}
}
void MainFormClose(object sender, CancelEventArgs e)
@ -751,28 +741,59 @@ namespace NovetusLauncher
richTextBox1.AppendText(Environment.NewLine);
}
string GetLuaFileName()
{
string luafile = "";
if (!GlobalVars.FixScriptMapMode)
{
luafile = "rbxasset://scripts\\\\" + GlobalVars.ScriptName + ".lua";
}
else
{
luafile = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\scripts\\" + GlobalVars.ScriptGenName + ".lua";
}
return luafile;
}
string GetClientEXEDir(ScriptGenerator.ScriptType type)
{
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
switch (type)
{
case ScriptGenerator.ScriptType.Client:
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_client.exe";
break;
case ScriptGenerator.ScriptType.Server:
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_server.exe";
break;
case ScriptGenerator.ScriptType.Studio:
case ScriptGenerator.ScriptType.Solo:
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_studio.exe";
break;
case ScriptGenerator.ScriptType.None:
default:
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
break;
}
}
return rbxexe;
}
void StartClient()
{
string luafile = "";
if (!GlobalVars.FixScriptMapMode)
{
luafile = "rbxasset://scripts\\\\" + GlobalVars.ScriptName + ".lua";
}
else
{
luafile = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\scripts\\" + GlobalVars.ScriptGenName + ".lua";
}
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_client.exe";
}
string luafile = GetLuaFileName();
string rbxexe = GetClientEXEDir(ScriptGenerator.ScriptType.Client);
string quote = "\"";
string args = "";
if (GlobalVars.CustomArgs.Equals("%args%"))
@ -863,25 +884,9 @@ namespace NovetusLauncher
void StartSolo()
{
string luafile = "";
if (!GlobalVars.FixScriptMapMode)
{
luafile = "rbxasset://scripts\\\\" + GlobalVars.ScriptName + ".lua";
}
else
{
luafile = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\scripts\\" + GlobalVars.ScriptGenName + ".lua";
}
string mapfile = GlobalVars.MapsDir + @"\\" + TreeNodeHelper.GetFolderNameFromPrefix(GlobalVars.Map) + GlobalVars.Map;
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_studio.exe";
}
string luafile = GetLuaFileName();
string rbxexe = GetClientEXEDir(ScriptGenerator.ScriptType.Solo);
string mapfile = GlobalVars.MapsDir + @"\\" + TreeNodeHelper.GetFolderNameFromPrefix(GlobalVars.Map) + GlobalVars.Map;
string quote = "\"";
string args = "";
if (GlobalVars.CustomArgs.Equals("%args%"))
@ -925,25 +930,9 @@ namespace NovetusLauncher
void StartServer(bool no3d)
{
string luafile = "";
if (!GlobalVars.FixScriptMapMode)
{
luafile = "rbxasset://scripts\\\\" + GlobalVars.ScriptName + ".lua";
}
else
{
luafile = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\scripts\\" + GlobalVars.ScriptGenName + ".lua";
}
string mapfile = GlobalVars.MapsDir + @"\\" + TreeNodeHelper.GetFolderNameFromPrefix(GlobalVars.Map) + GlobalVars.Map;
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_server.exe";
}
string luafile = GetLuaFileName();
string rbxexe = GetClientEXEDir(ScriptGenerator.ScriptType.Server);
string mapfile = GlobalVars.MapsDir + @"\\" + TreeNodeHelper.GetFolderNameFromPrefix(GlobalVars.Map) + GlobalVars.Map;
string quote = "\"";
string args = "";
if (GlobalVars.CustomArgs.Equals("%args%"))
@ -999,25 +988,9 @@ namespace NovetusLauncher
void StartStudio()
{
string luafile = "";
if (!GlobalVars.FixScriptMapMode)
{
luafile = "rbxasset://scripts\\\\" + GlobalVars.ScriptName + ".lua";
}
else
{
luafile = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\content\\scripts\\" + GlobalVars.ScriptGenName + ".lua";
}
string mapfile = GlobalVars.MapsDir + @"\\" + TreeNodeHelper.GetFolderNameFromPrefix(GlobalVars.Map) + GlobalVars.Map;
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = GlobalVars.ClientDir + @"\\" + GlobalVars.SelectedClient + @"\\RobloxApp_studio.exe";
}
string luafile = GetLuaFileName();
string rbxexe = GetClientEXEDir(ScriptGenerator.ScriptType.Studio);
string mapfile = GlobalVars.MapsDir + @"\\" + TreeNodeHelper.GetFolderNameFromPrefix(GlobalVars.Map) + GlobalVars.Map;
string quote = "\"";
string args = "";
if (GlobalVars.CustomArgs.Equals("%args%"))
@ -1173,6 +1146,14 @@ namespace NovetusLauncher
{
LoadAssetLocalizer();
}
else if (string.Compare(command, "splashtester", true, CultureInfo.InvariantCulture) == 0)
{
LoadSplashTester();
}
else if (string.Compare(command, "sdk splashtester", true, CultureInfo.InvariantCulture) == 0)
{
LoadSplashTester();
}
else if (string.Compare(command,"charcustom",true, CultureInfo.InvariantCulture) == 0)
{
CharacterCustomization cc = new CharacterCustomization();
@ -1286,6 +1267,13 @@ namespace NovetusLauncher
ConsolePrint("Novetus Asset Localizer Loaded.", 4);
}
void LoadSplashTester()
{
SplashTester st = new SplashTester();
st.Show();
ConsolePrint("Splash Tester Loaded.", 4);
}
void LoadLauncher()
{
NovetusSDK im = new NovetusSDK();
@ -1311,6 +1299,7 @@ namespace NovetusLauncher
ConsolePrint("= clientinfo | Launches the Novetus Client SDK", 4);
ConsolePrint("= itemmaker | Launches the Novetus Item SDK", 4);
ConsolePrint("= assetlocalizer | Launches the Novetus Asset Localizer", 4);
ConsolePrint("= splashtester | Launches the Splash Tester", 4);
}
else if (page == 3)
{

View File

@ -82,22 +82,22 @@
<Compile Include="CharacterCustomization.Designer.cs">
<DependentUpon>CharacterCustomization.cs</DependentUpon>
</Compile>
<Compile Include="ClientinfoCreator.cs">
<Compile Include="SDK\ClientinfoCreator.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ClientinfoCreator.Designer.cs">
<Compile Include="SDK\ClientinfoCreator.Designer.cs">
<DependentUpon>ClientinfoCreator.cs</DependentUpon>
</Compile>
<Compile Include="ClientScriptDocumentation.cs">
<Compile Include="SDK\ClientScriptDocumentation.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ClientScriptDocumentation.Designer.cs">
<Compile Include="SDK\ClientScriptDocumentation.Designer.cs">
<DependentUpon>ClientScriptDocumentation.cs</DependentUpon>
</Compile>
<Compile Include="ItemMaker.cs">
<Compile Include="SDK\ItemMaker.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ItemMaker.Designer.cs">
<Compile Include="SDK\ItemMaker.Designer.cs">
<DependentUpon>ItemMaker.cs</DependentUpon>
</Compile>
<Compile Include="LoaderForm.cs">
@ -106,16 +106,22 @@
<Compile Include="LoaderForm.Designer.cs">
<DependentUpon>LoaderForm.cs</DependentUpon>
</Compile>
<Compile Include="SDK\SplashTester.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SDK\SplashTester.Designer.cs">
<DependentUpon>SplashTester.cs</DependentUpon>
</Compile>
<Compile Include="NovetusSDK.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="NovetusSDK.Designer.cs">
<DependentUpon>NovetusSDK.cs</DependentUpon>
</Compile>
<Compile Include="AssetLocalizer.cs">
<Compile Include="SDK\AssetLocalizer.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AssetLocalizer.Designer.cs">
<Compile Include="SDK\AssetLocalizer.Designer.cs">
<DependentUpon>AssetLocalizer.cs</DependentUpon>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
@ -148,25 +154,28 @@
<EmbeddedResource Include="CharacterCustomization.resx">
<DependentUpon>CharacterCustomization.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ClientinfoCreator.resx">
<EmbeddedResource Include="SDK\ClientinfoCreator.resx">
<DependentUpon>ClientinfoCreator.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ClientScriptDocumentation.resx">
<EmbeddedResource Include="SDK\ClientScriptDocumentation.resx">
<DependentUpon>ClientScriptDocumentation.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ItemMaker.resx">
<EmbeddedResource Include="SDK\ItemMaker.resx">
<DependentUpon>ItemMaker.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="LoaderForm.resx">
<DependentUpon>LoaderForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SDK\SplashTester.resx">
<DependentUpon>SplashTester.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="NovetusSDK.resx">
<DependentUpon>NovetusSDK.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="AssetLocalizer.resx">
<EmbeddedResource Include="SDK\AssetLocalizer.resx">
<DependentUpon>AssetLocalizer.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
@ -184,6 +193,15 @@
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup />
<Import Project="..\NovetusFuncs\NovetusFuncs.projitems" Label="Shared" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>SET path=$(SolutionDir)build
if not exist "%25path%25" mkdir "%25path%25"
copy $(ProjectDir)$(OutDir) "%25path%25"\*
del "%25path%25"\*.vshost.exe
del "%25path%25"\*.vshost.exe.config
del "%25path%25"\*.vshost.exe.manifest</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@ -61,7 +61,8 @@
"Item SDK",
"Client SDK",
"ClientScript Documentation",
"Asset Localizer"});
"Asset Localizer",
"Splash Tester"});
this.listBox1.Location = new System.Drawing.Point(12, 70);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(260, 95);

View File

@ -60,6 +60,11 @@ namespace NovetusLauncher
AssetLocalizer al = new AssetLocalizer();
al.Show();
}
else if (listBox1.SelectedIndex == 4)
{
SplashTester st = new SplashTester();
st.Show();
}
}
}
}

View File

@ -0,0 +1,263 @@
/*
* Created by SharpDevelop.
* User: BITL-Gaming
* Date: 10/7/2016
* Time: 3:01 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
namespace NovetusLauncher
{
partial class SplashTester
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashTester));
this.textBox5 = new System.Windows.Forms.TextBox();
this.label15 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.textBox2 = new System.Windows.Forms.TextBox();
this.button4 = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.button8 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.label25 = new System.Windows.Forms.Label();
this.label26 = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.SuspendLayout();
//
// textBox5
//
this.textBox5.Enabled = false;
this.textBox5.Location = new System.Drawing.Point(95, 53);
this.textBox5.Multiline = true;
this.textBox5.Name = "textBox5";
this.textBox5.ReadOnly = true;
this.textBox5.Size = new System.Drawing.Size(71, 18);
this.textBox5.TabIndex = 20;
this.textBox5.Text = "0";
this.textBox5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label15
//
this.label15.Location = new System.Drawing.Point(55, 34);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(40, 16);
this.label15.TabIndex = 12;
this.label15.Text = "Name:";
//
// label13
//
this.label13.Location = new System.Drawing.Point(55, 55);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(34, 13);
this.label13.TabIndex = 7;
this.label13.Text = "ID:";
//
// textBox2
//
this.textBox2.Enabled = false;
this.textBox2.Location = new System.Drawing.Point(95, 31);
this.textBox2.Name = "textBox2";
this.textBox2.ReadOnly = true;
this.textBox2.Size = new System.Drawing.Size(121, 20);
this.textBox2.TabIndex = 11;
this.textBox2.Text = "Player";
this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// button4
//
this.button4.Enabled = false;
this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button4.Location = new System.Drawing.Point(169, 52);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(48, 20);
this.button4.TabIndex = 9;
this.button4.Text = "Regen";
this.button4.UseVisualStyleBackColor = true;
//
// pictureBox2
//
this.pictureBox2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pictureBox2.BackgroundImage")));
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.pictureBox2.Location = new System.Drawing.Point(6, 12);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(43, 41);
this.pictureBox2.TabIndex = 7;
this.pictureBox2.TabStop = false;
//
// button8
//
this.button8.Enabled = false;
this.button8.Location = new System.Drawing.Point(223, 31);
this.button8.Name = "button8";
this.button8.Size = new System.Drawing.Size(94, 31);
this.button8.TabIndex = 35;
this.button8.Text = "Customization";
this.button8.UseVisualStyleBackColor = true;
//
// button3
//
this.button3.Enabled = false;
this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button3.Location = new System.Drawing.Point(323, 31);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(82, 31);
this.button3.TabIndex = 6;
this.button3.Text = "Open Studio";
this.button3.UseVisualStyleBackColor = true;
//
// label25
//
this.label25.Location = new System.Drawing.Point(55, 4);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(109, 14);
this.label25.TabIndex = 16;
this.label25.Text = "SELECTED CLIENT:";
//
// label26
//
this.label26.Location = new System.Drawing.Point(160, 4);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(245, 13);
this.label26.TabIndex = 17;
this.label26.Text = "2009E";
//
// label27
//
this.label27.Location = new System.Drawing.Point(55, 18);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(95, 12);
this.label27.TabIndex = 18;
this.label27.Text = "SELECTED MAP:";
//
// label28
//
this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label28.Location = new System.Drawing.Point(145, 18);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(260, 12);
this.label28.TabIndex = 19;
this.label28.Text = "Baseplate.rbxl";
//
// label11
//
this.label11.Location = new System.Drawing.Point(4, 51);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(47, 25);
this.label11.TabIndex = 50;
this.label11.Text = "v1.0";
this.label11.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// label12
//
this.label12.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.label12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label12.ForeColor = System.Drawing.Color.Black;
this.label12.Location = new System.Drawing.Point(223, 63);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(182, 13);
this.label12.TabIndex = 0;
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label16
//
this.label16.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label16.Location = new System.Drawing.Point(54, 6);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(2, 65);
this.label16.TabIndex = 51;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(7, 79);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(399, 20);
this.textBox1.TabIndex = 52;
this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
// SplashTester
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(417, 109);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label16);
this.Controls.Add(this.label12);
this.Controls.Add(this.label28);
this.Controls.Add(this.label11);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.button3);
this.Controls.Add(this.button8);
this.Controls.Add(this.label13);
this.Controls.Add(this.label15);
this.Controls.Add(this.button4);
this.Controls.Add(this.textBox5);
this.Controls.Add(this.label27);
this.Controls.Add(this.label26);
this.Controls.Add(this.label25);
this.Controls.Add(this.textBox2);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "SplashTester";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Splash Tester";
this.Load += new System.EventHandler(this.SplashTester_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.TextBox textBox5;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.TextBox textBox1;
}
}

View File

@ -0,0 +1,77 @@
/*
* Created by SharpDevelop.
* User: BITL-Gaming
* Date: 10/7/2016
* Time: 3:01 PM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using System.ComponentModel;
using System.Reflection;
using Mono.Nat;
using System.Globalization;
namespace NovetusLauncher
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class SplashTester : Form
{
public SplashTester()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
//
// TODO: Add constructor code after the InitializeComponent() call.
//
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
label12.Text = textBox1.Text;
}
private void SplashTester_Load(object sender, EventArgs e)
{
string[] lines = File.ReadAllLines(GlobalVars.ConfigDir + "\\info.txt"); //File is in System.IO
string version = lines[0];
GlobalVars.DefaultClient = lines[1];
GlobalVars.DefaultMap = lines[2];
GlobalVars.SelectedClient = GlobalVars.DefaultClient;
GlobalVars.Map = GlobalVars.DefaultMap;
label11.Text = version;
GlobalVars.Version = version;
ReadConfigValues();
string rbxexe = "";
if (GlobalVars.LegacyMode == true)
{
rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + GlobalVars.SelectedClient + @"\\RobloxApp.exe";
}
else
{
rbxexe = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\clients\\" + GlobalVars.SelectedClient + @"\\RobloxApp_client.exe";
}
}
void ReadConfigValues()
{
LauncherFuncs.ReadConfigValues(GlobalVars.ConfigDir + "\\" + GlobalVars.ConfigName);
textBox5.Text = GlobalVars.UserID.ToString();
textBox2.Text = GlobalVars.PlayerName;
label26.Text = GlobalVars.SelectedClient;
label28.Text = GlobalVars.Map;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -45,7 +45,7 @@ namespace NovetusLauncher
SecurityFuncs.Base64Encode(GlobalVars.SelectedClient)
};
string URI2 = "novetus://" + SecurityFuncs.Base64Encode(string.Join("|", lines2));
string text = GlobalVars.MultiLine(
string[] text = {
"Client: " + GlobalVars.SelectedClient,
"IP: " + IP,
"Port: " + GlobalVars.RobloxPort.ToString(),
@ -60,8 +60,16 @@ namespace NovetusLauncher
GlobalVars.IsWebServerOn == true ? "http://" + IP + ":" + GlobalVars.WebServer.Port.ToString() : "",
GlobalVars.IsWebServerOn == true ? "Local Web Server URL:" : "",
GlobalVars.IsWebServerOn == true ? GlobalVars.LocalWebServerURI : ""
);
textBox1.AppendText(GlobalVars.RemoveEmptyLines(text));
};
foreach (string str in text)
{
if (!string.IsNullOrWhiteSpace(str))
{
textBox1.AppendText(str);
textBox1.AppendText(Environment.NewLine);
}
}
}
}

View File

@ -50,7 +50,7 @@ Source: "Novetus\_redist\*"; DestDir: "{app}\_redist"; Flags: ignoreversion recu
[Icons]
Name: "{group}\Novetus {#AppVer}"; Filename: "{app}\Novetus.exe"
Name: "{group}\Utilities\Novetus SDK"; Filename: "{app}\Novetus.exe" Parameters: "-sdk"
Name: "{group}\Utilities\Novetus SDK"; Filename: "{app}\Novetus.exe"; Parameters: "-sdk"
Name: "{group}\Uninstall Novetus {#AppVer}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\Novetus {#AppVer}"; Filename: "{app}\Novetus.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\Novetus {#AppVer}"; Filename: "{app}\Novetus.exe"; Tasks: quicklaunchicon