1.2 Snapshot (7440.16214.1)

This commit is contained in:
Bitl 2020-05-15 09:11:48 -07:00
parent 756c51f087
commit 95630fd703
10 changed files with 2682 additions and 35 deletions

View File

@ -20,19 +20,6 @@ public class CryptoRandom : RandomNumberGenerator
r = RandomNumberGenerator.Create();
}
public static string DiogenesCrypt(string word)
{
StringBuilder result = new StringBuilder("");
byte[] bytes = Encoding.ASCII.GetBytes(word);
foreach (byte singular in bytes)
{
result.Append(Convert.ToChar(0x55 ^ singular));
}
return result.ToString();
}
///<param name=”buffer”>An array of bytes to contain random numbers.</param>
public override void GetBytes(byte[] buffer)
{

View File

@ -157,6 +157,8 @@ namespace NovetusLauncher
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.button35 = new System.Windows.Forms.Button();
this.SettingsButton = new System.Windows.Forms.Button();
this.UAButton = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@ -1559,6 +1561,7 @@ namespace NovetusLauncher
this.panel4 = new System.Windows.Forms.Panel();
this.button35 = new System.Windows.Forms.Button();
this.SettingsButton = new System.Windows.Forms.Button();
this.UAButton = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
@ -2242,6 +2245,7 @@ namespace NovetusLauncher
this.tabPage5.Controls.Add(this.button5);
this.tabPage5.Controls.Add(this.richTextBox3);
this.tabPage5.Controls.Add(this.SettingsButton);
this.tabPage5.Controls.Add(this.UAButton);
this.tabPage5.Location = new System.Drawing.Point(4, 22);
this.tabPage5.Name = "tabPage5";
this.tabPage5.Size = new System.Drawing.Size(405, 258);
@ -2273,9 +2277,9 @@ namespace NovetusLauncher
//
// button26
//
this.button26.Location = new System.Drawing.Point(176, 29);
this.button26.Location = new System.Drawing.Point(176, 28);
this.button26.Name = "button26";
this.button26.Size = new System.Drawing.Size(77, 21);
this.button26.Size = new System.Drawing.Size(77, 23);
this.button26.TabIndex = 57;
this.button26.Text = "Clear Cache";
this.button26.UseVisualStyleBackColor = true;
@ -2322,13 +2326,22 @@ namespace NovetusLauncher
// button9
//
this.button9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button9.Location = new System.Drawing.Point(91, 4);
this.button9.Location = new System.Drawing.Point(92, 4);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(69, 23);
this.button9.Size = new System.Drawing.Size(73, 23);
this.button9.TabIndex = 37;
this.button9.Text = "Reset CFG";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.Button9Click);
this.UAButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.UAButton.Location = new System.Drawing.Point(70, 28);
this.UAButton.Name = "UAButton";
this.UAButton.Size = new System.Drawing.Size(95, 23);
this.UAButton.TabIndex = 37;
this.UAButton.Text = "Install UserAgent";
this.UAButton.UseVisualStyleBackColor = true;
this.UAButton.Click += new System.EventHandler(this.Button21Click);
//
// checkBox3
//
@ -2358,7 +2371,7 @@ namespace NovetusLauncher
this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button5.Location = new System.Drawing.Point(14, 4);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(69, 23);
this.button5.Size = new System.Drawing.Size(73, 23);
this.button5.TabIndex = 10;
this.button5.Text = "Save CFG";
this.button5.UseVisualStyleBackColor = true;
@ -2367,7 +2380,7 @@ namespace NovetusLauncher
this.SettingsButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.SettingsButton.Location = new System.Drawing.Point(14, 28);
this.SettingsButton.Name = "button5";
this.SettingsButton.Size = new System.Drawing.Size(146, 23);
this.SettingsButton.Size = new System.Drawing.Size(55, 23);
this.SettingsButton.TabIndex = 10;
this.SettingsButton.Text = "Settings";
this.SettingsButton.UseVisualStyleBackColor = true;
@ -2391,9 +2404,9 @@ namespace NovetusLauncher
this.button21.Name = "button21";
this.button21.Size = new System.Drawing.Size(35, 20);
this.button21.TabIndex = 44;
this.button21.Text = "UA";
this.button21.Text = "SDK";
this.button21.UseVisualStyleBackColor = true;
this.button21.Click += new System.EventHandler(this.Button21Click);
this.button21.Click += new System.EventHandler(this.button34_Click);
//
// textBox5
//
@ -2639,6 +2652,7 @@ namespace NovetusLauncher
private System.Windows.Forms.TabPage tabPage6;
private System.Windows.Forms.Button button9;
private System.Windows.Forms.Button SettingsButton;
private System.Windows.Forms.Button UAButton;
private System.Windows.Forms.TextBox textBox6;
private System.Windows.Forms.Button button8;
private System.Windows.Forms.TextBox textBox5;

