This project is read-only.

H3 Gamestate - test error

Dec 11, 2011 at 11:44 PM
Edited Dec 12, 2011 at 12:09 AM

Edit: Got it nvrm.

************** Exception Text **************
System.ArgumentException: The file format is invalid: bad header
Should be 4E B2 C1 86
   at H3GamestateTest.Form1.loadSave() in C:\Users\Ryan\Desktop\liberty\H3GamestateTest\Form1.cs:line 99
   at H3GamestateTest.Form1.button1_Click(Object sender, EventArgs e) in C:\Users\Ryan\Desktop\liberty\H3GamestateTest\Form1.cs:line 321
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
H3GamestateTest
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Ryan/Desktop/liberty/H3GamestateTest/bin/Debug/H3GamestateTest.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17020 built by: FXM3REL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

 

I also get this in the visual studio

C:\Users\Ryan\Desktop\liberty\second\Liberty\Liberty.csproj : error  : Unable to read the project file 'Liberty.csproj'. The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Expression\Blend\.NETFramework\v4.0\Microsoft.Expression.Blend.WPF.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\Users\Ryan\Desktop\liberty\second\Liberty\Liberty.csproj
C:\Users\Ryan\Desktop\liberty\second\MetroLiberty\MetroLiberty.csproj : error  : Unable to read the project file 'MetroLiberty.csproj'. The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v1.0\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\Users\Ryan\Desktop\liberty\second\MetroLiberty\MetroLiberty.csproj

maybe that above will help.

 // Verify Valid Container            byte[] header = new byte[4];            streamReader.Seek(0, SeekOrigin.Begin);            streamReader.ReadBlock(header, 0, 4);            if (header[0] != 0x4E || header[1] != 0xB2 || header[2] != 0xC1 || header[3] != 0x86)                throw new ArgumentException("The file format is invalid: bad header\r\nShould be 4E B2 C1 86");

Dec 12, 2011 at 2:20 AM

The research tools can't open STFS packages because they're not important to us during initial save research. You have to extract the contained file and then open it. Glad you figured it out though.

As far as the other errors, you need the Expression Blend SDK installed.

Dec 12, 2011 at 3:52 AM

Ah I see, thanks. I will be doing some tag naming for the project again soon.

Dec 12, 2011 at 10:41 AM

Halo 3/CEX don't need tag_naming. I can generate taglists for both of those games. It's just Reach we can't generate taglists for.

Dec 12, 2011 at 10:26 PM

Alright, I'll go with Reach then. Heres an idea for future mods for the games: Velocity editor. Like how fast you are moving and what direction when you load up the save.

Dec 13, 2011 at 12:03 AM
ushi wrote:

Heres an idea for future mods for the games: Velocity editor. Like how fast you are moving and what direction when you load up the save.

I've been thinking about that too actually, I would just need to find where the velocity vectors are at...

Dec 13, 2011 at 12:22 AM

Thats the only problem, sometimes these saves can be so complicated and their offsets.

Heres a pelican on oni sword base:

map ident 0xF853126A offset 0x8CF310 mem address 0xA6B8AF90 Datum index 0xF6DF005F

Dec 13, 2011 at 11:52 PM
ushi wrote:

map ident 0xF853126A offset 0x8CF310 mem address 0xA6B8AF90 Datum index 0xF6DF005F

Thanks, we'll try to add that. We moved the taglist over to Xerax's server though and I currently don't have access to the uploader, so it may be a little while before it gets updated.

Tip: we only need the map ident, and if you haven't already figured this out you can easily get that by right-clicking on the ident that's shown and selecting Copy.