Page 1 of 5 123 ... LastLast
Results 1 to 10 of 45

Thread: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

  1. #1
    Join Date
    Mar 2006
    Beans
    228

    HOWTO: Old Loki Entertainment Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    Preamble

    Old Loki games, some of which are still sold by Tuxgames are becoming more and more difficult to just install. Hopefully this HOWTO will help you install Heroes of Might and Magic 3, Heavy Gear 2, Heretic 2, Simcity 3000 Unlimited, Civilization: Call To Power etc (see below). Some of the stuff may well apply to other Loki games...I just don't know. I'm not a technical person - I just got the information from this site, Linux Questions, Google searches and a bit of guesswork. These games installed on Ubuntu Dapper, 32bit with a Nvidia (5700VE) card..don't know about other set-ups, if you want me to try then send me a computer :P

    For this HOWTO, I'll assume you are installing systemwide in /usr/local/games and that you'll fiddle with temporary patches and what not in the user home.

    IMPORTANT:With all the loki installers, don't press 'play' when the installer has finished if you have installed as root (i.e. sudo) as that will play the game as root and the preferences directory (i.e. '.loki') will have root permissions. Just press exit, then use the command or menu item instead.
    EVEN MORE IMPORTANT: the 'sunsite' mirror used for the various patches and updates in these guides is now deaded, so you'll have to use
    Code:
    ftp://mirrors.dotsrc.org/lokigames
    instead


    Games Covered:

    Civilization: Call To Power
    Heavy Gear 2
    Heretic 2
    Sim City 3000 Unlimited
    Heroes of Might and Magic 3
    Railroad Tycoon 2


    Sim City 3000 Unlimited

    Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
    Code:
    cd /media/cdrom0
    Start the installer, for me, I checked all the options:
    Code:
    sudo sh setup.sh
    Download the patch:
    Code:
    cd ~/
    Code:
    wget ftp://sunsite.dk/mirrors/lokigames/updates/sc3u/sc3u-2.0a-x86.run
    Run the patch (plus --keep, not sure why, but it seems to solve a usagetrap error):
    Code:
    sudo sh sc3u-2.0a-x86.run --keep
    Run the game, but assume an older kernel version:
    Code:
    LD_ASSUME_KERNEL=2.4.26 /usr/local/bin/sc3u
    Fingers crossed, it should work!

    Getting it to work as a menu item is another pain! There should be a item under 'Games' in Alacarte, but it won't work, so we make a little script to run the program:
    Code:
    gedit
    Add the following:
    Code:
    #!/bin/sh
    cd /usr/local/games/SC3U
    LD_ASSUME_KERNEL=2.4.26 /usr/local/bin/sc3u
    Save as something obvious, like 'sc3ulaunch' or similar, then make it executable and move it to the right directory:
    Code:
    chmod +x sc3ulaunch
    Code:
    sudo mv sc3ulaunch /usr/local/bin
    You can now change the menu entry in Alacarte to 'sc3ulaunch' and it should work!

    Get rid of the faff:
    Code:
    cd ~/ (or wherever you downloaded the patches to)
    Code:
    rm sc3u-2.0a-x86.run
    Code:
    sudo rm -rf sc3u-2.0a-x86

    Civilization: Call To Power

    Civ is relatively painless, just need the correct patch.

    Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
    Code:
    cd /media/cdrom0
    Start the installer (create the symlink in /usr/local/bin, when it asks):
    Code:
    sudo sh install
    The game will work, but with issues, soooo download the patch:
    Code:
    cd ~/
    Code:
    wget ftp://sunsite.dk/mirrors/lokigames/updates/civctp/civctp-1.2a-english-unified-x86.run
    There are a variety of different patches, but it's the english-unified that seems to work.

    Run the civctp patch:
    Code:
    sudo sh civctp-1.2a-x86.run
    When done, remove the faff:
    Code:
    rm civctp-1.2a-english-unified-x86.run
    There is an entry in Alacarte, but it didn't seem to show up (for me), so I toggled the visibility off and then on again and that seemed to sort it (weird!)


    Heroes of Might and Magic 3

    Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
    Code:
    cd /media/cdrom0
    Start the installer (create the symlink in /usr/local/bin, when it asks):
    Code:
    sudo sh setup.sh
    You can run the game, though (for me) without the patch it doesn't run fullscreen (amongst other issues), so download the patch:
    Code:
    cd ~/
    Code:
    wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/heroes3/heroes3-1.3.1a-unified-x86.run
    The patch will segfault if you try to run it. Run it with the 'keep' option (it will still segfault, but bear with me!):
    Code:
    sh heroes3-1.3.1a-unified-x86.run --keep
    We need to patch the patch (*sigh*), go to the offending directory and remove the dodgy file:
    Code:
    cd heroes3-1.3.1a-unified-x86/bin/Linux/x86/
    Code:
    rm loki_patch
    Download the new loki_patch and make it executable:
    Code:
    wget http://www.step-n-up.com/downloads/loki_patch
    Code:
    chmod +x loki_patch
    Go back a few directories and run the update (now as root):
    Code:
    cd ../../../
    Code:
    sudo sh update.sh
    Hopefully that should now work, I found no problems with the menu item - use that or type:
    Code:
    heroes3
    To remove the faff:
    Code:
    cd ~/
    Code:
    sudo rm -rf heroes3-1.3.1a-unified-x86
    Code:
    rm heroes3-1.3.1a-unified-x86.run

    Heretic 2

    Open a terminal window (Applications->Accessories->Terminal). Go to wherever the CD is mounted:
    Code:
    cd /media/cdrom0
    Start the installer (create the symlink in /usr/local/bin, when it asks):
    Code:
    sudo sh setup.sh
    A load of errors will probably appear in the terminal window - can't find the bin/x86/heretic file, several directories etc etc. These will be fixed after install...just let it carry on for now.

    Lets move that file manually. Remember to change 'cdrom0' to whatever your cdrom directory is called:
    Code:
    sudo cp /media/cdrom0/bin/x86/glibc-2.1/heretic2 /usr/local/games/heretic2/
    Create a symbolic link from the heretic2 file to the /usr/local/bin directory, so running Heretic is easier:
    Code:
    sudo ln  -s  /usr/local/games/heretic2/heretic2 /usr/local/bin
    To get the program to run, we also need the two patches:
    Code:
    cd ~/
    Code:
    wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/heretic2/heretic2-1.06b-unified-x86.run
    Code:
    wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/heretic2/heretic2-1.06c-unified-x86.run
    Running the patches will cause a segfault, sooo time to patch the patches:
    Code:
    sh heretic2-1.06b-unified-x86.run --keep
    This will still cause a segfault, but no worries, just change directories:
    Code:
    cd heretic2-1.06b-unified-x86/bin/Linux/x86/
    Delete the borked loki_patch and download the newer one:
    Code:
    rm loki_patch
    Code:
    wget http://www.step-n-up.com/downloads/loki_patch
    Change the permissions:
    Code:
    chmod +x loki_patch
    Back up a few directories and run the update:
    Code:
    cd ../../../
    Code:
    sudo sh update.sh
    You need to do exactly the same for the 1.06c patch, summarised:
    Code:
    cd ~/
    Code:
    sh heretic2-1.06c-unified-x86.run --keep
    Code:
    cd heretic2-1.06c-unified-x86/bin/Linux/x86/
    Code:
    rm loki_patch
    Code:
    wget http://www.step-n-up.com/downloads/loki_patch
    Code:
    chmod +x loki_patch
    Code:
    cd ../../../
    Code:
    sudo sh update.sh
    You can now play the game by typing:
    Code:
    heretic2
    To create a menu item, just load Alacarte and use the command 'heretic2'. The icon is messed up - if you want a better one then:
    Code:
    wget http://aslan.homelinux.com/dana/icons/games/heretic2.png
    Code:
    sudo mv heretic2.png /usr/share/pixmaps/
    There should now be a slightly better Heretic icon in your default icon directory :)

    Lastly, clean up the faff:
    Code:
    cd ~/
    Code:
    sudo rm -rf heretic2-1.06b-unified-x86
    Code:
    sudo rm -rf heretic2-1.06b-unified-x86
    Code:
    rm heretic2-1.06b-unified-x86.run
    Code:
    rm heretic2-1.06c-unified-x86.run
    Heavy Gear 2 HOWTO will be added onto this later :)
    Last edited by Footissimo; April 6th, 2007 at 11:32 AM. Reason: It needed it

  2. #2
    Join Date
    Mar 2006
    Beans
    228

    Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    Heavy Gear II

    This is a complete pain, but after a bit of googling and guesswork, it seems to work using OpenGL and systemwide.

    Open a terminal window and install the freetype 2 - this seems to work for the old freetype package needed for the game:
    Code:
    sudo apt-get install freetype2
    Go to whereever the cdrom is mounted (cdrom0 for me) and install:
    Code:
    cd /media/cdrom0
    Code:
    sudo sh setup.sh
    I chose to just install the base, movies and the 'recommended' libararies to the default /usr/local/games/hg2 directory. After installing you can try the game, but it'll probably through up some errors as seen on this thread. Get the patch:
    Code:
    cd ~/
    Code:
    wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/hg2/hg2-1.0b-unified-x86.run
    Run that patch with the keep option:
    Code:
    sudo sh hg2-1.0b-unified-x86.run --keep
    Again, running the game will throw up similar errors. We need to modify the hg2 script. Assume a default install:
    Code:
     sudo gedit /usr/local/games/hg2/hg2
    A text editor window should pop up. Look out for this bit of the script:
    Code:
    fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
    Change that $11 to $10. Save the modified script.

    You should now be able to play the game:
    Code:
    hg2
    Unfortunately, it doesn't seem to make an menu item. It's fairly straightforward, just make a new entry in Alacarte Menu Editor and use the command 'hg2'. If you need a better icon:
    Code:
    wget http://aslan.homelinux.com/dana/icons/games/hg2.png
    Code:
    sudo mv hg2.png /usr/share/pixmaps
    This will put a slightly better HG2 icon in the default icon directory.

    To remove the faff:
    Code:
    cd ~/
    Code:
    rm hg2-1.0b-unified-x86.run
    Code:
    sudo rm -rf hg2-1.0b-unified-x86
    Hopefully that'll work


    Railroad Tycoon 2

    Much the same as Civ:CTP, this is an easy one to install, so I'll just summarise the instructions:

    Code:
    cd /media/cdrom0 (or whereever your CDRom is mounted)
    sudo sh setup.sh
    cd ~/
    wget ftp://sunsite.auc.dk/pub/os/linux/loki/updates/rt2/rt2-1.54c-unified-x86.run (download patch)
    sudo sh rt2-1.54c-unified-x86.run --keep
    Type 'rt2' to run. A menu item appeared for me, but only after logging in and out of GNOME. If one doesn't appear then just use Alacarte with the command 'rt2' - an icon will also be in /usr/local/games/RT2, though its not the best (working on that!)

    To remove the faff:
    Code:
    cd ~/
    rm rt2-1.54c-unified-x86.run
    sudo rm -rf t2-1.54c-unified-x86
    Last edited by Footissimo; June 8th, 2006 at 07:14 PM.

  3. #3
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    Thumbs down Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    Damn!
    So close, got the same old error about not being able to access /home/nukedog/.loki/
    So I went to the terminal and used "sudo hg2"
    to launch, and got all the way to launching a mission, wich never started, crashed and gave me:

    hg2: FATAL: could not initialize OpenGL Library 'libGL.so.1'

    It's no fun being a newb...

    Video card is an Nvidia NV20 GEforce 3 if that matters.

  4. #4
    Join Date
    Mar 2006
    Beans
    228

    Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    Hmm..sounds like your permissions on the .loki directory (its the hidden directory that saves preferences, save games etc as user) are wrong. If you just delete the .loki directory then it will remake it when you try again:

    If HG2 is the only loki game installed then you can safely do:

    Code:
    cd ~/
    sudo rm -rf .loki
    to delete the loki folder - it will be reinstalled when you start the game again (as user)

    You should be able to run it as user now (i.e. just hg2)

    The other problem - is direct rendering enabled? If you're unsure then:

    Code:
    glxinfo | grep direct
    If no then you need to get your graphics drivers sorted (there are tons of threads on that..and stuff in the wiki)

    Also, did you make sure the box was pressed to install the GL Drivers (after which is said 'Strongly Recommended' or something like that when installing?

    If the answer is yes to both of them, then I'd imagine that you haven't got a necessary library installed - look in Synaptic (System->Admin->Synaptic Package Manager) for possible culprits - there is a libgl1 package, though it would be difficult NOT to have that installed

    Best I can do atm - not very technical myself!

  5. #5
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    Thumbs down Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    I got:

    direct rendering: No
    OpenGL renderer string: Mesa GLX Indirect

    So you are right.
    I'll work on my drivers when I get home from work.
    Thank you for all your help.

  6. #6
    Join Date
    Mar 2006
    Beans
    228

    Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    Bear with it, it all becomes a lot easier

    There's a good HOWTO, on Nvidia drivers in the Wiki here, if you have one.

  7. #7
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!


    God I'm dumb.
    I got my computer so screwed up, It wouldn't even boot!
    I'm back from re-installing, and I'm startin' again!

  8. #8
    Join Date
    Jun 2006
    Beans
    7
    Distro
    Ubuntu 6.06

    Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    I got it all back togeather, followed your instructions, and now have the drivers working, but get:

    error while loading shared libraries: libgthread-1.2.so.0: cannot open shared object file: No such file or directory


  9. #9
    Join Date
    Apr 2005
    Beans
    77

    Simcity 3000

    I can't get simcity to work
    I can see the intro movie, but after that I just get a black screen with the mouse pointer and some music.
    Any help???

    This is the output:
    Code:
    $LD_ASSUME_KERNEL=2.4.26 /usr/local/bin/sc3uCreating sc3u preferences directory: /home/claus/.loki/sc3u
    fcntl: Operation not permitted
    fcntl: Operation not permitted
    MESSAGE:
    
    BUG! (Segmentation Fault)  Going down hard...
    SimCity 3000 Unlimited 2.0.955a
    Built with glibc-2.1 on x86
    Stack dump:
    {
            0xffffe420
            0xb6eb5c52
            0xb79e5342
            0xb77587e0
            0x814a685
            0x8358123
            0x8358da0
            0x8359253
            0x8153291
            0xb7d5c31f
            0x8144ca1
    }
    Please send a full bug report,
    along with the contents of autosave to: support@lokigames.com
    Unable to execute loki_qagent - exiting

  10. #10
    Join Date
    Mar 2006
    Beans
    228

    Re: HOWTO: Old Loki Games in Dapper..SC3U, HMM3, Civ CTP..and more!

    Could you tell me which version of Ubuntu and which video card..and if direct rendering is working:

    Code:
    glxinfo | grep direct
    This old thread suggests trying different kernel versions. You could try running it with:

    Code:
    LD_ASSUME_KERNEL=2.2.5 /usr/local/bin/sc3u
    LD_ASSUME_KERNEL=2.2.5 /usr/local/bin/sc3u
    etc

Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •