From 9a7203c8b6e05e9b155eaacc34d46a9be71bf9d7 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 12 Apr 2015 22:04:14 -0700 Subject: [PATCH] OWSE addition and a few dev tweaks --- pk3DS/Main.Designer.cs | 22 +- pk3DS/Main.cs | 80 ++-- pk3DS/Main.resx | 36 -- pk3DS/Subforms/OWSE.cs | 273 +++++++++++ pk3DS/Subforms/OWSE.designer.cs | 806 ++++++++++++++++++++++++++++++++ pk3DS/Subforms/OWSE.resx | 120 +++++ pk3DS/pk3DS.csproj | 19 +- 7 files changed, 1277 insertions(+), 79 deletions(-) create mode 100644 pk3DS/Subforms/OWSE.cs create mode 100644 pk3DS/Subforms/OWSE.designer.cs create mode 100644 pk3DS/Subforms/OWSE.resx diff --git a/pk3DS/Main.Designer.cs b/pk3DS/Main.Designer.cs index 077d399..0590ca1 100644 --- a/pk3DS/Main.Designer.cs +++ b/pk3DS/Main.Designer.cs @@ -49,12 +49,12 @@ private void InitializeComponent() this.pBar1 = new System.Windows.Forms.ProgressBar(); this.L_About = new System.Windows.Forms.Label(); this.GB_ExeFS = new System.Windows.Forms.GroupBox(); + this.B_OPower = new System.Windows.Forms.Button(); this.B_Pickup = new System.Windows.Forms.Button(); this.B_Mart = new System.Windows.Forms.Button(); this.B_MoveTutor = new System.Windows.Forms.Button(); this.B_TMHM = new System.Windows.Forms.Button(); this.RTB_Status = new System.Windows.Forms.RichTextBox(); - this.B_OPower = new System.Windows.Forms.Button(); this.GB_RomFS.SuspendLayout(); this.GB_ExeFS.SuspendLayout(); this.SuspendLayout(); @@ -300,6 +300,16 @@ private void InitializeComponent() this.GB_ExeFS.TabStop = false; this.GB_ExeFS.Text = "ExeFS Editing Tools"; // + // B_OPower + // + this.B_OPower.Location = new System.Drawing.Point(350, 19); + this.B_OPower.Name = "B_OPower"; + this.B_OPower.Size = new System.Drawing.Size(74, 23); + this.B_OPower.TabIndex = 4; + this.B_OPower.Text = "O-Power"; + this.B_OPower.UseVisualStyleBackColor = true; + this.B_OPower.Click += new System.EventHandler(this.B_OPower_Click); + // // B_Pickup // this.B_Pickup.Location = new System.Drawing.Point(6, 19); @@ -352,16 +362,6 @@ private void InitializeComponent() this.RTB_Status.TabIndex = 7; this.RTB_Status.Text = ""; // - // B_OPower - // - this.B_OPower.Location = new System.Drawing.Point(350, 19); - this.B_OPower.Name = "B_OPower"; - this.B_OPower.Size = new System.Drawing.Size(74, 23); - this.B_OPower.TabIndex = 4; - this.B_OPower.Text = "O-Power"; - this.B_OPower.UseVisualStyleBackColor = true; - this.B_OPower.Click += new System.EventHandler(this.B_OPower_Click); - // // Main // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index 80490f8..a7f3a0e 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -51,15 +51,18 @@ public Main() if (File.Exists("config.ini")) { string path = File.ReadAllText("config.ini"); - if (Directory.Exists("personal")) { Directory.Delete("personal", true); } // Clear data on form load. + if (Directory.Exists("personal") && !skipBoth) { Directory.Delete("personal", true); } // Clear data on form load. if (path.Length > 0) openQuick(path); - } + } + string filename = Path.GetFileNameWithoutExtension(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName); + skipBoth = (filename.IndexOf("3DSkip", StringComparison.Ordinal) >= 0); } public static bool oras; public static string RomFS; public static string ExeFS; public volatile int threads; private static string[] allGARCs = { "gametext", "storytext", "personal", "trpoke", "trdata", "evolution", "megaevo", "levelup", "eggmove", "item", "move", "maisonpkS", "maisontrS", "maisonpkN", "maisontrN" }; + private bool skipBoth; // Main Form Methods private void L_About_Click(object sender, EventArgs e) @@ -94,10 +97,11 @@ private void L_About_Click(object sender, EventArgs e) } private void L_Game_Click(object sender, EventArgs e) { - if (GB_RomFS.Enabled && RomFS != null && ModifierKeys == Keys.Control) - if (DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Restore Original Files?")) - restoreGARCs(oras, allGARCs); + if (!GB_RomFS.Enabled || RomFS == null || ModifierKeys != Keys.Control) return; + if (DialogResult.Yes == Util.Prompt(MessageBoxButtons.YesNo, "Restore Original Files?")) + restoreGARCs(oras, allGARCs); } + private void B_Open_Click(object sender, EventArgs e) { FolderBrowserDialog fbd = new FolderBrowserDialog(); @@ -113,11 +117,9 @@ private void changeLanguage(object sender, EventArgs e) updateStatus(String.Format("GARC Get: {0} @ {1}... ", "gametext", getGARCFileName("gametext"))); threadGet(RomFS + getGARCFileName("gametext"), "gametext", true, true); while (threads > 0) Thread.Sleep(50); - if (!Directory.Exists("personal")) - { - updateStatus(String.Format("GARC Get: {0} @ {1}... ", "personal", getGARCFileName("personal"))); - threadGet(RomFS + getGARCFileName("personal"), "personal", true, true); - } + if (Directory.Exists("personal")) return; + updateStatus(String.Format("GARC Get: {0} @ {1}... ", "personal", getGARCFileName("personal"))); + threadGet(RomFS + getGARCFileName("personal"), "personal", true, true); }).Start(); } private void formClosing(object sender, FormClosingEventArgs e) @@ -128,7 +130,7 @@ private void formClosing(object sender, FormClosingEventArgs e) try { if (TB_Path.Text.Length > 0) File.WriteAllText("config.ini", TB_Path.Text); - if (!GB_RomFS.Enabled) return; // No data/threads need to be addressed if we haven't loaded anything. + if (!GB_RomFS.Enabled || skipBoth) return; // No data/threads need to be addressed if we haven't loaded anything. // Set the GameText back as other forms may have edited it. updateStatus(String.Format("GARC Get: {0} @ {1}... ", "gametext", getGARCFileName("gametext"))); @@ -235,15 +237,12 @@ private bool checkIfExeFS(string path) if (files.Length != 3) return false; FileInfo fi = new FileInfo(files[0]); - if (fi.Name.Contains("code")) - { - if (fi.Length % 0x200 != 0 && (Util.Prompt(MessageBoxButtons.YesNo, "Detected Compressed code.bin.", "Decompress? File will be replaced.") == DialogResult.Yes)) - new Thread(() => { threads++; new BLZCoder(new[] { "-d", files[0] }, pBar1); threads--; Util.Alert("Decompressed!"); }).Start(); + if (!fi.Name.Contains("code")) return false; + if (fi.Length % 0x200 != 0 && (Util.Prompt(MessageBoxButtons.YesNo, "Detected Compressed code.bin.", "Decompress? File will be replaced.") == DialogResult.Yes)) + new Thread(() => { threads++; new BLZCoder(new[] { "-d", files[0] }, pBar1); threads--; Util.Alert("Decompressed!"); }).Start(); - ExeFS = path; - return true; - } - return false; + ExeFS = path; + return true; } private void tabMain_DragEnter(object sender, DragEventArgs e) { @@ -341,13 +340,33 @@ private void B_Trainer_Click(object sender, EventArgs e) private void B_Wild_Click(object sender, EventArgs e) { if (threads > 0) { Util.Alert("Please wait for all operations to finish first."); return; } + bool advanced = (ModifierKeys == Keys.Alt); new Thread(() => { - string[] files = { "encdata" }; - fileGet(files, false); - if (oras) { Invoke((Action)(() => new RSWE().ShowDialog())); } - else { Invoke((Action)(() => new XYWE().ShowDialog())); } - fileSet(files); + if (advanced) + { + string[] files = { "encdata", "storytext" }; + fileGet(files, false); + Invoke((MethodInvoker)delegate { Enabled = false; }); + { + Invoke((Action)(() => new xytext(Directory.GetFiles("storytext")).Show())); + Invoke((Action)(() => new OWSE().Show())); + while (Application.OpenForms.Count > 1) + Thread.Sleep(200); + } + Invoke((MethodInvoker)delegate { Enabled = true; }); + fileSet(files); + } + else + { + string[] files = { "encdata" }; + fileGet(files, false); + if (oras) + { Invoke((Action)(() => new RSWE().ShowDialog())); } + else + { Invoke((Action)(() => new XYWE().ShowDialog())); } + fileSet(files); + } }).Start(); } private void B_Evolution_Click(object sender, EventArgs e) @@ -417,10 +436,10 @@ private void B_EggMove_Click(object sender, EventArgs e) }).Start(); } // RomFS File Requesting Method Wrapper - private void fileGet(IEnumerable files, bool skipDecompression = true, bool skipGet = false) + private void fileGet(string[] files, bool skipDecompression = true, bool skipGet = false) { if (ModifierKeys == (Keys.Control | Keys.Shift)) restoreGARCs(oras, files.ToArray()); - if (skipGet) return; + if (skipGet || skipBoth) return; foreach (string toEdit in files) { string GARC = getGARCFileName(toEdit); @@ -431,6 +450,7 @@ private void fileGet(IEnumerable files, bool skipDecompression = true, b } private void fileSet(IEnumerable files, bool keep = false) { + if (skipBoth) return; foreach (string toEdit in files) { string GARC = getGARCFileName(toEdit); @@ -525,6 +545,12 @@ public string getGARCPath(int A, int B, int C) } public bool getGARC(string infile, string outfolder, bool PB, bool bypassExt = false) { + if (skipBoth && Directory.Exists(outfolder)) + { + updateStatus(String.Format("Skipped - Exists!"), false); + threads--; + return true; + } try { bool success = GARCTool.garcUnpack(infile, outfolder, bypassExt, (PB) ? pBar1 : null, null, true, bypassExt); @@ -536,7 +562,7 @@ public bool getGARC(string infile, string outfolder, bool PB, bool bypassExt = f } public bool setGARC(string outfile, string infolder, bool PB) { - if (ModifierKeys == Keys.Control && Util.Prompt(MessageBoxButtons.YesNo, "Cancel writing data back to GARC?") == DialogResult.Yes) + if (skipBoth || (ModifierKeys == Keys.Control && Util.Prompt(MessageBoxButtons.YesNo, "Cancel writing data back to GARC?") == DialogResult.Yes)) { threads--; updateStatus(String.Format("Aborted!"), false); return false; } try diff --git a/pk3DS/Main.resx b/pk3DS/Main.resx index 9e20e12..2709f75 100644 --- a/pk3DS/Main.resx +++ b/pk3DS/Main.resx @@ -162,42 +162,6 @@ True - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - True diff --git a/pk3DS/Subforms/OWSE.cs b/pk3DS/Subforms/OWSE.cs new file mode 100644 index 0000000..0bab2cd --- /dev/null +++ b/pk3DS/Subforms/OWSE.cs @@ -0,0 +1,273 @@ +using System; +using System.IO; +using System.Linq; +using System.Windows.Forms; + +namespace pk3DS +{ + public partial class OWSE : Form + { + public OWSE() + { + InitializeComponent(); + openQuick(Directory.GetFiles("encdata")); + } + private string[] encdatapaths; + private string[] filepaths; + private string[] gameLocations = Main.getText((Main.oras) ? 90 : 72); + private string[] zdLocations; + + internal static Random rand = new Random(); + internal static uint rnd32() + { + return (uint)(rand.Next(1 << 30)) << 2 | (uint)(rand.Next(1 << 2)); + } + + private byte[] zonedata; + private void openQuick(string[] encdata) + { + // Gather + encdatapaths = encdata; + Array.Sort(encdatapaths); + filepaths = encdatapaths.Skip(2).Take(encdatapaths.Length - 2).ToArray(); + zonedata = File.ReadAllBytes(encdatapaths[0]); + zdLocations = new string[filepaths.Length]; + rawLocations = new string[filepaths.Length]; + + // Analyze + for (int f = 0; f < filepaths.Length; f++) + { + string name = Path.GetFileNameWithoutExtension(filepaths[f]); + + int LocationNum = Convert.ToInt16(name.Substring(4, name.Length - 4)); + int indNum = LocationNum * 56 + 0x1C; + string LocationName = gameLocations[zonedata[indNum] + (0x100 * (zonedata[indNum + 1] & 1))]; + zdLocations[f] = (LocationNum.ToString("000") + " - " + LocationName); + rawLocations[f] = LocationName; + } + + // Assign + CB_LocationID.DataSource = zdLocations; + CB_LocationID.Enabled = true; + CB_LocationID_SelectedIndexChanged(null, null); + NUD_WMap.Maximum = zdLocations.Length; // Cap map warp destinations to the amount of maps. + } + + private int entry = -1; + private byte[][] locationData; + private string[] rawLocations; + private void CB_LocationID_SelectedIndexChanged(object sender, EventArgs e) + { + setEntry(); + entry = CB_LocationID.SelectedIndex; + getEntry(); + } + private void getEntry() + { + if (entry < 0) return; + RTB_F.Text = RTB_O.Text = richTextBox2.Text = RTB_T.Text = string.Empty; + byte[] raw = File.ReadAllBytes(filepaths[entry]); + locationData = Util.unpackMini(raw, "ZO"); + if (locationData == null) return; + + RichTextBox[] rtba = {RTB_MapInfo, RTB_OWSC, RTB_MapSC, RTB_Encounter, RTB_File5}; + for (int i = 0; i < rtba.Length; i++) + rtba[i].Text = BitConverter.ToString(locationData[i]).Replace('-', ' '); + + // File 0 - ?? + + // File 1 - Overworld Setup & Script + getOWSData(); + + // File 2 - Map Script + getScriptData(); + + // File 3 - Encounters + + // File 4 - ?? + } + private void setEntry() + { + //if (entry < 0) return; + //byte[] raw = Util.packMini(locationData, "ZO"); + //File.WriteAllBytes(filepaths[entry], raw); + } + + private byte[][] fData; + private byte[][] nData; + private byte[][] wData; + private byte[][] tData; + private byte[] OWScriptData; + + private void getScriptData() + { + byte[] data = locationData[2]; + if (data.Length > 4) + { + uint length = BitConverter.ToUInt32(data, 0); + byte[] ScriptData = data.Skip(4).Take(data.Length - 4).ToArray(); + RTB_MS.Text = Util.getHexString(ScriptData); + + RTB_MS.Width = RTB_MS.Text.Length < 25 * 3 * 16 ? 245 : 260; + L_MS1.Text = "1:0x" + BitConverter.ToUInt32(ScriptData, 0x8).ToString("X4"); + L_MS2.Text = "2:0x" + BitConverter.ToUInt32(ScriptData, 0xC).ToString("X4"); + } + } + private void getOWSData() + { + byte[] data = locationData[1]; + int len = BitConverter.ToInt32(data, 0); + + RTB_zonedata.Text = BitConverter.ToString(zonedata.Skip(56 * entry).Take(56).ToArray()).Replace('-', ' '); + + byte[] owData = data.Skip(4).Take(len).ToArray(); + // Process owData Header + using (var s = new MemoryStream(owData)) + using (var br = new BinaryReader(s)) + { + // Prepare Data + byte F = br.ReadByte(); fData = new byte[255][]; for (int i = 0; i < 255; i++) fData[i] = new byte[flen]; + byte N = br.ReadByte(); nData = new byte[255][]; for (int i = 0; i < 255; i++) nData[i] = new byte[nlen]; + byte W = br.ReadByte(); wData = new byte[255][]; for (int i = 0; i < 255; i++) wData[i] = new byte[wlen]; + byte T = br.ReadByte(); tData = new byte[255][]; for (int i = 0; i < 255; i++) tData[i] = new byte[tlen]; + + // Set Counters + NUD_FurnCount.Value = F; changeFurnitureCount(null, null); + NUD_NPCCount.Value = N; changeNPCCount(null, null); + NUD_WarpCount.Value = W; changeWarpCount(null, null); + NUD_TrigCount.Value = T; changeTriggerCount(null, null); + + // Collect/Load Data + for (int i = 0; i < F; i++) fData[i] = br.ReadBytes(flen); + for (int i = 0; i < N; i++) nData[i] = br.ReadBytes(nlen); + for (int i = 0; i < W; i++) wData[i] = br.ReadBytes(wlen); + for (int i = 0; i < T; i++) tData[i] = br.ReadBytes(tlen); + NUD_FE.Value = (NUD_FE.Maximum < 0) ? -1 : 0; changeFurniture(null, null); + NUD_NE.Value = (NUD_NE.Maximum < 0) ? -1 : 0; changeOverworld(null, null); + NUD_WE.Value = (NUD_WE.Maximum < 0) ? -1 : 0; changeWarp(null, null); + NUD_TE.Value = (NUD_TE.Maximum < 0) ? -1 : 0; changeTrigger(null, null); + } + + // Process Scripts + OWScriptData = data.Skip(4 + owData.Length).Take(data.Length - 4 - owData.Length).ToArray(); + if (OWScriptData.Length > 4) + { + byte[] ScriptData = OWScriptData.Skip(4).Take(OWScriptData.Length - 4).ToArray(); + RTB_S.Text = Util.getHexString(ScriptData); + + RTB_S.Width = RTB_S.Text.Length < 25*3*16 ? 245 : 260; + L_SL1.Text = "1:0x" + BitConverter.ToUInt32(ScriptData, 0x8).ToString("X4"); + L_SL2.Text = "2:0x" + BitConverter.ToUInt32(ScriptData, 0xC).ToString("X4"); + } + } + + // Overworld Functions + private const int flen = 0x14; + private const int nlen = 0x30; + private const int wlen = 0x18; + private const int tlen = 0x18; + #region Enabling + internal static void toggleEnable(NumericUpDown master, NumericUpDown slave) + { + slave.Maximum = master.Value - 1; + slave.Enabled = slave.Maximum > -1; + slave.Minimum = (slave.Enabled) ? 0 : -1; + } + private void changeFurnitureCount(object sender, EventArgs e) + { + toggleEnable(NUD_FurnCount, NUD_FE); + } + private void changeNPCCount(object sender, EventArgs e) + { + toggleEnable(NUD_NPCCount, NUD_NE); + } + private void changeWarpCount(object sender, EventArgs e) + { + toggleEnable(NUD_WarpCount, NUD_WE); + } + private void changeTriggerCount(object sender, EventArgs e) + { + toggleEnable(NUD_TrigCount, NUD_TE); + } + #endregion + private int fEntry, nEntry, wEntry, tEntry = -1; + private void changeFurniture(object sender, EventArgs e) + { + if (NUD_FE.Value < 0) return; + + // Set Old Data + if (fEntry > 0) + { + byte[] oldData = fData[fEntry]; + fData[fEntry] = oldData; + } + fEntry = (int)NUD_FE.Value; + + // Load New Data + byte[] data = fData[fEntry]; + RTB_F.Text = Util.getHexString(data); + } + private void changeOverworld(object sender, EventArgs e) + { + if (NUD_NE.Value < 0) return; + + // Set Old Data + if (nEntry > 0) + { + byte[] oldData = nData[nEntry]; + nData[nEntry] = oldData; + } + nEntry = (int)NUD_NE.Value; + + // Load New Data + byte[] data = nData[nEntry]; + RTB_O.Text = Util.getHexString(data); + + ushort ID = BitConverter.ToUInt16(data, 0x4); + + NUD_OID.Value = ID; + } + private void changeWarp(object sender, EventArgs e) + { + if (NUD_WE.Value < 0) return; + + // Set Old Data + if (wEntry > 0) + { + byte[] oldData = wData[wEntry]; + wData[wEntry] = oldData; + } + wEntry = (int)NUD_WE.Value; + + // Load New Data + byte[] data = wData[wEntry]; + richTextBox2.Text = Util.getHexString(data); + + ushort Map = BitConverter.ToUInt16(data, 0x4); + ushort Dest = BitConverter.ToUInt16(data, 0x6); + + // Flavor Mods + string MapName = zdLocations[Map]; + L_WarpDest.Text = MapName; + + NUD_WMap.Value = Map; + NUD_WTile.Value = Dest; + } + private void changeTrigger(object sender, EventArgs e) + { + if (NUD_TE.Value < 0) return; + + // Set Old Data + if (tEntry > 0) + { + byte[] oldData = tData[tEntry]; + tData[tEntry] = oldData; + } + tEntry = (int)NUD_FE.Value; + + // Load New Data + byte[] data = tData[tEntry]; + RTB_T.Text = Util.getHexString(data); + } + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/OWSE.designer.cs b/pk3DS/Subforms/OWSE.designer.cs new file mode 100644 index 0000000..ce983f6 --- /dev/null +++ b/pk3DS/Subforms/OWSE.designer.cs @@ -0,0 +1,806 @@ +namespace pk3DS +{ + partial class OWSE + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.CB_LocationID = new System.Windows.Forms.ComboBox(); + this.L_Location = new System.Windows.Forms.Label(); + this.RTB_MapInfo = new System.Windows.Forms.RichTextBox(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tb_MapInfo = new System.Windows.Forms.TabPage(); + this.tb_OWSC = new System.Windows.Forms.TabPage(); + this.NUD_TrigCount = new System.Windows.Forms.NumericUpDown(); + this.L_TriggerCount = new System.Windows.Forms.Label(); + this.NUD_WarpCount = new System.Windows.Forms.NumericUpDown(); + this.L_WarpCount = new System.Windows.Forms.Label(); + this.NUD_FurnCount = new System.Windows.Forms.NumericUpDown(); + this.L_FurnitureCount = new System.Windows.Forms.Label(); + this.tc_OWSC = new System.Windows.Forms.TabControl(); + this.tb_Furniture = new System.Windows.Forms.TabPage(); + this.tb_Overworld = new System.Windows.Forms.TabPage(); + this.RTB_O = new System.Windows.Forms.RichTextBox(); + this.tb_Warp = new System.Windows.Forms.TabPage(); + this.tb_Trigger = new System.Windows.Forms.TabPage(); + this.NUD_NPCCount = new System.Windows.Forms.NumericUpDown(); + this.L_NPCCount = new System.Windows.Forms.Label(); + this.tb_MSC = new System.Windows.Forms.TabPage(); + this.tb_Encounters = new System.Windows.Forms.TabPage(); + this.TB_File5 = new System.Windows.Forms.TabPage(); + this.RTB_OWSC = new System.Windows.Forms.RichTextBox(); + this.RTB_MapSC = new System.Windows.Forms.RichTextBox(); + this.RTB_Encounter = new System.Windows.Forms.RichTextBox(); + this.RTB_File5 = new System.Windows.Forms.RichTextBox(); + this.NUD_FE = new System.Windows.Forms.NumericUpDown(); + this.L_FE = new System.Windows.Forms.Label(); + this.NUD_NE = new System.Windows.Forms.NumericUpDown(); + this.L_NE = new System.Windows.Forms.Label(); + this.NUD_WE = new System.Windows.Forms.NumericUpDown(); + this.L_WE = new System.Windows.Forms.Label(); + this.NUD_TE = new System.Windows.Forms.NumericUpDown(); + this.L_TE = new System.Windows.Forms.Label(); + this.tb_Script = new System.Windows.Forms.TabPage(); + this.RTB_zonedata = new System.Windows.Forms.RichTextBox(); + this.RTB_F = new System.Windows.Forms.RichTextBox(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.RTB_T = new System.Windows.Forms.RichTextBox(); + this.RTB_S = new System.Windows.Forms.RichTextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.NUD_WMap = new System.Windows.Forms.NumericUpDown(); + this.NUD_WTile = new System.Windows.Forms.NumericUpDown(); + this.L_SL1 = new System.Windows.Forms.Label(); + this.L_SL2 = new System.Windows.Forms.Label(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.L_MS2 = new System.Windows.Forms.Label(); + this.L_MS1 = new System.Windows.Forms.Label(); + this.RTB_MS = new System.Windows.Forms.RichTextBox(); + this.L_WarpDest = new System.Windows.Forms.Label(); + this.NUD_OID = new System.Windows.Forms.NumericUpDown(); + this.L_OID = new System.Windows.Forms.Label(); + this.tabControl1.SuspendLayout(); + this.tb_OWSC.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TrigCount)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WarpCount)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FurnCount)).BeginInit(); + this.tc_OWSC.SuspendLayout(); + this.tb_Furniture.SuspendLayout(); + this.tb_Overworld.SuspendLayout(); + this.tb_Warp.SuspendLayout(); + this.tb_Trigger.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_NPCCount)).BeginInit(); + this.tb_MSC.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FE)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_NE)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WE)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TE)).BeginInit(); + this.tb_Script.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WMap)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WTile)).BeginInit(); + this.tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_OID)).BeginInit(); + this.SuspendLayout(); + // + // CB_LocationID + // + this.CB_LocationID.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_LocationID.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_LocationID.Enabled = false; + this.CB_LocationID.FormattingEnabled = true; + this.CB_LocationID.Location = new System.Drawing.Point(46, 5); + this.CB_LocationID.Name = "CB_LocationID"; + this.CB_LocationID.Size = new System.Drawing.Size(164, 21); + this.CB_LocationID.TabIndex = 407; + this.CB_LocationID.SelectedIndexChanged += new System.EventHandler(this.CB_LocationID_SelectedIndexChanged); + // + // L_Location + // + this.L_Location.AutoSize = true; + this.L_Location.Location = new System.Drawing.Point(12, 8); + this.L_Location.Name = "L_Location"; + this.L_Location.Size = new System.Drawing.Size(28, 13); + this.L_Location.TabIndex = 411; + this.L_Location.Text = "Loc:"; + // + // RTB_MapInfo + // + this.RTB_MapInfo.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_MapInfo.Location = new System.Drawing.Point(125, 3); + this.RTB_MapInfo.Name = "RTB_MapInfo"; + this.RTB_MapInfo.ReadOnly = true; + this.RTB_MapInfo.Size = new System.Drawing.Size(358, 36); + this.RTB_MapInfo.TabIndex = 412; + this.RTB_MapInfo.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tb_MapInfo); + this.tabControl1.Controls.Add(this.tb_OWSC); + this.tabControl1.Controls.Add(this.tb_MSC); + this.tabControl1.Controls.Add(this.tb_Encounters); + this.tabControl1.Controls.Add(this.TB_File5); + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Location = new System.Drawing.Point(12, 32); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(494, 372); + this.tabControl1.TabIndex = 417; + // + // tb_MapInfo + // + this.tb_MapInfo.Location = new System.Drawing.Point(4, 22); + this.tb_MapInfo.Name = "tb_MapInfo"; + this.tb_MapInfo.Padding = new System.Windows.Forms.Padding(3); + this.tb_MapInfo.Size = new System.Drawing.Size(486, 346); + this.tb_MapInfo.TabIndex = 0; + this.tb_MapInfo.Text = "Map Info"; + this.tb_MapInfo.UseVisualStyleBackColor = true; + // + // tb_OWSC + // + this.tb_OWSC.Controls.Add(this.NUD_TrigCount); + this.tb_OWSC.Controls.Add(this.L_TriggerCount); + this.tb_OWSC.Controls.Add(this.NUD_WarpCount); + this.tb_OWSC.Controls.Add(this.L_WarpCount); + this.tb_OWSC.Controls.Add(this.NUD_FurnCount); + this.tb_OWSC.Controls.Add(this.L_FurnitureCount); + this.tb_OWSC.Controls.Add(this.tc_OWSC); + this.tb_OWSC.Controls.Add(this.NUD_NPCCount); + this.tb_OWSC.Controls.Add(this.L_NPCCount); + this.tb_OWSC.Location = new System.Drawing.Point(4, 22); + this.tb_OWSC.Name = "tb_OWSC"; + this.tb_OWSC.Padding = new System.Windows.Forms.Padding(3); + this.tb_OWSC.Size = new System.Drawing.Size(486, 346); + this.tb_OWSC.TabIndex = 1; + this.tb_OWSC.Text = "OW & SC"; + this.tb_OWSC.UseVisualStyleBackColor = true; + // + // NUD_TrigCount + // + this.NUD_TrigCount.Location = new System.Drawing.Point(422, 88); + this.NUD_TrigCount.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_TrigCount.Name = "NUD_TrigCount"; + this.NUD_TrigCount.Size = new System.Drawing.Size(53, 20); + this.NUD_TrigCount.TabIndex = 421; + this.NUD_TrigCount.ValueChanged += new System.EventHandler(this.changeTriggerCount); + // + // L_TriggerCount + // + this.L_TriggerCount.Location = new System.Drawing.Point(350, 88); + this.L_TriggerCount.Name = "L_TriggerCount"; + this.L_TriggerCount.Size = new System.Drawing.Size(66, 15); + this.L_TriggerCount.TabIndex = 422; + this.L_TriggerCount.Text = "Trigger:"; + this.L_TriggerCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_WarpCount + // + this.NUD_WarpCount.Location = new System.Drawing.Point(422, 68); + this.NUD_WarpCount.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_WarpCount.Name = "NUD_WarpCount"; + this.NUD_WarpCount.Size = new System.Drawing.Size(53, 20); + this.NUD_WarpCount.TabIndex = 419; + this.NUD_WarpCount.ValueChanged += new System.EventHandler(this.changeWarpCount); + // + // L_WarpCount + // + this.L_WarpCount.Location = new System.Drawing.Point(350, 68); + this.L_WarpCount.Name = "L_WarpCount"; + this.L_WarpCount.Size = new System.Drawing.Size(66, 15); + this.L_WarpCount.TabIndex = 420; + this.L_WarpCount.Text = "Warp:"; + this.L_WarpCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_FurnCount + // + this.NUD_FurnCount.Location = new System.Drawing.Point(422, 28); + this.NUD_FurnCount.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_FurnCount.Name = "NUD_FurnCount"; + this.NUD_FurnCount.Size = new System.Drawing.Size(53, 20); + this.NUD_FurnCount.TabIndex = 417; + this.NUD_FurnCount.ValueChanged += new System.EventHandler(this.changeFurnitureCount); + // + // L_FurnitureCount + // + this.L_FurnitureCount.Location = new System.Drawing.Point(350, 28); + this.L_FurnitureCount.Name = "L_FurnitureCount"; + this.L_FurnitureCount.Size = new System.Drawing.Size(66, 15); + this.L_FurnitureCount.TabIndex = 418; + this.L_FurnitureCount.Text = "Furniture:"; + this.L_FurnitureCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // tc_OWSC + // + this.tc_OWSC.Controls.Add(this.tb_Furniture); + this.tc_OWSC.Controls.Add(this.tb_Overworld); + this.tc_OWSC.Controls.Add(this.tb_Warp); + this.tc_OWSC.Controls.Add(this.tb_Trigger); + this.tc_OWSC.Controls.Add(this.tb_Script); + this.tc_OWSC.Location = new System.Drawing.Point(6, 6); + this.tc_OWSC.Name = "tc_OWSC"; + this.tc_OWSC.SelectedIndex = 0; + this.tc_OWSC.Size = new System.Drawing.Size(342, 337); + this.tc_OWSC.TabIndex = 415; + // + // tb_Furniture + // + this.tb_Furniture.Controls.Add(this.RTB_F); + this.tb_Furniture.Controls.Add(this.NUD_FE); + this.tb_Furniture.Controls.Add(this.L_FE); + this.tb_Furniture.Location = new System.Drawing.Point(4, 22); + this.tb_Furniture.Name = "tb_Furniture"; + this.tb_Furniture.Padding = new System.Windows.Forms.Padding(3); + this.tb_Furniture.Size = new System.Drawing.Size(334, 311); + this.tb_Furniture.TabIndex = 0; + this.tb_Furniture.Text = "Furniture"; + this.tb_Furniture.UseVisualStyleBackColor = true; + // + // tb_Overworld + // + this.tb_Overworld.Controls.Add(this.NUD_OID); + this.tb_Overworld.Controls.Add(this.L_OID); + this.tb_Overworld.Controls.Add(this.NUD_NE); + this.tb_Overworld.Controls.Add(this.L_NE); + this.tb_Overworld.Controls.Add(this.RTB_O); + this.tb_Overworld.Location = new System.Drawing.Point(4, 22); + this.tb_Overworld.Name = "tb_Overworld"; + this.tb_Overworld.Padding = new System.Windows.Forms.Padding(3); + this.tb_Overworld.Size = new System.Drawing.Size(334, 311); + this.tb_Overworld.TabIndex = 1; + this.tb_Overworld.Text = "Overworld"; + this.tb_Overworld.UseVisualStyleBackColor = true; + // + // RTB_O + // + this.RTB_O.Font = new System.Drawing.Font("Courier New", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_O.Location = new System.Drawing.Point(2, 268); + this.RTB_O.Name = "RTB_O"; + this.RTB_O.ReadOnly = true; + this.RTB_O.Size = new System.Drawing.Size(245, 42); + this.RTB_O.TabIndex = 414; + this.RTB_O.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA " + + "BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF "; + // + // tb_Warp + // + this.tb_Warp.Controls.Add(this.L_WarpDest); + this.tb_Warp.Controls.Add(this.NUD_WTile); + this.tb_Warp.Controls.Add(this.NUD_WMap); + this.tb_Warp.Controls.Add(this.label2); + this.tb_Warp.Controls.Add(this.label1); + this.tb_Warp.Controls.Add(this.richTextBox2); + this.tb_Warp.Controls.Add(this.NUD_WE); + this.tb_Warp.Controls.Add(this.L_WE); + this.tb_Warp.Location = new System.Drawing.Point(4, 22); + this.tb_Warp.Name = "tb_Warp"; + this.tb_Warp.Size = new System.Drawing.Size(334, 311); + this.tb_Warp.TabIndex = 2; + this.tb_Warp.Text = "Warp"; + this.tb_Warp.UseVisualStyleBackColor = true; + // + // tb_Trigger + // + this.tb_Trigger.Controls.Add(this.RTB_T); + this.tb_Trigger.Controls.Add(this.NUD_TE); + this.tb_Trigger.Controls.Add(this.L_TE); + this.tb_Trigger.Location = new System.Drawing.Point(4, 22); + this.tb_Trigger.Name = "tb_Trigger"; + this.tb_Trigger.Size = new System.Drawing.Size(334, 311); + this.tb_Trigger.TabIndex = 3; + this.tb_Trigger.Text = "Trigger"; + this.tb_Trigger.UseVisualStyleBackColor = true; + // + // NUD_NPCCount + // + this.NUD_NPCCount.Location = new System.Drawing.Point(422, 48); + this.NUD_NPCCount.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_NPCCount.Name = "NUD_NPCCount"; + this.NUD_NPCCount.Size = new System.Drawing.Size(53, 20); + this.NUD_NPCCount.TabIndex = 415; + this.NUD_NPCCount.ValueChanged += new System.EventHandler(this.changeNPCCount); + // + // L_NPCCount + // + this.L_NPCCount.Location = new System.Drawing.Point(350, 48); + this.L_NPCCount.Name = "L_NPCCount"; + this.L_NPCCount.Size = new System.Drawing.Size(66, 15); + this.L_NPCCount.TabIndex = 416; + this.L_NPCCount.Text = "NPC:"; + this.L_NPCCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // tb_MSC + // + this.tb_MSC.Controls.Add(this.L_MS2); + this.tb_MSC.Controls.Add(this.L_MS1); + this.tb_MSC.Controls.Add(this.RTB_MS); + this.tb_MSC.Location = new System.Drawing.Point(4, 22); + this.tb_MSC.Name = "tb_MSC"; + this.tb_MSC.Size = new System.Drawing.Size(486, 346); + this.tb_MSC.TabIndex = 2; + this.tb_MSC.Text = "Map SC"; + this.tb_MSC.UseVisualStyleBackColor = true; + // + // tb_Encounters + // + this.tb_Encounters.Location = new System.Drawing.Point(4, 22); + this.tb_Encounters.Name = "tb_Encounters"; + this.tb_Encounters.Size = new System.Drawing.Size(486, 346); + this.tb_Encounters.TabIndex = 3; + this.tb_Encounters.Text = "Encounters"; + this.tb_Encounters.UseVisualStyleBackColor = true; + // + // TB_File5 + // + this.TB_File5.Location = new System.Drawing.Point(4, 22); + this.TB_File5.Name = "TB_File5"; + this.TB_File5.Size = new System.Drawing.Size(486, 346); + this.TB_File5.TabIndex = 4; + this.TB_File5.Text = "File 5"; + this.TB_File5.UseVisualStyleBackColor = true; + // + // RTB_OWSC + // + this.RTB_OWSC.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_OWSC.Location = new System.Drawing.Point(125, 45); + this.RTB_OWSC.Name = "RTB_OWSC"; + this.RTB_OWSC.ReadOnly = true; + this.RTB_OWSC.Size = new System.Drawing.Size(358, 36); + this.RTB_OWSC.TabIndex = 418; + this.RTB_OWSC.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // RTB_MapSC + // + this.RTB_MapSC.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_MapSC.Location = new System.Drawing.Point(125, 87); + this.RTB_MapSC.Name = "RTB_MapSC"; + this.RTB_MapSC.ReadOnly = true; + this.RTB_MapSC.Size = new System.Drawing.Size(358, 36); + this.RTB_MapSC.TabIndex = 419; + this.RTB_MapSC.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // RTB_Encounter + // + this.RTB_Encounter.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_Encounter.Location = new System.Drawing.Point(125, 129); + this.RTB_Encounter.Name = "RTB_Encounter"; + this.RTB_Encounter.ReadOnly = true; + this.RTB_Encounter.Size = new System.Drawing.Size(358, 36); + this.RTB_Encounter.TabIndex = 420; + this.RTB_Encounter.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // RTB_File5 + // + this.RTB_File5.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_File5.Location = new System.Drawing.Point(125, 171); + this.RTB_File5.Name = "RTB_File5"; + this.RTB_File5.ReadOnly = true; + this.RTB_File5.Size = new System.Drawing.Size(358, 36); + this.RTB_File5.TabIndex = 421; + this.RTB_File5.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // NUD_FE + // + this.NUD_FE.Location = new System.Drawing.Point(75, 3); + this.NUD_FE.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_FE.Name = "NUD_FE"; + this.NUD_FE.Size = new System.Drawing.Size(53, 20); + this.NUD_FE.TabIndex = 423; + this.NUD_FE.ValueChanged += new System.EventHandler(this.changeFurniture); + // + // L_FE + // + this.L_FE.Location = new System.Drawing.Point(3, 3); + this.L_FE.Name = "L_FE"; + this.L_FE.Size = new System.Drawing.Size(66, 15); + this.L_FE.TabIndex = 424; + this.L_FE.Text = "Entry:"; + this.L_FE.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_NE + // + this.NUD_NE.Location = new System.Drawing.Point(75, 3); + this.NUD_NE.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_NE.Name = "NUD_NE"; + this.NUD_NE.Size = new System.Drawing.Size(53, 20); + this.NUD_NE.TabIndex = 425; + this.NUD_NE.ValueChanged += new System.EventHandler(this.changeOverworld); + // + // L_NE + // + this.L_NE.Location = new System.Drawing.Point(3, 3); + this.L_NE.Name = "L_NE"; + this.L_NE.Size = new System.Drawing.Size(66, 15); + this.L_NE.TabIndex = 426; + this.L_NE.Text = "Entry:"; + this.L_NE.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_WE + // + this.NUD_WE.Location = new System.Drawing.Point(75, 3); + this.NUD_WE.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_WE.Name = "NUD_WE"; + this.NUD_WE.Size = new System.Drawing.Size(53, 20); + this.NUD_WE.TabIndex = 425; + this.NUD_WE.ValueChanged += new System.EventHandler(this.changeWarp); + // + // L_WE + // + this.L_WE.Location = new System.Drawing.Point(3, 3); + this.L_WE.Name = "L_WE"; + this.L_WE.Size = new System.Drawing.Size(66, 15); + this.L_WE.TabIndex = 426; + this.L_WE.Text = "Entry:"; + this.L_WE.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_TE + // + this.NUD_TE.Location = new System.Drawing.Point(75, 3); + this.NUD_TE.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_TE.Name = "NUD_TE"; + this.NUD_TE.Size = new System.Drawing.Size(53, 20); + this.NUD_TE.TabIndex = 425; + this.NUD_TE.ValueChanged += new System.EventHandler(this.changeTrigger); + // + // L_TE + // + this.L_TE.Location = new System.Drawing.Point(3, 3); + this.L_TE.Name = "L_TE"; + this.L_TE.Size = new System.Drawing.Size(66, 15); + this.L_TE.TabIndex = 426; + this.L_TE.Text = "Entry:"; + this.L_TE.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // tb_Script + // + this.tb_Script.Controls.Add(this.L_SL2); + this.tb_Script.Controls.Add(this.L_SL1); + this.tb_Script.Controls.Add(this.RTB_S); + this.tb_Script.Location = new System.Drawing.Point(4, 22); + this.tb_Script.Name = "tb_Script"; + this.tb_Script.Size = new System.Drawing.Size(334, 311); + this.tb_Script.TabIndex = 4; + this.tb_Script.Text = "ScriptData"; + this.tb_Script.UseVisualStyleBackColor = true; + // + // RTB_zonedata + // + this.RTB_zonedata.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_zonedata.Location = new System.Drawing.Point(143, 279); + this.RTB_zonedata.Name = "RTB_zonedata"; + this.RTB_zonedata.ReadOnly = true; + this.RTB_zonedata.Size = new System.Drawing.Size(340, 64); + this.RTB_zonedata.TabIndex = 422; + this.RTB_zonedata.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA " + + "BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 00 11 22 33 44 55" + + " 66 77 88 99 AA BB CC DD EE FF"; + // + // RTB_F + // + this.RTB_F.Font = new System.Drawing.Font("Courier New", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_F.Location = new System.Drawing.Point(2, 268); + this.RTB_F.Name = "RTB_F"; + this.RTB_F.ReadOnly = true; + this.RTB_F.Size = new System.Drawing.Size(245, 42); + this.RTB_F.TabIndex = 425; + this.RTB_F.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA " + + "BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF "; + // + // richTextBox2 + // + this.richTextBox2.Font = new System.Drawing.Font("Courier New", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.richTextBox2.Location = new System.Drawing.Point(2, 268); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.ReadOnly = true; + this.richTextBox2.Size = new System.Drawing.Size(245, 42); + this.richTextBox2.TabIndex = 427; + this.richTextBox2.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA " + + "BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF "; + // + // RTB_T + // + this.RTB_T.Font = new System.Drawing.Font("Courier New", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_T.Location = new System.Drawing.Point(2, 268); + this.RTB_T.Name = "RTB_T"; + this.RTB_T.ReadOnly = true; + this.RTB_T.Size = new System.Drawing.Size(245, 42); + this.RTB_T.TabIndex = 427; + this.RTB_T.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA " + + "BB CC DD EE FF 00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF "; + // + // RTB_S + // + this.RTB_S.Font = new System.Drawing.Font("Courier New", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_S.Location = new System.Drawing.Point(2, 3); + this.RTB_S.Name = "RTB_S"; + this.RTB_S.ReadOnly = true; + this.RTB_S.Size = new System.Drawing.Size(261, 307); + this.RTB_S.TabIndex = 422; + this.RTB_S.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // label1 + // + this.label1.Location = new System.Drawing.Point(3, 34); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(120, 15); + this.label1.TabIndex = 428; + this.label1.Text = "Destination Map:"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label2 + // + this.label2.Location = new System.Drawing.Point(3, 55); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(120, 15); + this.label2.TabIndex = 429; + this.label2.Text = "Destination WarpTile:"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_WMap + // + this.NUD_WMap.Location = new System.Drawing.Point(129, 33); + this.NUD_WMap.Maximum = new decimal(new int[] { + 999, + 0, + 0, + 0}); + this.NUD_WMap.Name = "NUD_WMap"; + this.NUD_WMap.Size = new System.Drawing.Size(53, 20); + this.NUD_WMap.TabIndex = 430; + // + // NUD_WTile + // + this.NUD_WTile.Location = new System.Drawing.Point(129, 54); + this.NUD_WTile.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_WTile.Name = "NUD_WTile"; + this.NUD_WTile.Size = new System.Drawing.Size(53, 20); + this.NUD_WTile.TabIndex = 431; + // + // L_SL1 + // + this.L_SL1.AutoSize = true; + this.L_SL1.Location = new System.Drawing.Point(269, 7); + this.L_SL1.Name = "L_SL1"; + this.L_SL1.Size = new System.Drawing.Size(19, 13); + this.L_SL1.TabIndex = 423; + this.L_SL1.Text = "L1"; + // + // L_SL2 + // + this.L_SL2.AutoSize = true; + this.L_SL2.Location = new System.Drawing.Point(269, 27); + this.L_SL2.Name = "L_SL2"; + this.L_SL2.Size = new System.Drawing.Size(19, 13); + this.L_SL2.TabIndex = 424; + this.L_SL2.Text = "L2"; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.RTB_zonedata); + this.tabPage1.Controls.Add(this.RTB_MapInfo); + this.tabPage1.Controls.Add(this.RTB_File5); + this.tabPage1.Controls.Add(this.RTB_OWSC); + this.tabPage1.Controls.Add(this.RTB_Encounter); + this.tabPage1.Controls.Add(this.RTB_MapSC); + this.tabPage1.Location = new System.Drawing.Point(4, 22); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Size = new System.Drawing.Size(486, 346); + this.tabPage1.TabIndex = 5; + this.tabPage1.Text = "RAW"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // L_MS2 + // + this.L_MS2.AutoSize = true; + this.L_MS2.Location = new System.Drawing.Point(270, 27); + this.L_MS2.Name = "L_MS2"; + this.L_MS2.Size = new System.Drawing.Size(19, 13); + this.L_MS2.TabIndex = 427; + this.L_MS2.Text = "L2"; + // + // L_MS1 + // + this.L_MS1.AutoSize = true; + this.L_MS1.Location = new System.Drawing.Point(270, 7); + this.L_MS1.Name = "L_MS1"; + this.L_MS1.Size = new System.Drawing.Size(19, 13); + this.L_MS1.TabIndex = 426; + this.L_MS1.Text = "L1"; + // + // RTB_MS + // + this.RTB_MS.Font = new System.Drawing.Font("Courier New", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.RTB_MS.Location = new System.Drawing.Point(3, 3); + this.RTB_MS.Name = "RTB_MS"; + this.RTB_MS.ReadOnly = true; + this.RTB_MS.Size = new System.Drawing.Size(261, 307); + this.RTB_MS.TabIndex = 425; + this.RTB_MS.Text = "00 11 22 33 44 55 66 77 88 99 AA BB CC DD EE FF"; + // + // L_WarpDest + // + this.L_WarpDest.Location = new System.Drawing.Point(188, 34); + this.L_WarpDest.Name = "L_WarpDest"; + this.L_WarpDest.Size = new System.Drawing.Size(120, 15); + this.L_WarpDest.TabIndex = 432; + this.L_WarpDest.Text = "Dest:"; + this.L_WarpDest.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // NUD_OID + // + this.NUD_OID.Location = new System.Drawing.Point(129, 33); + this.NUD_OID.Maximum = new decimal(new int[] { + 999, + 0, + 0, + 0}); + this.NUD_OID.Name = "NUD_OID"; + this.NUD_OID.Size = new System.Drawing.Size(53, 20); + this.NUD_OID.TabIndex = 435; + // + // L_OID + // + this.L_OID.Location = new System.Drawing.Point(3, 34); + this.L_OID.Name = "L_OID"; + this.L_OID.Size = new System.Drawing.Size(120, 15); + this.L_OID.TabIndex = 433; + this.L_OID.Text = "Entity ID:"; + this.L_OID.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // OWSE + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(514, 412); + this.Controls.Add(this.tabControl1); + this.Controls.Add(this.L_Location); + this.Controls.Add(this.CB_LocationID); + this.MaximizeBox = false; + this.Name = "OWSE"; + this.Text = "Overworld Editor"; + this.tabControl1.ResumeLayout(false); + this.tb_OWSC.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TrigCount)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WarpCount)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FurnCount)).EndInit(); + this.tc_OWSC.ResumeLayout(false); + this.tb_Furniture.ResumeLayout(false); + this.tb_Overworld.ResumeLayout(false); + this.tb_Warp.ResumeLayout(false); + this.tb_Trigger.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.NUD_NPCCount)).EndInit(); + this.tb_MSC.ResumeLayout(false); + this.tb_MSC.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FE)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_NE)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WE)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TE)).EndInit(); + this.tb_Script.ResumeLayout(false); + this.tb_Script.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WMap)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_WTile)).EndInit(); + this.tabPage1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.NUD_OID)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ComboBox CB_LocationID; + private System.Windows.Forms.Label L_Location; + private System.Windows.Forms.RichTextBox RTB_MapInfo; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabPage tb_MapInfo; + private System.Windows.Forms.TabPage tb_OWSC; + private System.Windows.Forms.TabPage tb_MSC; + private System.Windows.Forms.TabPage tb_Encounters; + private System.Windows.Forms.TabPage TB_File5; + private System.Windows.Forms.TabControl tc_OWSC; + private System.Windows.Forms.TabPage tb_Furniture; + private System.Windows.Forms.TabPage tb_Overworld; + private System.Windows.Forms.RichTextBox RTB_O; + private System.Windows.Forms.TabPage tb_Warp; + private System.Windows.Forms.TabPage tb_Trigger; + private System.Windows.Forms.RichTextBox RTB_OWSC; + private System.Windows.Forms.RichTextBox RTB_MapSC; + private System.Windows.Forms.RichTextBox RTB_Encounter; + private System.Windows.Forms.RichTextBox RTB_File5; + private System.Windows.Forms.NumericUpDown NUD_TrigCount; + private System.Windows.Forms.Label L_TriggerCount; + private System.Windows.Forms.NumericUpDown NUD_WarpCount; + private System.Windows.Forms.Label L_WarpCount; + private System.Windows.Forms.NumericUpDown NUD_FurnCount; + private System.Windows.Forms.Label L_FurnitureCount; + private System.Windows.Forms.NumericUpDown NUD_NPCCount; + private System.Windows.Forms.Label L_NPCCount; + private System.Windows.Forms.NumericUpDown NUD_FE; + private System.Windows.Forms.Label L_FE; + private System.Windows.Forms.NumericUpDown NUD_NE; + private System.Windows.Forms.Label L_NE; + private System.Windows.Forms.NumericUpDown NUD_WE; + private System.Windows.Forms.Label L_WE; + private System.Windows.Forms.NumericUpDown NUD_TE; + private System.Windows.Forms.Label L_TE; + private System.Windows.Forms.TabPage tb_Script; + private System.Windows.Forms.RichTextBox RTB_zonedata; + private System.Windows.Forms.RichTextBox RTB_F; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.RichTextBox RTB_T; + private System.Windows.Forms.RichTextBox RTB_S; + private System.Windows.Forms.NumericUpDown NUD_WTile; + private System.Windows.Forms.NumericUpDown NUD_WMap; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label L_SL2; + private System.Windows.Forms.Label L_SL1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.Label L_MS2; + private System.Windows.Forms.Label L_MS1; + private System.Windows.Forms.RichTextBox RTB_MS; + private System.Windows.Forms.Label L_WarpDest; + private System.Windows.Forms.NumericUpDown NUD_OID; + private System.Windows.Forms.Label L_OID; + } +} + diff --git a/pk3DS/Subforms/OWSE.resx b/pk3DS/Subforms/OWSE.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/pk3DS/Subforms/OWSE.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/pk3DS/pk3DS.csproj b/pk3DS/pk3DS.csproj index 17759a2..5c7e1d2 100644 --- a/pk3DS/pk3DS.csproj +++ b/pk3DS/pk3DS.csproj @@ -54,6 +54,12 @@ + + Form + + + RSWE.cs + Form @@ -142,11 +148,11 @@ - + Form - - RSWE.cs + + OWSE.cs Form @@ -176,6 +182,9 @@ Main.cs + + RSWE.cs + OPower.cs @@ -231,8 +240,8 @@ RSTE.cs - - RSWE.cs + + OWSE.cs xytext.cs