View File

@ -146,6 +146,12 @@
<Compile Include="SDK\ClientScriptDocumentation.Designer.cs">
<DependentUpon>ClientScriptDocumentation.cs</DependentUpon>
</Compile>
<Compile Include="SDK\DiogenesEditor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SDK\DiogenesEditor.Designer.cs">
<DependentUpon>DiogenesEditor.cs</DependentUpon>
</Compile>
<Compile Include="SDK\ItemMaker.cs">
<SubType>Form</SubType>
</Compile>
@ -203,6 +209,9 @@
<EmbeddedResource Include="SDK\ClientScriptDocumentation.resx">
<DependentUpon>ClientScriptDocumentation.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SDK\DiogenesEditor.resx">
<DependentUpon>DiogenesEditor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SDK\ItemMaker.resx">
<DependentUpon>ItemMaker.cs</DependentUpon>
</EmbeddedResource>

View File

@ -346,7 +346,7 @@ namespace NovetusLauncher
this.studioToolStripMenuItem,
this.no3dToolStripMenuItem});
this.tagsToolStripMenuItem.Name = "tagsToolStripMenuItem";
this.tagsToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.tagsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.tagsToolStripMenuItem.Text = "Add Tags";
//
// clientToolStripMenuItem
@ -394,7 +394,7 @@ namespace NovetusLauncher
this.debuggingToolStripMenuItem,
this.argsToolStripMenuItem});
this.variablesToolStripMenuItem.Name = "variablesToolStripMenuItem";
this.variablesToolStripMenuItem.Size = new System.Drawing.Size(157, 22);
this.variablesToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.variablesToolStripMenuItem.Text = "Add Variables";
//
// generalToolStripMenuItem
@ -946,7 +946,7 @@ namespace NovetusLauncher
// documentationToolStripMenuItem1
//
this.documentationToolStripMenuItem1.Name = "documentationToolStripMenuItem1";
this.documentationToolStripMenuItem1.Size = new System.Drawing.Size(157, 22);
this.documentationToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.documentationToolStripMenuItem1.Text = "Documentation";
this.documentationToolStripMenuItem1.Click += new System.EventHandler(this.documentationToolStripMenuItem_Click);
//
@ -998,7 +998,7 @@ namespace NovetusLauncher
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(234, 340);
this.label8.Location = new System.Drawing.Point(466, 5);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(92, 13);
this.label8.TabIndex = 29;
@ -1007,7 +1007,7 @@ namespace NovetusLauncher
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(323, 340);
this.label9.Location = new System.Drawing.Point(559, 5);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(63, 13);
this.label9.TabIndex = 30;
@ -1018,7 +1018,7 @@ namespace NovetusLauncher
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(632, 362);
this.ClientSize = new System.Drawing.Size(632, 336);
this.Controls.Add(this.label9);
this.Controls.Add(this.label8);
this.Controls.Add(this.label7);

View File

