This commit is contained in:
bmg 2021-08-23 22:02:05 +12:00
commit 72418e6479
46 changed files with 4507 additions and 0 deletions

BIN
.vs/SignToolsGUI/v16/.suo Normal file

Binary file not shown.

6
App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
</startup>
</configuration>

182
Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,182 @@

namespace SignToolsGUI
{
partial class Form1
{
/// <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(Form1));
this.ImagePreview = new System.Windows.Forms.PictureBox();
this.AddImage = new System.Windows.Forms.Button();
this.OpenMap = new System.Windows.Forms.Button();
this.mapdir = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.Locations = new System.Windows.Forms.ComboBox();
this.SaveMap = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.SignType = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.ImagePreview)).BeginInit();
this.SuspendLayout();
//
// ImagePreview
//
this.ImagePreview.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ImagePreview.Location = new System.Drawing.Point(12, 129);
this.ImagePreview.Name = "ImagePreview";
this.ImagePreview.Size = new System.Drawing.Size(298, 151);
this.ImagePreview.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.ImagePreview.TabIndex = 0;
this.ImagePreview.TabStop = false;
//
// AddImage
//
this.AddImage.Enabled = false;
this.AddImage.Location = new System.Drawing.Point(210, 100);
this.AddImage.Name = "AddImage";
this.AddImage.Size = new System.Drawing.Size(100, 23);
this.AddImage.TabIndex = 1;
this.AddImage.Text = "Add Image";
this.AddImage.UseVisualStyleBackColor = true;
this.AddImage.Click += new System.EventHandler(this.AddImage_Click);
//
// OpenMap
//
this.OpenMap.Location = new System.Drawing.Point(104, 45);
this.OpenMap.Name = "OpenMap";
this.OpenMap.Size = new System.Drawing.Size(100, 25);
this.OpenMap.TabIndex = 2;
this.OpenMap.Text = "Open Map";
this.OpenMap.UseVisualStyleBackColor = true;
this.OpenMap.Click += new System.EventHandler(this.OpenMap_Click);
//
// mapdir
//
this.mapdir.Enabled = false;
this.mapdir.Location = new System.Drawing.Point(12, 19);
this.mapdir.Name = "mapdir";
this.mapdir.Size = new System.Drawing.Size(298, 20);
this.mapdir.TabIndex = 3;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 3);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(31, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Map:";
//
// Locations
//
this.Locations.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.Locations.Enabled = false;
this.Locations.FormattingEnabled = true;
this.Locations.Location = new System.Drawing.Point(12, 73);
this.Locations.Name = "Locations";
this.Locations.Size = new System.Drawing.Size(298, 21);
this.Locations.TabIndex = 5;
this.Locations.SelectedIndexChanged += new System.EventHandler(this.Selection);
//
// SaveMap
//
this.SaveMap.Enabled = false;
this.SaveMap.Location = new System.Drawing.Point(210, 45);
this.SaveMap.Name = "SaveMap";
this.SaveMap.Size = new System.Drawing.Size(100, 25);
this.SaveMap.TabIndex = 7;
this.SaveMap.Text = "Save Map";
this.SaveMap.UseVisualStyleBackColor = true;
this.SaveMap.Click += new System.EventHandler(this.SaveMap_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 57);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(52, 13);
this.label2.TabIndex = 8;
this.label2.Text = "Positions:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(9, 110);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(31, 13);
this.label3.TabIndex = 9;
this.label3.Text = "Sign:";
//
// SignType
//
this.SignType.AutoSize = true;
this.SignType.Location = new System.Drawing.Point(46, 110);
this.SignType.Name = "SignType";
this.SignType.Size = new System.Drawing.Size(0, 13);
this.SignType.TabIndex = 10;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1056, 641);
this.Controls.Add(this.SignType);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.SaveMap);
this.Controls.Add(this.Locations);
this.Controls.Add(this.label1);
this.Controls.Add(this.mapdir);
this.Controls.Add(this.OpenMap);
this.Controls.Add(this.AddImage);
this.Controls.Add(this.ImagePreview);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form1";
this.Text = "SignToolsGUI 001";
((System.ComponentModel.ISupportInitialize)(this.ImagePreview)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox ImagePreview;
private System.Windows.Forms.Button AddImage;
private System.Windows.Forms.Button OpenMap;
private System.Windows.Forms.TextBox mapdir;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox Locations;
private System.Windows.Forms.Button SaveMap;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label SignType;
}
}

307
Form1.cs Normal file
View File

