Jump to content
LaunchBox Community Forums

Hamburglin

Members
  • Posts

    203
  • Joined

  • Last visited

Posts posted by Hamburglin

  1. 4 minutes ago, JoeViking245 said:

    Never tried it on the other 2, but you can [also] set XInput controls for Visual Pinball (VPX).  Though, to me, it's weird playing it with a controller. :) 

    He's talking about an arcade cabinet. He'd just wire his cabinets side buttons (if that's what he has) into the PACTO board. You can wire as many buttons as you want to the same pacto buttons.

    So, he could have a button from his arcade controls wired to X and also have a side button used for pinball wired to the same X port on the board just fine. I do this for physical coin slots as well. They are wired into the SELECT port along with the normal arcade select/coin buttons.

  2. 2 minutes ago, Truest1 said:

    Ok I see. But we also need keyboard keys for pinball games like visual pinball Future pinball pinball fx. These look interesting though. 

    I still use an IPAC for keyboard and mouse/trackball/spinner. But vpinx uses xinput just fine for controls FYI. You just bind them in the options menu.

  3. 4 minutes ago, Truest1 said:

    What iPac boards are you talking about? You mentioned the same ones twice? 

    Oops. I meant that I recommend the PACTO xinput boards over old-school IPAC boards that typically require intermediary software to turn its (very old) dinput controls into xinput controls. The pacto board makes controls "just work" with today's emulators and regular PC games. I've had zero issues with it

     

    This is the one me and my friends use: https://pactotech.com/en-us/products/copy-of-pacto-tech-4000t-4-player-control-interface-for-arcade-cabinets-supports-xinput-protocol

  4. You want to look at the first output of the ini file ( the Write-Output that was near primardisplay yhat you uncommented) and make the that the DISPLAYXX is set on the correct ini line. It's showing what it WOULD write to the ini file if you could (seems like yo can't right now). So it should be set correctly there.

    I think the line in the ini that should be chanhed us display 1 or main display. I can't remember off the top of my head.

    The second ini i suhhest to uncomment us literally just reading in the mame.ini file and showing you what it is, unedited. You can comment that back out for now since you know that's working.

  5. It might be because you have two digits in your displayname. Try changing this:

    $content = $content -replace '(DISPLAY\d)',"$primarydisplay"

    To this:

    $content = $content -replace '(DISPLAY\d{1,2})',"$primarydisplay"

    And uncomment this out right below it (remove the #) to see if it worked:

    #Write-Output $content

    If that worked, then it should write it correctly to the mame.ini file.

    If that's not working then double check that it's reading in the mame file by uncommenting the Write-Output line here:

    #Read in mame.ini
    $content = Get-Content -Path 'E:\Launchbox\Emulators\MAME Lightgun\ini\mame.ini'
    #Write-Output $content
  6. 6 minutes ago, Retro808 said:

    LB does not do video marquees which is what was being asked. LB only has marquee images. 

     

    Check the downloads section. I did not look much but here is a link for some Arcade marquee videos. 

     

    I thought he was saying all he could find was a video marquee download.

  7. 3 minutes ago, marcosgaming said:

    I've bought a marquee but i would find videos marque for platform, for Playlist and so on..... 

    Anyone knows a link? 

    There's nothing to find. When you import games into launchbox it downloads all of the art, including the marquees.

  8. I need to either opt out of the beta or figure out how to get the update pop-ups to go away. 

    They're ruining my public arcade cabinet by asking random people to install it. Then if they hit yes, they are taken to the desktop and are asked for an admin password to install it.

    AND THEN.... if enough time passes by, it tries to install it itself and eventually crashes due to no user input. It breaks on something it need admin for.

  9. On 11/3/2024 at 3:19 AM, marcosgaming said:

    Hi guys, where i find a link for my marquee 1920x360? Thanks

    Extreme Home Arcades gets custom batches of nice ones from China. They might be able to sell to you but they're over $1k.

     

    Otherwise, it's very difficult to find the perfect size for arcade cabinets.

    • Thanks 1
  10. 11 minutes ago, leefaster said:

    All works now, as you said it needed to run in powershell. Wrote a bat file to execute this and added this bat file to additional apps in game in launchbox. So all is good. Many thanks for this.

    Just realized another problem, when i start the game the bat file runs, executes the powershell script, before the game starts but the game starts before the config file is written.   The easy way around this is to close and restart the game. Do you know a way to run the bat file (in additional apps) and delay the game start?

    Awesome!

    So, I turned it into an executable so it could be run at windows startup. I type "shell:startup" into run and drop the executable in there.

    Otherwise... I thought there was an option or checkbox to make launchbox wait for the program to finish running before launching the game. If not, you could add a sleep timer to it as well. I believe that's on the startup script autohotkey section.

  11. 5 hours ago, leefaster said:

    Tried this, ran the script as a bat file but does not change the gun mappings. Can you check i have the script correct.

     

    Set-Location -Path "C:\LaunchBox\Emulators\Model3\Config"
    #Get-Location

    #Find gun1's mouse index
    $inputs = & "C:\LaunchBox\Emulators\Model3\Supermodel.exe" -print-inputs 
    $gun1info = ($inputs | Select-String "mouseGUN1").Line
    $gun1index = $gun1info.Substring(1,1)
    $gun1formatted = "MOUSE" + $gun1index
    Write-Output $gun1formatted

    #Find gun2's mouse index
    $inputs = & "C:\LaunchBox\Emulators\Model3\Supermodel.exe" -print-inputs 
    $gun2info = ($inputs | Select-String "mouseGUN2").Line
    $gun2index = $gun2info.Substring(1,1)
    $gun2formatted = "MOUSE" + $gun2index
    Write-Output $gun2formatted

    #Read in Supermodel.ini
    $content = Get-Content -Path "C:\LaunchBox\Emulators\Model3\Config\Supermodel.ini"

    #Edit Supermodel.ini mouse related lines
    #This assumes you have one mouse assigned per bind/value already. It will not touch any bindings to the RIGHT of the mouse text
    #(Need backtick in front of capture group variable in the replacement else it won't print the value)

    #Update gun1
    $content = $content -replace '(InputStart1.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3" 
    $content = $content -replace '(InputCoin1.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputGunX.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3" 
    $content = $content -replace '(InputGunY.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputTrigger.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputOffscreen.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputAnalogGunX.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputAnalogGunY.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputAnalogTriggerLeft.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"
    $content = $content -replace '(InputAnalogTriggerRight.*?)(MOUSE.*?)(_)',"`$1$gun1formatted`$3"

    #Update gun2
    $content = $content -replace '(InputStart2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputCoin2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputGunX2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3" 
    $content = $content -replace '(InputGunY2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputTrigger2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputOffscreen2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputAnalogGunX2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputAnalogGunY2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputAnalogTriggerLeft2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"
    $content = $content -replace '(InputAnalogTriggerRight2.*?)(MOUSE.*?)(_)',"`$1$gun2formatted`$3"

    #Write new file
    #Write-Output $content
    $content | Set-Content -Path "C:\LaunchBox\Emulators\Model3\Config\Supermodel.ini"

    That's probably because it's a powershell script, needs to be have the .ps1 file extension, and needs to be ran by powershell. It's not a bat file that can be run by windows command line.

    I also think the very first directory at the top doesn't need the /Config part. It just needs to be pointed to the top level of the supermodel3 folder.

    If that doesn't do it... do you see all of those lines that start with Write-Output....? Those will show you if it's working correctly. Look at their output in the powershell command window after you run the script. Check that each step looks correct.

    Make sure to uncomment the final one at the bottom first, too. That will show you the entire ini file that's about to written. If that looks right and the gun lines look good, make sure that the file you're pointing to actually got written and matches that.

    Finally, did you also edit the registry to give your guns a name? Looks like you're using mouseGUN1 and 2 if so.

  12. There wasn't a solution for doing the dynamic game mapping of buttons, no.

    But you can set all of the buttons to white with a custom animation. I cant remember how to do it exactly, but you set all of the buttons to white in the animation editor and it just reruns that single frame of white forever.

    Also, I highly recommend the IPAC boards if you're using xinput. It saves so much time and is less of a hassle than using an ipac board and mapping those to xinput via software.

×
×
  • Create New...