# Halomods Community Portal: KSoft.Tool - Halomods Community Portal

• 3 Pages
• 1
• 2
• 3

## HaloWars KSoft.Tool

### #1kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 13 September 2011 - 10:50 PM

The program is currently released as a "beta". I believe I've caught most bugs/problems, but we shall see!

Note: The tool doesn't sanity check data files it "doesn't know" about. Such files include .ddx, .ugx, .uga, etc. It only handles the archiving process (expand/build), so be careful what you edit (ie, don't be an idiot) and try to put back into the game.

Spoiler

This post has been edited by kornman00: 25 December 2012 - 12:58 AM
Reason for edit: Update for 4741.33146

### #2Nova

• Newbie
• Group: Members
• Joined: 30-July 11

Posted 14 September 2011 - 01:36 PM

Thanks for your amazing work. I have a small problem though whenever I try to expand a decrypted era file I get an error in the command prompt saying Encountered an error while trying to read the ERA: System.IO.FileNotFoundException: Could not load file or assembly 'KSoft.LowLevel.dll' or one of its dependencies but the file is in the same directory as the tool. I already have the .xex patched and all the decrypted file so I would appreciate your help.

### #3kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 14 September 2011 - 02:50 PM

Hmmmm, I just extracted the files from the download and ran it (via cmd) in a clean directory and it extracted fine. How are you trying to run Tool? Are you doing it in a bat script? Straight from the cmd prompt?

### #4Nova

• Newbie
• Group: Members
• Joined: 30-July 11

Posted 14 September 2011 - 10:58 PM

Thanks for responding anyways I'm trying to run it through command prompt like the readme.txt said also I don't know if the computer would effect it but I'm using a 64-bit computer running Windows 7.

### #5kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 15 September 2011 - 04:43 AM

I developed and tested it on said platform so that isn't it. I had someone run it on a machine not setup for development and they didn't have any issues. Try running it under a folder in Documents, as the only thing I can think causing problems is permissions (ie, you have UAC turned on...but I have it turned on and develop with it in mind). Well, that and you mistakenly didn't have the LowLevel.dll in the same folder as Tool.exe (no one else has said anything).

### #6mojobojo

• Newbie
• Group: Members
• Joined: 31-July 11

Posted 15 September 2011 - 05:09 AM

I have an issue as well. Same file not found exception, but with a different file. I downloaded the dll and it says its the wrong dll. Of which I got from this link.

Note: UAC is disabled.

C:\Users\mojobojo\Desktop\KSoft.Tool.Beta>KSoft.Tool -env=phx -tool=era -mode=expand "-path=C:\Users\mojobojo\Desktop\HaloWarsEra\miniloader" -name=miniloader -out=C:\miniloader -switches=001
Encountered an error while trying to read the ERA: System.IO.FileNotFoundException: Could not load file or assembly 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or one of its dependencies. The system cannot find the file specified.
File name: 'ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73'
at KSoft.Phoenix.Resource.CompressedStream.Decompress()
at KSoft.Phoenix.Resource.CompressedStream.???
??????(Object )
at KSoft.Phoenix.Resource.EraFileEntryChunk.???
??????(Object )
at KSoft.Phoenix.Resource.EraFileEntryChunk.???
at KSoft.Phoenix.Resource.EraFile.???
??????(Object , Object )
at KSoft.Phoenix.Resource.EraFileExpander.???
??????(Object , Object )
at KSoft.Phoenix.Resource.EraFileExpander.???
??????()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



This post has been edited by mojobojo: 15 September 2011 - 05:21 AM

### #7kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 15 September 2011 - 04:02 PM

D'oh! Sorry guys . I updated the downloads page with a 7z of ICSharpCode.SharpZipLib.dll (the correct version). Let me know if there's anything else!

Wow, I just realized how old 0.84 is...it's from a 2005 version of their codebase. I'll look into upgrading for the "final" release.

### #8mojobojo

• Newbie
• Group: Members
• Joined: 31-July 11

Posted 15 September 2011 - 08:49 PM

Its working now. I can't believe I missed the download on the sourceforge.

### #9kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 15 September 2011 - 10:20 PM

Good to hear it

### #10Nova

• Newbie
• Group: Members
• Joined: 30-July 11

Posted 15 September 2011 - 10:25 PM

Thank you so much for the help!

### #11kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 15 September 2011 - 10:50 PM

I take it that was your problem too :x? Glad that solved both puzzles. Happy modding!

### #12kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 16 September 2011 - 03:59 PM

The final version will also be able to decrypt stock ERA files

### #13Halodu2de

• Newbie
• Group: Members
• Joined: 18-August 11

Posted 17 September 2011 - 05:07 AM

Great work thanks man

### #14kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 19 September 2011 - 09:50 PM

Has anyone created any interesting mods yet? Is anyone just flat out confused?

### #15darknavi

• Newbie
• Group: Members
• Joined: 06-May 11

Posted 20 September 2011 - 07:14 PM

kornman00, on 19 September 2011 - 09:50 PM, said:

Has anyone created any interesting mods yet? Is anyone just flat out confused?

Want to mod my xbox for me so I can use this?

### #16kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 20 September 2011 - 11:23 PM

Want to give me $500 for a proper xbox for modding? ### #17leor • Advanced Member • Group: Members • Joined: 05-May 11 Posted 20 September 2011 - 11:44 PM kornman00, on 20 September 2011 - 11:23 PM, said: Want to give me$500 for a proper xbox for modding?

No devkit anymore?

### #18kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 25 September 2011 - 05:06 AM

The final release will probably be posted next weekend (it will have archive decrypting and a few improvements here and there). So if there are any issues or whatever, let me know before Friday night.

leor, on 20 September 2011 - 11:44 PM, said:

No devkit anymore?

I was replying to navi's post

### #19mobius1

• Member
• Group: Members
• Joined: 11-December 11

Posted 27 December 2011 - 11:32 PM

Can you make a tutorial on how to mod Halo Wars properly? I end up with xml stuff embedded in the "packed" level.

### #20kornman00

• SourceGuy 2.0
• Joined: 15-November 01

Users Awards

Posted 28 December 2011 - 03:57 AM

Really, all you need to do is expand the archives, mod whatever data, then rebuild\pack the archive. root.era contains all of the general game definitions. Map .era files will have their specialized data (eg, objects, triggers, etc).

Expanding an archive along with translating all XMB files back into XML will provide you with easy modding of those files, but it will take longer for the game to load the archive once it's rebuilt\packed with XML files (as it has to parse the XML which is really inefficient). The best route is to expand an archive without performing any XMB translations, then expand the same archive to a different directory but this time with XMB->XML enabled. You can then mod those XML files, then put them in the first expanded archive's directory (the one with no XMB translations). You'll then need to update the listing xml file that KSoft.Tool operates on. It should have some\path\to\file.xml.xmb (or .physics.xmb, etc). Instead you just need to lob off the .xmb and it will then process the raw .xml file (or .physics, etc) instead.