@ -0,0 +1,307 @@
using LZ4;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SignToolsGUI
{
public partial class Form1 : Form
{
WorldSerialization worldSerialization = new WorldSerialization();
uint Version;
Dictionary<string, byte[]> SerializedImageData = new Dictionary<string, byte[]>();
Dictionary<string, byte[]> ModdedSerializedImageData = new Dictionary<string, byte[]>();
uint[] signids = { 1447270506, 4057957010, 120534793, 58270319, 4290170446, 3188315846, 3215377795, 1960724311, 3159642196, 3725754530, 1957158128, 637495597, 1283107100, 4006597758, 3715545584, 3479792512, 3618197174, 550204242 };
private Dictionary<string, SignSize> _signSizes = new Dictionary<string, SignSize>
{
{"4006597758", new SignSize(512, 512)},
{"3215377795", new SignSize(256, 128)},
{"3159642196", new SignSize(128, 512)},
{"1960724311", new SignSize(128, 256)},
{"3725754530", new SignSize(1024, 512)},
{"1957158128", new SignSize(512, 512)},
{"1447270506", new SignSize(128, 64)},
{"3715545584", new SignSize(256, 128)},
{"3479792512", new SignSize(256, 128)},
{"3618197174", new SignSize(512, 128)},
{"637495597", new SignSize(64, 256)},
{"3188315846", new SignSize(64, 256)},
{"58270319", new SignSize(128, 64)},
{"4290170446", new SignSize(256, 256)},
{"120534793", new SignSize(256, 128)},
{"4057957010", new SignSize(256, 128)},
{"550204242", new SignSize(128, 256)},
{"1283107100", new SignSize(256, 128)},
};
private class SignSize
{
public int Width;
public int Height;
public SignSize(int width, int height)
{
Width = width;
Height = height;
}
}
public Form1()
{
InitializeComponent();
}
public static string Base64Encode(string plainText)
{
var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
return System.Convert.ToBase64String(plainTextBytes);
}
public static string Base64Decode(string base64EncodedData)
{
var base64EncodedBytes = System.Convert.FromBase64String(base64EncodedData);
return System.Text.Encoding.UTF8.GetString(base64EncodedBytes);
}
void XMLDecode(string SerialData)
{
string[] DataParse = SerialData.Split(new string[] { "<position>" }, StringSplitOptions.None);
foreach (string xmldata in DataParse)
{
if (xmldata.Contains("xml version")) continue;
string x = xmldata.Split(new string[] { "</x><y>" }, StringSplitOptions.None)[0].Replace("<x>", "");
string y = xmldata.Split(new string[] { "</y><z>" }, StringSplitOptions.None)[0].Replace("<x>" + x + "</x><y>", "");
string z = xmldata.Split(new string[] { "</z></position>" }, StringSplitOptions.None)[0].Replace("<x>" + x + "</x><y>" + y + "</y><z>", "");
string texture = xmldata.Split(new string[] { "<texture>" }, StringSplitOptions.None)[1].Replace("</texture>", "").Replace("</SerializedImageData>", "");
byte[] ImageData = Convert.FromBase64String(texture);
SerializedImageData.Add("("+ x+", "+y + ", "+z+")", ImageData);
}
}
string XMLEncode()
{
string XMLData = @"<? xml version=""1.0""?><SerializedImageData>";
string SerialData = "";
foreach (KeyValuePair<string, byte[]> _sign in ModdedSerializedImageData)
{
if (_sign.Value.Length != 0)
{
string[] xmlbreakdown = _sign.Key.Replace("(", "").Replace(" ", "").Replace(")", "").Split(',');
SerialData += ("<position>" +
"<x>" + xmlbreakdown[0] + "</x>" +
"<y>" + xmlbreakdown[1] + "</y>" +
"<z>" + xmlbreakdown[2] + "</z>" +
"</position>" +
"<texture>" +
Convert.ToBase64String(_sign.Value) +
"</texture>");
}
}
XMLData = XMLData + SerialData + "</SerializedImageData>";
return XMLData;
}
private void DisableButtons()
{
SaveMap.Enabled = false;
Locations.Enabled = false;
AddImage.Enabled = false;
ImagePreview.Enabled = false;
}
private bool isSign(PrefabData sign)
{
//Checks prefab has a valid sign id
return (signids.Contains(sign.id));
}
byte[] ImageResize(byte[] imageBytes, int width, int height)
{
//Resize image to sign size.
Bitmap resizedImage = new Bitmap(width, height),
sourceImage = new Bitmap(new MemoryStream(imageBytes));
Graphics.FromImage(resizedImage).DrawImage(sourceImage, new Rectangle(0, 0, width, height),
new Rectangle(0, 0, sourceImage.Width, sourceImage.Height), GraphicsUnit.Pixel);
var ms = new MemoryStream();
resizedImage.Save(ms, ImageFormat.Png);
return ms.ToArray();
}
private void OpenMap_Click(object sender, EventArgs e)
{
Locations.Items.Clear();
SerializedImageData.Clear();
ModdedSerializedImageData.Clear();
OpenFileDialog openFileDialog1 = new OpenFileDialog
{
Title = "Rust Map File",
CheckFileExists = true,
CheckPathExists = true,
DefaultExt = "map",
Filter = "map files (*.map)|*.map",
FilterIndex = 2,
RestoreDirectory = true,
ReadOnlyChecked = true,
ShowReadOnly = true
};
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
mapdir.Text = openFileDialog1.FileName;
try
{
worldSerialization.Load(mapdir.Text);
Version = worldSerialization.Version;
//Check for exsisting
for (int i = worldSerialization.world.maps.Count - 1; i >= 0; i--)
{
MapData mapdata = worldSerialization.world.maps[i];
if (mapdata.name == Base64Encode("SerializedImageData"))
{
XMLDecode(System.Text.Encoding.ASCII.GetString(mapdata.data));
}
}
//Scan all prefab in map file.
for (int i = worldSerialization.world.prefabs.Count - 1; i >= 0; i--)
{
PrefabData prefabdata = worldSerialization.world.prefabs[i];
if (isSign(prefabdata))
{
string location = "(" + prefabdata.position.x.ToString("0.0") + ", " + prefabdata.position.y.ToString("0.0") + ", " + prefabdata.position.z.ToString("0.0") + ")";
Locations.Items.Add(location + " " + prefabdata.id.ToString());
if(SerializedImageData.ContainsKey(location))
{
ModdedSerializedImageData.Add(location, SerializedImageData[location]);
}
else
{
ModdedSerializedImageData.Add(location, new byte[0]);
}
}
}
if(Locations.Items.Count == 0)
{
MessageBox.Show("No Signs are on this map");
return;
}
Locations.Text = Locations.Items[0].ToString();
SaveMap.Enabled = true;
Locations.Enabled = true;
AddImage.Enabled = true;
ImagePreview.Enabled = true;
SignType.Enabled = true;
}
catch
{
MessageBox.Show("Failed to open map");
DisableButtons();
}
}
}
private void Selection(object sender, EventArgs e)
{
string[] selected = Locations.GetItemText(Locations.SelectedItem).Split(')');
SignType.Text = selected[1].Replace(" ", "");
Size size = new Size(_signSizes[SignType.Text].Width, _signSizes[SignType.Text].Height);
ImagePreview.Size = size;
if (ModdedSerializedImageData.ContainsKey(selected[0]+")"))
{
if (ModdedSerializedImageData[selected[0] + ")"].Length != 0)
{
ImagePreview.Image = ByteToImage(ModdedSerializedImageData[selected[0] + ")"]);
}
else
{
ImagePreview.Image = null;
}
}
}
public static Bitmap ByteToImage(byte[] blob)
{
MemoryStream mStream = new MemoryStream();
byte[] pData = blob;
mStream.Write(pData, 0, Convert.ToInt32(pData.Length));
Bitmap bm = new Bitmap(mStream, false);
mStream.Dispose();
return bm;
}
private void AddImage_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog1 = new OpenFileDialog
{
Title = "Image File",
CheckFileExists = true,
CheckPathExists = true,
DefaultExt = "png",
Filter = "png files (*.png)|*.png",
FilterIndex = 2,
RestoreDirectory = true,
ReadOnlyChecked = true,
ShowReadOnly = true
};
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
byte[] NewImage = ImageResize(File.ReadAllBytes(openFileDialog1.FileName), ImagePreview.Width, ImagePreview.Height);
string[] selected = Locations.GetItemText(Locations.SelectedItem).Split(')');
if (ModdedSerializedImageData.ContainsKey(selected[0] + ")"))
{
ModdedSerializedImageData[selected[0] + ")"] = NewImage;
ImagePreview.Image = ByteToImage(ModdedSerializedImageData[selected[0] + ")"]);
}
}
}
private void SaveMap_Click(object sender, EventArgs e)
{
string XMLData = XMLEncode();
//Check if mapdata already has image data
MapData sd = worldSerialization.GetMap(Base64Encode("SerializedImageData"));
if (sd == null)
{
worldSerialization.AddMap(Base64Encode("SerializedImageData"), Encoding.ASCII.GetBytes(XMLData));
}
else
{
sd.data = Encoding.ASCII.GetBytes(XMLData);
}
string mapfile = mapdir.Text.Replace(".map",".signs.map");
if (File.Exists(mapfile))
{
File.Delete(mapfile);
}
using (FileStream fileStream = new FileStream(mapfile, FileMode.CreateNew, FileAccess.Write, FileShare.None))
{
using (BinaryWriter binaryWriter = new BinaryWriter(fileStream))
{
binaryWriter.Write(Version);
using (LZ4Stream stream = new LZ4Stream(fileStream, LZ4StreamMode.Compress))
{
WorldData.Serialize(stream, worldSerialization.world);
}
}
}
MessageBox.Show("Saved");
}
}
}

