Merge pull request #101 from nikez/master

fix(gamefiles): Added proper description to game audio file
This commit is contained in:
dexyfex 2021-04-14 14:52:01 +10:00 committed by GitHub
commit 4271e16095
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 42 deletions

View File

@ -6216,8 +6216,8 @@ namespace CodeWalker.GameFiles
public MetaHash Hash1 { get; set; } public MetaHash Hash1 { get; set; }
public uint Unk02 { get; set; } public uint Unk02 { get; set; }
public float Unk03 { get; set; } public float Unk03 { get; set; }
public float Unk04 { get; set; } public float Reverb { get; set; }
public float Unk05 { get; set; } public float Echo { get; set; }
public MetaHash Unk06 { get; set; } public MetaHash Unk06 { get; set; }
public float Unk07 { get; set; } public float Unk07 { get; set; }
public float Unk08 { get; set; } public float Unk08 { get; set; }
@ -6240,8 +6240,8 @@ namespace CodeWalker.GameFiles
Hash1 = br.ReadUInt32(); Hash1 = br.ReadUInt32();
Unk02 = br.ReadUInt32(); Unk02 = br.ReadUInt32();
Unk03 = br.ReadSingle(); Unk03 = br.ReadSingle();
Unk04 = br.ReadSingle(); Reverb = br.ReadSingle();
Unk05 = br.ReadSingle(); Echo = br.ReadSingle();
Unk06 = br.ReadUInt32(); Unk06 = br.ReadUInt32();
Unk07 = br.ReadSingle(); Unk07 = br.ReadSingle();
Unk08 = br.ReadSingle(); Unk08 = br.ReadSingle();
@ -6265,8 +6265,8 @@ namespace CodeWalker.GameFiles
bw.Write(Hash1); bw.Write(Hash1);
bw.Write(Unk02); bw.Write(Unk02);
bw.Write(Unk03); bw.Write(Unk03);
bw.Write(Unk04); bw.Write(Reverb);
bw.Write(Unk05); bw.Write(Echo);
bw.Write(Unk06); bw.Write(Unk06);
bw.Write(Unk07); bw.Write(Unk07);
bw.Write(Unk08); bw.Write(Unk08);
@ -6284,8 +6284,8 @@ namespace CodeWalker.GameFiles
RelXml.StringTag(sb, indent, "Hash1", RelXml.HashString(Hash1)); RelXml.StringTag(sb, indent, "Hash1", RelXml.HashString(Hash1));
RelXml.ValueTag(sb, indent, "Unk02", Unk02.ToString()); RelXml.ValueTag(sb, indent, "Unk02", Unk02.ToString());
RelXml.ValueTag(sb, indent, "Unk03", FloatUtil.ToString(Unk03)); RelXml.ValueTag(sb, indent, "Unk03", FloatUtil.ToString(Unk03));
RelXml.ValueTag(sb, indent, "Unk04", FloatUtil.ToString(Unk04)); RelXml.ValueTag(sb, indent, "Reverb", FloatUtil.ToString(Reverb));
RelXml.ValueTag(sb, indent, "Unk05", FloatUtil.ToString(Unk05)); RelXml.ValueTag(sb, indent, "Echo", FloatUtil.ToString(Echo));
RelXml.StringTag(sb, indent, "Unk06", RelXml.HashString(Unk06)); RelXml.StringTag(sb, indent, "Unk06", RelXml.HashString(Unk06));
RelXml.ValueTag(sb, indent, "Unk07", FloatUtil.ToString(Unk07)); RelXml.ValueTag(sb, indent, "Unk07", FloatUtil.ToString(Unk07));
RelXml.ValueTag(sb, indent, "Unk08", FloatUtil.ToString(Unk08)); RelXml.ValueTag(sb, indent, "Unk08", FloatUtil.ToString(Unk08));
@ -6303,8 +6303,8 @@ namespace CodeWalker.GameFiles
Hash1 = XmlRel.GetHash(Xml.GetChildInnerText(node, "Hash1")); Hash1 = XmlRel.GetHash(Xml.GetChildInnerText(node, "Hash1"));
Unk02 = Xml.GetChildUIntAttribute(node, "Unk02", "value"); Unk02 = Xml.GetChildUIntAttribute(node, "Unk02", "value");
Unk03 = Xml.GetChildFloatAttribute(node, "Unk03", "value"); Unk03 = Xml.GetChildFloatAttribute(node, "Unk03", "value");
Unk04 = Xml.GetChildFloatAttribute(node, "Unk04", "value"); Reverb = Xml.GetChildFloatAttribute(node, "Reverb", "value");
Unk05 = Xml.GetChildFloatAttribute(node, "Unk05", "value"); Echo = Xml.GetChildFloatAttribute(node, "Echo", "value");
Unk06 = XmlRel.GetHash(Xml.GetChildInnerText(node, "Unk06")); Unk06 = XmlRel.GetHash(Xml.GetChildInnerText(node, "Unk06"));
Unk07 = Xml.GetChildFloatAttribute(node, "Unk07", "value"); Unk07 = Xml.GetChildFloatAttribute(node, "Unk07", "value");
Unk08 = Xml.GetChildFloatAttribute(node, "Unk08", "value"); Unk08 = Xml.GetChildFloatAttribute(node, "Unk08", "value");

