Results 1 to 2 of 2

Thread: Launch Pinball Fx2 with random map ?

  1. #1
    Junior Member
    Join Date
    May 2016
    Posts
    25

    Default [Resolved] Launch Pinball Fx2 with random table !

    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 at 11:20 PM. Reason: resolved

  2. #2
    Junior Member
    Join Date
    May 2016
    Posts
    25

    Default

    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

Posting Permissions

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