You are not logged in.

#1 2012-08-23 22:28:22

lspci
Member
From: Virginia, USA
Registered: 2012-06-09
Posts: 242

[Solved]Installing Jedi Knight Dark Forces II w/o optical drive

This guide assumes that you already have access to the Jedi Knight Dark Forces II disc isos.  If you don't and you want help making them then... send me an email... I guess, and I'll explain how to make them.  (I may edit this post later with the details of how to do that, but I don't feel like doing that today, sorry if this is inconvenient.) 

  1. Mount the iso for disc 1 in a directory that you have full control over, like ~/media/sr0/, which is where I mounted the iso when I installed the game. 

    There are two ways of mounting this iso that I know about.  Here's how I did it

    sudo mount <file.iso> -v --options loop,users <mountpoint>
    
    ex. 
    $ sudo mount *1.iso -v --options loop,users ~/media/sr0/

    and here's another way doing it.  This way should also work, but I haven't actually tested it beyond mounting and unmounting the iso. 

     
    fuseiso <file.iso> <mountpoint>
    
    ex. 
    $ fuseiso *1.iso -v --options loop,users ~/media/sr0/

    This requires that you have fuseiso installed.  Install it with:

    sudo pacman -S fuseiso
  2. change to the directory that you mounted the iso in.

    cd <path/to/mountpoint> 
    
    ex. 
    $ cd ~/media/sr0/
  3. Start the install using wine

    wine Jedi.EXE

And that's it.  Oops I forgot to mention something.  If you don't want to use the CDs or don't have an optical drive like me, then you'll have to let wine know that 

<path/to/mountpoint>

is actually your optical drive.  wink wink

Here's how to do that. 

  1. run wine config

    winecfg 
  2. Go to Drives (click on the Drives tab)

  3. Click on Add (shows up as 'Add...')

  4. Pick a drive letter you like (I picked "E" 'cause that's what my optical drive was always assigned to back when I used Windows Vista) and click Ok

  5. Select your new drive and click Show Advanced

  6. Under type, select 'CD-ROM' and under Path, browse to where you plan on mounting the video game's isos and select that directory (~/media/sr0/ for me) and click Ok

  7. Click Ok to exit out of winecfg

and that should be everything.

I was gonna also include a script that would mount and start the game for you and everything so that you could just alias it in your ~/.bashrc, and make your life so much easier... but my brain really hurts after typing all this up....
(after some time)
and the script that I went ahead and wrote anyway doesn't work very well, so you're one your own.

EDIT: Even though doesn't quite work... I'll go ahead and post my script as it currently stands so that if somebody wants to write their own or try to get mine to work they can. 

mnp.sh (mount and play)

#!/usr/bin/sh

# usage : 
#   mnp  [option]  <file.iso>    <mountpoint>   <file.exe>
#
# example: 
########################################################
# sh mnp.sh   -a    *1.iso      ~/media/sr0/    Jedi.EXE 
########################################################
#
# by lspci (and don't you forget it! jk :P) 


case $1 in 
    '-a'|'--nofuse') sudo mount $2 -v --options loop,users $3 ;  cd $3 ; wine $4 ;;
    '-b'|'--usefuse') fuseiso $2 $3 ; cd $3 ; wine $4 ;;
''|'-h'|'--help') printf "\n\e[1;31m usage:\e[0m sh mnp.sh [option] <file.iso> <mountpoint> <file.exe>\n\t-a|--nofuse \t use the standard mount command to mount the iso\n\t-b|--usefuse \t use fuseiso to mount the iso (requires that fuseiso be installed)\n\t-h|--help \t show this message\nexample:\n\tsh mnp.sh   -a    *1.iso      ~/media/sr0/    Jedi.EXE\n" ;;
esac 

Last edited by lspci (2012-08-23 22:41:31)


Please don't be a help vampire. | Bitbucket

Give a little more for a little less today.  smile

Offline

Board footer

Powered by FluxBB