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

Linux - resolution settings doesn't work #406

Open
T1t4n25 opened this issue Jan 2, 2025 · 1 comment
Open

Linux - resolution settings doesn't work #406

T1t4n25 opened this issue Jan 2, 2025 · 1 comment
Labels
bug Something isn't working Linux Contains Linux issues

Comments

@T1t4n25
Copy link

T1t4n25 commented Jan 2, 2025

resolution settigns don't work and game can't change default resolution to another windowed one nor full screen
using .NET8 Binary on linux
client ver: 8.65.1
Game:Red Alert 2 : Yuri's revenge
these files I created with the help of Discord server staff.
wine-dta.sh

#!/bin/sh
WINEPREFIX="/home/zeyad/wineprefixes/games32-test" wineconsole wine-game.bat & BACK_PID=$! wait $BACK_PID

wine-game.bat

gamemd-spawn.exe -SPAWN -CD -LOG

edit: tested on the latest 8.65.2 with no luck
tried the latest cnc_ddraw.dll with no luck

@brichardson1991 brichardson1991 changed the title resolution settings doesn't work Linux - resolution settings doesn't work Jan 3, 2025
@GrantBartlett
Copy link
Member

https://discord.com/channels/188156159620939776/1333144286836818041/1333144286836818041

To fix

Install fresh version of C&C (without CnCNet)

Copy installation folder to desktop (or anywhere)

Download packag_8.67.3.tar and untar

Copy entire package contents into C&C folder

Open terminal to C&C Folder

run chmod u+x ./YRLauncherUnix.sh 

fix a weird carriage return bug: sed -i -e 's/\r$//' YRLauncherUnix.sh

create file: touch wine-dta.sh
use vi to insert contents: 
#!/bin/sh
wineconsole Resources/Compatibility/Unix/wine-game.bat &
BACK_PID=$!
wait $BACK_PID


to make executable, run chmod u+x wine-dta.sh

Create this new path Resources/Compatibility/Unix/ with mkdir

In the Unix folder, create a file wine-game.bat with the contents:
gamemd-spawn.exe -SPAWN -CD -LOG

@GrantBartlett GrantBartlett added the bug Something isn't working label Jan 27, 2025
@brichardson1991 brichardson1991 added the Linux Contains Linux issues label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Contains Linux issues
Projects
None yet
Development

No branches or pull requests

3 participants