Gamoover

[move]Vous vous épilez le maillot et collectionnez les bornes d'arcade avec des hommes musclés dessus ? Alors soyez les bienvenus sur Gamoover ! [/move]

Commandes pour Pinball Fx2 / table aléatoire

Démarré par shazamic, Samedi 11 Juin 2016, 20:21:13 PM

shazamic

Je note ici, la seule ligne de commande, à ma connaissance, pour Pinball FX2 sur Steam :

Un raccourci steam pour lancer une table directement (ici Droids):
steam://rungameid/226980//STARWARS_Droids

ou ce type de raccourci pour lancer Steam directement sur la table Droids. Pratique pour un pincab sans front-end :
"C:\Program Files (x86)\Steam\Steam.exe" -applaunch 226980 STARWARS_Droids

Source : https://steamcommunity.com/app/226980/discussions/0/537405286653288822/#c537405286653527824

Je me demande si à partir de ça, on ne pourrait pas créer un script pour lancer une table aléatoirement ...?

Je ne sais pas si il y a d'autres commandes de ce genre. Mais si vous en connaissez, n'hésitez pas à les noter ici ;)

shazamic

J'ajoute les noms des fichiers des tables :
Aliens
Alien_Isolation
Alien_vs_Predator
AmericanDad
Archer
Atlantis
BioLab
BobsBurgers
CastleStorm
Citadel
EarthDefense
Eldorado
Excalibur
FamilyGuy
Football.pxp
Football_Arsenal
Football_Barcelona
Football_Juventus
Football_Liverpool
Football_Milan
Football_RealMadrid
Football_Roma
Looter
Mars
MARVEL_Age_of_Ultron
MARVEL_Ant-Man
MARVEL_Avengers
MARVEL_Blade
MARVEL_CaptainAmerica
MARVEL_CivilWar
MARVEL_Deadpool
MARVEL_DrStrange
MARVEL_FantasticFour
MARVEL_FearItSelf
MARVEL_GhostRider
MARVEL_Guardians
MARVEL_InfinityGauntlet
MARVEL_IronMan
MARVEL_MoonKnight
MARVEL_SpiderMan
MARVEL_Thor
MARVEL_Venom
MARVEL_Wolverine
MARVEL_WWH
MARVEL_XMen
Paranormal
Pasha
PlantsVsZombies
Portal
Rome
Shaman
SouthPark1
SouthPark2
SplosionMan
STARWARS_Boba_Fett
STARWARS_CloneWars
STARWARS_Darth_Vader
STARWARS_Droids
STARWARS_Episode_4
STARWARS_Episode_5
STARWARS_Episode_6
STARWARS_Episode_7
STARWARS_Han_Solo
STARWARS_Light_VS_Dark
STARWARS_MFO
STARWARS_Rebels
STARWARS_SFA
Tesla
TheWalkingDead
V12
Western


Si quelqu'un voit une solution pour faire un raccourci aléatoire dans ce style ou par un autre moyen...

"C:\Program Files (x86)\Steam\Steam.exe" -applaunch 226980 STARWARS_Droids ou "C:\Program Files (x86)\Steam\Steam.exe" -applaunch 226980 tesla ou "C:\Program Files (x86)\Steam\Steam.exe" -applaunch 226980 rome


shazamic

Avec l'aide de programmeurs sur le forum developpez.net, j'ai pu créer un .bat pour lancer PFx2 avec une table aléatoire.
En plus, ca skip les intros video au démarrage.
Vous pouvez le lancer à l'ouverture de windows ou directement depuis votre bureau.

Batch.bat
@echo off

set /a count=0
for /F "tokens=1 delims=:" %%a in ('findstr /R /N "^" map.txt') do set /a count=%%a

echo %random%>nul
SET /a rand=%RANDOM%*%count%/32768+1

set choix=""
for /F "tokens=1,* delims=:" %%a in ('findstr /R /N "^" map.txt') do if "%%a" == "%rand%" set choix=%%b

"D:\jeux\Steam\Steam.exe" -applaunch 226980 %choix%


map.txt (j'ai retiré les 3 aliens que je n'ai pas encore)
AmericanDad
Archer
Atlantis
BioLab
BobsBurgers
CastleStorm
Citadel
EarthDefense
Eldorado
Excalibur
FamilyGuy
Football.pxp
Looter
Mars
MARVEL_Age_of_Ultron
MARVEL_Ant-Man
MARVEL_Avengers
MARVEL_Blade
MARVEL_CaptainAmerica
MARVEL_CivilWar
MARVEL_Deadpool
MARVEL_DrStrange
MARVEL_FantasticFour
MARVEL_FearItSelf
MARVEL_GhostRider
MARVEL_Guardians
MARVEL_InfinityGauntlet
MARVEL_IronMan
MARVEL_MoonKnight
MARVEL_SpiderMan
MARVEL_Thor
MARVEL_Venom
MARVEL_Wolverine
MARVEL_WWH
MARVEL_XMen
Paranormal
Pasha
PlantsVsZombies
Portal
Rome
Shaman
SouthPark1
SouthPark2
SplosionMan
STARWARS_Boba_Fett
STARWARS_CloneWars
STARWARS_Darth_Vader
STARWARS_Droids
STARWARS_Episode_4
STARWARS_Episode_5
STARWARS_Episode_6
STARWARS_Episode_7
STARWARS_Han_Solo
STARWARS_Light_VS_Dark
STARWARS_MFO
STARWARS_Rebels
STARWARS_SFA
Tesla
TheWalkingDead
V12
Western


dynis77


chiourme

Merci, ca fonctionne aussi avec une version "non steam"  :D
Il suffit de changer la derniere ligne du fichier Batch:

"D:\Pinball FX2\Pinball FX2.exe" %choix%