Page 1 of 1

H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Tue May 13, 2014 7:25 pm
by XZodia
So I was helping xXF3RcHoXx with some stuff and ended up decompiling a version of H2G that he sent me and updating its internal SBSP and SCNR plugins...

The update is to the HaloMap.dll and I've included the both mine and the original in the zip.

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 2:57 pm
by DoorM4n
Going to test out putting coag in gemini. Hope this doesn't chew up my map and spit it out like the old h2core. Now I just gotta remember how to do this. :|


Okay, upon opening the scenario tag of gemini in H2G, I get this error.
Image

I don't get this error with a previous version of h2g.

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 4:24 pm
by XZodia
Attached a fix to the first post.

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 4:44 pm
by DoorM4n
Thanks for fixing that. Now I can't seem to get around this. UGH, h2core is frustrating.

Image

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 5:59 pm
by XZodia
Gonna need some more info on how you got there?

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 6:35 pm
by DoorM4n
Okay

Clean maps. Running in Windows XP Virtual Mode.
Opened gemini in h2core. Decompiled map to tags folder. Closed h2core.
Opened coagulation in h2core. Decomplied ltmp tag by decompile and decompile recursively. Did the same for sbps. (Decompile and Decompile Recursively) Closed H2core.
Opened H2G. Opened gemini.scenario. Went down to SBSP section and changed the SBSP to coagulation.sbsp and the lightmap to coagulation.lightmap. Saved. Closed H2G.
Opened gemini in H2core. Rebuild by selecting gemini.scenario and refer to image above. I selected all of the check boxes except keep spawns.

Error on build.

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
   at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at core.TagInterface.Data.Read_Raw(EndianReader& BR)
   at core.DecompiledTagInterface.RecursivelyReadElements(TagBlock tagblock, EndianReader& br, HaloVersionEnum haloversion)
   at core.DecompiledTagInterface..ctor(String filename, HaloVersionEnum haloversion, Boolean force_soft_coded)
   at core.Rebuilder.Rebuilder.RebuildButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   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.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
H2Core
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/XPMUser/Desktop/H2Core%20-%20XZodia/H2Core.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
HaloMap
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/XPMUser/Desktop/H2Core%20-%20XZodia/HaloMap.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SandDock
    Assembly Version: 1.0.6.0
    Win32 Version: 1.0.6.0
    CodeBase: file:///C:/Documents%20and%20Settings/XPMUser/Desktop/H2Core%20-%20XZodia/SandDock.DLL
----------------------------------------
SandBar
    Assembly Version: 1.1.1.0
    Win32 Version: 1.1.1.0
    CodeBase: file:///C:/Documents%20and%20Settings/XPMUser/Desktop/H2Core%20-%20XZodia/SandBar.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
EDIT: I have used this same method in an older version of H2Core and it worked today.
Also, I used the Entity 1.3 version to do the BSP version and it did it wonderfully. Only downside was my map increased in size by 10-15mbs.

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 7:29 pm
by XZodia
Ok, I'm looking into it, but why are you building coagulation into gemini?

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 7:32 pm
by troymac1ure

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Wed Jul 23, 2014 9:04 pm
by DoorM4n
In summary of that thread, I basically can't inject over 100 netgame chunks for trees on coag. I am hoping to inject about 200. In Tortuga/gemini, I injected like 250 chunks in total--no error.

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Thu Jul 24, 2014 12:11 am
by XZodia
Well Entity should be capable of transferring the sbsp...

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Thu Jul 24, 2014 2:47 am
by XZodia
After several hours of debugging, all I can really say is thats theres some discrepancy in how the sound raw info is being decompiled vs compiled...

No idea so what that discrepancy is though...

Re: H2 Core and Guerilla ~ XZodia Plugin Update

Posted: Thu Jul 24, 2014 2:53 am
by DoorM4n
I appreciate you looking into it, man. Fercho is apparently very good at doing h2core conversions. I pmed him to see what his thoughts are.