Jump to content
LaunchBox Community Forums

Recommended Posts

Posted (edited)

i have the below in the running script and all games exit fine ACCEPT light gun games.  the lightgun games are set up as raw input in the game cfg files, might that have something to do with it?

thanks!

Edited by d8thstar
  • d8thstar changed the title to close model 3 with xbox select + start
Posted
10 hours ago, d8thstar said:

i have the below in the running script

The script you [don't] show "below" looks right.  In that Supermodel shouldn't need a Running Script to exit the emulator.  You should be able to exit the emulator with whatever you have mapped to: 

Big Box
System Menu < Options < Controller Mappings
"Close the Active Window"

LaunchBox
Tools < Options < Game Controllers < Mappings
"Exit Game"

Posted (edited)
14 hours ago, JoeViking245 said:

Maybe @Warped Polygon (sorry to put you on the spot) might have some insight exiting Supermodel while in rawinput mode.  I've never set it up to use dual mice (nor light guns).

Looks like rawinput with supermodel bypasses some LB/BB controller hotkeys. Prob due to the way Supermodel closes in rawinput, and the way LB/BB "Close the Active Window" aren't playing with each other. I don't use this feature in LB/BB to be honest.

Supermodel has ESC hard bound to exit the emulator. You may need to find a way to bind a button combo to ESC outside of LB/BB. However, I'm not an expert with the feature as stated above.

@JoeViking245 Is there a way to bind his button combo to ESC within LB/BB? Back to you haha!

Edited by Warped Polygon
me stupid
Posted
1 hour ago, Warped Polygon said:

I'm not an expert with the feature as stated above.

Thanks for chiming in.  One could have only hoped. ;)

 

On 7/17/2025 at 6:39 PM, d8thstar said:

i have the below in the running script

Since you're using -input-system=rawinput in your command-line parameters (and the following will work even without that), to close Supermodel using your Xbox controller, add the following to your emulator's Running Script:

1Joy8::
{
  If GetKeyState("Joy7")
    WinClose, ahk_exe supermodel.exe
}

You must press and hold Joy7 FIRST, then press Joy8!

Your topic says Select and Start.  Your bindings show 7 & 8.  Pretty sure on my Xbox controller, 7 is Back and 8 is Start. But mine also doesn't have a "Select" button.  We'll just chalk it up to semantics.

Since the Exit Game binding you have in LaunchBox doesn't work when using the rawinput parameter (for whatever reason), the above script is overriding those presses and is sending a more literal "close this exact process".

(this at least worked in my quick testing, on my setup)

  • Like 1
Posted

old timey gamer here, that back button will always be called a select button :)

thank you guys so much for your time.  i wish i could say the above script worked for me but unfortunately, it doesn't.  i confirmed, button 7 is back, button 8 is start.  tried with the controller on BT and also plugged in with cable.  any thoughts are appreciated, thanks again guys

Posted
40 minutes ago, d8thstar said:

old timey gamer here, that back button will always be called a select button :)

thank you guys so much for your time.  i wish i could say the above script worked for me but unfortunately, it doesn't.  i confirmed, button 7 is back, button 8 is start.  tried with the controller on BT and also plugged in with cable.  any thoughts are appreciated, thanks again guys

Are you only using controllers?

Posted
24 minutes ago, d8thstar said:

i have a keyboard and mouse also plugged in.  but only the one xbox controller.  i’ll give it a try with just the controller…

So you're not using any light guns?  Nor using 2 mice, or a mouse and a trackball (for 2 players)?  I believe those are why you'd use rawinput.  Maybe there's more to it than I'm aware of.

Posted

been a while but if i’m not mistaken, SM requires raw input for mice.

no lightguns, just the one mouse, one keyboard and one xbox controller.

box is for a friend, only setting up as single player.

thank you guys!

Posted
2 hours ago, d8thstar said:

been a while but if i’m not mistaken, SM requires raw input for mice.

no lightguns, just the one mouse, one keyboard and one xbox controller.

box is for a friend, only setting up as single player.

thank you guys!

Here's what I have.  

Default Command-line Parameters:   -fullscreen

supermodel.ini

; Light guns (Lost World)
InputGunLeft = "KEY_LEFT"               ; digital, move gun left
InputGunRight = "KEY_RIGHT"             ; digital, move gun right
InputGunUp = "KEY_UP"                   ; digital, move gun up
InputGunDown = "KEY_DOWN"               ; digital, move gun down
InputGunX = "MOUSE_XAXIS,JOY1_XAXIS"    ; analog, full X axis
InputGunY = "MOUSE_YAXIS,JOY1_YAXIS"    ; analog, full Y axis
InputTrigger = "KEY_A,JOY1_BUTTON1,MOUSE_LEFT_BUTTON"
InputOffscreen = "KEY_S,JOY1_BUTTON2,MOUSE_RIGHT_BUTTON"    ; point off-screen
InputAutoTrigger = 0                    ; automatic reload when off-screen
InputGunLeft2 = "NONE"
InputGunRight2 = "NONE"
InputGunUp2 = "NONE"
InputGunDown2 = "NONE"
InputGunX2 = "JOY2_XAXIS"
InputGunY2 = "JOY2_YAXIS"
InputTrigger2 = "JOY2_BUTTON1"
InputOffscreen2 = "JOY2_BUTTON2"
InputAutoTrigger2 = 0

