Delete windows forms splitter
This commit is contained in:
parent
b3c9add134
commit
d9b843d3db
@ -1,10 +1,8 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.26206.0
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "rabiribi_splitter", "rabiribi_splitter\rabiribi_splitter.csproj", "{1933C91E-7300-42A1-A0C5-2D54B95C5BBB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "rabi_splitter_WPF", "rabi_splitter_WPF\rabi_splitter_WPF.csproj", "{7BEE24D8-8C97-41A3-9F90-6C60D450C3C3}"
|
||||
EndProject
|
||||
Global
|
||||
@ -13,10 +11,6 @@ Global
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{1933C91E-7300-42A1-A0C5-2D54B95C5BBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1933C91E-7300-42A1-A0C5-2D54B95C5BBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1933C91E-7300-42A1-A0C5-2D54B95C5BBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1933C91E-7300-42A1-A0C5-2D54B95C5BBB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7BEE24D8-8C97-41A3-9F90-6C60D450C3C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7BEE24D8-8C97-41A3-9F90-6C60D450C3C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7BEE24D8-8C97-41A3-9F90-6C60D450C3C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
372
rabiribi_splitter/Form1.Designer.cs
generated
372
rabiribi_splitter/Form1.Designer.cs
generated
@ -1,372 +0,0 @@
|
||||
namespace rabiribi_splitter
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.connectBtn = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.rbStatus = new System.Windows.Forms.Label();
|
||||
this.portNum = new System.Windows.Forms.NumericUpDown();
|
||||
this.cbBossStart = new System.Windows.Forms.CheckBox();
|
||||
this.cbBossEnd = new System.Windows.Forms.CheckBox();
|
||||
this.musicLabel = new System.Windows.Forms.Label();
|
||||
this.cbBoss = new System.Windows.Forms.CheckBox();
|
||||
this.cbComputer = new System.Windows.Forms.CheckBox();
|
||||
this.cbBoss1 = new System.Windows.Forms.CheckBox();
|
||||
this.cbBoss3 = new System.Windows.Forms.CheckBox();
|
||||
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
|
||||
this.t1 = new System.Windows.Forms.Label();
|
||||
this.t2 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.cbSideCh = new System.Windows.Forms.CheckBox();
|
||||
this.debugLog = new System.Windows.Forms.TextBox();
|
||||
this.debugArea = new System.Windows.Forms.CheckBox();
|
||||
this.cbASG = new System.Windows.Forms.CheckBox();
|
||||
this.cbTM = new System.Windows.Forms.CheckBox();
|
||||
this.cbIGT = new System.Windows.Forms.CheckBox();
|
||||
this.cbIrisu = new System.Windows.Forms.CheckBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.portNum)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(13, 13);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(137, 12);
|
||||
this.label2.TabIndex = 2;
|
||||
this.label2.Text = "LiveSplit Server Port:";
|
||||
//
|
||||
// connectBtn
|
||||
//
|
||||
this.connectBtn.Location = new System.Drawing.Point(212, 8);
|
||||
this.connectBtn.Name = "connectBtn";
|
||||
this.connectBtn.Size = new System.Drawing.Size(75, 23);
|
||||
this.connectBtn.TabIndex = 4;
|
||||
this.connectBtn.Text = "Connect";
|
||||
this.connectBtn.UseVisualStyleBackColor = true;
|
||||
this.connectBtn.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(13, 37);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(107, 12);
|
||||
this.label3.TabIndex = 5;
|
||||
this.label3.Text = "Rabi-Ribi Status:";
|
||||
//
|
||||
// rbStatus
|
||||
//
|
||||
this.rbStatus.AutoSize = true;
|
||||
this.rbStatus.Location = new System.Drawing.Point(126, 37);
|
||||
this.rbStatus.Name = "rbStatus";
|
||||
this.rbStatus.Size = new System.Drawing.Size(41, 12);
|
||||
this.rbStatus.TabIndex = 6;
|
||||
this.rbStatus.Text = "label4";
|
||||
//
|
||||
// portNum
|
||||
//
|
||||
this.portNum.Location = new System.Drawing.Point(149, 9);
|
||||
this.portNum.Maximum = new decimal(new int[] {
|
||||
65536,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.portNum.Name = "portNum";
|
||||
this.portNum.Size = new System.Drawing.Size(57, 21);
|
||||
this.portNum.TabIndex = 11;
|
||||
this.portNum.Value = new decimal(new int[] {
|
||||
16834,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// cbBossStart
|
||||
//
|
||||
this.cbBossStart.AutoSize = true;
|
||||
this.cbBossStart.Location = new System.Drawing.Point(15, 53);
|
||||
this.cbBossStart.Name = "cbBossStart";
|
||||
this.cbBossStart.Size = new System.Drawing.Size(192, 16);
|
||||
this.cbBossStart.TabIndex = 12;
|
||||
this.cbBossStart.Text = "Split when BOSS music STARTS";
|
||||
this.cbBossStart.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbBossEnd
|
||||
//
|
||||
this.cbBossEnd.AutoSize = true;
|
||||
this.cbBossEnd.Checked = true;
|
||||
this.cbBossEnd.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbBossEnd.Location = new System.Drawing.Point(15, 75);
|
||||
this.cbBossEnd.Name = "cbBossEnd";
|
||||
this.cbBossEnd.Size = new System.Drawing.Size(180, 16);
|
||||
this.cbBossEnd.TabIndex = 13;
|
||||
this.cbBossEnd.Text = "Split when BOSS music ENDS";
|
||||
this.cbBossEnd.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// musicLabel
|
||||
//
|
||||
this.musicLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.musicLabel.AutoSize = true;
|
||||
this.musicLabel.Location = new System.Drawing.Point(13, 256);
|
||||
this.musicLabel.Name = "musicLabel";
|
||||
this.musicLabel.Size = new System.Drawing.Size(41, 12);
|
||||
this.musicLabel.TabIndex = 14;
|
||||
this.musicLabel.Text = "label1";
|
||||
//
|
||||
// cbBoss
|
||||
//
|
||||
this.cbBoss.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.cbBoss.AutoSize = true;
|
||||
this.cbBoss.Enabled = false;
|
||||
this.cbBoss.Location = new System.Drawing.Point(15, 271);
|
||||
this.cbBoss.Name = "cbBoss";
|
||||
this.cbBoss.Size = new System.Drawing.Size(84, 16);
|
||||
this.cbBoss.TabIndex = 15;
|
||||
this.cbBoss.Text = "BOSS event";
|
||||
this.cbBoss.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbComputer
|
||||
//
|
||||
this.cbComputer.AutoSize = true;
|
||||
this.cbComputer.Checked = true;
|
||||
this.cbComputer.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbComputer.Location = new System.Drawing.Point(15, 97);
|
||||
this.cbComputer.Name = "cbComputer";
|
||||
this.cbComputer.Size = new System.Drawing.Size(216, 16);
|
||||
this.cbComputer.TabIndex = 16;
|
||||
this.cbComputer.Text = "Split when the computer is found";
|
||||
this.cbComputer.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbBoss1
|
||||
//
|
||||
this.cbBoss1.AutoSize = true;
|
||||
this.cbBoss1.Checked = true;
|
||||
this.cbBoss1.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbBoss1.Location = new System.Drawing.Point(15, 119);
|
||||
this.cbBoss1.Name = "cbBoss1";
|
||||
this.cbBoss1.Size = new System.Drawing.Size(168, 16);
|
||||
this.cbBoss1.TabIndex = 17;
|
||||
this.cbBoss1.Text = "Split when Miru despawns";
|
||||
this.cbBoss1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbBoss3
|
||||
//
|
||||
this.cbBoss3.AutoSize = true;
|
||||
this.cbBoss3.Location = new System.Drawing.Point(402, 141);
|
||||
this.cbBoss3.Name = "cbBoss3";
|
||||
this.cbBoss3.Size = new System.Drawing.Size(276, 16);
|
||||
this.cbBoss3.TabIndex = 19;
|
||||
this.cbBoss3.Text = "Split when Noah 3 HP = 1, ignore her music";
|
||||
this.cbBoss3.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// linkLabel1
|
||||
//
|
||||
this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.linkLabel1.AutoSize = true;
|
||||
this.linkLabel1.Location = new System.Drawing.Point(279, 275);
|
||||
this.linkLabel1.Name = "linkLabel1";
|
||||
this.linkLabel1.Size = new System.Drawing.Size(41, 12);
|
||||
this.linkLabel1.TabIndex = 20;
|
||||
this.linkLabel1.TabStop = true;
|
||||
this.linkLabel1.Text = "GitHub";
|
||||
//
|
||||
// t1
|
||||
//
|
||||
this.t1.AutoSize = true;
|
||||
this.t1.Location = new System.Drawing.Point(498, 37);
|
||||
this.t1.Name = "t1";
|
||||
this.t1.Size = new System.Drawing.Size(41, 12);
|
||||
this.t1.TabIndex = 21;
|
||||
this.t1.Text = "label1";
|
||||
//
|
||||
// t2
|
||||
//
|
||||
this.t2.AutoSize = true;
|
||||
this.t2.Location = new System.Drawing.Point(694, 36);
|
||||
this.t2.Name = "t2";
|
||||
this.t2.Size = new System.Drawing.Size(41, 12);
|
||||
this.t2.TabIndex = 22;
|
||||
this.t2.Text = "label4";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(232, 275);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(41, 12);
|
||||
this.label4.TabIndex = 24;
|
||||
this.label4.Text = "v0.2.1";
|
||||
//
|
||||
// cbSideCh
|
||||
//
|
||||
this.cbSideCh.AutoSize = true;
|
||||
this.cbSideCh.Checked = true;
|
||||
this.cbSideCh.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbSideCh.Location = new System.Drawing.Point(15, 141);
|
||||
this.cbSideCh.Name = "cbSideCh";
|
||||
this.cbSideCh.Size = new System.Drawing.Size(162, 16);
|
||||
this.cbSideCh.TabIndex = 25;
|
||||
this.cbSideCh.Text = "Ignore the Side Chapter";
|
||||
this.cbSideCh.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// debugLog
|
||||
//
|
||||
this.debugLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.debugLog.Location = new System.Drawing.Point(402, 163);
|
||||
this.debugLog.MinimumSize = new System.Drawing.Size(10, 10);
|
||||
this.debugLog.Multiline = true;
|
||||
this.debugLog.Name = "debugLog";
|
||||
this.debugLog.Size = new System.Drawing.Size(10, 105);
|
||||
this.debugLog.TabIndex = 26;
|
||||
//
|
||||
// debugArea
|
||||
//
|
||||
this.debugArea.AutoSize = true;
|
||||
this.debugArea.Location = new System.Drawing.Point(500, 14);
|
||||
this.debugArea.Name = "debugArea";
|
||||
this.debugArea.Size = new System.Drawing.Size(78, 16);
|
||||
this.debugArea.TabIndex = 27;
|
||||
this.debugArea.Text = "debugArea";
|
||||
this.debugArea.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbASG
|
||||
//
|
||||
this.cbASG.AutoSize = true;
|
||||
this.cbASG.Checked = true;
|
||||
this.cbASG.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbASG.Location = new System.Drawing.Point(15, 163);
|
||||
this.cbASG.Name = "cbASG";
|
||||
this.cbASG.Size = new System.Drawing.Size(306, 16);
|
||||
this.cbASG.TabIndex = 28;
|
||||
this.cbASG.Text = "Ignore the next \"SUDDEN DEATH\" (Ignore Alius I)";
|
||||
this.cbASG.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbTM
|
||||
//
|
||||
this.cbTM.AutoSize = true;
|
||||
this.cbTM.Checked = true;
|
||||
this.cbTM.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbTM.Location = new System.Drawing.Point(15, 185);
|
||||
this.cbTM.Name = "cbTM";
|
||||
this.cbTM.Size = new System.Drawing.Size(282, 16);
|
||||
this.cbTM.TabIndex = 29;
|
||||
this.cbTM.Text = "Split when Town Member +2 or Nixie despawns";
|
||||
this.cbTM.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbIGT
|
||||
//
|
||||
this.cbIGT.AutoSize = true;
|
||||
this.cbIGT.Location = new System.Drawing.Point(15, 229);
|
||||
this.cbIGT.Name = "cbIGT";
|
||||
this.cbIGT.Size = new System.Drawing.Size(132, 16);
|
||||
this.cbIGT.TabIndex = 30;
|
||||
this.cbIGT.Text = "Track In-Game Time";
|
||||
this.cbIGT.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cbIrisu
|
||||
//
|
||||
this.cbIrisu.AutoSize = true;
|
||||
this.cbIrisu.Checked = true;
|
||||
this.cbIrisu.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbIrisu.Location = new System.Drawing.Point(15, 207);
|
||||
this.cbIrisu.Name = "cbIrisu";
|
||||
this.cbIrisu.Size = new System.Drawing.Size(144, 16);
|
||||
this.cbIrisu.TabIndex = 31;
|
||||
this.cbIrisu.Text = "Ignore Irisu Phase 1";
|
||||
this.cbIrisu.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(332, 299);
|
||||
this.Controls.Add(this.cbIrisu);
|
||||
this.Controls.Add(this.cbIGT);
|
||||
this.Controls.Add(this.cbTM);
|
||||
this.Controls.Add(this.cbASG);
|
||||
this.Controls.Add(this.debugArea);
|
||||
this.Controls.Add(this.debugLog);
|
||||
this.Controls.Add(this.cbSideCh);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.t2);
|
||||
this.Controls.Add(this.t1);
|
||||
this.Controls.Add(this.linkLabel1);
|
||||
this.Controls.Add(this.cbBoss3);
|
||||
this.Controls.Add(this.cbBoss1);
|
||||
this.Controls.Add(this.cbComputer);
|
||||
this.Controls.Add(this.cbBoss);
|
||||
this.Controls.Add(this.musicLabel);
|
||||
this.Controls.Add(this.cbBossEnd);
|
||||
this.Controls.Add(this.cbBossStart);
|
||||
this.Controls.Add(this.portNum);
|
||||
this.Controls.Add(this.rbStatus);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.connectBtn);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "Form1";
|
||||
this.Text = "Irisu is watching you";
|
||||
((System.ComponentModel.ISupportInitialize)(this.portNum)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button connectBtn;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label rbStatus;
|
||||
private System.Windows.Forms.NumericUpDown portNum;
|
||||
private System.Windows.Forms.CheckBox cbBossStart;
|
||||
private System.Windows.Forms.CheckBox cbBossEnd;
|
||||
private System.Windows.Forms.Label musicLabel;
|
||||
private System.Windows.Forms.CheckBox cbBoss;
|
||||
private System.Windows.Forms.CheckBox cbComputer;
|
||||
private System.Windows.Forms.CheckBox cbBoss1;
|
||||
private System.Windows.Forms.CheckBox cbBoss3;
|
||||
private System.Windows.Forms.LinkLabel linkLabel1;
|
||||
private System.Windows.Forms.Label t1;
|
||||
private System.Windows.Forms.Label t2;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.CheckBox cbSideCh;
|
||||
private System.Windows.Forms.TextBox debugLog;
|
||||
private System.Windows.Forms.CheckBox debugArea;
|
||||
private System.Windows.Forms.CheckBox cbASG;
|
||||
private System.Windows.Forms.CheckBox cbTM;
|
||||
private System.Windows.Forms.CheckBox cbIGT;
|
||||
private System.Windows.Forms.CheckBox cbIrisu;
|
||||
}
|
||||
}
|
||||
|
@ -1,465 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Net.Sockets;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using System.Timers;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace rabiribi_splitter
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
private static TcpClient tcpclient;
|
||||
private static NetworkStream networkStream;
|
||||
private static System.Timers.Timer timer;
|
||||
private bool bossbattle = false;
|
||||
private int lastmusicid;
|
||||
private Regex titleReg = new Regex(@"ver.*?(\d+\.?\d+.*)$");
|
||||
private Thread memoryThread;
|
||||
private int lastmoney;
|
||||
private bool rabiribiready;
|
||||
private string rabiribititle;
|
||||
private string rabiver;
|
||||
private int veridx;
|
||||
private List<int> lastbosslist = new List<int>();
|
||||
private int lastnoah3hp = -1;
|
||||
private int lastmapid;
|
||||
private int lastTM;
|
||||
private DateTime LastTMAddTime=DateTime.MinValue;
|
||||
void DebugLog(string log)
|
||||
{
|
||||
if (this.InvokeRequired)
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
this.debugLog.AppendText(log + "\r\n");
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.debugLog.AppendText(log + "\r\n");
|
||||
}
|
||||
}
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
LinkLabel.Link link = new LinkLabel.Link();
|
||||
link.LinkData = "https://github.com/copyliu/rabiribi_splitter";
|
||||
linkLabel1.Links.Add(link);
|
||||
linkLabel1.LinkClicked += LinkLabel1_LinkClicked;
|
||||
memoryThread = new Thread(() =>
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
readmemory();
|
||||
Thread.Sleep(1000/60);
|
||||
}
|
||||
|
||||
});
|
||||
memoryThread.IsBackground = true;
|
||||
memoryThread.Start();
|
||||
}
|
||||
|
||||
private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
||||
{
|
||||
// Send the URL to the operating system.
|
||||
Process.Start(e.Link.LinkData as string);
|
||||
}
|
||||
|
||||
|
||||
private void readmemory()
|
||||
{
|
||||
|
||||
var processlist = Process.GetProcessesByName("rabiribi");
|
||||
if (processlist.Length > 0)
|
||||
{
|
||||
|
||||
Process process = processlist[0];
|
||||
if (process.MainWindowTitle != rabiribititle)
|
||||
{
|
||||
var result = titleReg.Match(process.MainWindowTitle);
|
||||
if (result.Success)
|
||||
{
|
||||
|
||||
rabiver = result.Groups[1].Value;
|
||||
veridx = Array.IndexOf(StaticData.VerNames, rabiver);
|
||||
if (veridx < 0)
|
||||
{
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
rbStatus.Text = rabiver + " Running (not support)";
|
||||
this.musicLabel.Text = "N/A";
|
||||
}));
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
veridx = -1;
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
rbStatus.Text = rabiver + " Running (not support)";
|
||||
this.musicLabel.Text = "N/A";
|
||||
}));
|
||||
return;
|
||||
}
|
||||
this.Invoke(new Action(() => rbStatus.Text = rabiver + " Running"));
|
||||
rabiribititle = process.MainWindowTitle;
|
||||
}
|
||||
|
||||
|
||||
if (veridx < 0) return;
|
||||
|
||||
|
||||
#region read igt
|
||||
|
||||
int igt = MemoryHelper.GetMemoryValue<int>(process, StaticData.IGTAddr[veridx]);
|
||||
if (igt>0 && cbIGT.Checked )
|
||||
{
|
||||
sendigt((float)igt/60);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region CheckMoney
|
||||
|
||||
if (cbComputer.Checked)
|
||||
{
|
||||
var newmoney = MemoryHelper.GetMemoryValue<int>(process, StaticData.MoneyAddress[veridx]);
|
||||
if (newmoney - lastmoney == 17500)
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("get 17500 en, split");
|
||||
}
|
||||
lastmoney = newmoney;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
int mapid = MemoryHelper.GetMemoryValue<int>(process, StaticData.MapAddress[veridx]);
|
||||
if (lastmapid != mapid)
|
||||
{
|
||||
DebugLog("newmap: "+mapid+":"+StaticData.MapNames[mapid]);
|
||||
lastmapid = mapid;
|
||||
}
|
||||
|
||||
|
||||
#region checkTM
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Music
|
||||
|
||||
int musicaddr = StaticData.MusicAddr[veridx];
|
||||
int musicid = MemoryHelper.GetMemoryValue<int>(process, musicaddr);
|
||||
if (musicid > 0 && musicid < StaticData.MusicNames.Length)
|
||||
{
|
||||
if (lastmusicid != musicid)
|
||||
{
|
||||
DebugLog("new music:"+musicid+":"+StaticData.MusicNames[musicid]);
|
||||
this.Invoke(new Action(() => this.musicLabel.Text = StaticData.MusicNames[musicid]));
|
||||
|
||||
var bossmusicflag = StaticData.BossMusics.Contains(musicid);
|
||||
if (bossmusicflag)
|
||||
{
|
||||
if (bossbattle)
|
||||
{
|
||||
//直接换boss曲
|
||||
if (cbBossStart.Checked || cbBossEnd.Checked)
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("new boss music, split");
|
||||
}
|
||||
|
||||
this.Invoke(new Action(() => cbBoss.Checked = bossbattle));
|
||||
lastmusicid = musicid;
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!bossbattle)
|
||||
{
|
||||
|
||||
if (musicid == 54 && cbASG.Checked )
|
||||
{
|
||||
bossbattle = false;
|
||||
DebugLog("Alius music, ignore once");
|
||||
this.Invoke(new Action(() => cbASG.Checked = false));
|
||||
}
|
||||
if (musicid == 42 && mapid == 1 && cbIrisu.Checked)
|
||||
{
|
||||
bossbattle = false;
|
||||
DebugLog("Irisu P1, ignore");
|
||||
this.Invoke(new Action(() => cbASG.Checked = false));
|
||||
}
|
||||
else
|
||||
{
|
||||
if (bossmusicflag)
|
||||
{
|
||||
if (mapid == 5 && musicid == 44 && cbSideCh.Checked )
|
||||
{
|
||||
bossbattle = false;
|
||||
DebugLog("sidechapter, ignore");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
bossbattle = true;
|
||||
lastbosslist = new List<int>();
|
||||
lastnoah3hp = -1;
|
||||
if (cbBossStart.Checked)
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("music start, split");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!bossmusicflag) //boss music end!
|
||||
{
|
||||
bossbattle = false;
|
||||
if (cbBossEnd.Checked)
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("music end, split");
|
||||
}
|
||||
}
|
||||
}
|
||||
lastmusicid = musicid;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Invoke(new Action(() => this.musicLabel.Text = "N/A"));
|
||||
}
|
||||
|
||||
#endregion Music
|
||||
|
||||
#region SpecialBOSS
|
||||
|
||||
if (bossbattle)
|
||||
{
|
||||
if (cbBoss1.Checked || cbBoss3.Checked)
|
||||
{
|
||||
int Noah3HP = -1;
|
||||
|
||||
if (mapid >= 0 && mapid < StaticData.MapNames.Length)
|
||||
{
|
||||
int ptr = MemoryHelper.GetMemoryValue<int>(process, StaticData.EnenyPtrAddr[veridx]);
|
||||
List<int> bosses = new List<int>();
|
||||
for (var i = 0; i < 50; i++)
|
||||
{
|
||||
ptr = ptr + StaticData.EnenyEntitySize[veridx];
|
||||
|
||||
var emyid = MemoryHelper.GetMemoryValue<int>(process,
|
||||
ptr + StaticData.EnenyEnitiyIDOffset[veridx], false);
|
||||
if (StaticData.BossNames.ContainsKey(emyid))
|
||||
{
|
||||
bosses.Add(emyid);
|
||||
if (emyid == 1053)
|
||||
{
|
||||
Noah3HP = MemoryHelper.GetMemoryValue<int>(process,
|
||||
ptr + StaticData.EnenyEnitiyHPOffset[veridx], false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
if (cbBoss1.Checked)
|
||||
{
|
||||
foreach (var boss in lastbosslist)
|
||||
{
|
||||
|
||||
if (boss == 1043)
|
||||
{
|
||||
if (!bosses.Contains(boss)) //despawn
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("miru despawn, split");
|
||||
bossbattle = false;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (cbBoss3.Checked)
|
||||
{
|
||||
if (bosses.Contains(1053) && Noah3HP < lastnoah3hp && Noah3HP == 1)
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("noah3 hp 1, split");
|
||||
bossbattle = false;
|
||||
}
|
||||
}
|
||||
if (cbTM.Checked && musicid==8)
|
||||
{
|
||||
bool f = true;
|
||||
foreach (var boss in lastbosslist)
|
||||
{
|
||||
|
||||
if (boss == 1024)
|
||||
{
|
||||
if (!bosses.Contains(boss)) //despawn
|
||||
{
|
||||
sendsplit();
|
||||
DebugLog("nixie despawn, split");
|
||||
bossbattle = false;
|
||||
f = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int newTM = MemoryHelper.GetMemoryValue<int>(process, StaticData.TownMemberAddr[veridx]);
|
||||
if (newTM - lastTM == 1 && f) //for after 1.71 , 1.71 isn't TM+2 at once when skip Nixie, it's TM+1 twice
|
||||
|
||||
{
|
||||
if (DateTime.Now- LastTMAddTime < TimeSpan.FromSeconds(1))
|
||||
{
|
||||
var d = DateTime.Now - LastTMAddTime;
|
||||
bossbattle = false;
|
||||
sendsplit();
|
||||
DebugLog("TM+2 in "+d.TotalMilliseconds+" ms, split");
|
||||
}
|
||||
LastTMAddTime = DateTime.Now;
|
||||
}
|
||||
else if (newTM - lastTM == 2 && f)//for 1.65-1.70
|
||||
{
|
||||
bossbattle = false;
|
||||
sendsplit();
|
||||
DebugLog("TM+2, split");
|
||||
}
|
||||
lastTM = newTM;
|
||||
}
|
||||
lastbosslist = bosses;
|
||||
lastnoah3hp = Noah3HP;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion SpecialBOSS
|
||||
|
||||
if (debugArea.Checked)
|
||||
{
|
||||
int ptr = MemoryHelper.GetMemoryValue<int>(process, StaticData.EnenyPtrAddr[veridx]);
|
||||
List<int> bosses = new List<int>();
|
||||
List<int> HPS = new List<int>();
|
||||
ptr += StaticData.EnenyEntitySize[veridx]*3;
|
||||
for (var i = 0; i < 5; i++)
|
||||
{
|
||||
ptr += StaticData.EnenyEntitySize[veridx];
|
||||
|
||||
|
||||
bosses.Add(MemoryHelper.GetMemoryValue<int>(process,
|
||||
ptr + StaticData.EnenyEnitiyIDOffset[veridx], false));
|
||||
HPS.Add(MemoryHelper.GetMemoryValue<int>(process,
|
||||
ptr + StaticData.EnenyEnitiyHPOffset[veridx], false));
|
||||
|
||||
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
t1.Text = string.Join("\n", bosses);
|
||||
t2.Text = string.Join("\n", HPS);
|
||||
}));
|
||||
|
||||
}
|
||||
}
|
||||
this.Invoke(new Action(() => cbBoss.Checked = bossbattle));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
rabiribititle = "";
|
||||
|
||||
|
||||
this.Invoke(new Action(() =>
|
||||
{
|
||||
rbStatus.Text = "Not Found";
|
||||
this.musicLabel.Text = "N/A";
|
||||
}));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void sendsplit()
|
||||
{
|
||||
if (tcpclient != null && tcpclient.Connected)
|
||||
{
|
||||
try
|
||||
{
|
||||
var b = Encoding.UTF8.GetBytes("split\r\n");
|
||||
networkStream.Write(b, 0, b.Length);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
disconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void sendigt(float time)
|
||||
{
|
||||
if (tcpclient != null && tcpclient.Connected)
|
||||
{
|
||||
try
|
||||
{
|
||||
var b = Encoding.UTF8.GetBytes($"setgametime {time}\r\n");
|
||||
networkStream.Write(b, 0, b.Length);
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
disconnect();
|
||||
}
|
||||
}
|
||||
}
|
||||
void disconnect()
|
||||
{
|
||||
tcpclient = null;
|
||||
connectBtn.Enabled = true;
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (tcpclient != null && tcpclient.Connected) return;
|
||||
try
|
||||
{
|
||||
tcpclient = new TcpClient("127.0.0.1", Convert.ToInt32(portNum.Value));
|
||||
networkStream = tcpclient.GetStream();
|
||||
connectBtn.Enabled = false;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
tcpclient = null;
|
||||
networkStream = null;
|
||||
MessageBox.Show(this, "Connect Failed");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,100 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace rabiribi_splitter
|
||||
{
|
||||
public static class MemoryHelper
|
||||
{
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);
|
||||
|
||||
[DllImport("kernel32.dll")]
|
||||
public static extern bool ReadProcessMemory(int hProcess,
|
||||
int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);
|
||||
|
||||
private const int PROCESS_WM_READ = 0x0010;
|
||||
|
||||
public static T GetMemoryValue<T>(Process process, int addr,bool baseaddr=true)
|
||||
{
|
||||
int datasize;
|
||||
switch (Type.GetTypeCode(typeof(T)))
|
||||
{
|
||||
|
||||
case TypeCode.Boolean:
|
||||
case TypeCode.Byte:
|
||||
case TypeCode.Char:
|
||||
case TypeCode.SByte:
|
||||
datasize = 1;
|
||||
break;
|
||||
case TypeCode.Int16:
|
||||
case TypeCode.UInt16:
|
||||
datasize = 2;
|
||||
break;
|
||||
case TypeCode.Int32:
|
||||
|
||||
case TypeCode.UInt32:
|
||||
datasize = 4;
|
||||
break;
|
||||
case TypeCode.Int64:
|
||||
case TypeCode.UInt64:
|
||||
datasize = 8;
|
||||
break;
|
||||
default:
|
||||
throw new Exception("not supported");
|
||||
}
|
||||
|
||||
byte[] buffer = new byte[datasize];
|
||||
int bytesRead = 0;
|
||||
|
||||
IntPtr processHandle = OpenProcess(PROCESS_WM_READ, false, process.Id);
|
||||
if (baseaddr)
|
||||
{ ReadProcessMemory((int) processHandle, process.MainModule.BaseAddress.ToInt32() + addr, buffer,
|
||||
datasize, ref bytesRead);}
|
||||
else
|
||||
{
|
||||
ReadProcessMemory((int)processHandle, addr, buffer,
|
||||
datasize, ref bytesRead);
|
||||
|
||||
}
|
||||
switch (Type.GetTypeCode(typeof(T)))
|
||||
{
|
||||
|
||||
case TypeCode.Boolean:
|
||||
return (T)Convert.ChangeType( buffer[0] == 1,typeof(T));
|
||||
|
||||
case TypeCode.Byte:
|
||||
case TypeCode.SByte:
|
||||
return (T)Convert.ChangeType(buffer[0] , typeof(T));
|
||||
case TypeCode.Char:
|
||||
return (T)Convert.ChangeType((char)buffer[0], typeof(T));
|
||||
|
||||
|
||||
case TypeCode.Int16:
|
||||
|
||||
return (T)Convert.ChangeType(BitConverter.ToInt16(buffer,0), typeof(T));
|
||||
|
||||
case TypeCode.UInt16:
|
||||
return (T)Convert.ChangeType(BitConverter.ToUInt16(buffer, 0), typeof(T));
|
||||
case TypeCode.Int32:
|
||||
return (T)Convert.ChangeType(BitConverter.ToInt32(buffer, 0), typeof(T));
|
||||
case TypeCode.UInt32:
|
||||
return (T)Convert.ChangeType(BitConverter.ToUInt32(buffer, 0), typeof(T));
|
||||
|
||||
case TypeCode.Int64:
|
||||
return (T)Convert.ChangeType(BitConverter.ToInt64(buffer, 0), typeof(T));
|
||||
case TypeCode.UInt64:
|
||||
return (T)Convert.ChangeType(BitConverter.ToUInt64(buffer, 0), typeof(T));
|
||||
|
||||
default:
|
||||
throw new Exception("not supported");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace rabiribi_splitter
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("rabiribi_splitter")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("rabiribi_splitter")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2016")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
//将 ComVisible 设置为 false 将使此程序集中的类型
|
||||
//对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("1933c91e-7300-42a1-a0c5-2d54b95c5bbb")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
rabiribi_splitter/Properties/Resources.Designer.cs
generated
71
rabiribi_splitter/Properties/Resources.Designer.cs
generated
@ -1,71 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本: 4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace rabiribi_splitter.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 强类型资源类,用于查找本地化字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[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>
|
||||
/// 返回此类使用的缓存 ResourceManager 实例。
|
||||
/// </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("rabiribi_splitter.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 覆盖当前线程的 CurrentUICulture 属性
|
||||
/// 使用此强类型的资源类的资源查找。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,117 +0,0 @@
|
||||
<?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>
|
30
rabiribi_splitter/Properties/Settings.Designer.cs
generated
30
rabiribi_splitter/Properties/Settings.Designer.cs
generated
@ -1,30 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 rabiribi_splitter.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
<?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>
|
@ -1,171 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace rabiribi_splitter
|
||||
{
|
||||
public static class StaticData
|
||||
{
|
||||
public static Dictionary<int, string> BossNames = new Dictionary<int, string>()
|
||||
{
|
||||
{1009, "Cocoa"},
|
||||
{1011, "Rumi"},
|
||||
{1012, "Ashuri"},
|
||||
{1013, "Rita"},
|
||||
{1014, "Ribbon"},
|
||||
{1015, "Cocoa"},
|
||||
{1018, "Cicini"},
|
||||
{1020, "Saya"},
|
||||
{1021, "Syaro"},
|
||||
{1022, "Pandora"},
|
||||
{1023, "Nieve"},
|
||||
{1024, "Nixie"},
|
||||
{1025, "Aruraune"},
|
||||
{1030, "Seana"},
|
||||
{1031, "Lilith"},
|
||||
{1032, "Vanilla"},
|
||||
{1033, "Chocolate"},
|
||||
{1035, "Illusion Alius"},
|
||||
{1036, "Pink Kotri"},
|
||||
{1037, "Noah 1"},
|
||||
{1038, "Irisu"},
|
||||
{1039, "Miriam"},
|
||||
{1043, "Miru"},
|
||||
{1053, "Noah 3"},
|
||||
{1054, "Keke Bunny"},
|
||||
|
||||
|
||||
};
|
||||
|
||||
public static string[] MapNames = new string[]
|
||||
{
|
||||
"Southern Woodland",
|
||||
"Western Coast",
|
||||
"Island Core",
|
||||
"Northern Tundra",
|
||||
"Eastern Highlands",
|
||||
"Rabi Rabi Town",
|
||||
"Plurkwood",
|
||||
"Subterranean Area",
|
||||
"Warp Destination",
|
||||
"System Interior",
|
||||
};
|
||||
|
||||
public static int[][] MapBoss = new int[][]
|
||||
{
|
||||
new[] {1011, 1009, 1025, 1014, 1018},
|
||||
new[] {1036, 1038, 1031, 1022, 1012},
|
||||
new[] {1032, 1036, 1030, 1033},
|
||||
new[] {1024, 1023, 1013, 1030},
|
||||
new[] {1012, 1020,},
|
||||
new int[0],
|
||||
new[] {1054},
|
||||
new[] {1036, 1039},
|
||||
new[] {1037, 1053, 1035, 1043},
|
||||
new[] {1021},
|
||||
|
||||
};
|
||||
|
||||
public static string[] MusicNames = new[]
|
||||
{
|
||||
"-NO MUSIC-",
|
||||
"ADVENTURE STARTS HERE",
|
||||
"SPECTRAL CAVE",
|
||||
"FORGOTTEN CAVE",
|
||||
"UNDERWATER AMBIENT",
|
||||
"LIBRARY AMBIENT",
|
||||
"FORGOTTEN CAVE II",
|
||||
"STARTING FOREST NIGHT",
|
||||
"BOUNCE BOUNCE",
|
||||
"RABI RABI BEACH",
|
||||
"PANDORA'S PALACE",
|
||||
"RABI RABI RAVINE",
|
||||
"HOME SWEET HOME",
|
||||
"RABI RABI PARK",
|
||||
"INSIDE UPRPRC",
|
||||
"SKY ISLAND TOWN",
|
||||
"WINTER WONDERLAND",
|
||||
"CYBERSPACE.EXE",
|
||||
"EVERNIGHT PEAK",
|
||||
"EXOTIC LABORATORY",
|
||||
"GOLDEN RIVERBANK",
|
||||
"FLOATING GRAVEYARD",
|
||||
"SYSTEM INTERIOR II",
|
||||
"AURORA PALACE",
|
||||
"SPEICHER GALERIE",
|
||||
"DEEP UNDER THE SEA",
|
||||
"SKY-HIGH BRIDGE",
|
||||
"WARP DESTINATION",
|
||||
"VOLCANIC CANERNS",
|
||||
"PLURKWOOD",
|
||||
"ANOTHER D",
|
||||
"ICY SUMMIT",
|
||||
"PREPARE EVENT",
|
||||
"MIDBOSS BATTLE",
|
||||
"MIDSTREAM JAM",
|
||||
"MIRIAM'S SHOP",
|
||||
"BUNNY PANIC!!!",
|
||||
"THE TRUTH NEVER SPOKEN",
|
||||
"BRAWL BREAKS VER.2",
|
||||
"BRAWL BREAKS",
|
||||
"SANDBAG MINI GAME",
|
||||
"STAFF ROLL",
|
||||
"RFN - III",
|
||||
"NO REMORSE",
|
||||
"GET ON WITH IT",
|
||||
"THEME OF RABI-RIBI 8BIT",
|
||||
"THEME OF RABI-RIBI",
|
||||
"FULL ON COMBAT",
|
||||
"HI-TECH DUEL",
|
||||
"UNFAMILIAR PLACE",
|
||||
"UNFAMILIAR PLACE AGAIN",
|
||||
"KITTY ATTACK",
|
||||
"M.R.",
|
||||
"MAIN MENU",
|
||||
"SUDDEN DEATH",
|
||||
"RABI RABI RAVINE VER.2",
|
||||
"WASTE",
|
||||
"ARTBOOK INTRO",
|
||||
"RABI-RIBI PIANO TITLE",
|
||||
"MISCHIEVOUS MASQUERADE",
|
||||
};
|
||||
|
||||
public static int[] BossMusics = new[]
|
||||
{
|
||||
44,
|
||||
38,
|
||||
47,
|
||||
34,
|
||||
51,
|
||||
43,
|
||||
52,
|
||||
37,
|
||||
39,
|
||||
42,
|
||||
48,
|
||||
8,
|
||||
54
|
||||
};
|
||||
|
||||
|
||||
public static int[] MapAddress = { 0xA3353C, 0xA57020, 0xA5E0AC, 0xA600AC };
|
||||
public static int[] EnenyPtrAddr = { 0x00940EE0, 0x00964A1C, 0x0096BA3C, 0x0096DA3C };
|
||||
public static int[] EnenyEnitiyHPOffset = { 0x4c8, 0x4d0,0x4d8, 0x4d8 };
|
||||
public static int[] EnenyEnitiyIDOffset = { 0x4e4,0x4ec, 0x4F4, 0x4F4 };
|
||||
public static int[] EnenyEntitySize = {0x6F4, 0x6FC, 0x704, 0x704 };
|
||||
public static int[] MaxEntityEntry = { 50,50,50 ,50};
|
||||
public static int[] MoneyAddress = { 0xD3823C, 0xD5B9FC, 0xD63D2C, 0xD654CC };
|
||||
public static string[] VerNames = {"1.65", "1.70","1.71","1.75"};
|
||||
public static int[] MusicAddr =
|
||||
{
|
||||
0xA46294,
|
||||
0xA69D98,
|
||||
0xA70E28,
|
||||
0x4FAB60
|
||||
};
|
||||
|
||||
public static int[] TownMemberAddr = {0xD38934, 0xD5C0F4, 0xD63BC4, 0xD65BC4 };
|
||||
public static int[] IGTAddr = { 0xD388E0, 0xD5C0A0, 0xD63B70, 0xD65B70 };
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 162 KiB |
@ -1,93 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" 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>{1933C91E-7300-42A1-A0C5-2D54B95C5BBB}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>rabiribi_splitter</RootNamespace>
|
||||
<AssemblyName>rabiribi_splitter</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</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>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>irisu.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<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.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MemoryHelper.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="StaticData.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>
|
||||
<Content Include="irisu.ico" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
Loading…
x
Reference in New Issue
Block a user