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

Industry Giant 2 fails to start #163

Closed
Kevok93 opened this issue Jun 29, 2022 · 2 comments
Closed

Industry Giant 2 fails to start #163

Kevok93 opened this issue Jun 29, 2022 · 2 comments

Comments

@Kevok93
Copy link

Kevok93 commented Jun 29, 2022

Hello again,

I picked up Industry Giant 2 from Steam ($2 sale), but since Wine's ddraw runs at a brisk 6fps I thought I'd give this a shot. The original debug ddraw exited immediately (but cleanly) after dd_GetCaps, so I added a bunch of caps from Wine's implementation and it seemed to move forward. Unfortunately, the next stopping point is dd_EnumDevices, after calling this the system goes into the same 'exit immediately' pattern as before. INI file is unmodified. Caps changes are summarized below.

cnc-ddraw.log

        lpDDDriverCaps->dwCaps =
            DDCAPS_3D                       |
            DDCAPS_BLT                      | 
            DDCAPS_PALETTE                  | 
            DDCAPS_BLTCOLORFILL             | 
            DDCAPS_BLTSTRETCH               | 
            DDCAPS_BLTDEPTHFILL             |
            DDCAPS_BLTFOURCC                |
            DDCAPS_CANCLIP                  | 
            DDCAPS_CANBLTSYSMEM             |
            DDCAPS_GDI;
        lpDDDriverCaps->dwCaps2 = 
            DDCAPS2_CERTIFIED               |
            DDCAPS2_NOPAGELOCKREQUIRED      |
            DDCAPS2_PRIMARYGAMMA            |
            DDCAPS2_WIDESURFACES            |
            DDCAPS2_CANRENDERWINDOWED;
        lpDDDriverCaps->dwPalCaps = 
            DDPCAPS_8BIT                    | 
            DDPCAPS_PRIMARYSURFACE;
        lpDDDriverCaps->ddsCaps.dwCaps = 
            DDSCAPS_FLIP                    |
            DDSCAPS_OFFSCREENPLAIN          |
            DDSCAPS_PALETTE                 |
            DDSCAPS_PRIMARYSURFACE          |
            DDSCAPS_TEXTURE                 |
            DDSCAPS_ZBUFFER                 |
            DDSCAPS_MIPMAP;
        lpDDDriverCaps->dwCKeyCaps = 
            DDCKEYCAPS_DESTBLT              |
            DDCKEYCAPS_SRCBLT;
        lpDDDriverCaps->dwFXCaps = 
            DDFXCAPS_BLTALPHA               |
            DDFXCAPS_BLTMIRRORLEFTRIGHT     |
            DDFXCAPS_BLTMIRRORUPDOWN        |
            DDFXCAPS_BLTROTATION90          |
            DDFXCAPS_BLTSHRINKX             |
            DDFXCAPS_BLTSHRINKXN            |
            DDFXCAPS_BLTSHRINKY             |
            DDFXCAPS_BLTSHRINKYN            |
            DDFXCAPS_BLTSTRETCHX            |
            DDFXCAPS_BLTSTRETCHXN           |
            DDFXCAPS_BLTSTRETCHY            |
            DDFXCAPS_BLTSTRETCHYN;
@FunkyFr3sh
Copy link
Owner

The game is trying to use Direct3D, cnc-ddraw does only support games using a DirectDraw(Software) renderer. I don't think there is a way to switch the renderer in this game, I had a look into it before.

@FunkyFr3sh
Copy link
Owner

Direct3D is not supported by cnc-ddraw.

Usually you can tell by the look of the game if it's a 3D game or not, but you can also let cnc-ddraw generate a debug log and search for "IDirect3D" - Link: #44

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