Jump to content


Photo

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


  • Please log in to reply
7 replies to this topic

#1 Almainyny

Almainyny

    Squaddie

  • Forum Members
  • PipPip
  • 1 posts

Posted 14 October 2011 - 07:54 AM

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).

#2 hatfarm

hatfarm

    Sound Department

  • Xenocide Sound Department
  • 133 posts

Posted 17 November 2011 - 03:40 PM

"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.

#3 hatfarm

hatfarm

    Sound Department

  • Xenocide Sound Department
  • 133 posts

Posted 17 November 2011 - 06:26 PM

Does this error happen upon startup, or does it happen when you click on something? What is it that you're clicking on?

#4 hatfarm

hatfarm

    Sound Department

  • Xenocide Sound Department
  • 133 posts

Posted 18 November 2011 - 12:35 AM

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.

#5 hatfarm

hatfarm

    Sound Department

  • Xenocide Sound Department
  • 133 posts

Posted 27 November 2011 - 06:31 PM

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.

#6 DouglasKRich

DouglasKRich

    Squaddie

  • New Forum Members
  • PipPip
  • 1 posts

Posted 07 October 2012 - 02:41 PM

Hi there.

Any luck on getting this to work? I am suffering the same issue.

#7 Blucher

Blucher

    Squaddie

  • New Forum Members
  • PipPip
  • 1 posts

Posted 11 November 2012 - 10:53 AM

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, 11 November 2012 - 11:48 AM.


#8 hatfarm

hatfarm

    Sound Department

  • Xenocide Sound Department
  • 133 posts

Posted 12 November 2012 - 09:42 PM

Thank you for updating this Blucher. Hopefully that helps people who are looking for a solution.