PDA

View Full Version : Just Cause 2 and Win XP


Cowsheep
28-03-2010, 03:13
Offically not supported, i want to care about it.
The imports to the dx 10 dlls are taken via delayed imports.

At first, there is a VerifyVersionInfoA.
Xp fails, so eax is 0, Jnz after Test eax, eax is not taken -> Bad boy msg: Newer version of windows needed.
Ok, patched it.

Then, the error "Not enough storage is available to complete this operation" appears.
Why?
CocreateInstance (ole32.dll) fails with error_sxs_key_not_found, That leads directly to the error msg.

Inside that function (in ole32.dll) GetCurrentThread is called followed by OpenTreadToken.
It fails with ERROR_NO_TOKEN.

Till that point, loading a dx10 dll was not tried.


Can i break in Olly on a specific LastErr?

Cowsheep
30-03-2010, 11:57
The error is caused by the failure of loading the file dxgi.dll. Its Vista and 7 exclusive, but i collected all substitute dlls. Nothing red in Dependency Walker anymore.

The game exe fails loading this dll with ERROR_ACCESS_DENIED, loading the dll with Olly results in "Failed to load dll" and ERROR_INVALID_NAME.

How to make the Win7 dlls loadable in XP? (All 81 substitute dlls are there, no missing function according to Dependency Walker.)

Cowsheep
07-04-2010, 06:27
Another attemp:
I copied all dlls from my win 7 pc to on my xp pc and added the path of the dlls to the PATH variable.

Now the game accesses the dxgi.dll from C:\JC2Dlls, but that dll tries to load all substitute dlls from C:\WinXp\System32 (and not from C:\JC2Dlls)

How to stop that?

ReLoaDeR
26-08-2010, 06:00
there's a way to make just cause 2 work on xp?!! plz tell me how!!! if you have get to the not enough blah blah error then it's already a good step... sorry for my bad english

Cowsheep
26-08-2010, 06:53
No, i failed:(:(

ReLoaDeR
26-08-2010, 06:55
come on i cant wait to play this game... and i would not upgrade to win7 just to play it... this is sucks
there's a way to make justcause2.exe load the dlls from windows 7?

ShadowDuke
27-08-2010, 21:41
If it's that simple... ;)

Win7 is good, why don't want to upgrade?