Forums

[Script] Command And Conquer : Red Alert

Auteur Réponses
KoRnKloWn Dimanche 8 Juillet 2012 à 20:47
KoRnKloWn

I started working on getting Red Alert working a few days ago, however I need some testers, because I get it to install correctly, but when I try to play my mouse doesn't move at all, I need to see if others are having this same issue. The script is posted below.


#!/bin/bash
# Date: (7/3/2012)
# Wine version used: 1.3.12
# Distribution used to test : Linux Ubuntu 12.04 x64
# Author: Tory Gaurnier
# Licence: OpenSource
 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Command And Conquer : Red Alert"
PREFIX="RedAlert"
DDRAWURL="http://hifi.iki.fi/cnc-ddraw/ddraw.dll"
PATCHURL="http://nyerguds.arsaneus-design.com/cncstuff/ra303patch.exe"
 
# Starting the script
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Westwood Studios Inc." "www.commandandconquer.com" "Tory Gaurnier" "$PREFIX"

POL_SetupWindow_message "$(eval_gettext 'NOTE: This installer requires you to use a CD, if you downloaded the freeware ISO images released by EA, please burn them to a CD or DVD using something like Brasero, and insert into your CD drive. Mounting the ISO images may work with certain software, however I know that Mounty does not work for this.')" "$TITLE"

# Create temp folder and download needed files
POL_System_TmpCreate "RedAlert"
cd $POL_System_TmpDir
POL_Download "$PATCHURL"
POL_Download "$DDRAWURL"

# Create and setup wine prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "1.3.12"
POL_Wine_OverrideDLL "native,builtin" "ddraw"
Set_OS "win98"

# Install game
POL_SetupWindow_cdrom
SETUP_EXE=$CDROM/SETUP.EXE
ln -s $CDROM/ $WINEPREFIX/dosdevices/d\\:
#POL_SetupWindow_message "$(eval_gettext 'Next, mount the Soviet disk or iso image, and choose its mount location')" "$TITLE"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"

# Set back to winxp and install update patch
Set_OS "winxp"
POL_Wine start /unix "$POL_System_TmpDir/ra303patch.exe"
POL_Wine_WaitExit "$TITLE"

# Move ddraw.dll to game directory (fixes most bugs under Windows XP and Wine)
mv "$POL_System_TmpDir/ddraw.dll" "$WINEPREFIX/drive_c/WESTWOOD/REDALERT/ddraw.dll"

POL_System_TmpDelete
POL_Shortcut "RA95.exe" "$TITLE" "redalert.png"
 
POL_SetupWindow_Close
exit 0

kcinman11358 Lundi 9 Juillet 2012 à 16:57
kcinman11358Anonymous

I'll test it out tonight around 9:00pm CST. Nice work buddy
kcinman11358 Mardi 10 Juillet 2012 à 16:18
kcinman11358Anonymous

Didn't get to test it last night, will be doing it tonight
kcinman11358 Mercredi 11 Juillet 2012 à 15:50
kcinman11358Anonymous

requires to burn to a disc.... Going to buy discs in the near future
p_tony Jeudi 12 Juillet 2012 à 10:10
p_tonyAnonymous

Hello kornklown,

I started a script for Red Alert, and I saw yours.

I have no cd drive on my machine, so I want to install the ISO images provided by EA.

Your script does not work with disk images mounted, but I think it can be fixed... :)

When it's a virtual disk, you must delete the symlink 'd ::' and recreates by linking it to the iso image.

[code
language=playonlinux]
    POL_Debug_Message "changing d\\:\\: to DISK_IMAGE path"
    rm -f $WINEPREFIX/dosdevices/d\\:\\:
    ln -s $DISK_IMAGE $WINEPREFIX/dosdevices/d\\:\\:   
[/code]

Then we have to go disk 'd:' and run the setup.exe
[code language=playonlinux]
cd $WINEPREFIX/dosdevices/d\\:
POL_Wine_WaitBefore "$TITLE"
POL_Wine "SETUP.EXE"
POL_Wine_WaitExit "$TITLE"
[/code]


