Topic: [Script] Install Perpetuum with Linux

(Sorry for my bad English, I'm French smile)

Hi everybody !
Today, we are happy, T0m-s and myself to propose to you a script for install Perpetuum easely with Linux !

First, you need PoL (Play On Linux)
Lien : http://www.playonlinux.com/fr/download.html

After, you need the script available at this address : http://t0m-s.be/bazare/perpetuum.pol
Cut/Paste the script in your favorite text editor and save it at Perpetuum.pol

When it's done, click on Outils (if you got the french version) / Tools and Executer un script local/Execute a local script and launch Perpetuum.pol and wait for the automatic installation smile
(You need Wine v.1.3.18)

=====

The script is open-source and free.
Here is the script :

    #!/bin/bash
    #Date : 2011/04/30
    #Author : DaKanibal & T0m-S
    #Version 0.1

    [ "$PLAYONLINUX" = "" ] && exit 0
    source "$PLAYONLINUX/lib/sources"

    TITLE="Perpetuum"
    PREFIX="perpetuum"
    WINEVERSION="1.3.18"

    #Translations
    #Traductions
    if [ "$POL_LANG" == "fr" ]; then
    LNG_EXE_DOWNLOAD="Telechargement de perpetuum_setup.exe ..."
    LNG_GAME_INSTALL="Installation de perpetuum_setup.exe ..."
    LNG_LAUNCHER="Création du lanceur"
    LNG_DIRECTX_DOWNLOAD="Telechargement de DirectX"
    LNG_DIRECTX_INSTALL="Installation de DirectX"
    else
    LNG_EXE_DOWNLOAD="Downloading perpetuum_setup.exe ..."
    LNG_GAME_INSTALL="Installing Perpetuum_setup.exe ..."
    LNG_LAUNCHER="Creating the launcher"
    LNG_DIRECTX_DOWNLOAD="Downloading DirectX"
    LNG_DIRECTX_INSTALL="Installing DirectX"
    fi

    #Start of the script
    #Début du script
    POL_SetupWindow_Init

    #Install wizard
    #Presentation assistant installation
    POL_SetupWindow_presentation "$TITLE" "Perpetuum" "http://www.Perpetuum.com" "DaKanibal & T0m-S" "$PREFIX"

    #Selection of "Perpetuum"
    #Selection du Préfixe "Perpetuum"
    select_prefix "$HOME/.PlayOnLinux/wineprefix/$PREFIX"

    #Wine download
    #Telechargement de Wine
    POL_SetupWindow_install_wine "$WINEVERSION"
    Use_WineVersion "$WINEVERSION"

    #Perpetuum prefix creation
    #Creation du Prefixe pour Perpetuum
    POL_SetupWindow_prefixcreate

    PROGRAMFILES="Program Files"
    POL_LoadVar_PROGRAMFILES

    ##Install
    ##Lancement de l'installation

    #directx_feb2010_redist.exe download
    #Telechargement de directx_feb2010_redist.exe
    POL_SetupWindow_download "$LNG_DIRECTX_DOWNLOAD" "DirectX_setup" "http://download.microsoft.com/download/ … redist.exe"
    POL_SetupWindow_wait_next_signal "$LNG_DIRECTX_INSTALL" "Perpetuum"
    mkdir directx
    cd directx
    cabextract ../directx_feb2010_redist.exe
    wine DXSETUP.exe
    POL_SetupWindow_detect_exit
    cd ..
    rm -r directx/

    #perpetuum_setup.exe download
    #Telechargement de perpetuum_setup.exe
    POL_SetupWindow_download "$LNG_EXE_DOWNLOAD" "Perpetuum_setup" "http://content.perpetuum-online.com/fil … _setup.exe"

    #Perpetuum installation
    #Installation de Perpetuum
    POL_SetupWindow_wait_next_signal "$LNG_GAME_INSTALL" "Perpetuum"
    wine perpetuum_setup.exe
    POL_SetupWindow_detect_exit
    rm perpetuum_setup.exe #Efface perpetuum_setup.exe #Remove perpetuum_setup.exe

    #Laucher creation + icon
    #Creation du lanceur + icone
    POL_SetupWindow_wait_next_signal "$LNG_LAUNCHER" "Perpetuum"
    echo "#!/bin/bash
    export WINEPREFIX=~/.PlayOnLinux/wineprefix/perpetuum
    cd ~/.PlayOnLinux/wineprefix/perpetuum/drive_c/Games/Perpetuum/
    wine Perpetuum.exe  $@" > ~/.PlayOnLinux/configurations/installed/Perpetuum
    wget http://t0m-s.be/photos/Perpetuum
    mv Perpetuum ~/.PlayOnLinux/icones/32/
    POL_SetupWindow_detect_exit

    POL_SetupWindow_Close
    exit

2 (edited by Legedric Warstrike 2011-05-03 13:58:33)

Re: [Script] Install Perpetuum with Linux

Sorry for OT, but that's the reason I will always stay with Windows as for playing games I do not want to deal with scripts that only work for whatever specific specifitaions of this and that...

Anyway... what's the advantage of using your script than using the solution provided by Avatar Creations itself?

There are 10 kinds of people in the world: Those who understand binary and those who don't

Re: [Script] Install Perpetuum with Linux

Legedric Warstrike wrote:

Sorry for OT, but that's the reason I will always stay with Windows as for playing games I do not want to deal with scripts that only work for whatever specific specifitaions of this and that...

Anyway... what's the advantage of using your script than using the solution provided by Avatar Creations itself?


It's free.  AC wants you to buy Cedega for $30 to play the client everyone else gets free.

Population graphs

<GM Synapse> please don't abuse our fresh players before blowing them up. And for god sakes, don't do that after it!

Re: [Script] Install Perpetuum with Linux

Ah ok, that's uhm... not so nice sad

There are 10 kinds of people in the world: Those who understand binary and those who don't

Re: [Script] Install Perpetuum with Linux

Crepitus wrote:

It's free.  AC wants you to buy Cedega for $30 to play the client everyone else gets free.

AC does not "want" you to pay for a free client and I don't even see Peretpuum listed on Cedega.

Codeweavers, however put the effort into debugging our client to run smoothly and offer this solution at a price. It is a comfortable option for all those, that do not want to spend time with configuring their systems. I found it to work very well with any other Windows application.

We are very grateful to anyone that helps make our game more accessible. Thank you, Dakanibal.

Re: [Script] Install Perpetuum with Linux

You're welcome :-)

Re: [Script] Install Perpetuum with Linux

Why is it not in the DB of PlayOnLinux? Or is the Script so fresh?

Re: [Script] Install Perpetuum with Linux

Because they don't got the script for install Perpetuum.

Re: [Script] Install Perpetuum with Linux

Good morning, and thank you for the POL file. It worked well.

I thought I would try your script on POL to see if it has the same bug that Codeweavers Crossover games has for me.  It does.  About 70% of the time, opening the map will freeze the client, and Ill have to restart.

Codeweavers says try a couple of registry hacks, none of which resolved it. POL dosent have anything specifically about perpetuum so I thought Id ask you if you also had/have this map bug, and if you solved it as yet.

ThePhi.

Re: [Script] Install Perpetuum with Linux

Legedric Warstrike wrote:

Sorry for OT, but that's the reason I will always stay with Windows as for playing games I do not want to deal with scripts that only work for whatever specific specifitaions of this and that...

Sorry for OT, but If windows is so easy and so straightforward then why am I always asked to please fix this windows related problem or that one?

Re: [Script] Install Perpetuum with Linux

BandwagonX9000 wrote:
Legedric Warstrike wrote:

Sorry for OT, but that's the reason I will always stay with Windows as for playing games I do not want to deal with scripts that only work for whatever specific specifitaions of this and that...

Sorry for OT, but If windows is so easy and so straightforward then why am I always asked to please fix this windows related problem or that one?

Can't fix stupid.

Looking forward to new players and new conflicts.

Re: [Script] Install Perpetuum with Linux

AArdwolf ThePhi wrote:

Good morning, and thank you for the POL file. It worked well.

I thought I would try your script on POL to see if it has the same bug that Codeweavers Crossover games has for me.  It does.  About 70% of the time, opening the map will freeze the client, and Ill have to restart.

Codeweavers says try a couple of registry hacks, none of which resolved it. POL dosent have anything specifically about perpetuum so I thought Id ask you if you also had/have this map bug, and if you solved it as yet.

ThePhi.

Let me guess, you are using Nvidia graphics card ? There's a bug and discussion in the Bugs forum section about the map crash.