FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows ME, 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.27k stars 146 forks source link

Does not work on winlator7.1 #343

Open xwpd opened 2 months ago

xwpd commented 2 months ago

Does not work on winlator7.1. But this is the easiest way to play old games on mobile. Please help fix it.

FunkyFr3sh commented 2 months ago

What exactly does not work? I think cnc-ddraw is still included with winlator, isn't it?

if it's a problem with winlator then better report it over there: https://github.com/brunodev85/winlator

Or is it only 1 game that doesn't work but other old games work fine? In that case you have to tell me what game it is so I can check

xwpd commented 2 months ago

cnc-ddraw config.exe cannot be started. Override ddraw in winecfg manually .The game can be started, but it does not take effect and is not converted to d3d9

FunkyFr3sh commented 2 months ago

What game is it?

xwpd commented 2 months ago

RA2

FunkyFr3sh commented 2 months ago

Yeah that should work. Can you generate a debug log? https://github.com/FunkyFr3sh/cnc-ddraw/issues/44

Also, are other games working?

xwpd commented 2 months ago

The game can be launched, but after selecting the Skirmish, the game crashes. cnc-ddraw-1.log.zip

FunkyFr3sh commented 2 months ago

Looking good, don't think it's a cnc-ddraw problem.

Maybe try a older wine version?

xwpd commented 2 months ago

I tried using wine8.0.2 with winlator7.1, but it crashed after clicking on the Skirmish. This may be a problem with Winlator7.1

FunkyFr3sh commented 2 months ago

I tested it on my linux with latest cnc-ddraw and wine 9.0 and it works fine. So either it's a winlator problem or it's a problem with your game installation Screenshot from 2024-08-09 06-19-51

xwpd commented 2 months ago

When I manually change to gdi mode, I can engage in Skirmish, but the screen sometimes flickers.

xwpd commented 2 months ago

So the game installation should be fine. You can try to install a winlator7.1 on your phone

FunkyFr3sh commented 2 months ago

Maybe try to enable "wine debug" and see if there something in the logs?

or try this in ddraw.ini renderer=openglcore

or try to enable VirGL instead of Turnip/Zink ?

xwpd commented 2 months ago

I tried it, but it still crashes

FunkyFr3sh commented 2 weeks ago

I just found this here randomly @xwpd : https://www.reddit.com/r/winlator/comments/1fyu272/drive_d_speed_is_slower/

They're also saying that skirmish is crashing, but one guy found a workaround:

running it with VirGL also works somehow. virgl is slow but i think i found a workaround for that.

just create a skirmish game with virgl, save the game, exit container, switch back to turnip, and load the game. voila!

its cumbersome, yes I know :D

xwpd commented 2 weeks ago

Thanks ,i will try it.