3558
Form1.resx Normal file

File diff suppressed because it is too large Load Diff

22
Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SignToolsGUI
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SignToolsGUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SignToolsGUI")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4451ea1c-1244-42a2-b24d-7315acfbd2f5")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

70
Properties/Resources.Designer.cs generated Normal file
View File

@ -0,0 +1,70 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SignToolsGUI.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SignToolsGUI.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

117
Properties/Resources.resx Normal file
View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

29
Properties/Settings.Designer.cs generated Normal file
View File

@ -0,0 +1,29 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SignToolsGUI.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

95
SignToolsGUI.csproj Normal file
View File

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4451EA1C-1244-42A2-B24D-7315ACFBD2F5}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>SignToolsGUI</RootNamespace>
<AssemblyName>SignToolsGUI</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="LZ4">
<HintPath>..\..\..\..\..\rust\RustServerFiles\RustDedicated_Data\Managed\LZ4.dll</HintPath>
</Reference>
<Reference Include="Rust.Data">
<HintPath>..\..\..\Desktop\Rust.Data.dll</HintPath>
</Reference>
<Reference Include="Rust.World">
<HintPath>..\..\..\Desktop\Rust.World.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\rust\RustServerFiles\RustDedicated_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

25
SignToolsGUI.sln Normal file
View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SignToolsGUI", "SignToolsGUI.csproj", "{4451EA1C-1244-42A2-B24D-7315ACFBD2F5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4451EA1C-1244-42A2-B24D-7315ACFBD2F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4451EA1C-1244-42A2-B24D-7315ACFBD2F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4451EA1C-1244-42A2-B24D-7315ACFBD2F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4451EA1C-1244-42A2-B24D-7315ACFBD2F5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {12E1C669-AB92-48E6-9636-D2134FD93123}
EndGlobalSection
EndGlobal

Binary file not shown.

BIN
bin/Release/LZ4.dll Normal file

Binary file not shown.

BIN
bin/Release/LZ4pn.dll Normal file

Binary file not shown.

BIN
bin/Release/Rust.Data.dll Normal file

Binary file not shown.

BIN
bin/Release/Rust.World.dll Normal file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7" />
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7", FrameworkDisplayName = ".NET Framework 4.7")]

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
7534ca21690f0c6e12a2dc79e988d61119da372d

View File

@ -0,0 +1,19 @@
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\SignToolsGUI.exe.config
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\SignToolsGUI.exe
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\SignToolsGUI.pdb
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.csprojAssemblyReference.cache
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.Form1.resources
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.Properties.Resources.resources
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.csproj.GenerateResource.cache
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.csproj.CoreCompileInputs.cache
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.exe
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.pdb
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\Rust.Data.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\Rust.World.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\Facepunch.System.exe
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\System.Buffers.dll
C:\Users\bmg\source\repos\SignToolsGUI\obj\Debug\SignToolsGUI.csproj.CopyComplete
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\LZ4.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\LZ4pn.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\UnityEngine.CoreModule.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Debug\UnityEngine.SharedInternalsModule.dll

Binary file not shown.

Binary file not shown.

BIN
obj/Debug/SignToolsGUI.exe Normal file

Binary file not shown.

BIN
obj/Debug/SignToolsGUI.pdb Normal file

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7", FrameworkDisplayName = ".NET Framework 4.7")]

Binary file not shown.

View File

@ -0,0 +1 @@
a85020bbc6fc54e0c3d3cdb7ff9cc161770abe5b

View File

@ -0,0 +1,18 @@
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\SignToolsGUI.exe.config
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\SignToolsGUI.exe
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\SignToolsGUI.pdb
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\LZ4.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\Rust.Data.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\Rust.World.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\UnityEngine.CoreModule.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\LZ4pn.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\Facepunch.System.exe
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\System.Buffers.dll
C:\Users\bmg\source\repos\SignToolsGUI\bin\Release\UnityEngine.SharedInternalsModule.dll
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.Form1.resources
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.Properties.Resources.resources
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.csproj.GenerateResource.cache
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.csproj.CoreCompileInputs.cache
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.csproj.CopyComplete
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.exe
C:\Users\bmg\source\repos\SignToolsGUI\obj\Release\SignToolsGUI.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.