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

    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
    • Ansome

      Well then, it's been about a week since I released my first FM and I must say that I was very pleasantly surprised by its reception. I had expected half as much interest in my short little FM as I received and even less when it came to positive feedback, but I am glad that the aspects of my mission that I put the most heart into were often the most appreciated. It was also delightful to read plenty of honest criticism and helpful feedback, as I've already been given plenty of useful pointers on improving my brushwork, level design, and gameplay difficulty.
      I've gotten back into the groove of chipping away at my reading and game list, as well as the endless FM catalogue here, but I may very well try my hand at the 15th anniversary contest should it materialize. That is assuming my eyes are ready for a few more months of Dark Radiant's bright interface while burning the midnight oil, of course!
      · 4 replies
×
×
  • Create New...