View File

@ -43,9 +43,9 @@
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.Unk03TextBox = new System.Windows.Forms.TextBox(); this.Unk03TextBox = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.Unk04TextBox = new System.Windows.Forms.TextBox(); this.ReverbTextBox = new System.Windows.Forms.TextBox();
this.label5 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label();
this.Unk05TextBox = new System.Windows.Forms.TextBox(); this.EchoTextBox = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
this.Unk06TextBox = new System.Windows.Forms.TextBox(); this.Unk06TextBox = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
@ -198,17 +198,17 @@
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(42, 13); this.label4.Size = new System.Drawing.Size(42, 13);
this.label4.TabIndex = 72; this.label4.TabIndex = 72;
this.label4.Text = "Unk04:"; this.label4.Text = "Reverb:";
// //
// Unk04TextBox // Unk04TextBox
// //
this.Unk04TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.ReverbTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.Unk04TextBox.Location = new System.Drawing.Point(86, 132); this.ReverbTextBox.Location = new System.Drawing.Point(86, 132);
this.Unk04TextBox.Name = "Unk04TextBox"; this.ReverbTextBox.Name = "ReverbTextBox";
this.Unk04TextBox.Size = new System.Drawing.Size(237, 20); this.ReverbTextBox.Size = new System.Drawing.Size(237, 20);
this.Unk04TextBox.TabIndex = 73; this.ReverbTextBox.TabIndex = 73;
this.Unk04TextBox.TextChanged += new System.EventHandler(this.Unk04TextBox_TextChanged); this.ReverbTextBox.TextChanged += new System.EventHandler(this.ReverbTextBox_TextChanged);
// //
// label5 // label5
// //
@ -217,17 +217,17 @@
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(42, 13); this.label5.Size = new System.Drawing.Size(42, 13);
this.label5.TabIndex = 74; this.label5.TabIndex = 74;
this.label5.Text = "Unk05:"; this.label5.Text = "Echo:";
// //
// Unk05TextBox // Unk05TextBox
// //
this.Unk05TextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) this.EchoTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.Unk05TextBox.Location = new System.Drawing.Point(86, 156); this.EchoTextBox.Location = new System.Drawing.Point(86, 156);
this.Unk05TextBox.Name = "Unk05TextBox"; this.EchoTextBox.Name = "EchoTextBox";
this.Unk05TextBox.Size = new System.Drawing.Size(237, 20); this.EchoTextBox.Size = new System.Drawing.Size(237, 20);
this.Unk05TextBox.TabIndex = 75; this.EchoTextBox.TabIndex = 75;
this.Unk05TextBox.TextChanged += new System.EventHandler(this.Unk05TextBox_TextChanged); this.EchoTextBox.TextChanged += new System.EventHandler(this.EchoTextBox_TextChanged);
// //
// label6 // label6
// //
@ -424,9 +424,9 @@
this.Controls.Add(this.label6); this.Controls.Add(this.label6);
this.Controls.Add(this.Unk06TextBox); this.Controls.Add(this.Unk06TextBox);
this.Controls.Add(this.label5); this.Controls.Add(this.label5);
this.Controls.Add(this.Unk05TextBox); this.Controls.Add(this.EchoTextBox);
this.Controls.Add(this.label4); this.Controls.Add(this.label4);
this.Controls.Add(this.Unk04TextBox); this.Controls.Add(this.ReverbTextBox);
this.Controls.Add(this.label3); this.Controls.Add(this.label3);
this.Controls.Add(this.Unk03TextBox); this.Controls.Add(this.Unk03TextBox);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
@ -464,9 +464,9 @@
private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox Unk03TextBox; private System.Windows.Forms.TextBox Unk03TextBox;
private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label4;
private System.Windows.Forms.TextBox Unk04TextBox; private System.Windows.Forms.TextBox ReverbTextBox;
private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox Unk05TextBox; private System.Windows.Forms.TextBox EchoTextBox;
private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label6;
private System.Windows.Forms.TextBox Unk06TextBox; private System.Windows.Forms.TextBox Unk06TextBox;
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label7;

