Jump to content
The Dark Mod Forums

Running DR on WINE (using PlayonLinux)


Recommended Posts

I'm working on a installation/configuration script to run DR on Mac OS, using Wine (and frontend PlayonMac/Playonlinux)

Because there is no DR build for Mac os, at the moment (windows and linux users are in luck).

I also did this succesfully for TDM. (tdm forumpost, post at Playonlinux).

 

I hope some (Linux/Mac os) users who would like to help me, configure a wine-environment to run DR on it.

The part of the script that create the wine-environment works fine and DR runs (after setting the project paths).

DR crashes at some points (like drawing a block, load textures, etc) but the console works!

 

For the experienced users:

This pol/pom script creates a wine 1.7.16 wine environment, install's vc++2013 and set the renderer to opengl.

After this, pol/pom download and runs manualy the DR installer and creates a shortcut.

 

To run the installation script and test DR, follow the steps:

  • install playonmac/playonlinux
  • copy the script from the spoiler in a text file and save it. Or download the attachment
  • start playonlinux / playonmac
  • select tools > run a local script > select the script and accept all warnings.

    (in one of the windows, you will find a debug-button in the left down corner)

  • The installer ask you how you would like to install dr, select online
  • POL creates the wine environment and create a shortcut for DR.
  • copy your darkmod folder to the created /drive_c/games/
  • Start DR using the shortcut or trough the wine taskmanager
(you can also install TDM from POL/POM first. Select install > games > check no-cd path/drm > the dark mod. and change the prefix in the script to "TheDarkMod")

 

post edit -

added new version of the polscript and debug info.

 

 

 

#=====
#!/bin/bash
# DarkRadiant POL\POM script
# Author : Freek 'Freyk' Borgerink
# Date : 2015-09-13
# Last revision : 2015-09-013
# Wine version used : 1.7.16
# Distribution used to test : Mac OS 10.9.5
# Licence : GPL

#Changes
# 20150913 - Created new script based of tdm polscript
# 20150916 - Added Unattended installation of darkradiant
# 20150916 - Added Polcall to call the installations of the libraries
 
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
  
TITLE="DarkRadiant"
PREFIX="DarkRadiant" #In the near future it must be "TheDarkMod"
EDITOR="Broken Glass Studios"
GAME_URL="http://darkradiant.sourceforge.net/"
AUTHOR="Freek 'Freyk' Borgerink"
WORKING_WINE_VERSION="1.7.16"
DRFOLDER="$WINEPREFIX/drive_c/Program Files/DarkRadiant"
SETUPFILENAME="darkradiant-2.0.2-x86.exe" 
DRSETUPDOWNLOADLOCATION="
https://github.com/codereader/DarkRadiant/releases/download/2.0.2/darkradiant-2.0.2-x86.exe
"
#md5hash of darkradiant setup file from the darkradiant site
#DRSETUPHASH="20d23b2a3a1e431b96161b964c92f43b"
GAMEFOLDER="$WINEPREFIX/drive_c/games/thedarkmod" 
 
################################
 
#function to check if the dark mod executable is present
function fncFilePresenceCheck {
        FILE="$WINEPREFIX/drive_c/Program Files/DarkRadiant/DarkRadiant.exe"
        POL_SetupWindow_message "$(eval_gettext 'Going to check the file 
presence of $FILE ')" "$TITLE"
        if [ -f $FILE ]; then
                #POL_SetupWindow_message "$(eval_gettext 'The 
DarkRadiant.exe executable is present')" "$TITLE"
                POL_Shortcut "DarkRadiant.exe" "DarkRadiant"
        else
                POL_SetupWindow_message "$(eval_gettext 'The DarkRadiant 
executable is not present on your system\nPlease rerun the updater using 
the shortcut\nand create the shortcut mannualy')" "$TITLE"
        fi
}

#function to create container and set the needed settings
function fncPrefixCreate {
    
    #create container
    POL_Wine_SelectPrefix "$PREFIX"
    POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
    
    #Container Settings - OS
    Set_OS "win7"
    
    #Container settings - video
    POL_Wine_Direct3D "UseGLSL" "enabled"
    POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
    POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
     
    #container settings - needed libraries
    POL_Call POL_Install_vcrun2013
    POL_Call POL_Install_corefonts
    POL_Call POL_Install_tahoma    
    POL_Call POL_Install_gdiplus    

    #POL_Call POL_install_msxml3
    #POL_Call POL_install_msxml4
    #POL_Call POL_install_msxml6
    #POL_Call POL_install_RegisterFonts
    #POL_Call POL_install_riched20
    #POL_Call POL_install_riched30
    
    #create the dark mod folder
    mkdir -p $GAMEFOLDER
    chmod -R ug+rw $GAMEFOLDER
}

#Starting the script
POL_SetupWindow_Init
  
#Starting debugging API
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" 
"$PREFIX"
 
#Select the download method.
#cant use POL_SetupWindow_InstallMethod, because there are more 
installation methods
POL_SetupWindow_menu "$(eval_gettext 'How would you like to install 
$TITLE?')" "Install Method" "Online|Local setup file" "|"
INSTALLMETHOD="$APP_ANSWER"
 
if [ "$INSTALLMETHOD" = "Online" ]
then
        fncPrefixCreate
        cd "$GAMEFOLDER"
        #Download tdm updater
        POL_Download "$DRSETUPDOWNLOADLOCATION" #"$TDMWINUPDATERHASH"
        #run the setup silent
    POL_Wine "$GAMEFOLDER/$SETUPFILENAME" /VERYSILENT /SUPPRESSMSGBOXES 
/NORESTART
        rm "$GAMEFOLDER/SETUPFILENAME"
        #fncFilePresenceCheck
        POL_Shortcut "DarkRadiant.exe" "DarkRadiant"
fi
 
if [ "$INSTALLMETHOD" = "Local setup file" ]
then
        #create prefix folder
        POL_SetupWindow_message "$(eval_gettext 'Please download the $TITLE setupfile from \n$GAME_URL'" "$TITLE"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the downloaded $TITLE setupfile to run.')" "$TITLE"
        fncPrefixCreate
        POL_Wine "$APP_ANSWER"
        #fncFilePresenceCheck
        POL_Shortcut "DarkRadiant.exe" "DarkRadiant"       
fi

#Set settings in darkradiant
#Select a game = The dark mod 2.0 (standalone)
#Engine Path = c:/games/
#Mod(fs_game) = TheDarkMod
#settings > compatibility > disable windows Desktop Composition > true
 
#send end message 
POL_SetupWindow_message "$(eval_gettext 'This is the end of the $TITLE 
installation script. \n\nFor more info, visit $GAME_URL')" "end"
POL_SetupWindow_Close
exit 0

 

Edited by freyk
  • Like 2

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 2 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...