Jump to content
⚠ Known Issue: Media on User Profiles ×

Modpatcher


dreadylein

Recommended Posts

The patcher is not working (using windows 8) this is the error i get

 

 

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\XCOM Enemy Unknown\Binaries\Win32\log.txt' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append)
at Modpatcher.Form1.log(String tmp)
at Modpatcher.Form1.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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: 4.0.0.0
Win32 Version: 4.0.30319.18033 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Modpatcher
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/XCOM%20Enemy%20Unknown/Binaries/Win32/modpatcher.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18037 built by: FX45RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18022 built by: FX45RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18033 built by: FX45RTMGDR
CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.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.
Link to comment
Share on other sites

  • Replies 249
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

I recently returned to XCOM and am having trouble getting Modpatcher to work 100%. Some of my edits get into the game just fine while others do not. The ones that work include my tweaks to Classic mode to reduce alien crit bonuses. Adding extra small item slots to some armors do not. These changes were all working before Xmas.

Edited by orinocco
Link to comment
Share on other sites

@Orinocco

 

Those sorts of edits are working for me via modpatcher, so I suspect your copy of X-Com is phoning home for updates:

 

 

Ensure X-Com is *unable* to phone home to acquire certain updates (intended to prevent cheating on multiplayer) that will overwrite part of the mod. There are two ways to do this:
a) Offline Mode. Easier to accomplish. This prevents Steam from connecting to the Internet, but you won't be able to chat or update other games.
a. Start Steam.
b. Steam Menu (top left) > Go Offline > Restart in offline mode.
b) Modifying hosts file -- prevents XCom from calling out. More complicated, but lets you use Steam's online functions.
a. Start Menu > Right click on Notepad, select "Run as Administrator"
b. File > Open > %systemroot%\system32\drivers\etc\hosts -- The hosts file has no . suffix, make sure you don't add .txt or anything else. Also, %systemroot% on my system is C:\Windows, but it may vary.
c. Add these three lines to the file:
# Prevent XCOM Phone Home
127.0.0.1 prod.xcom.firaxis.com
127.0.0.1 65.118.245.165
d. Save the file.
Link to comment
Share on other sites

johnnylump,

 

Holy crap! You were right! I modified my Hosts file according to your excellent instructions and everything is right again. Thank you.

 

You know, I was aware ET often phoned home to momma and I had the exe blocked in my firewall .... those sneaky #####'s

Link to comment
Share on other sites

  • 1 month later...

@ dreadylein

 

If I wanted to modpatch two separate ini files, should I run modpatcher twice in succession with each filename as a parameter, or should I use both ini files as parameters in a single run? Or does it matter?

 

That is

modpatcher DefaultGameCore_t.mod DefaultMPGame_t.mod

OR

modpatcher DefaultGameCore_t.mod

modpatcher DefaultMPGame_t.mod

 

?

 

Thanks ...

 

... Upon further testing, I'm guessing modpatcher only works on DefaultGameCore.ini settings, right?

Edited by johnnylump
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...