Jump to content
LaunchBox Community Forums

JoeViking245

Moderators
  • Posts

    3,263
  • Joined

  • Last visited

  • Days Won

    29

Posts posted by JoeViking245

  1. It shouldn't crash anything.  All it's doing is a pseudo hold-down {Alt}, hit {Tab} until you get to the VPX table window and release {Alt}.

    That said, just did some more testing and found on a table that uses Virtual DMD (UltraDMD.exe) it will pause, but when I go to un-pause I get a message something like 'VPX just had a brain fart. Do you want to close it or wait to see if its' head clears out?'  Clicking Wait seemed to... well, just wait.

    From this, I found if I {Alt}{Tab} to the DMD window and hit P[ause], it resumes just fine.  I only have 5 tables that use UltraDMD (as far as I can tell) and only 2 of those had this happen.  BUT!!!!!!!!............ when I went back to double check those, they un-paused just fine.  So, I'll say it again.  It seems to be random. :) 

    And to top that off, I removed the 'WinActivate' line mentioned above, and all other tables return properly back to the play field now after pausing.  Go figure.

     

    So maybe don't use the aforementioned line.  Play, Pause, Un-Pause, {Alt}{Tab} back to the play field,  Exit, Play, Pause, Un-Pause, {Alt}{Tab}, Exit and so forth then maybe after a while it'll clear itself up.?

  2. It seems to be random that it does this, maybe depending on the table/DMD/PinMame... who know's.  Also, looks like after the 1st time of needing to {Alt}{Tab} back to the table after pausing, it works fine.  I think it's just a thing but adding this to the On Resume tab for the Visual Pinball X emulator seems to fix it.

    WinActivate ahk_class VPPlayer

    image.thumb.png.f18b69459b31f05761de970ba7e8c237.png 

     

    • Like 1
    • Thanks 1
  3. Very nice!  I didn't know that %gameid% was even available to pass as a parameter.  Definitely an awesome means for pointing to the individual game configs without using a script, plugin or hand typing in per game custom command lines.  Though something like %FileNameWithoutExtensionAndPath% would be sweet. :)  

    Thanks for this @Sunnyhat!

    • Like 1
  4. Ya, naming conventions for Visual Pinball has been a mess since forever.  And it will never go away.  But can't really complain as all these tables are made royalty free by individuals, on their own free time.

    I do the same as @Headrush69 using a clean folder name.  However back when, when I 1st imported them I did a drag and drop of all the VPX files.  Since most all the authors/version/revision/what_ever where inside parenthesis, LB left the Names pretty good and the versions etc went into the Version field.  Then when I update tables (again, way over due. lol)  I drop them into the 'proper' folder respectively and manually update were LB is pointing to.  Call it a part of the hobby. lol

  5. Let's backtrack a little.... A few posts back, for troubleshooting purposes your rem'd some lines attempting a process-of-elimination.  And earlier before that you mentioned "Here is the batch file..." .  Sorry I didn't catch that before, but the script (posted above) was to be an AutoHotKey's (AHK) script. I know both types were mentioned and I wasn't very clear on that.  I apologize.  So "the script" above should have a file extension of  .ahk     [to rem out a line, AHK uses a ; (semicolon) instead of 'rem'. ] 

    However, I think you also indicated you ran "DS4W_Off.bat" by itself at the DOS prompt and it didn't work.?.?.  I wouldn't think you'd need to create a shortcut (.lnk) to your batch files since the AHK script is pointing to the full path of the batch file itself.

    What do the DS4W_Off[/On] batch files look like themselves?  Their 'commands' could be simply put into the AHK script file (using AHK 'lingo' of course) instead of pointing to an outside batch file.  But either way is fine.

    Again, I apologize for creating confusion.  But I do know this method does (and will) work.

     

  6. PINUP Player is actually pretty cool.  But my little i5 machine needs just a touch more oomph.  lol

    Honestly I haven't even looked at FP in about a year.  So I'm probably out of touch by a version or 2.  So until I update it, my allegiance is still with VPX. :)  I also prefer the more nostalgic table look vs the eye candy of FX2 and FX3 (and to an extent, FP).  Just old school that way, I guess.

    I know JP has done a lot of upgraded desktop modes for tables over the last 6+ months.  Though it's been a while there since I upgraded tables too.  VPX and pinmame are current, just not so much tables. ?

    Ahhh.... the ol' "I'm done tinkering, I'm goin' to start playing now" thoughts.  Let us know how that goes for you. lol  jk  I need to stop thinking about it and actually start playing more myself.  "Oh!  Wait!  Just one more little tweak here, and then I'll start playing again."  It's a vicious cycle.

  7. I've never attempted a 2nd display with VPX (nor FP).  :( 

    Does Backglass - Options - X/Y Rotation do anything?

     image.thumb.png.7ce430d6c3cc3281a930d4201b90056c.png

    Sounds like, video card pending, you might be able to automate a display rotation on a given monitor.  https://www.vpforums.org/index.php?showtopic=34850

    But even better, add/modify a pov xml file for the table (backglass).  https://vpinball.com/forums/topic/vpx-backdrop-pov-importexport-tutorial/#post-48590

    Now, I don't know if they all come with pov files to modify, or if you can even just add one if it doesn't.   But seems there has to be people who use dual desktop monitors for VPX, both in landscape mode.

  8. Do you by chance have more than one installation of mameui64.exe?  

    It looks to me like the mame.ini file that's in the same folder as the mameui64.exe you're pointing LaunchBox to, doesn't have the 'rompath' pointing to the folder that simpsons.zip is located in.

    Or if you have more than one simpsons.zip on your computer....

  9. Because of the batch file, we need to use %comspec% which opens a 'DOS' window as well as whatever the batch file opens.  /c closes the DOS window when the batch is done.  In between ,, would go the parameter for "working directory" but with nothing there is acting like a place holder so we can push 'hide'.

    If you open your command window (get to the DOS prompt) and are at "D:\" [root directory] and type in "D:\Gaming\Apps\Launchbox\Script Files\DS4W_Off.bat"  (need to include the quotes [because of the space between "Script" and "Files"], will it run as expected?

  10. @rcoltrane  Gotch'ya.  I get what you're asking now.  But I'm going to take a wild (but somewhat educated) guess that that's never going to happen.  

    Just curious, do you store all your MAME roms extracted? 

    Here's a little caveat... You obtain MAME's Software List "MSX2 cartridges" [long name] aka "msx1_cart" [short name].  In there you have "hero.zip" [short] which holds "h.e.r.o. (japan).rom" [long].  The long name is of course a lot more descriptive of the actual game.  And that [long] is how you have it stored on your computer. (no .zip file)

    In that same set you have "1942.zip" [short] which per the hash file, its 'description' is "1942 (Jpn)" and  it's 'rom file' is "1942 (japan).rom".  But the actual zip file contains "nc81820-g30 japan 8649" (at least mine does).  Which one is MAME's standardized long name?  Do you extract to rom from the zip file and rename it?  And the only way to verify a good/bad dump is through a hash check (crc, sha1...).  The name can only get you close.

    Caveat 2: the zip file is actually a culmination of multiple rom files.  i.e. Arcade Machine "1942.zip"  It contains 27 'rom files'.

    Now if you have in your collection roms from days afore, and by chance they happen to have the same naming convention MAME ended up using in their hash file 'rom file' name, That's pretty impressive and a rarity of it's own.  I'm sure.  But again, only for ones that have a single 'rom file'.

    Most, if not all people will get the emulatable roms directly from MAME's Software List collection.  Which of course stores the files zipped with MAME's short naming convention and is what the MAME emu looks for.  Again, just as is done for their Arcade Machines.  (which I know you know this)  

  11. Oh crikey!  Forgot some [important] stuff.?  Sorry about that.

    Run, %comspec% /c "D:\Gaming\Apps\Launchbox\Script Files\DS4W_Off.bat",,hide
    Sleep, 1000     ; Just in case it needs a sec to 'turn off' DS4W.  1000 = 1 second 
    RunWait, "D:\Gaming\Emulators\RPCS3\rpcs3.exe" %1%
    Run, %comspec% /c "D:\Gaming\Apps\Launchbox\Script Files\DS4W_On.bat",,hide
    ExitApp

    Threw the Sleep line in just in case.  Increase, decrease or remove as necessary.

  12. For your Dolphin emulator Default Command-Line Parameters...do you have "-b -e"?image.thumb.png.448f8a3b3fe21f36dae7d357b2905c2d.png

    -b, --batch                                   Exit Dolphin with emulator
    -e, --exec=<str>                              Loads a specific game file (ELF, DOL, GCM, ISO, WBFS, CISO, GCZ, WAD)

     

    • Thanks 1
  13. @DOS76 beat me to the Submit Reply button...

    Suggestion #1:  I'm not really clear on what you'er saying.  But I think what you want is to be able to import into LaunchBox MAME Software Lists so that the game's proper Title shows in your Platform collection, while the game's rom_name can stay intact (zipped) so MAME can launch it.  Just like it does when importing MAME Arcade Machines.

    If that is the case, LaunchBox does not currently accommodate MAME Software Lists (in that regards) as it does for MAME Arcade Machines.  There is however a plugin that some guy wrote for the LB community that can help with that.

    Suggestion #2...  That can be tricky as not all emulators open a console window.  Also, it's probably actually easier just to ask here on the forums.  There is a mass amount of knowledgeable people that are willing to help right here at your fingertips.

    • Like 1
    • Haha 1
  14. I wasn't sure about your familiarity with MAME, and sounds like that not an issue. ?

    You're not allowed to post copyrighted materials (roms) here.  That's why the moderators removed the link. That said, I already had it, and that's how I know it does work in LaunchBox.  And so, I am determined to get it to work for you too. :) 

    This brings it down to how it's set up in LaunchBox.  Since you're using MAME 0.217, the default Command line parameter -keyboardprovider dinput is not an issue.  Also, having your mame.ini in MAME's root folder (vs in it's ../ini  folder, which is another common issue) is taken care of.  And your rom/device_files/bios_files are all inside folders that are included in the "rompath" line inside mame.ini.

    Let's look at some basics, then go from there...

    In the Edit Game, Launcher tab, you have it pointing to a copy of "hero.zip" that's included in mame.ini 'rompath'?image.thumb.png.3e86ef25c2448af9a698d0ff48f1151a.pngIn the emulation tab, it's pointing to MAME (or however you called it)image.png.68331d9415d9323c8c2ec859b673bf9c.pngClick "Edit..."image.thumb.png.9d2feee12736580b27160d207ea66da4.pngThe exe file shown is the same one that has the rom path set for the selected game (above).  

    What about the check boxes?  Mine's setup (see below) such that even for Software List Platforms, the "Don't use..." and "Use file name..." can both stay checked (just like MAME Arcade Machines).  You may need to uncheck those depending on how your Software Lists are setup.

    Now under the Associated Platforms tabimage.thumb.png.8b99c5f79f6fc5bbc72c6c301b0b97e4.pngCheck for the Platform that you have H.E.R.O. in inside LaunchBox.  For me, it's " MSX1 cartridges".  Set the Default Command-Line Parameters to 

    expert11 -cart1

    And check that it is the Default Emulator.  "OK" your way back to the LaunchBox main ui.  That's what's working for me.

     

    A note on Software List file locations.  If you're planning to install several or many, what seems to work best (at least for me)...

    Create a sub folder in MAME called "software"   (D:\Emulators\Mame\software)

    In that new folder, place the Software List folders for each console/computer you're installing using the exact same name as the hash.xml file_name for the folder_name.   (D:\Emulators\Mame\software\msx1_cart)

    So for, the game in question would be located:  D:\Emulators\Mame\software\msx1_cart\hero.zip

    I place all the console/computer bios and device files directly in "software".  They probably could just as well be in their corresponding sub_folder, but for whatever reason, I did it this way and it's working.

    Thus I have the file expert11 located:  D:\Emulators\Mame\software\expert11.zip

    With these file locations, all you need to add in the mame.ini "rompath" line is "software

    #
    # CORE SEARCH PATH OPTIONS
    #
    homepath                  .
    rompath                   roms;software

    MAME will know to look for expert11.zip and hero.zip under "software\" and under "software\msx1_cart\", respectively.

  15. No worries.

    Can you run from inside MAME itself?  (vs from the command prompt.)  And be sure your using the copy of MAME that you're using for LaunchBox. (C:\Temp... vs C:\RCS...)

    Kind of where I'm going with this is I see in your full command line parameters it has  -rompath ...  in it.   That (as well as a lot of the parameters in there) would only need to be there if MAME isn't fully setup properly.  I guess another way is....  in your mame.ini file that [should be] located in your MAME's root folder, does the rompath point to where your game roms and device (bios) roms are located?

    image.png.dcfa0ad9ab9f20539e3e08cad7bb589f.pngI see your screen shot shows you're in C:\Temp\UME   but in your full command line, the rompath parameter points to  C:\RCS\GAMES\UME\roms

     

     

  16. @rcoltrane  In the future, please don't be so quick to blame LaunchBox.  It's only doing what you told it to do.

    If you wish to use that particular command line (expert11 msx1_cart:hero), you have to edit your MAME emulator and check the box that says "No space before ROM".  image.thumb.png.a22f2918c696e5d64a5462d39f03eb4f.png But that kinda screws up any other Platforms you have associated with MAME.

    Instead, use this as your Default Command-Line Parameters under Associated Platforms for your 'Expert 11' (or whatever name you gave it) Platform.

    expert11 -cart1

    If you wish to verify through the Windows 10 DOS prompt, try:

    mame64.exe expert11 -cart1 hero

    Note the space and no : (colon) before the game_name (hero).

  17. LB/BB shouldn't be messed up when exiting a game if the 3rd line (re-starting DS4W) get's executed.

    This is essentially a 'bulk' means of the game-by-game process.  It's doing the 'Run Before [line 1]/After [line 3] Main Application [line 2]' you'd need to enter in for each game.

  18. Sounds like a lot of IFTTT type applets.  And I believe the preferred term is efficient rather than lazy. :) 

    For now, probably the easiest way to to what you'e wanting is to redirect you emulator executable for the given Platform to an AHK script (or batch file).  Basically, edit your emulator and in "Emulator Application Path:", point that to the script file.

    Then your script file would be something like

    Run, D:\batch\kill_DS4W.bat
    RunWait, "path_to_emulator.exe" %1%
    Run, D:\batch\start_DS4W.bat
    ExitApp

    LaunchBox will pass the rom_name as %1%.  Obviously calling a script to call a batch file is pretty convoluted.  But you can how that'd work and (hopefully) refine it.

  19. If you're seeing a "2" and a "6" in Notepad when pressing buttons on the P2 controller then ya, the script is good.  (Though I don't think "return" is necessary. But doesn't hurt anything)

    If you start the AHK script in Windows and then load Dragon's Lair directly through Daphne (outside of LaunchBox) , do the player 2 buttons work there?

×
×
  • Create New...