View File

@ -52,8 +52,8 @@ namespace CodeWalker.Project.Panels
Hash1TextBox.Text = string.Empty; Hash1TextBox.Text = string.Empty;
Unk02TextBox.Text = string.Empty; Unk02TextBox.Text = string.Empty;
Unk03TextBox.Text = string.Empty; Unk03TextBox.Text = string.Empty;
Unk04TextBox.Text = string.Empty; ReverbTextBox.Text = string.Empty;
Unk05TextBox.Text = string.Empty; EchoTextBox.Text = string.Empty;
Unk06TextBox.Text = string.Empty; Unk06TextBox.Text = string.Empty;
Unk07TextBox.Text = string.Empty; Unk07TextBox.Text = string.Empty;
Unk08TextBox.Text = string.Empty; Unk08TextBox.Text = string.Empty;
@ -79,8 +79,8 @@ namespace CodeWalker.Project.Panels
Hash1TextBox.Text = cr.Hash1.ToString(); Hash1TextBox.Text = cr.Hash1.ToString();
Unk02TextBox.Text = cr.Unk02.ToString(); Unk02TextBox.Text = cr.Unk02.ToString();
Unk03TextBox.Text = FloatUtil.ToString(cr.Unk03); Unk03TextBox.Text = FloatUtil.ToString(cr.Unk03);
Unk04TextBox.Text = FloatUtil.ToString(cr.Unk04); ReverbTextBox.Text = FloatUtil.ToString(cr.Reverb);
Unk05TextBox.Text = FloatUtil.ToString(cr.Unk05); EchoTextBox.Text = FloatUtil.ToString(cr.Echo);
Unk06TextBox.Text = cr.Unk06.ToString(); Unk06TextBox.Text = cr.Unk06.ToString();
Unk07TextBox.Text = FloatUtil.ToString(cr.Unk07); Unk07TextBox.Text = FloatUtil.ToString(cr.Unk07);
Unk08TextBox.Text = FloatUtil.ToString(cr.Unk08); Unk08TextBox.Text = FloatUtil.ToString(cr.Unk08);
@ -208,34 +208,34 @@ namespace CodeWalker.Project.Panels
} }
} }
private void Unk04TextBox_TextChanged(object sender, EventArgs e) private void ReverbTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRoom == null) return; if (CurrentRoom == null) return;
float val = 0; float val = 0;
if (FloatUtil.TryParse(Unk04TextBox.Text, out val)) if (FloatUtil.TryParse(ReverbTextBox.Text, out val))
{ {
if (CurrentRoom.Unk04 != val) if (CurrentRoom.Reverb != val)
{ {
CurrentRoom.Unk04 = val; CurrentRoom.Reverb = val;
ProjectItemChanged(); ProjectItemChanged();
} }
} }
} }
private void Unk05TextBox_TextChanged(object sender, EventArgs e) private void EchoTextBox_TextChanged(object sender, EventArgs e)
{ {
if (populatingui) return; if (populatingui) return;
if (CurrentRoom == null) return; if (CurrentRoom == null) return;
float val = 0; float val = 0;
if (FloatUtil.TryParse(Unk05TextBox.Text, out val)) if (FloatUtil.TryParse(EchoTextBox.Text, out val))
{ {
if (CurrentRoom.Unk05 != val) if (CurrentRoom.Echo != val)
{ {
CurrentRoom.Unk05 = val; CurrentRoom.Echo = val;
ProjectItemChanged(); ProjectItemChanged();
} }