I hope my English is understandable


edit:Also, use POL_Wine "SETUP.EXE" instead of POL_Wine start /unix

Edité par p_tony


Portable Asus EeePC 1215B-SIV134M: ArchLinux Current x86_64 ~~ AMD E-450 ~~ AMD Radeon HD6320, pilote catalyst ~~ KDE desktop
KoRnKloWn Jeudi 12 Juillet 2012 à 21:34
KoRnKloWn

I know, the problem with this though, is I've tried installing by mounting the ISO image, and it's not working (at least for me), and if I can't successfully test it I can't have it in my script. But I can give it another shot, maybe I was missing something, but unfortunately it'll be a little while before I can, I'm really busy right now with some other projects (I'm constantly juggling volunteer projects), once I get some head way on a web site I'm creating, I'll play with Red Alert some more. (One of the main reasons I halted on this one for a while is because I get stuck in the game with the mouse not moving, and I can't figure out how to fix it).
kcinman11358 Vendredi 13 Juillet 2012 à 21:04
kcinman11358Anonymous

I believe there is something about that on the winehq page.

http://appdb.winehq.org/objectManager.php?sClass=version&iId=727
KoRnKloWn Lundi 16 Juillet 2012 à 21:34
KoRnKloWn

Yeah, I already knew about that, I tried that but couldn't get it to work, however I was using Mounty, and I haven't had the chance to try using the sudo mount command to mount first, I've been super busy lately with some other projects I've been working on, I'm going to try to get back to this as soon as I can.
p_tony Mardi 17 Juillet 2012 à 13:31
p_tonyAnonymous

HI,

Kornklown, did you try with different versions of wine? not only for playing RA but also to install it.

Also take a look at the ddraw.ini file in /drive_c/WESTWOOD/ RedAlert/

There's different settings for the mouse:


; automatic mouse sensitivity scaling
adjmouse=false
; manual sensitivity scaling, 0 = disabled, 0.5 = half, 1.0 = normal
sensitivity=0.0
; enable C&C/RA mouse hack
mhack=true


and also the size of the window, the display 16, 24 or 32 bits (this is much better than the default 8 bits;)), the rendering engine (oepngl, gdi), and filters


Personnaly, I use wine 1.5.4, but since yesterday I have a problem with and my pc freeze each time i run RA. I don't know if it's because I'have switched to the free radeon driver. I need to do more tests

Oh and finally I have another computer to test with cd player... this is this one who freezes

Portable Asus EeePC 1215B-SIV134M: ArchLinux Current x86_64 ~~ AMD E-450 ~~ AMD Radeon HD6320, pilote catalyst ~~ KDE desktop
KoRnKloWn Mardi 17 Juillet 2012 à 16:26
KoRnKloWn

I've tried all kinds of versions of wine, to no avail, and I've played with a lot of the settings in ddraw.ini

If I can get it working more I'll test out the different bits though
p_tony Mardi 31 Juillet 2012 à 1:54
p_tonyAnonymous

sorry, nothing to do with the topic.
I'm doing something wrong, when trying to find the bbcode for font-size...

Edité par p_tony


Portable Asus EeePC 1215B-SIV134M: ArchLinux Current x86_64 ~~ AMD E-450 ~~ AMD Radeon HD6320, pilote catalyst ~~ KDE desktop
p_tony Mardi 31 Juillet 2012 à 1:54
p_tonyAnonymous

here too :-/

Edité par p_tony


Portable Asus EeePC 1215B-SIV134M: ArchLinux Current x86_64 ~~ AMD E-450 ~~ AMD Radeon HD6320, pilote catalyst ~~ KDE desktop
p_tony Mardi 31 Juillet 2012 à 1:55
p_tonyAnonymous

here again :-/

Edité par p_tony


Portable Asus EeePC 1215B-SIV134M: ArchLinux Current x86_64 ~~ AMD E-450 ~~ AMD Radeon HD6320, pilote catalyst ~~ KDE desktop

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com