Announcement

Collapse
No announcement yet.

Launch Pinball Fx2 with random map ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • shazamic
    replied
    Ok... so with help from the forum developpez.net, here a .bat to launch game with a random table!


    Batch.bat
    Code:
    @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 (all, except 3 aliens that i don't have yet)
    Code:
    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

    Leave a comment:


  • shazamic
    started a topic Launch Pinball Fx2 with random map ?

    Launch Pinball Fx2 with random map ?

    Hi! i'm trying to create a shortcut like that on my pincab dedicaded to Pbfx2 :

    C:\Program Files (x86)\Steam\Steam.exe" -applaunch 226980 STARWARS_Droids
    This one is working, i putted it in windows Start folder, and table Droids launch itself. It's nice yet.

    But, how to make a shotcut with random table ? something like this one (not working):
    C:\Program Files (x86)\Steam\Steam.exe" -applaunch 226980 STARWARS_Droids ou Tesla or Rome

    Is it possible ? maybe with a batch ?
    Thanks for your help
    Last edited by shazamic; 07-26-2016, 11:20 PM. Reason: resolved
Working...
X