Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullRefrenceException when running off the command line #2

Closed
jbzdarkid opened this issue Aug 8, 2018 · 6 comments
Closed

NullRefrenceException when running off the command line #2

jbzdarkid opened this issue Aug 8, 2018 · 6 comments

Comments

@jbzdarkid
Copy link
Contributor

C:\Users\localhost\Downloads>cd SpacechemPatch

C:\Users\localhost\Downloads\SpacechemPatch>SpacechemPatch.exe
Can't find game executable SpaceChem.exe ! Please execute this program from the SpaceChem game folder, or give the path of the game folder as a command line argument. Exiting...

C:\Users\localhost\Downloads\SpacechemPatch>SpacechemPatch.exe "C:\Program Files (x86)\Steam\steamapps\common\SpaceChem"
This program is experimental and was only tested with the Steam version of the game. There is NO WARRANTY on it. Please remember that you can always restore the original game files by verifying game integrity in Steam.
Do you want to continue? [y/N]
Y
Making backup of SpaceChem.exe
Patching...

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at SpacechemPatch.Program.CollectReplacementsForTypes(IEnumerable`1 typeDefinitions, TypeFinder typeFinder, Dictionary`2 typeReplacements, Dictionary`2 methodReplacements, Dictionary`2 fieldReplacements)
   at SpacechemPatch.Program.CollectReplacements(ModuleDefinition spacechemAssembly, ModuleDefinition ownAssembly, Dictionary`2& typeReplacements, Dictionary`2& methodReplacements, Dictionary`2& fieldReplacements)
   at SpacechemPatch.Program.Main(String[] args)
@jbzdarkid
Copy link
Contributor Author

Verified contents and re-ran:

This program is experimental and was only tested with the Steam version of the game. There is NO WARRANTY on it. Please remember that you can always restore the original game files by verifying game integrity in Steam.
Do you want to continue? [y/N]
Y
Patching...
All OK

Am I supposed to be offered options, or does this just apply "everything"?

@12345ieee
Copy link
Collaborator

What release are you using? 0.2 doesn't even have a CLI anymore.

@jbzdarkid
Copy link
Contributor Author

Ah, might've been an older version. Let me try again.

@jbzdarkid
Copy link
Contributor Author

image
Or maybe you're not using that. Is there another way to get the version? --version maybe?

@jbzdarkid
Copy link
Contributor Author

At any rate, if there's no console version than it must be older, I redownloaded and it seems to be working now.

@12345ieee
Copy link
Collaborator

Versions older than 0.2 had the version mistakenly set as 1.0, because it was never changed from the default.

From 0.2 onward, we're keeping the version number right, if you look up the version of the download, you'll see it's 0.2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants