Jump to content
XCOMUFO & Xenocide

Having issues getting X-Com Hack v3.1 to Work (Steam Version)


Almainyny

Recommended Posts

I can't seem to get the program to find my save games. I have it where it recommended it be installed (Program Files (x86)/Stonepool/XCOMHack v3.1/), got the Shortcut on my Desktop. I've tried every single directory for my save game that I can think of, and it still gives this error: "Unhandled exception has occured in your application. If you click Contine, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately."

 

"Path connot be null."

"Paramenter name: path."

 

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

 

************** Exception Text **************

System.ArgumentNullException: Path cannot be null.

Parameter name: path

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)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

at System.IO.File.WriteAllBytes(String path, Byte[] bytes)

at X_Com_Hack_v3._1.CFGFILE.SaveSetting(String Section, String NewValue)

at X_Com_Hack_v3._1.ChooseToEdit.selectUFODirectory()

at X_Com_Hack_v3._1.ChooseToEdit.GetClick(Rectangle ptClick)

at X_Com_Hack_v3._1.frmMain.frmMain_MouseDown(Object sender, MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.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.5448 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

----------------------------------------

X-Com Hack v3

Assembly Version: 3.0.17.1

Win32 Version: 3.0.17.1

CodeBase: file:///C:/Program%20Files%20(x86)/Stonepool/XCOMHack%20v3.1/X-Com%20Hack%20v3.exe

----------------------------------------

Microsoft.VisualBasic

Assembly Version: 8.0.0.0

Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

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.5447 (Win7SP1GDR.050727-5400)

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.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Runtime.Remoting

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

----------------------------------------

System.Configuration

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

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.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

System.Core

Assembly Version: 3.5.0.0

Win32 Version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.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.

 

 

If it makes a difference, I'm using Windows 7 Professional (64-bit).

Link to comment
Share on other sites

  • 1 month later...
"Path connot be null."

"Paramenter name: path."

 

If it makes a difference, I'm using Windows 7 Professional (64-bit).

 

Well, sorry to take so long to get back to you. School has been ridiculously busy (we're writing an operating system and as you can imagine that is difficult :) ). Anyway, the path cannot be null implies to me that something is not getting set right. Can you open the xc31.cfg (I think that's the name of the file)? If you can, what does the UFOPath say? The issue could be related to the fact that you don't have both games, in which case I'm a really terrible programmer. I'll take a look at the code in the next couple days and maybe push a patch that fixes this and some other errors people have had, especially the money not changing properly. I was hoping to be able to implement some new features, but it's been too long since the last version, so I'll patch these issues up and push out a new one soon.

Link to comment
Share on other sites

I'm pretty sure I fixed the problem. I don't understand why what was happening happened, but I think I fixed it. I was able to get that error, and when I did the same thing, I didn't get the error in the updated version. So we'll see. I'll get the new version pushed out (I wanna fix a couple other bugs real quick.
Link to comment
Share on other sites

  • 2 weeks later...
Okay, didn't get the issue resolved. Still working on a resolution. The problem is caused by not selecting the correct folder. I'll let you know when I find a solution that works. Maybe I'll try to make the program search for it itself.
Link to comment
Share on other sites

  • 10 months later...
  • 1 month later...

I have the Gamer's Gate/DOSBox version, and had the same problem. Setting the program to "run as administrator" (in shortcut properties, compatibility tab) fixed this for me.

 

EDIT: I was able to stop the crash, but the program doesn't see the saved game files.

EDIT2: Okay. Moving the saved game directory from "C:\Users\...\AppData\Local\VirtualStore\Program Files (x86)\X-Com UFO Defence\XCOM", editing, then moving them back to the VirtualStore directory solves all of the issues I had.

EDIT3: Whew! All that for wanting to change the layout of my starting base... :-)

Edited by Blucher
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...