Jump to content
LaunchBox Community Forums

JoeViking245

Moderators
  • Posts

    5,017
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by JoeViking245

  1. 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
  2. 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'. ;) 

  3. 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
  4. 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.

  5. 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
  6. 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.

  7. 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.

  8. 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.

     

  9. 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.)

  10. 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

  11. 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.

  12. 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)?

  13. 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
  14. 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
  15. 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)

  16. 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.)

     

  17. 8 hours ago, alrahaby said:

    I did not attach a picture of the error, but it contains an error that the date is not compatible or something similar.

    If "similar" looks like this:

    image.thumb.png.78e8f7f14344377a9d9da7868033bde7.png

    ...it can be resolved by: Go to Tools > Download > Force Update Games Database Metadata...  (more details about his error can be seen here:  Troubleshooting: "Year, Month, and Day parameters describe an un-representable DateTime" Error - LaunchBox) 

     

    If it's not that, it could really help the developers to show the actual error message.

  18. 1 hour ago, Gosunkugi said:

    This is a bit of a niche request, but would it be possible to have some sort of function to apply the same image to multiple games at once? For example If I have a bunch of non-working titles, and I want them all to have a png of a red cross. Rather than one at a time, to do hundreds in bulk. I realise this wouldn't normally work with the database id, and thus a different kettle of fish entirely, but boy would it be a time saver.

    This is outside the scope of this plugin.  Also, the plugin's not setup to do "bulk" in the manner in which you need.

     

    But you may already have means available to something similar to what you want.

    I'm not sure how you're distinguishing if your games are non-working [to be able to grab them in bulk in the first place], but rather than say... replacing "those games'" box-front images with a red X image, you could enable the "Broken" badge.  image.png.60540618f6860d78fcee3926e0e496a5.png  (View < Badges < Game Attributes < Enable Broken)  This of course assumes you're checking the "Broken" box on games that are non-working.

    If you're not fond of that particular image, you can replace it with any red  image.png.6234dd3b078000e80c0e846d85236f7c.png image of your choosing.  

     

    If you're using some other means of determining non-working games, e.g. a Custom Field, you could create a Custom Badge that looks for the Value of the Custom Field.

     

    Another alternate solution (closer to what you may have envisioned) could be... replace the platforms default box-front image with your red image.png.6234dd3b078000e80c0e846d85236f7c.png image.  In Windows Explorer, navigate to ..\LaunchBox\Images\[your platform]\Box - Front\ and delete all images and folders.  Then in LaunchBox, select your platform and click View < Hide Games < Marked Broken (or press Ctrl+Alt+R).  Again, this assumes "Broken" is how you're determining non-working games.  With the non-working games "out-of-the-way", select all [remaining] games and (re)download just the box-front images.

    • Like 1
  19. 9 hours ago, Bit-Grabber said:

    they don't start.  I'm guessing I'm missing some thing simple But could use some tips.

    With MAME 0.139, the command-line parameter -keyboardprovider dinput is not an available parameter.  It was added in version 0.168.  So you will need to remove that from the Default Command-line Parameters in BOTH the Details section, and in the Associated Platforms sections (if it's also in the latter).

     

    If after removing that parameter they still don't launch, as @mikekim suggested, place (move) your ROMs into your ../Arcade Flag ship Gametron Mala/Mame/mame0139s/roms/ folder.

    Then in LaunchBox, you can: Select all games in that platform (click one, then press Ctrl+A to select all), then go to Tools < File Management < Change ROMs Folder Path for Selected Games... and select the "roms" folder [above].  This will point the ROM paths to their new location [without having to reimport them].

     

     

  20. 13 hours ago, d8thstar said:

    if you have any thoughts... 

    It sounds like you're compiling your ahk script to an exe file. Which should be fine.  Are you using AHK v1.1?  Or v2.0?  For using scripts with LaunchBox, I suggest V1.1.  (Ignore that it says depreciated.)

     

    I don't have any more thoughts on this as in my tests here, it works. But I do have a suggestion for testing and working with scripts:

    Download CodeQuickTester, place the file in a location where you won't forget where it is and use it for testing.  If you have AutoHotkey (v1.1) installed on your system (recommended), you can download the CodeQuickTester_v2.8.ahk file.  Otherwise, download CodeQuickTester_v2.8.exe.  Neither will work with AHK v2.0.

    Run the app, click Edit and select Script Options.  Click Pick AHK Path and go to and select your Autohotkey.exe file. Close the window.  If you don't have AHK installed, you can point it to your /LaunchBox/ThirdParty/AutoHotkey/AutoHotkey.exe file. Close (red x) that window.

     

    In the script body, type in 

    DllCall("SetCursorPos", int, 960, int, 540)
    Send, {Ctrl}

    Then click Run.  This should move the mouse and show the circles.

    image.png.dfafca993a457d674dd46fe7ba2a9b2a.png

    Once satisfied that it is working, add above those 2 lines your Run....PrismXR.exe and Sleep lines and click Run.  See if the app starts and the mouse moves and shows circles (be sure to wait the full 2 seconds to see the circles).

    Continue adding the rest of your script and testing until you satisfied with the results.  Don't forget to eventually change {Ctrl} to {LButton}.

×
×
  • Create New...