@ -206,6 +206,7 @@ namespace NovetusLauncher
void NewToolStripMenuItemClick(object sender, EventArgs e)
{
label9.Text = "Not Loaded";
UsesPlayerName = false;
UsesID = false;
Warning = "";
@ -236,7 +237,7 @@ namespace NovetusLauncher
using (var ofd = new OpenFileDialog())
{
ofd.Filter = "Novetus Clientinfo files (*.nov)|*.nov";
ofd.FilterIndex = 2;
ofd.FilterIndex = 1;
ofd.FileName = "clientinfo.nov";
ofd.Title = "Load clientinfo.nov";
if (ofd.ShowDialog() == DialogResult.OK)
@ -341,7 +342,7 @@ namespace NovetusLauncher
using (var sfd = new SaveFileDialog())
{
sfd.Filter = "Novetus Clientinfo files (*.nov)|*.nov";
sfd.FilterIndex = 2;
sfd.FilterIndex = 1;
sfd.FileName = "clientinfo.nov";
sfd.Title = "Save clientinfo.nov";
@ -428,7 +429,7 @@ namespace NovetusLauncher
using (var sfd = new SaveFileDialog())
{
sfd.Filter = "Text file (*.txt)|*.txt";
sfd.FilterIndex = 2;
sfd.FilterIndex = 1;
sfd.FileName = "clientinfo.txt";
sfd.Title = "Save clientinfo.txt";
@ -445,7 +446,6 @@ namespace NovetusLauncher
CustomArgs.ToString()
};
File.WriteAllLines(sfd.FileName, lines);
SelectedClientInfoPath = Path.GetDirectoryName(sfd.FileName);
}
}
}

View File

@ -0,0 +1,153 @@
namespace NovetusLauncher.SDK
{
partial class DiogenesEditor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DiogenesEditor));
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.saveAsTextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.menuStrip1.SuspendLayout();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.fileToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(804, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
//
// fileToolStripMenuItem
//
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.newToolStripMenuItem,
this.loadToolStripMenuItem,
this.saveToolStripMenuItem,
this.saveAsTextToolStripMenuItem});
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
this.fileToolStripMenuItem.Text = "File";
//
// newToolStripMenuItem
//
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
this.newToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.newToolStripMenuItem.Text = "New";
this.newToolStripMenuItem.Click += new System.EventHandler(this.NewToolStripMenuItemClick);
//
// loadToolStripMenuItem
//
this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
this.loadToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.loadToolStripMenuItem.Text = "Load";
this.loadToolStripMenuItem.Click += new System.EventHandler(this.LoadToolStripMenuItemClick);
//
// saveToolStripMenuItem
//
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.saveToolStripMenuItem.Text = "Save";
this.saveToolStripMenuItem.Click += new System.EventHandler(this.SaveToolStripMenuItemClick);
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(2, 27);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.Size = new System.Drawing.Size(800, 423);
this.richTextBox1.TabIndex = 1;
this.richTextBox1.Text = "";
//
// saveAsTextToolStripMenuItem
//
this.saveAsTextToolStripMenuItem.Name = "saveAsTextToolStripMenuItem";
this.saveAsTextToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.saveAsTextToolStripMenuItem.Text = "Save as Text File";
this.saveAsTextToolStripMenuItem.Click += new System.EventHandler(this.saveAsTextFileToolStripMenuItem_Click);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(630, 5);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(93, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Diogenes Version:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(729, 5);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(63, 13);
this.label2.TabIndex = 3;
this.label2.Text = "Not Loaded";
//
// DiogenesEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.ClientSize = new System.Drawing.Size(804, 452);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.menuStrip1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "DiogenesEditor";
this.Text = "Diogenes Editor";
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
private System.Windows.Forms.RichTextBox richTextBox1;
private System.Windows.Forms.ToolStripMenuItem saveAsTextToolStripMenuItem;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
}
}

View File

