this is probably a really dumb question but im new to modding on hit man, but is this safe? just coz my windows defender stopped me from running the cmd file? thanks!
It says The argument 'C:\Users\vandr\Downloads\patcher.ps1' to the -File parameter does not exist. Provide the path to an existing '.ps1' file as an argument to the -File parameter. does any body know how to fix this
I can't get this to work, this is what it says (sorry for the spanish parts) help anyone? [INFO] Searching for packagedefinition.txt [INFO] A backup file already exists for game patch 2.72.0.0 Excepción al llamar a "Start" con los argumentos "0": "El sistema no puede encontrar el archivo especificado" En C:\Users\isant\Downloads\patcher.ps1: 122 Carácter: 5 + $process.start() | Out-Null + ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : Win32Exception
Excepción al llamar a "WaitForExit" con los argumentos "0": "No hay ningún proceso asociado a este objeto." En C:\Users\isant\Downloads\patcher.ps1: 123 Carácter: 5 + $process.WaitForExit() + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : InvalidOperationException
No se puede llamar a un método en una expresión con valor NULL. En C:\Users\isant\Downloads\patcher.ps1: 125 Carácter: 5 + [PsCustomObject]@{ + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
[ERROR] An error occured during packagedefinition.txt decryption : exit code ------------------------------------------------------- Show-Message : No se puede enlazar el argumento con el parámetro 'Message' porque es una cadena vacía. En C:\Users\isant\Downloads\patcher.ps1: 416 Carácter: 49 + Show-Message -Type ERROR -NoPrefix -Message $result.StdErr + ~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Show-Message], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Show-Message
The patch seemed to work, but I have 2 mods that replace the same chunk0patch4 file, so how would I go about having both of these mods installed at the same time?
Get the absolute path to your hitman2.exe file. (e.g. C:\Program Files (x86)\Steam\steamapps\common\HITMAN2\Retail\HITMAN2.exe)
And compare with the value of this key : "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 863550\InstallLocation" (search regedit.exe via the start menu of Windows)
what do you mean by And compare with the value of this key : "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 863550\InstallLocation" (search regedit.exe via the start menu of Windows)
did what you said with the regedit and nothing changed, it still comes up with steam folder found but not the hitman2.exe even though its there in the retail folder
Thank you for the reply Redh0xyd. This helped me to solve my issue.
The registry did not match, and then I realized that I had used Steam's move install directory tool to transfer Hitman2 from one drive to another a month or two ago. Apparently Steam only migrates the files without updating their registry with Windows. Seems like a decent flaw with Steam that I have never heard of.
I tried deleting HITMAN2.exe and then verifying with Steam, but this didn't work because the game was still "installed" in the same place according to Windows. But doing a full reinstall did fix the issue!
So anyone else with this issue, if the patcher returns "HITMAN2.exe not found", just reinstall the game and it will work fine.
29 comments
Mods on NexusMods, popular at least, are always totally safe
[INFO] Searching for packagedefinition.txt
[INFO] A backup file already exists for game patch 2.72.0.0
Excepción al llamar a "Start" con los argumentos "0": "El sistema no puede encontrar el archivo especificado"
En C:\Users\isant\Downloads\patcher.ps1: 122 Carácter: 5
+ $process.start() | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : Win32Exception
Excepción al llamar a "WaitForExit" con los argumentos "0": "No hay ningún proceso asociado a este objeto."
En C:\Users\isant\Downloads\patcher.ps1: 123 Carácter: 5
+ $process.WaitForExit()
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
No se puede llamar a un método en una expresión con valor NULL.
En C:\Users\isant\Downloads\patcher.ps1: 125 Carácter: 5
+ [PsCustomObject]@{
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
[ERROR] An error occured during packagedefinition.txt decryption : exit code
-------------------------------------------------------
Show-Message : No se puede enlazar el argumento con el parámetro 'Message' porque es una cadena vacía.
En C:\Users\isant\Downloads\patcher.ps1: 416 Carácter: 49
+ Show-Message -Type ERROR -NoPrefix -Message $result.StdErr
+ ~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Show-Message], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Show-Message
Any idea why I'm getting this error? I have a retail copy of the game, and it runs just fine.
And compare with the value of this key : "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 863550\InstallLocation" (search regedit.exe via the start menu of Windows)
The registry did not match, and then I realized that I had used Steam's move install directory tool to transfer Hitman2 from one drive to another a month or two ago. Apparently Steam only migrates the files without updating their registry with Windows. Seems like a decent flaw with Steam that I have never heard of.
I tried deleting HITMAN2.exe and then verifying with Steam, but this didn't work because the game was still "installed" in the same place according to Windows. But doing a full reinstall did fix the issue!
So anyone else with this issue, if the patcher returns "HITMAN2.exe not found", just reinstall the game and it will work fine.
Thanks again for your help.