Ultimate-ASI-Loader icon indicating copy to clipboard operation
Ultimate-ASI-Loader copied to clipboard

ASI Loader with a DX7 game (Hitman Codename 47)

Open vrubayka opened this issue 3 years ago • 17 comments

I want to use the loader with a DX7 game and also use DSOAL (dsound.dll). How do I rename the loader .dll? DDraw.dll isn't an option since I'm also using dgVoodoo2.

Everything I tried (dinput, etc.) hasn't been hooked. I tried renaming the DSOAL .dlls into .asis and putting them and the corresponding ini in a properly set-up scripts folder, but DSOAL didn't work. The scripts folder contains a global.ini:

[GlobalSets] FindModule=1

and I'm already hooking a widescreen fix .asi so it should be working.

vrubayka avatar Feb 12 '22 13:02 vrubayka

I had opened a problem a while ago: https://github.com/ThirteenAG/WidescreenFixesPack/issues/1024

Kappa971 avatar Feb 12 '22 17:02 Kappa971

Can you upload exe of this game?

ThirteenAG avatar Feb 12 '22 19:02 ThirteenAG

Sure (version b192 indicated in the menu): Hitman.zip

Kappa971 avatar Feb 12 '22 19:02 Kappa971

This game also has an OpenGL render that doesn't suffer from the same problems as DirectX7 with Windows 10/11. Unfortunately the Widescreen fix only works with DirectX7.

Kappa971 avatar Feb 12 '22 22:02 Kappa971

Hitman.zip Kappa971's .exe doesn't work for me, so here's mine. Basically my issue is that I'm using D3DImm.dll and DDraw.dll from dgVoodoo2 and dsound.dll from DSOAL. Is there any way I can rename the ASI loader, so that it works with the game?

vrubayka avatar Feb 13 '22 11:02 vrubayka

The game works perfectly as you can see, maybe your game is another version, this is version b192: Immagine 2022-02-13 132049

Hitman  Codename 47 Screenshot 2022 02 13 - 13 05 17 93

Basically my issue is that I'm using D3DImm.dll and DDraw.dll from dgVoodoo2 and dsound.dll from DSOAL. Is there any way I can rename the ASI loader, so that it works with the game?

I guess the developer needs to make some changes to Ultimate ASI Loader. A Widescreen fix for OpenGL rendering would perhaps be better (but I guess more complex) instead of using the existing Widescreen fix in DirectX7.

EDIT Your executable is dated November 22, 2000, mine is dated December 18, 2000, so your version of the game is probably older than mine.

Kappa971 avatar Feb 13 '22 12:02 Kappa971

I guess I'd need a dump of exe instead.

ThirteenAG avatar Feb 13 '22 16:02 ThirteenAG

I guess I'd need a dump of exe instead.

What should I do? I never did it.

Kappa971 avatar Feb 13 '22 16:02 Kappa971

Use something like PETools, select process, then dump full, save.

ThirteenAG avatar Feb 13 '22 16:02 ThirteenAG

Dumped.zip

vrubayka avatar Feb 13 '22 16:02 vrubayka

b192: Dumped.zip

Kappa971 avatar Feb 13 '22 16:02 Kappa971

Unfortunately those don't have original imports table, so I checked with debugger, I think msacm32.dll, version.dll or winmm.dll should still work.

ThirteenAG avatar Feb 16 '22 10:02 ThirteenAG

I think msacm32.dll, version.dll or winmm.dll should still work.

I think I have already tried to rename the Ultimate ASI Loader dll in all the names present in the description on the first page, only ddraw.dll (and dsound.dll even if I have not tried it personally, as that dll is already in use from DSOAL) seem to load the Widescreen fix. Maybe @vrubayka can confirm it.

Unfortunately those don't have original imports table

Can I help in any way?

Kappa971 avatar Feb 16 '22 11:02 Kappa971

I think I have already tried to rename the Ultimate ASI Loader dll in all the names present in the description on the first page, only ddraw.dll (and dsound.dll even if I have not tried it personally, as that dll is already in use from DSOAL) seem to load the Widescreen fix. Maybe @vrubayka can confirm it.

Then I guess there's nothing I can do?

ThirteenAG avatar Feb 16 '22 12:02 ThirteenAG

Then I guess there's nothing I can do?

I guess not, unless you create a Widescreen fix for OpenGL renderer, if possible. If it isn't possible, I think that this issue and mine opened previously, can be closed. Anyway, thank you for your patience.

Kappa971 avatar Feb 16 '22 12:02 Kappa971

Yeah only dsound and ddraw get hooked sadly. Anyway hopefully somebody will get this to work maybe with a different wrapper or something.

vrubayka avatar Feb 17 '22 00:02 vrubayka

Yeah only dsound and ddraw get hooked sadly. Anyway hopefully somebody will get this to work maybe with a different wrapper or something.

A Widescreen fix for OpenGL would be perfect as:

  1. You can turn on anti-aliasing without corrupting the text.
  2. It is more compatible with new versions of Windows and allows you to activate an fps limiter (in case you have a Freesync/G-Sync display with high refresh rate).

But I think that if it hasn't been done so far, maybe it isn't possible (or too complex).

Kappa971 avatar Feb 17 '22 00:02 Kappa971