Then at the bottom

[ lostwsga ]
InputSystem = xinput
Crosshairs = 1

Not sure if the InputSystem is required, but it doesn't break things.

When starting the game, can use either the mouse or Xbox controller.

Aim:   Move the mouse, Xbox left-joy, (on my cab, the trackball)

Shoot:   Mouse left-click, Xbox "A"

Reload: Mouse Right-click, Xbox "B"

 

When starting and before the 1st shot, there's 2 "cursors" that are [sort of] side-by-side. But after the 1st shot, there's just the one crosshair.

Aiming is kind of wonky and for me, the trackball is most stable. (I happen to also have 3 "mouse" buttons on my control panel. So shooting and reloading is not an issue)

Posted

thanks man for going the extra mile...  i set my controls EXACTYLY like yours, mouse games dont even see the mouse now!

i thought maybe the wireless mouse i have?  tried a few different ones lying around, same thing.  the ONLY time that damn cursor moves, is when i have the input set to rawinput.

i hate to set up something like joy2key for what is essentially 3 or 4 games but i think i'm running out of options.

unless anyone has some super AHK script i can use.

as always, thank you :)

Posted
16 minutes ago, d8thstar said:

i set my controls EXACTYLY like yours, mouse games dont even see the mouse now!

Like which games?  You can customize/override the command line parameters per game, as needed. Or as shown above, certain parameters can be set per game in the ini file.

Posted

the light gun games, mouse no longer moves the cursor, lost world, ocean hunter, la machineguns, etc.

they only see my mouse in rawinput.  anyways, i think it's a roadblock i cant seem to get over.  but i do thank your time!

Posted
6 minutes ago, d8thstar said:

the light gun games, mouse no longer moves the cursor, lost world, ocean hunter, la machineguns, etc.

they only see my mouse in rawinput.  anyways, i think it's a roadblock i cant seem to get over.  but i do thank your time!

Then I'd have to say something's not setup right because the mouse should just work without having to set rawinput.  Also, setting it to rawinput puts you back to the original issue of this thread.  That said, if you're using the mouse, isn't the keyboard nearby?  If I recall, pressing Escape still worked to exit the game.

I'd call this more of a speeDBump than a rOADBLOCk. ;)   

Can you attach your supermodel.ini file here (just drag and drop the file onto the reply)? 

Also, (if you're not totally sick and tired of all this yet) load Lost Word using rawinput then exit the game. In Supermodels root folder, rename "Supermodel.log" to something like "raw_Supermodel.log". Then load LW without rawinput and exit.  Attach Supermodel.log and raw_Supermodel.log as well.  (may give some more insight)

Posted
1 hour ago, d8thstar said:

if your willing to keep trying, so am I :)  and yes, i have a mouse / keyboard but trying to set this up for a friend so it can be run completely in BB mode, controller only.

here are the requested files my friend!

I'll take a look at them in the morning (unless I get Shanghai'd into a honey-do list).

When you say "controller only", you mean 'but also use the mouse for light gun games'?  Because you can use the controller for them too.  Just want to clarify your end-goal.

 In the meantime, if you wanted to try, you could do a fresh install of Supermodel (place in a new folder), run through the -config-inputs to set up the controller, and see if that works any differently.  Yeah, configuring the controllers is a pain (because of the lack of a UI), but... should only ever need to be done once.   Or...wait.

Regardless, you should at least be on the latest build.

Posted
13 hours ago, d8thstar said:

here are the requested files my friend!

Ok, so the logs didn't help much. lol  That said, the ini file wasn't much better.  I replaced mine with yours and am seeing what you're seeing: mouse doesn't work without rawinput.

Comparing yours and my ini files, they're pretty much apples-to-apples. 'Cept one is a Gravenstein, and the other is a Red Delicious.  The 'variety' difference being mainly in the controller/key mappings (vs something [notable] in the Global section).  I tried changing some of the mappings (without going too overboard), but my efforts were fruitless.  I did try stuff in the Global section as well to no avail.

So, giving up, I give you my ini file.  This works for keyboard, mouse and controller [with no rawinput].  You may want to change some of the mappings to your liking.

Some of mine to note:

Start:   (controller) "A" or (keyboard) "1" [same as MAME]
Coin:    "X" or (keyboard) "5"

Lost World
Fire:  "A" or (mouse) Left-click or Ctrl
Reload:  "B" or Right-click or Alt

Supermodel - Joe.ini

Save it to your config folder.  Rename your Supermodel.ini (my_Supermodel.ini or whatever).  Make a copy of my file (Supermodel - Joe - Copy.ini) and rename the copy back to Supermodel,.ini.  This way you always keep a backup of both versions.

When you make changes in the file to suit your needs, I suggest doing them incrementally.  Make a change - Save - Test.  Wash, rinse and repeat.

 

Also, in LaunchBox for the Supermodel emulator, you won't need any command-line parameters.  FullScreen is set to on in the ini.  (but keeping the parameter -fullscreen won't hurt anything either)

I also have (in the ini) CrosshairStyle=bmp, Crosshairs=1 and InputSystem=xinput set in Global.   This does not affect games that don't use crosshairs.

Posted

thank you man!  it worked!  not sure what was wrong with my ini but it must have been corrupted somehow,  i copied all your text into my file, didn't work.  i used your file and it worked.

thanks again my friend!

  • Game On 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...