Results 1 to 1 of 1

Thread: Editing Startpos.esf and CTD's

Hybrid View

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

    Default Editing Startpos.esf and CTD's

    So, I've been doing some toying around with the startpos.esf file. I have the dbeditor to look things up and the ESf editor to actually change the startpos file. And I've read through most of this; http://www.twcenter.net/forums/showthread.php?t=272139

    Unfortunately it's not going entirely as planned and I'm wondering if someone might mind giving me a few pointers.


    I've changed the starting gold of Britain using the esfeditor, and started a new campaign and this works fine. So far so good.

    Next step I want to try is adding a second starting tech to the same faction. Let's say Empirism. The research cost is 38, so I look up the correct tech in the correct faction, change the second line (2) to 0 and change the third line (0) to 38.

    I save the changes, and now each time I start up a new campaign, I get a CTD. (CTD occurs when the game is loading the new grand campaign.)

    What did I miss? What should I have changed further to get it to work?


    On a somewhat related note, using the dbeditor and esfeditor goes fine, but I get an awfull lot of errors as such;

    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.NullReferenceException: Object reference not set to an instance of an object.
    at EsfEditor.Parser.TitleParser.TitlesInValues(List`1 vals, Boolean& found)
    at EsfEditor.Parser.TitleParser.GetTitle(IEsfNode node, List`1& children)
    at EsfEditor.Forms.EsfEditorForm.treeView_AfterExpand(Object sender, TreeViewEventArgs e)
    at System.Windows.Forms.TreeView.OnAfterExpand(TreeViewEventArgs e)
    at System.Windows.Forms.TreeView.TvnExpanded(NMTREEVIEW* nmtv)
    at System.Windows.Forms.TreeView.WmNotify(Message& m)
    at System.Windows.Forms.TreeView.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.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    EsfEditor 1.4.8
    Assembly Version: 1.4.8.0
    Win32 Version: 1.4.8.0
    CodeBase: file:///C:/Users/Administrator.NTB-Peter/Desktop/EsfEditor%201.4.8/EsfEditor%201.4.8.exe
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    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.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    goxocbch
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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.


    Is there anything I can do to reduce that number?
    Last edited by dutchcarnage; March 13, 2011 at 10:26 AM.

Posting Permissions

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