<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=429259&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=429259</link>
		<description><![CDATA[Les sujets les plus récents dans Script "fpwine" pour l'installation/utilisation de Future Pinball....]]></description>
		<lastBuildDate>Tue, 30 Apr 2013 17:57:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=13391901#p13391901</link>
			<description><![CDATA[<p>Merci DeXtEr57, pour ma part j&#039;ai pas trop le temps de tester là mais avez vous pensé à essayer par playonlinux ?<br />Et si ça ne arche pas non plus, si ce n&#039;est déjà fait regardez <a href="http://appdb.winehq.org/appview.php?iAppId=4596">http://appdb.winehq.org/appview.php?iAppId=4596</a></p><p>Bonne chance en tous cas et si vous trouvez tenez-nous au courant SVP.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Tue, 30 Apr 2013 17:57:04 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=13391901#p13391901</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=13375351#p13375351</link>
			<description><![CDATA[<p>Salut les pinballeurs,</p><p>Donc j&#039;ai tester ça sous une Xubuntu 12.04 , Wine 1.5.29.</p><p>Le script ne fonctionne pas, du moins, il se lance, fait quelques magouille pour terminer sur une erreur.<br />Avec une installation normale, la table se lance et comme dit plus haut, impossible de placer du crédit, de lancer une partie etc.</p><p>Je suis tomber sur un tuto pour placer la dll , oleaut32.dll, qui permet de lancer ça en administrateur, comme il faut le faire sous windows, sans plus de succès malheureusement...</p><p>Pour ma part, avec ce script:</p><p><a href="http://www.e-loader.net/i/c4XD5GvDXT.html"><span class="postimg"><img src="http://d35.e-loader.net/tn_c4XD5GvDXT.png" alt="tn_c4XD5GvDXT.png" /></span></a></p><div class="codebox"><pre class="vscroll"><code>dexter@DEXTER-PORTABLE:~$ chmod +x fpwine.sh
dexter@DEXTER-PORTABLE:~$ ./fpwine.sh
-----------------------------------------------------------
  Future Pinball v1.9.20081225 install script
  Script version 1.9.2 (2009-08-14) by LvR
  Get lastest version at http://fprelease.free.fr/fpwine/
-----------------------------------------------------------
  Configured for wine &gt;= 0.9.49
  With older version, use --noauto switch and choose :  
   - for wine &lt; 0.9.44 : install native urlmon dll
   - for wine &lt; 0.9.40 : try low quality sound config
-----------------------------------------------------------

Checking wine version : wine-1.5.29

Checking 3D acceleration : ok

Using default prefix : /home/dexter/.fpwine

/home/dexter/.fpwine deleted
/home/dexter/.fpwine initialized
--2013-04-29 19:24:39--  http://download.microsoft.com/download/IE60/Patch/Q318089/W9XNT4Me/EN-US/vbs56men.exe
Résolution de download.microsoft.com (download.microsoft.com)... 80.239.148.26, 80.239.148.17
Connexion vers download.microsoft.com (download.microsoft.com)|80.239.148.26|:80... connecté.
requête HTTP transmise, en attente de la réponse... 200 OK
Longueur: 314976 (308K) [application/octet-stream]
Sauvegarde en : «vbs56men.exe»

100%[======================================&gt;] 314 976      478K/s   ds 0,6s    

2013-04-29 19:24:41 (478 KB/s) - «vbs56men.exe» sauvegardé [314976/314976]

vbs56men.exe successfully downloaded
WARNING: gnome-keyring:: couldn&#039;t connect to: /tmp/keyring-j0pquc/pkcs11: Aucun fichier ou dossier de ce type
p11-kit: couldn&#039;t load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: Ne peut ouvrir le fichier d&#039;objet partagé: Aucun fichier ou dossier de ce type
wine: configuration in &#039;/home/dexter/.fpwine&#039; has been updated.

--2013-04-29 19:24:54--  http://download.microsoft.com/download/d/1/3/d13cd456-f0cf-4fb2-a17f-20afc79f8a51/DCOM98.EXE
Résolution de download.microsoft.com (download.microsoft.com)... 80.239.148.26, 80.239.148.17
Connexion vers download.microsoft.com (download.microsoft.com)|80.239.148.26|:80... connecté.
requête HTTP transmise, en attente de la réponse... 200 OK
Longueur: 1229056 (1,2M) [application/octet-stream]
Sauvegarde en : «DCOM98.EXE»

100%[======================================&gt;] 1 229 056    501K/s   ds 2,4s    

2013-04-29 19:24:58 (501 KB/s) - «DCOM98.EXE» sauvegardé [1229056/1229056]

DCOM98.EXE successfully downloaded
Installing DCOM98.EXE ...
wine: Call from 0x7b8498aa to unimplemented function ole32.dll.CoTaskMemAlloc, aborting
Error : can&#039;t execute &#039;WINEDEBUG=-all WINEPREFIX=/home/dexter/.fpwine WINEDLLOVERRIDES=ole32,advpack=n wine DCOM98.EXE /Q&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (DeXtEr57)]]></author>
			<pubDate>Mon, 29 Apr 2013 16:37:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=13375351#p13375351</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12199551#p12199551</link>
			<description><![CDATA[<p>OK j&#039;essaierai de voir ça un de ces jours mais reviens aux nouvelles d&#039;ici quelques semaines si tu ne vois rien venir car 12.04 toujours pas installée et là je configure un serveur chez OVH et ça m&#039;occupe un peu (en plus de tous le reste car ce n&#039;est pas mon métier... ^^).</p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Mon, 14 Jan 2013 02:09:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12199551#p12199551</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12194931#p12194931</link>
			<description><![CDATA[<p>Salut ! </p><p>Oui j&#039;avais effectivement déjà tenté d&#039;installer DCOM (c&#039;est moi qui l&#039;avais indiqué sur la page que je t&#039;ai mise en ligne) et les histoires de touches (comme sous MAME), sans succès.</p><p>Si jamais tu testes sous 12.04, j&#039;imagine que le paquet MAME 1.4 doit être le même que sous 12.10 puisque c&#039;est la dernière version stable de toute façon.</p><p>Merci encore de ton aide <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />@+</p>]]></description>
			<author><![CDATA[dummy@example.com (torturedutopian)]]></author>
			<pubDate>Sun, 13 Jan 2013 18:22:45 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12194931#p12194931</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12179301#p12179301</link>
			<description><![CDATA[<p>Ben c&#039;est pas gagné non plus car je suis overcharette et tu utilises une distribution que je ne pourrai pas tester, au mieux j&#039;installerai la 12.04 prochainnement ou je testerai sur ma liveUSB 12.04.</p><p>En attendant je ne vois pas ton commentaire sur winehq mais as-tu bien installé DCOM98 comme ils le suggèrent ?<br />Ils indiquent une méthode manuelle et une via winetricks, sinon tu peux aussi regarder <a href="http://wiki.winehq.org/NativeDcom">http://wiki.winehq.org/NativeDcom</a></p><p>Enfin, au cas ou tu aurais oublié ce détail, comme je l&#039;explique sur la page de doc ubuntu-fr &quot;Pour initier une partie il faut faire (avec les touches numériques du haut du clavier) &quot;5&quot; pour insérer une pièce virtuelle… puis &quot;1&quot; ou &quot;2&quot; ou… pour jouer à 1 ou 2 joueurs (ou plus ?).&quot;<br />Car ne pas mettre de pièce ça fait aussi rester sur game over... <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Si le problème persiste dis-le moi , j&#039;essaierai de voir sur live USB 12.04 bientôt...</p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Sat, 12 Jan 2013 11:54:36 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12179301#p12179301</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12173491#p12173491</link>
			<description><![CDATA[<p>Salut ! </p><p>Ma foi, ce ne serait pas de refus, merci beaucoup ! Car ça fait des mois que j&#039;essaye sans succès, alors que ça marchait bien avant, cf mon commentaire ici : <a href="http://appdb.winehq.org/objectManager.php?sClass=version&amp;iId=22873">http://appdb.winehq.org/objectManager.p … &amp;iId=22873</a></p><br /><p>J&#039;utilise Ubuntu 12.10 (bon, en fait Mint 14 édition KDE) avec le PPA officiel de WINE soit wine 1.4.1 en stable et 1.5.21sur le branche de développement, mêmes symptômes pour les 2<br />(quant à FP, il s&#039;agit de la dernière version, soit la 1.9.1.20101231).</p>]]></description>
			<author><![CDATA[dummy@example.com (torturedutopian)]]></author>
			<pubDate>Fri, 11 Jan 2013 18:50:55 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12173491#p12173491</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12173081#p12173081</link>
			<description><![CDATA[<p>Pour ma part il y a longtemps que je n&#039;ai pas utilisé FP mais...</p><p>1°) Si j&#039;ai bonne mémoire, plus de deux ans après, ça me rappelle un peu le problème que j&#039;avais quand j&#039;ai travaillé à adapter ce script donc, l&#039;as tu utilisé ? (Sinon commence par l&#039;essayer au cas où...)<br />2°) Si tu veux qu&#039;une bonne âme (genre&#160; moâ <img src="http://forum.ubuntu-fr.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />) se penche sur la question, je te suggère de préciser, ta distri (10.04,10.10...12.4,12.10), ta version exacte de WINE (car la dernière ça change tout le temps et même éventuellement selon les versions d&#039;ubuntu...) ET on ne sait jamais, indique aussi ta version de FP STP.</p><p>Après je te promets pas de le faire immédiatement mais j&#039;essaierai de regarder ça prochainement, surtout si d&#039;après tes infos je peux reproduire la situation de ton bug ! <img src="http://forum.ubuntu-fr.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Fri, 11 Jan 2013 18:15:10 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12173081#p12173081</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=12171491#p12171491</link>
			<description><![CDATA[<p>Salut à tous !</p><p>Au jour d&#039;aujourd&#039;hui, je ne parviens plus à faire fonctionner Future Pinball sous WINE... </p><p>- avec WINE le plus récent, tout semble marcher sauf que... je ne peux pas démarrer de partie (probablement un pb du côté de vbscript). Sinon la table s&#039;affiche très bien. Par exemple avec la table de démonstration &quot;Sci-Fi Classic&quot;, l&#039;affichage LED au dessus affiche toujours &quot;game over&quot;.</p><p>- j&#039;ai lu qqpart d&#039;utiliser un WINE plus ancien sous POL (play on linux) mais cela ne fonctionne pas chez moi. (un message d&#039;erreur dont je ne me souviens plus, mais en tout cas, rien ne se lance)</p><p>Avez-vous trouvé une solution ?</p>]]></description>
			<author><![CDATA[dummy@example.com (torturedutopian)]]></author>
			<pubDate>Fri, 11 Jan 2013 16:26:40 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=12171491#p12171491</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3974268#p3974268</link>
			<description><![CDATA[<p>Content qu&#039;il ait servi en tous cas et merci à toi pour ce retour !</p><p>Mais comme je le disais au début je n&#039;ai fait qu&#039;adapter/actualiser le vieux script d&#039;un auteur inconnu, ce n&#039;est pas vraiment mon script.</p><p>Bon jeu ! ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Sat, 29 Jan 2011 20:35:14 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3974268#p3974268</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3973951#p3973951</link>
			<description><![CDATA[<p>Cool j&#039;allais le faire... je me suis rendu compte après coup que j&#039;avais été un peu feignasse de pas coller mon script actualisé et d&#039;avoir juste collé la modif.</p><p>Merci encore pour ton script qui marche comme un charme sous 10.04</p>]]></description>
			<author><![CDATA[dummy@example.com (magicvince)]]></author>
			<pubDate>Sat, 29 Jan 2011 16:31:38 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3973951#p3973951</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3964894#p3964894</link>
			<description><![CDATA[<p>Merci magicvince pour cette précision, le script est désormais mis à jour pour cette nouvelle version.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Sun, 23 Jan 2011 18:11:18 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3964894#p3964894</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3963750#p3963750</link>
			<description><![CDATA[<p>Attention la ligne suivante dans le script n&#039;est plus valide car la version téléchargée ne passe à &quot;2011&quot;</p><p>urlFP=&quot;http://members.iinet.net.au/~cleathley/downloads/FuturePinballSetup_v1.9.20081225.exe&quot;</p><p>il faut la remplacer par la ligne suivante qui charge la version actualisée de Future Pinball</p><p>urlFP=&quot;http://members.iinet.net.au/~cleathley/downloads/FuturePinballSetup_v1.9.1.20101231.exe&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (magicvince)]]></author>
			<pubDate>Sun, 23 Jan 2011 01:40:49 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3963750#p3963750</guid>
		</item>
		<item>
			<title><![CDATA[Script "fpwine" pour l'installation/utilisation de Future Pinball...]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=3852121#p3852121</link>
			<description><![CDATA[<p>Edit 01/2013 : Attention, ce script était pour Ubuntu 10.04, il a deux ans et n&#039;a pas été testé récemment, ne le testez qu&#039;en dernier recours.</p><p>Alors voilà, la page du script <a href="http://fprelease.free.fr/fpwine/">fpwine</a> ne semblant pas maintenue et obsolète pour Lucid,<br />ne permettant pas non plus de contacter l&#039;auteur (merci à lui, je n&#039;ai fait que mettre à jour), j&#039;ai décidé en créant la page <a href="http://doc.ubuntu-fr.org/future_pinball">Future Pinball</a>, de vous poster ici un petit script mis à jour par mes soins pour vous faciliter la tâche d&#039;installation du jeu et configuration de wine :</p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash
#
# Future Pinball v1.9.1.20101231 install script
# Script version 1.9.2_b by Mysteroïd on 23/01/2011
#
# based on 1.9.2 (2009-08-14) by LvR at http://fprelease.free.fr/fpwine/
#
# Changelog :
#   v1.9.2   : Change FP dl location
#   v1.9.1   : Correct a test
#   v1.9.0   : Install new FP 1.9, and re-use native crypto by defaut (to speed up table loading)
#   v1.8.1   : Install new FP 1.8
#   v0.9.49  : Add kill process feature
#   v0.9.44  : no more need of native urlmon
#   v0.9.42b : Install the new FP 1.7
#   v0.9.42  : Set native dlls only for Future Pinball.exe
#              Add more questions for --noauto switch
#              Using WINEDEBUG=-all during installation
#              removed hardcoded .fpwine
#   v0.9.40b : The script now modify menu entries and I change dlloverriding
#   v0.9.40  : Create a winecfg launcher, auto sound config
#   v0.9.39c : Set alternative method to install vbscript.dll
#   v0.9.39b : Add native urlmon.dll installation
#   v0.9.39  : First release
#
# ToDo :
#   Check XDG Desktop dir
#   Test more menu entries, pb with menu in my gnome environment
#   Uninstaller


# Script Configuration

winePrefix=&quot;$HOME/.fpwine&quot;

nativeOle=&quot;n&quot;
urlDcom=&quot;http://download.microsoft.com/download/d/1/3/d13cd456-f0cf-4fb2-a17f-20afc79f8a51/DCOM98.EXE&quot;

nativeCrypt=&quot;n&quot;
urlCrypt=&quot;http://fprelease.free.fr/fpwine/dlls/crypt32.dll&quot;
urlRsa=&quot;http://fprelease.free.fr/fpwine/dlls/rsaenh.dll&quot;

nativeUrlmon=&quot;n&quot;
urlUrlmon=&quot;http://fprelease.free.fr/fpwine/dlls/urlmon.dll&quot;

urlFP=&quot;http://members.iinet.net.au/~cleathley/downloads/FuturePinballSetup_v1.9.1.20101231.exe&quot;

urlVbs=&quot;http://download.microsoft.com/download/IE60/Patch/Q318089/W9XNT4Me/EN-US/vbs56men.exe&quot;


# Some usefull functions
execute()
{   
   eval $1
   if [ &quot;$?&quot; != &quot;0&quot; ] 
   then
      echo -n &quot;Error : can&#039;t execute &#039;$1&#039;&quot;
      if [ -z &quot;$2&quot; ] 
      then
         echo      
      else
         echo &quot;, $2&quot;
      fi
      exit 1
   fi
}

download()
{
   if [ ! -r &quot;$1&quot; ] 
   then
   
      if [ &quot;$auto&quot; = &quot;n&quot; ] 
      then
         echo -n &quot;Can&#039;t find $1, try to download it ? [Y/n] : &quot;
         read answer
      else 
         answer=&quot;&quot;
      fi

      if [ -z &quot;$answer&quot; ] || [ &quot;$answer&quot; = &quot;Y&quot; ] || [ &quot;$answer&quot; = &quot;y&quot; ] 
      then
         wget &quot;$2&quot;         
         if [ &quot;$?&quot; != &quot;0&quot; ]
         then
            echo &quot;error : can&#039;t download $1&quot;
         else
            echo &quot;$1 successfully downloaded&quot;
         fi      
      fi
   fi
}



# Disclaimer
echo &quot;-----------------------------------------------------------&quot;
echo &quot;  Future Pinball v1.9.20081225 install script&quot;
echo &quot;  Script version 1.9.2 (2009-08-14) by LvR&quot;
echo &quot;  Get lastest version at http://fprelease.free.fr/fpwine/&quot;
echo &quot;-----------------------------------------------------------&quot;
echo &quot;  Configured for wine &gt;= 0.9.49&quot;
echo &quot;  With older version, use --noauto switch and choose :  &quot;
echo &quot;   - for wine &lt; 0.9.44 : install native urlmon dll&quot;
echo &quot;   - for wine &lt; 0.9.40 : try low quality sound config&quot;
echo &quot;-----------------------------------------------------------&quot;


# Help
if [ &quot;$1&quot; = &quot;--help&quot; ] 
then
   echo &quot;  Usage :&quot;
   echo &quot;    `basename $0` [--help] [-n] [--noauto]&quot;
   echo &quot;  Options :&quot;
   echo &quot;    -n,--noauto : ask user for installing some components, &quot;
   echo &quot;                  mainly for testing FP with differents&quot;
   echo &quot;                  wine versions/configurations&quot;
   echo &quot;    --help      : display this help&quot;
   echo &quot;-----------------------------------------------------------&quot;
   exit 0
fi



# Automatic installation ?
if [ &quot;$1&quot; = &quot;--noauto&quot; ] || [ &quot;$1&quot; = &quot;-n&quot; ]
then
   auto=&quot;n&quot;
else
   auto=&quot;y&quot;
fi



# Check if wine is installed
echo
echo -n &quot;Checking wine version : &quot;
execute &#039;wine --version&#039; &#039;you must install wine before installing Future Pinball&#039;



# Check if 3d acceleration is ok
execute &#039;accel=`glxinfo | grep &quot;direct rendering&quot; | cut -d &quot;:&quot; -f2`&#039; 
accel=`echo $accel`  #trim accel
echo
echo -n &quot;Checking 3D acceleration : &quot;
if [ &quot;$accel&quot; = &quot;Yes&quot; ]
then
   echo &quot;ok&quot;
else
   echo &quot;not found&quot;
   echo &quot;Error : you need 3D acceleration activated to run Future Pinball.&quot;
   exit 1
fi



# Choose wine prefix
echo

if [ &quot;$auto&quot; = &quot;n&quot; ] 
then
   echo -n &quot;Enter wine prefix [$winePrefix] : &quot;
   read answer
else 
   answer=&quot;&quot;
fi
if [ -z &quot;$answer&quot; ] 
then
   echo &quot;Using default prefix : $winePrefix&quot;
else
   winePrefix=&quot;$answer&quot;
   echo &quot;Using prefix : $winePrefix&quot;
fi

shortPrefix=`basename $winePrefix`


# Delete previous wine root
echo
if [ &quot;$auto&quot; = &quot;n&quot; ] 
then
   echo -n &quot;Delete old $winePrefix directory [Y/n] : &quot;
   read answer
else 
   answer=&quot;&quot;
fi
if [ -z &quot;$answer&quot; ] || [ &quot;$answer&quot; = &quot;Y&quot; ] || [ &quot;$answer&quot; = &quot;y&quot; ] 
then
   rm -rf &quot;$winePrefix&quot;
   echo &quot;$winePrefix deleted&quot;
fi



# Initialize wineprefix
execute &quot;WINEPREFIX=$winePrefix ;mkdir $winePrefix&quot;
echo &quot;$winePrefix initialized&quot;



# Install Windows Script Host : VBScript only
download &quot;`basename $urlVbs`&quot; &quot;$urlVbs&quot;
if [ ! -r &quot;vbs56men.exe&quot; ]
then
   echo &quot;Error : needed vbs56men.exe not found. Please download it and retry&quot;     
   exit 1
fi
execute &quot;WINEDEBUG=-all WINEPREFIX=$winePrefix wine vbs56men.exe /Q&quot;    



# Install native OLE
echo

if [ &quot;$auto&quot; = &quot;n&quot; ] 
then
   echo -n &quot;Install native ole dlls [Y/n] : &quot;
   read answer
else 
   answer=&quot;&quot;
fi

if [ -z &quot;$answer&quot; ] || [ &quot;$answer&quot; = &quot;Y&quot; ] || [ &quot;$answer&quot; = &quot;y&quot; ] 
then
   download &quot;`basename $urlDcom`&quot; &quot;$urlDcom&quot;
   if [ ! -r &quot;DCOM98.EXE&quot; ] 
   then
      echo &quot;Error : needed DCOM98.EXE not found. Please download it and retry&quot;
      exit 1
   fi

   echo &quot;Installing DCOM98.EXE ...&quot;
   
   echo &#039;REGEDIT4&#039; &gt; win98.reg
   echo &#039;&#039; &gt;&gt; win98.reg
   echo &#039;[HKEY_CURRENT_USER\Software\Wine]&#039; &gt;&gt; win98.reg
   echo &#039;&quot;Version&quot;=&quot;win98&quot;&#039; &gt;&gt; win98.reg
     
   execute &quot;WINEPREFIX=$winePrefix wine regedit win98.reg&quot;
   execute &quot;rm $winePrefix/drive_c/windows/system32/ole32.dll&quot;
   execute &quot;rm $winePrefix/drive_c/windows/system32/oleaut32.dll&quot;
   execute &quot;rm $winePrefix/drive_c/windows/system32/olepro32.dll&quot;      
   execute &quot;rm $winePrefix/drive_c/windows/system32/rpcrt4.dll&quot;
   execute &quot;WINEDEBUG=-all WINEPREFIX=$winePrefix WINEDLLOVERRIDES=ole32,advpack=n wine DCOM98.EXE /Q&quot;

   execute &quot;rm win98.reg&quot;
   
   nativeOle=&quot;y&quot;      

fi



# Install native urlmon.dll
echo
if [ &quot;$auto&quot; = &quot;n&quot; ] 
then
   echo -n &quot;Install native urlmon.dll [y/N] : &quot;
   read answer
else 
   answer=&quot;&quot;
fi

if [ &quot;$answer&quot; = &quot;Y&quot; ] || [ &quot;$answer&quot; = &quot;y&quot; ] 
then
   download &quot;`basename $urlUrlmon`&quot; &quot;$urlUrlmon&quot;
   if [ ! -r &quot;urlmon.dll&quot; ] 
   then
      echo &quot;Error : needed urlmon.dll not found. Please download it and retry&quot;     
      exit 1
   fi

   echo &quot;Installing native urlmon.dll ...&quot;    
   execute &quot;cp urlmon.dll $winePrefix/drive_c/windows/system32/&quot;

   nativeUrlmon=&quot;y&quot;
fi



# Install native crypto dlls
echo
if [ &quot;$auto&quot; = &quot;n&quot; ] 
then
   echo -n &quot;Install natives crypto dlls [Y/n] : &quot;
   read answer
else 
   answer=&quot;&quot;
fi

if [ -z &quot;$answer&quot; ] || [ &quot;$answer&quot; = &quot;Y&quot; ] || [ &quot;$answer&quot; = &quot;y&quot; ] 
then
   download &quot;`basename $urlCrypt`&quot; &quot;$urlCrypt&quot;
   if [ ! -r &quot;crypt32.dll&quot; ] 
   then
      echo &quot;Error : needed crypt32.dll not found. Please download it and retry&quot;     
      exit 1
   fi     
   
   download &quot;`basename $urlRsa`&quot; &quot;$urlRsa&quot;
   if [ ! -r &quot;rsaenh.dll&quot; ]
   then
      echo &quot;Error : needed crypt32.dll not found. Please download it and retry&quot;     
      exit 1
   fi   

   echo &quot;Installing natives crypt32.dll and rsaenh.dll ...&quot;    
   execute &quot;cp crypt32.dll $winePrefix/drive_c/windows/system32/&quot;
   execute &quot;cp rsaenh.dll $winePrefix/drive_c/windows/system32/&quot;

   nativeCrypt=&quot;y&quot;
fi



# Set winxp compatibility

echo
echo &quot;Setting windows XP compatibility&quot;

echo &#039;REGEDIT4&#039; &gt; winxp.reg
echo &#039;&#039; &gt;&gt; winxp.reg
echo &#039;[HKEY_CURRENT_USER\Software\Wine]&#039; &gt;&gt; winxp.reg
echo &#039;&quot;Version&quot;=&quot;winxp&quot;&#039; &gt;&gt; winxp.reg      

execute &quot;WINEDEBUG=-all WINEPREFIX=$winePrefix wine regedit winxp.reg&quot;

execute &quot;rm winxp.reg&quot;

# Setting sound config
echo
if [ &quot;$auto&quot; = &quot;n&quot; ] 
then
   echo &quot;Select a sound config : &quot;
   
   PS3=&quot;Your choice : &quot;
   select answer in &#039;High quality&#039; &#039;Low quality&#039; &#039;No sound&#039;
   do
   
      case &quot;$answer&quot; in
         &#039;High quality&#039;)
            break;
            ;;
         &#039;Low quality&#039;)
            break;
            ;;
         &#039;No sound&#039;)
            break;
            ;; 
         *)
            echo &quot;Invalid choice !&quot;
      esac
   
   done
   PS3=&quot;&quot;
   
else 
   answer=&#039;High quality&#039;
fi


echo &#039;REGEDIT4&#039; &gt; soundcfg.reg
echo &#039;&#039; &gt;&gt; soundcfg.reg

case &quot;$answer&quot; in
   &#039;High quality&#039;)
      echo &quot;Setting high quality sound ...&quot;
      echo &#039;[HKEY_CURRENT_USER\Software\Wine\Drivers]&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;Audio&quot;=&quot;oss&quot;&#039; &gt;&gt; soundcfg.reg
      echo &#039;&#039; &gt;&gt; soundcfg.reg
      echo &#039;[HKEY_CURRENT_USER\Software\Wine\DirectSound]&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;DefaultSampleRate&quot;=&quot;22050&quot;&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;HardwareAcceleration&quot;=&quot;Emulation&quot;&#039; &gt;&gt; soundcfg.reg
      ;;
   &#039;Low quality&#039;)
      echo &quot;Setting low quality sound ...&quot;
      echo &#039;[HKEY_CURRENT_USER\Software\Wine\Drivers]&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;Audio&quot;=&quot;oss&quot;&#039; &gt;&gt; soundcfg.reg
      echo &#039;&#039; &gt;&gt; soundcfg.reg
      echo &#039;[HKEY_CURRENT_USER\Software\Wine\DirectSound]&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;DefaultSampleRate&quot;=&quot;11025&quot;&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;EmulDriver&quot;=&quot;Y&quot;&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;HardwareAcceleration&quot;=&quot;Emulation&quot;&#039; &gt;&gt; soundcfg.reg
      ;;
   &#039;No sound&#039;)
      echo &quot;Setting no sound ...&quot;
      echo &#039;[HKEY_CURRENT_USER\Software\Wine\Drivers]&#039; &gt;&gt; soundcfg.reg
      echo &#039;&quot;Audio&quot;=&quot;&quot;&#039; &gt;&gt; soundcfg.reg
      ;;
   *)
      echo &quot;Error : bad luck, it&#039;s a script error :(&quot;
      exit 1
esac
execute &quot;WINEDEBUG=-all WINEPREFIX=$winePrefix wine regedit soundcfg.reg&quot;

execute &quot;rm soundcfg.reg&quot;




# Set dlls overridding
if [ &quot;$nativeUrlmon&quot; = &quot;y&quot; ] || [ &quot;$nativeCrypt&quot; = &quot;y&quot; ] || [ &quot;$nativeOle&quot; = &quot;y&quot; ]
then 

   echo
   echo &quot;Setting dlls overridding&quot;

   echo &#039;REGEDIT4&#039; &gt; dlls.reg
   echo &#039;&#039; &gt;&gt; dlls.reg
   echo &#039;[HKEY_CURRENT_USER\Software\Wine\AppDefaults\Future Pinball.exe\DllOverrides]&#039; &gt;&gt; dlls.reg

   if [ &quot;$nativeUrlmon&quot; = &quot;y&quot; ]
   then      
      echo &#039;&quot;urlmon&quot;=&quot;native,builtin&quot;&#039; &gt;&gt; dlls.reg
   fi   

   if [ &quot;$nativeCrypt&quot; = &quot;y&quot; ]
   then
      echo &#039;&quot;crypt32&quot;=&quot;native,builtin&quot;&#039; &gt;&gt; dlls.reg
      echo &#039;&quot;rsaenh&quot;=&quot;native,builtin&quot;&#039; &gt;&gt; dlls.reg
   fi

   if [ &quot;$nativeOle&quot; = &quot;y&quot; ]
   then
      echo &#039;&quot;ole32&quot;=&quot;native,builtin&quot;&#039; &gt;&gt; dlls.reg
      echo &#039;&quot;oleaut32&quot;=&quot;native,builtin&quot;&#039; &gt;&gt; dlls.reg
   fi

   execute &quot;WINEDEBUG=-all WINEPREFIX=$winePrefix wine regedit dlls.reg&quot;
   execute &quot;rm dlls.reg&quot;

fi


# Command to kill fp process

killCmd=&quot;kill -9 \`ps ex | grep WINEPREFIX=$winePrefix | grep \&quot;Future Pinball.exe\&quot; | cut -d \&quot; \&quot; -f2\` \`ps ex | grep WINEPREFIX=$winePrefix | grep \&quot;explorer.exe\&quot; | cut -d \&quot; \&quot; -f2\` \`ps ex | grep WINEPREFIX=$winePrefix | grep \&quot;wineserver\&quot; | cut -d \&quot; \&quot; -f2\`&quot;


# Create some FP launchers

# Standard launcher
echo &#039;#!/bin/bash&#039; &gt; &quot;$winePrefix/runFP&quot;
echo &#039;&#039; &gt;&gt; &quot;$winePrefix/runFP&quot;
echo &quot;$killCmd&quot; &gt;&gt; &quot;$winePrefix/runFP&quot;
echo &quot;WINEPREFIX=$winePrefix WINEDEBUG=-all wine $winePrefix/drive_c/\&quot;Games\&quot;/\&quot;Future Pinball\&quot;/\&quot;Future Pinball.exe\&quot;&quot; &gt;&gt; &quot;$winePrefix/runFP&quot;

# Launcher in debug mode
echo &#039;#!/bin/bash&#039; &gt; &quot;$winePrefix/debugFP&quot;
echo &#039;&#039; &gt;&gt; &quot;$winePrefix/debugFP&quot;
echo &quot;$killCmd&quot; &gt;&gt; &quot;$winePrefix/debugFP&quot;
echo &#039;logFile=`date -u &quot;+%Y%m%d_%H%M%S&quot;`&#039; &gt;&gt; &quot;$winePrefix/debugFP&quot;
echo &#039;touch &quot;fp_$logFile.out&quot;&#039; &gt;&gt; &quot;$winePrefix/debugFP&quot;
echo &quot;WINEPREFIX=$winePrefix WINEDEBUG=+loaddll wine $winePrefix/drive_c/\&quot;Games\&quot;/\&quot;Future Pinball\&quot;/\&quot;Future Pinball.exe\&quot; &amp;&gt; fp_\$logFile.out &amp; tail -f fp_\$logFile.out&quot; &gt;&gt; &quot;$winePrefix/debugFP&quot;

# winecfg launcher
echo &#039;#!/bin/bash&#039; &gt; &quot;$winePrefix/cfgFP&quot;
echo &#039;&#039; &gt;&gt; &quot;$winePrefix/cfgFP&quot;
echo &quot;$killCmd&quot; &gt;&gt; &quot;$winePrefix/cfgFP&quot;
echo &quot;WINEPREFIX=$winePrefix winecfg&quot; &gt;&gt; &quot;$winePrefix/cfgFP&quot;

execute &quot;chmod +x $winePrefix/runFP&quot;
execute &quot;chmod +x $winePrefix/debugFP&quot;
execute &quot;chmod +x $winePrefix/cfgFP&quot;




# Install Future Pinball
echo
download &quot;`basename $urlFP`&quot; &quot;$urlFP&quot;
if [ ! -r &quot;`basename $urlFP`&quot; ]
then
   echo &quot;Error : needed `basename $urlFP` not found. Please download it and retry&quot;     
   exit 1
fi   
echo &quot;Installing Future Pinball ...&quot;
execute &quot;WINEDEBUG=-all WINEPREFIX=$winePrefix wine `basename $urlFP`&quot;




# Modify menu entries

echo &quot;Modifying menu entries&quot;
echo

#TODO : is wine XDG compliant ?
# Use XDG for locating desktop dir
# test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs &amp;&amp; source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
# desktopDir=&quot;${XDG_DESKTOP_DIR:-$HOME/Desktop}&quot;
desktopDir=&quot;$HOME/Desktop&quot;

DESKTOP_LNK=&quot;$desktopDir/Future Pinball.lnk&quot;
if [ -e &quot;$DESKTOP_LNK&quot; ] 
then
   echo &quot;Deleting $DESKTOP_LNK&quot;
   rm &quot;$DESKTOP_LNK&quot;
fi

DESKTOP_DES=&quot;$desktopDir/Future Pinball.desktop&quot;
if [ -e &quot;$DESKTOP_DES&quot; ] 
then
   echo &quot;Recreating $DESKTOP_DES&quot;

   echo &quot;[Desktop Entry]&quot; &gt; &quot;$DESKTOP_DES&quot;
   echo &quot;Name=Future Pinball&quot; &gt;&gt; &quot;$DESKTOP_DES&quot;
   echo &quot;Exec=$winePrefix/runFP&quot; &gt;&gt; &quot;$DESKTOP_DES&quot;
   echo &quot;Type=Application&quot; &gt;&gt; &quot;$DESKTOP_DES&quot;
   echo &quot;Icon=443e_future pinball.0&quot; &gt;&gt; &quot;$DESKTOP_DES&quot;
fi

LOCAL_DES=&quot;$HOME/.local/share/applications/wine/Programmes/Future Pinball/Future Pinball.desktop&quot;
if [ -e &quot;$LOCAL_DES&quot; ] 
then
   echo &quot;Recreating $LOCAL_DES&quot;

   echo &quot;[Desktop Entry]&quot; &gt; &quot;$LOCAL_DES&quot;
   echo &quot;Name=Future Pinball&quot; &gt;&gt; &quot;$LOCAL_DES&quot;
   echo &quot;Exec=$winePrefix/runFP&quot; &gt;&gt; &quot;$LOCAL_DES&quot;
   echo &quot;Type=Application&quot; &gt;&gt; &quot;$LOCAL_DES&quot;
   echo &quot;Icon=443e_future pinball.0&quot; &gt;&gt; &quot;$LOCAL_DES&quot;
fi

LOCAL_URL=&quot;$HOME/.local/share/applications/wine/Programmes/Future Pinball/Future Pinball Support Forums.desktop&quot;
if [ -e &quot;$LOCAL_URL&quot; ] 
then
   echo &quot;Recreating $LOCAL_URL&quot;

   echo &quot;[Desktop Entry]&quot; &gt; &quot;$LOCAL_URL&quot;
   echo &quot;Name=Future Pinball Support Forums&quot; &gt;&gt; &quot;$LOCAL_URL&quot;
   echo &quot;Exec=env WINEPREFIX=\&quot;$winePrefix\&quot; winebrowser http://www.futurepinball.com/forum&quot; &gt;&gt; &quot;$LOCAL_URL&quot;
   echo &quot;Type=Application&quot; &gt;&gt; &quot;$LOCAL_URL&quot;
   echo &quot;Icon=3550_shell32.0&quot; &gt;&gt; &quot;$LOCAL_URL&quot;
fi

LOCAL_MAN=&quot;$HOME/.local/share/applications/wine/Programmes/Future Pinball/Future Pinball Manual.desktop&quot;
if [ -e &quot;$LOCAL_MAN&quot; ] 
then
   echo &quot;Recreating $LOCAL_MAN&quot;

   echo &quot;[Desktop Entry]&quot; &gt; &quot;$LOCAL_MAN&quot;
   echo &quot;Name=Future Pinball Manual&quot; &gt;&gt; &quot;$LOCAL_MAN&quot;
   echo &quot;Exec=env WINEPREFIX=\&quot;$winePrefix\&quot; wine hh \&quot;C:\\\\Games\\\\Future Pinball\\\\Help\\\\Future Pinball Manual.chm\&quot;&quot; &gt;&gt; &quot;$LOCAL_MAN&quot;
   echo &quot;Type=Application&quot; &gt;&gt; &quot;$LOCAL_MAN&quot;
   echo &quot;Icon=443e_future pinball.8&quot; &gt;&gt; &quot;$LOCAL_MAN&quot;
fi

#TODO : do something with this entry ?
#LOCAL_UN=&quot;$HOME/.local/share/applications/wine/Programmes/Future Pinball/Uninstall Future Pinball.desktop



# End of script
echo
echo &quot;Installation done !&quot;
echo</code></pre></div><p>Voir la page de doc indiquée si vous êtes intéressé. Il faut créer le fichier contenant ce script, le rendre exécutable, le lancer, attendre un peu... et vous devriez avoir une installation de Future Pinball parfaitement jouable, seul le téléchargement de tables via l&#039;éditeur ne marche vraiment pas, il faut les télécharger &quot;manuellement&quot; par ailleurs.</p>]]></description>
			<author><![CDATA[dummy@example.com (Mysteroïd)]]></author>
			<pubDate>Mon, 15 Nov 2010 21:21:31 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=3852121#p3852121</guid>
		</item>
	</channel>
</rss>