@ -0,0 +1,128 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace NovetusLauncher.SDK
{
public partial class DiogenesEditor : Form
{
public DiogenesEditor()
{
InitializeComponent();
}
public static string DiogenesCrypt(string word)
{
StringBuilder result = new StringBuilder("");
byte[] bytes = Encoding.ASCII.GetBytes(word);
foreach (byte singular in bytes)
{
result.Append(Convert.ToChar(0x55 ^ singular));
}
return result.ToString();
}
void NewToolStripMenuItemClick(object sender, EventArgs e)
{
label2.Text = "Not Loaded";
richTextBox1.Text = "";
}
void LoadToolStripMenuItemClick(object sender, EventArgs e)
{
using (var ofd = new OpenFileDialog())
{
ofd.Filter = "ROBLOX Diogenes filter (diogenes.fnt)|diogenes.fnt";
ofd.FilterIndex = 1;
ofd.FileName = "diogenes.fnt";
ofd.Title = "Load diogenes.fnt";
if (ofd.ShowDialog() == DialogResult.OK)
{
StringBuilder builder = new StringBuilder();
using (StreamReader reader = new StreamReader(ofd.FileName))
{
while (!reader.EndOfStream)
{
string line = reader.ReadLine();
try
{
line = DiogenesCrypt(line);
label2.Text = "v2";
}
catch(Exception)
{
label2.Text = "v1";
continue;
}
builder.Append(line + Environment.NewLine);
}
}
richTextBox1.Text = builder.ToString();
}
}
}
void SaveToolStripMenuItemClick(object sender, EventArgs e)
{
using (var sfd = new SaveFileDialog())
{
sfd.Filter = "ROBLOX Diogenes filter v2 (diogenes.fnt)|diogenes.fnt|ROBLOX Diogenes filter v1 (diogenes.fnt)|diogenes.fnt";
sfd.FilterIndex = 1;
sfd.FileName = "diogenes.fnt";
sfd.Title = "Save diogenes.fnt";
if (sfd.ShowDialog() == DialogResult.OK)
{
StringBuilder builder = new StringBuilder();
foreach (string s in richTextBox1.Lines)
{
if (sfd.FilterIndex == 1)
{
builder.Append(DiogenesCrypt(s) + Environment.NewLine);
label2.Text = "v2";
}
else
{
builder.Append(s + Environment.NewLine);
label2.Text = "v1";
}
}
using (StreamWriter sw = File.CreateText(sfd.FileName))
{
sw.Write(builder.ToString());
}
}
}
}
void saveAsTextFileToolStripMenuItem_Click(object sender, EventArgs e)
{
using (var sfd = new SaveFileDialog())
{
sfd.Filter = "Text file (*.txt)|*.txt";
sfd.FilterIndex = 1;
sfd.FileName = "diogenes.txt";
sfd.Title = "Save diogenes.txt";
if (sfd.ShowDialog() == DialogResult.OK)
{
File.WriteAllLines(sfd.FileName, richTextBox1.Lines);
}
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -65,7 +65,8 @@
"Splash Tester",
"RBXMeshConverter GUI",
"ROBLOX Script Generator",
"ROBLOX Legacy Place Converter"});
"ROBLOX Legacy Place Converter",
"Diogenes Editor"});
this.listBox1.Location = new System.Drawing.Point(12, 70);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(260, 95);

View File

@ -1,4 +1,5 @@
using System;
using NovetusLauncher.SDK;
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
@ -95,7 +96,7 @@ namespace NovetusLauncher
else if (listBox1.SelectedIndex == 6)
{
Process proc = new Process();
proc.StartInfo.FileName = GlobalVars.ConfigDirData + "\\RSG_1_4.exe";
proc.StartInfo.FileName = GlobalVars.ConfigDirData + "\\RSG.exe";
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.UseShellExecute = false;
proc.Start();
@ -103,11 +104,16 @@ namespace NovetusLauncher
else if (listBox1.SelectedIndex == 7)
{
Process proc = new Process();
proc.StartInfo.FileName = GlobalVars.ConfigDirData + "\\RSG_1_4.exe";
proc.StartInfo.FileName = GlobalVars.ConfigDirData + "\\Roblox_Legacy_Place_Converter.exe";
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.UseShellExecute = false;
proc.Start();
}
else if (listBox1.SelectedIndex == 8)
{
DiogenesEditor dio = new DiogenesEditor();
dio.Show();
}
}
}
}