Jump to content
LaunchBox Community Forums

JoeViking245

Moderators
  • Posts

    5,025
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by JoeViking245

  1. 5 minutes ago, 5thWolf said:

    The .bat file works perfectly running it on it's own. Here is the command:

    set __COMPAT_LAYER=highdpiaware
    start "" Fusion.exe

    This won't load a game.  Just the emulator (because it wasn't told what game to load).  That's where %1 comes into play.

     

    to use an emulator, try:

    set __COMPAT_LAYER=highdpiaware
    start "" Fusion.exe -scd %1

    You might need to put quotes around it

    set __COMPAT_LAYER=highdpiaware
    start "" Fusion.exe -scd "%1"

    Or you might need to declare it 1st

    set game=%1
    set __COMPAT_LAYER=highdpiaware
    start "" Fusion.exe -scd %game%

    And possibly add quotes

    set game=%1
    set __COMPAT_LAYER=highdpiaware
    start "" Fusion.exe -scd "%game%"

     

    • Thanks 1
  2. 22 minutes ago, MaineBear said:

    All the games are .zip but all roms are .a26

    Inside of the .zip's that are not working, is there just the single game2.a26 file?  (vs. more than one file)

     

    If you edit your RetroArch emulator (in LaunchBox), under Associated Platforms - Atari 2600 [platform], is the box Extract ROMs checked?  Since the Stella core can handle .zip files directly, try unchecking that.  (If it's already unchecked, try checking it??)

  3. 11 minutes ago, MaineBear said:

    When opening some 2600 roms in Launchbox, Retroarch opens and closes and doesn't play.  When opening in Retroarch directly the roms play.

    I'm using the Stella emulator in Retroarch.  It only happens on some roms, not all.

    Thanks for the help!

    What's the difference between the ROM file types that work vs. not work?  e.g.  game1.zip vs. game2.a26

  4. 3 hours ago, TrevorZ said:

    How can I stop the damm stupid notificaction

    It's not very often the integrated plugins actually need updating.  In the message/notification is a link to the plugins section [of the UI].  In that section, select the plugin  in question and click the Update button.  It will take 1, maybe up to 3 full seconds.  When done, it well tell you LaunchBox needs to restart.  Once restarted, you will not see the damn stupid notification.

    3 hours ago, TrevorZ said:

    I don't even need to use any of the plugins

    Many people do, whether they realize it not.  Not saying you do use it, unknowingly.  This method of updating them allows rare, yet minor fixes to be pushed without the need for a complete new release of LaunchBox being pushed.  e.g. A fix can be realized within a matter of hours, rather than waiting until the next release.

     

    Thank you for your patience and understanding.

  5. 9 hours ago, 5thWolf said:

    I don't know what you mean by capture %1

    I was referring to when you set the batch file as an emulator, LB will pass the games ROM path [as a variable] to it. And in the batch file it (the ROM path) becomes the variable %1.

    • Like 1
  6. Can you show what your batch file looks like?  Also, how are you running it from LaunchBox?  As the game (e.g. it's the games application path)? Or did you set it up as an emulator?  Can you share screenshot of this?

    • Like 1
  7. 38 minutes ago, Gygoracdes said:

    MSI Pro Z790 P -- Intel i7 14700K / 20 Core - 28 Threads à 3.4 Ghz

    Crosair Vengeance 96 GB RAM (2x48GB DDR5 6600 Mhz)

    Asus RTX 3090 OC 24 GB TUF

    ASUS VG27AQML1A (Monitor) 260 Hz

    2x m.2 SSD and a 6TB 3.5" HDD  - Windows 10 Pro

     

    Any more questions?

    Does anyone have more to offer?

    :P

     

    Ahem...the OP was for minimum requirements. lol  To be fair though, they did also ask for 'your setup'. ;) 

  8. 2 hours ago, Truest1 said:

    Hello thank you for your reply. Unfortunately that did not work. 

    OK.  So it was a bad guess. 😊

    If you have CTC, you could download the CTC files, load it up and snoop around there.  They looked to be available on the actual theme's download page.  Which TBH, is probably where this thread should have been.  Granted, the author hasn't been around since March, there may be others that follow that main thread and possibly have some insight.

    • Like 1
  9. 1 hour ago, cathoderaydude said:

    Option #1 could work in a pinch, but is there actually a way to find out from OnAfterGameLaunched exactly which PID/hwnd launchbox spawned, or are we talking about using external Windows APIs to search for the emulator by process / window name?

    Pretty positive there isn't via LB API.  I've used Process.GetProcesses(). Then whittle down to the emulator.  Works well in my application.

    1 hour ago, cathoderaydude said:

    I did look at the custom command line option, but the problem there is that, as far as I can tell, there is no way to stop LB from appending the primary ROM/disk name to the launch command.

    Looks like you've already found "the solution" to this. ;)  Well done.

    4 minutes ago, cathoderaydude said:

    y'know, it'd be nice if there was a %disk2% variable... 

    If your games have consistent file naming conventions, you could super crazy/creative...

    Using your OnBeforeGameLaunching() override method and the available IGame game, you can:

    • if (game.GetAllAdditionalApplications().Length > 0)
      • foreach (var g in game.GetAllAdditionalApplications()),
        • if g.ApplicationPath.EndsWith("Disk 2.img")
        • (You've found Disk 2)

    Now use game.ApplicationPath and g.ApplicationPath in your override.  (Then restore things OnGameExited())

     

    Alternately,

    Create "an emulator".  Use C# or even AutoHotkey.

    Pass %romfile% to the "emulator".  Do a file = Path.GetFileName.  Search the ROM files' path for a file that starts with file.Split(" Disk")[0] and ends with "Disk 2.img".  If it exists..... and build your command line from there.

    Then it's just a matter of Process.Start() blah blah blah WaitForExit() ... return "done".  this.Close().  (or in AHK... RunWait, emu.exe...parameters...)

    That should keep the startup/shutdown screens working, as well as work for any multi disk games.

     

     

    Personally, I'd just stick with the individual games' command-line override. :) 

     

    40 minutes ago, cathoderaydude said:

    Thanks for the reply, wouldn't have figured it out without the pointer to the command line field!

    Always glad to help.

  10. 10 hours ago, 5thWolf said:

    If I make a .bat file with highdpiaware and run KF its all perfect. If I run the .bat it through LB it launches but doesn't load the game.

    Did you set the batch file as an emulator with no command line parameters and in the batch, capturing %1 to pass as the game/ROM?  If it works outside of LB, it'll work in LB.  I don't have the abandoned Kega Fusion emulator setup on my machine, but if the different platforms it emulates requires different parameters, you'll want to capture %1, %2 (and/or more?) as well.

    • Like 1
  11. 32 minutes ago, cathoderaydude said:

    The problem I ran into is that it doesn't seem to be possible to intercept an OnBeforeGameLaunching event and either modify the command line arguments (so that LB calls the emulator with my desired args) or cancel it entirely (so I can launch the emu myself with whatever args I like.)

    At this point, the game/emulator/etc. to be used are already committed.  So can't really change any of that.

    As for canceling it, I suppose you could OnAfterGameLaunched(), capture the emulators HWND (or similar) and force close the window.  Then use the PlayGame() method to launch the game using whatever args you like.

     

    58 minutes ago, cathoderaydude said:

    modify the command line arguments (so that LB calls the emulator with my desired args)

    Is this something that changes between different launches of the particular game?  Or is this something that could be added to the specific games' Emulation section and using override command line parameters.

  12. 32 minutes ago, TJSidhu said:

    Most of them are not in the Games database or are set wrong. I need to remove Meta/ID from them.

    Would deleting those platforms and reimporting the games be out of the question?

    Doing so won't remove the images (unless asked... select, don't delete the images) which are generally associated to the games via their platform/game_title. Thus will get reassociated and not need to be redownloaded after reimporting.

    The reimport process should be fairly painless and relatively quick. This will also get the games associated to the proper LaunchBox DB ID.

  13. 16 minutes ago, drusso66 said:

    I seem to also be having this problem since latest upgrade, I am am on a licensed version and currently have no game video snaps working in either Launchbox or BigBox, they used to work fine before the update.Not sure if it as anything to do with the removal of the VLC video plugin, is there a way to add that plugin in back manually?

    Since you've been around a while, I presume your license is a premium lifetime license. 

    Do the videos show, and just not play?  As in if you click it, it'll start playing.  If so, maybe just a matter of: View < Media < Auto-Play Videos (or Ctrl+Alt+V)  For LaunchBox at least.

     

  14. 6 hours ago, alrahaby said:

    I tried your solution but it didn't work... I will attach a picture of the problem.

    That's definitely a different error.

    I suggest submitting a bug report (top of this page, click Help & Support, select Report a Bug).  This way it will "officially" get reported and a better chance of getting looked at.

    Be sure to include your details and the actual error (you show above).

    Actually, as I think about it, you should be able to instead, just click the Report Error button on the error itself.  (Never done that myself, but I presume it goes to [or at least ends up in] the same "official" location.)

  15. 16 hours ago, d8thstar said:

    circles do appear but they are right over the exe that i clicked to launch, cursor isnt moving when in the full script (but it does when doing the test of just the two lines.

    Not sure what's going on then.  You might start (continue?) researching that app (Google, their forums/wiki, etc.) to see if there's a way to auto-start it without having to "click the button".  Something like a command line parameter.  

    Or if there's an option to load it when Windows starts, test that to see if it loads without having to click anything.  If so, look at the shortcut they created in your Startup folder to see how they did it, and duplicate that. (then remove the shortcut)

    And if nothing else, you've learned a couple new AHK script testing/troubleshooting techniques. :D

  16. 6 minutes ago, wolfenstein0099 said:

    Just like with house of the dead 2 but its giving me an error. Not sure if It needs to be different. 

    What's the error?  Is it a TP error?  A script error?  Some other error?  If it's a TP error, I can't help you. Not that I won't. It's that I can't. I don't use TeknoParrot.

     

    8 minutes ago, wolfenstein0099 said:

    They are the only 2 I was trying go play without the mouse showing. 

    Well, you're halfway there. ;) 

     

    8 minutes ago, wolfenstein0099 said:

    Thanks Joe. 

    You're welcome.

  17. 5 minutes ago, d8thstar said:

    it opens both apps, doesn't move the mouse or hit CTRL

    If after the full 5 seconds has lapsed, and no circles appear, does anything happen if you [manually] hit Ctrl on your keyboard?  If so, is it (the circles) in the correct location (above the button)?

  18. 2 minutes ago, wolfenstein0099 said:

    Sorry Joe. Im just confused about what to write in the defulat comand line perramoters. Not exactly what you mean. 

    You created a text file which had the one line: Run, E:\Launchbox\nomousy.exe /hide in it.  You saved that file and changed the file extension from .txt to .ahk.

    e.g.  You saved and renamed it to: E:\My AutoHotkey Scripts\HideMouse.ahk 

    Your Command-line Parameters for this Additional App will then be

    "E:\My AutoHotkey Scripts\HideMouse.ahk"

    (the full path to the file you previously created, all within quotes)

    • Thanks 1
  19. 8 minutes ago, wolfenstein0099 said:

    For some reason my ahk script isnt workong as an additional app

    If it works outside, I'd check that the Additional App is setup correctly.

    image.thumb.png.bd41d61682085297335284f71bdfb3bc.png

    • Give it a name
    • Point to LaunchBoxs' AutoHotkey.exe
    • WITH QUOTES, add the "full/path/to/your/script.ahk"
    • Check Run Before
    • Click OK to save and close
  20. 7 minutes ago, wolfenstein0099 said:

    My work;:

    Run, E:\Launchbox\nomousy.exe /hide 

    Run, E:\Launchbox\nomousy.exe /show 

    This will hide it, then (I presume) show it, right away.  I "presume" because I didn't see in the documentation where is says to add "/show" as a parameter to show it again.

     

    9 minutes ago, wolfenstein0099 said:

    Then I just tried 

    Run, E:\Launchbox\nomousy.exe /hide

    [Just] this should work.

    13 minutes ago, wolfenstein0099 said:

    tried deleting the additional app and tried readding it again. When I go back into lainchbox. Its not staying deleted

    If your Additional App has both Run commands, it won't work.  After deleting the Additional App, did you click the OK button (vs. clicking the X in the upper right corner)?

     

    28 minutes ago, wolfenstein0099 said:

    Works on my desktop

    Are you testing nomousy and starting the game?  Maybe try that.

    Run, E:\Launchbox\nomousy.exe /hide
    RunWait, E:\LaunchBox\Emulators\Demul\demul.exe -run=naomi -rom=hotd2
    MsgBox The game has exited
    Run, E:\Launchbox\nomousy.exe

    (change the path to Demul as necessary)

  21. Not sure if any of your "few different ahks" used a DllCall method. Or were just different trial-and-errors for using nomousy.  You didn't show your work. ;) 

    That said, an AHK script using a DllCall method is doing the exact same thing as nomousy is doing.  And according to sindenwiki, should just work. 

    What platform/emulator?  It may be a setting in the game itself.

    If you added both the HideMouse (Run Before...) and ShowMouse (Run After...) Additional App scripts, try removing the latter and see if it then hides it during the game.  (You will need to manually Un-Hide after testing.)

     

×
×
  • Create New...