Results 1 to 5 of 5

Thread: Trouble using Pack File

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Trouble using Pack File

    Edit: Perhaps I should Note, I am using Pack File Manager, not just randomly trying to read the Pack File by it's self. If there is a better place to ask questions in regards to this, please re-direct me.

    Hello,

    First off, Truly sorry if this is the wrong section to post this.

    Basically I'm a complete novice to Empire Modding...but I figured if I found a readme. or tutorial, that I'd have no real issues with Pack File. (None seemed to appear, aside of one showing how to re-pack the edited changes back into a usable file for Empire)

    After setting it all up, I'm already stumped as to how I open and/or edit the files them selves.

    I get as far as opening the program, going to the section I wish to edit,(DB/Unit_tables/Units) and from there, ether I assume it 'should' show the information on the right, or I'm to open the file to edit the lines I can.

    Apparently no program my computer has is capable of reading the file(s), and I figured .NET Framework 2.0. would be the key, sadly...after installing it,(mine claims it's 3.5) I can't figure out how to use/run the feature. The folder has many files, but none seem to be a "open/use" icon of which to test my theory.


    Granted, I am a complete moron when it comes to this kinda stuff, though I got all the other Total War Modding basics down; was hoping I could do the same for Empire.

    Thanks in advance for any help you could offer.
    Last edited by RationalThought; June 16, 2009 at 11:11 AM. Reason: Topic title was misleading, *Trouble with Pack File Manager*

  2. #2

    Default Re: Trouble using Pack File

    Well don't ask me because i know nothing about modding but what I do (do you have the pack file manager?) is go to file, up the top in the Pack File manager and open the file u want for example the main.pack and then click on the db folder in the pack and then say click on the unit_tables and units and change something like the gun range but you have to do this again in the patch.pack files so go back to file, click open and on the patch.pack and press open and do the same prosess.
    I hope this works but remember to make a copy of the main.pack and patch.pack first. Good luck then play ETW and see if it works
    This is just an example.
    Formally known as 'Marshal Beale' - The Creator the Napoleon TW mods - 'Napoleon Order of War' and 'Revolution Order of War'

  3. #3

    Default Re: Trouble using Pack File

    Thanks for the response,

    Unfortunately, this is no new information for me, although it makes me wonder if I worded my original question wrong.

    Yes, I do have Pack File Manager.

    I run the program and the file I open to is;
    SteamApps/common/Empire total War/data/patch

    From there, I did as you said...but after I get as far as clicking Units in the units_table tab, my computer shows me this message.


    Spoiler Alert, click show to read: 

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

    ************** Exception Text **************
    System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
    at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
    at System.IO.BinaryReader.ReadUInt32()
    at Common.DBFile.getFieldValue(BinaryReader reader, FieldInfo field)
    at Common.DBFile.addFields(BinaryReader reader, List`1 entry, Int32 startIndex, Int32 endIndex)
    at Common.DBFile..ctor(PackedFile packedFile, TypeInfo type)
    at PackFileManager.DBFileEditorControl.Open(PackedFile packedFile)
    at PackFileManager.PackFileManagerForm.packTreeView_AfterSelect(Object sender, TreeViewEventArgs e)
    at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
    at System.Windows.Forms.TreeView.WmNotify(Message& m)
    at System.Windows.Forms.TreeView.WndProc(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.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    PackFileManager
    Assembly Version: 1.0.0.0
    Win32 Version: 1.10
    CodeBase: file:///C:/Users/Kevin/Desktop/empire%20mods/PackFileManager_1-11/PackFileManager.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Common
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Kevin/Desktop/empire%20mods/PackFileManager_1-11/Common.DLL
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    DataGridViewAutoFilter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Kevin/Desktop/empire%20mods/PackFileManager_1-11/DataGridViewAutoFilter.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.


    Would seem that a program is missing on my end to read the file, or I need to somehow open/run the feature...yet unsure how. Least that's my best guess.
    Last edited by RationalThought; June 16, 2009 at 11:06 AM.

  4. #4

    Default Re: Trouble using Pack File

    Quote Originally Posted by RationalThought View Post
    Thanks for the response,

    Unfortunately, this is no new information for me, although it makes me wonder if I worded my original question wrong.

    Yes, I do have Pack File Manager.

    I run the program and the file I open to is;
    SteamApps/common/Empire total War/data/patch

    From there, I did as you said...but after I get as far as clicking Units in the units_table tab, my computer shows me this message.


    Spoiler Alert, click show to read: 

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

    ************** Exception Text **************
    System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
    at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
    at System.IO.BinaryReader.ReadUInt32()
    at Common.DBFile.getFieldValue(BinaryReader reader, FieldInfo field)
    at Common.DBFile.addFields(BinaryReader reader, List`1 entry, Int32 startIndex, Int32 endIndex)
    at Common.DBFile..ctor(PackedFile packedFile, TypeInfo type)
    at PackFileManager.DBFileEditorControl.Open(PackedFile packedFile)
    at PackFileManager.PackFileManagerForm.packTreeView_AfterSelect(Object sender, TreeViewEventArgs e)
    at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)
    at System.Windows.Forms.TreeView.WmNotify(Message& m)
    at System.Windows.Forms.TreeView.WndProc(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.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    PackFileManager
    Assembly Version: 1.0.0.0
    Win32 Version: 1.10
    CodeBase: file:///C:/Users/Kevin/Desktop/empire%20mods/PackFileManager_1-11/PackFileManager.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    Common
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Kevin/Desktop/empire%20mods/PackFileManager_1-11/Common.DLL
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3074 (QFE.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    DataGridViewAutoFilter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Kevin/Desktop/empire%20mods/PackFileManager_1-11/DataGridViewAutoFilter.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.


    Would seem that a program is missing on my end to read the file, or I need to somehow open/run the feature...yet unsure how. Least that's my best guess.
    You either don't have the most recent version of PFM or you need .NET 2.0 or better. If you're only having trouble with the units table, then you need the new PFM.

  5. #5

    Default Re: Trouble using Pack File

    Quote Originally Posted by erasmus777 View Post
    You either don't have the most recent version of PFM or you need .NET 2.0 or better. If you're only having trouble with the units table, then you need the new PFM.
    So simple, yet surprisingly effective -_-

    Would appear I clicked one of the older download links on the main PFM page,

    Everything seems in order now. /facepalm - such a waste of time/thread...but truly thank you for that bit of information

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •