Jump to content
LaunchBox Community Forums

darrenmarchand

Members
  • Posts

    73
  • Joined

  • Last visited

Posts posted by darrenmarchand

  1. 17 minutes ago, darrenmarchand said:

    Hi everyone. I'm trying to launch a savestate in LB from RPCS3. I know I need an ahk script, but I can't seem to figure out how to create one that'll launch the savestate file. Any help?

    Figured it out:

    run (type emulator location) "savestates\BLUS30528\used_BLUS30528_1_0.SAVESTAT"

  2. Hi everyone. I'm trying to launch a savestate in LB from RPCS3. I know I need an ahk script, but I can't seem to figure out how to create one that'll launch the savestate file. Any help?

  3. 28 minutes ago, JoeViking245 said:

    From the other post I linked... 

    - In the ‘../MAME/cfg’ folder, copy “default.cfg” and paste it into the ‘../MAME/ctrlr/’ folder.  From here you can rename it to something like “MyControls.cfg”.

    It probably have said "... you should rename it..".  Which I assume is what you did.  Renamed it to "zerodelay_x2" because that's what your mame.ini is looking for.  (I'm guessing you mistyped when you just now wrote "zerodelay_cfg" [vs "zerodelay_x2"?]).   Whichever it is, make sure it's name is the same as what's in your mame.ini.

    So it's now copied into the ctrlr folder, is properly renamed... now insert the "<mapdevice device=" lines just as you did before [but with those corrections noted above].

    Oh. I didn't rename default.cfg the first time around. I have default.cfg AND zerodelay_x2 in the ctrl folder. With mame.ini pointing to zerodelay_x2. So I'll rename default.cfg and have mame.ini point to that now.

  4. Oh sorry. I may not have typed that correctly.  I meant after changing those 2 lines in zerodelay_x2 , do I copy and paste those changes into default.cfg? 

     

    For the second part, I don't follow. Yes, I have "core input options ctrlr zerodelay_cfg. Isn't that what I'm supposed to have? Then after setting the controllers in Mame I copy default.cfg to the ctrlr folder. After that, I shouldn't need to make anymore changes to the general controls, right?

  5. 5 hours ago, JoeViking245 said:

    @darrenmarchand It looks like it loaded your 2 Generic USB Joystick's like it was supposed to.

    image.thumb.png.904faa16d5daffde1b30151567dcecd8.png

    (note: "joycode #0" shown here is your "JOYCODE_1".  "joycode #1" is your "JOYCODE_2")

     

    Looking again at your zerodelay_x2.cfg file, I think you need to revise the lines for Kinmotek and XInput.  For those 2, remove the stuff before (and including) "Device id: "

    image.thumb.png.45b5fbfaf527d4a4bbf089ce6fff52a7.png

    after:

    image.thumb.png.21923f8e0492110d37fb85bb7974841a.png

    Moral of the story, put in the devices ID info, but not "Device id: ". ;) 

    Thanks. Do i need to re-copy those 2 lines after making the changes to default.cfg? 

  6. 1 hour ago, JoeViking245 said:

    @darrenmarchand May I see what your verbose output looks like (with at least your 4 main controllers plugged in and on.. if not everything, including wheel etc.)?

    Open Windows Command Prompt and navigate to your MAME main folder.  At the prompt, type 

    
    mame.exe -v >dmList.txt

    (change mame.exe to mame64.exe if needed)

    After the MAME main window gets fully loaded, Exit MAME.  (don't be tempted to play games. ;))

    Drag and drop the new "dmList.txt" file that it created into your reply here.

    just fyi. I did redo the default.cfg and copied it again to the ctrlr folder. i also changed the contoller numbers to 1,2,3,4 as you mentioned earlier. i haven't rebooted the PC or unplugged any contollers again.

    dmList.txt

  7. On 5/4/2021 at 7:39 PM, JoeViking245 said:

    (I deleted and moved some stuff for readability here.  DO NOT DELETE ANYTHING LIKE I DID)

    
    <mapdevice device="Generic   USB  Joystick"                             controller="JOYCODE_1" />
    <mapdevice device="Generic   USB  Joystick"                             controller="JOYCODE_2" />
    <mapdevice device="Xinmotek Controller device id: Xinmotek Controller"  controller="JOYCODE_3" />
    <mapdevice device="XInput Player 1 device id: XInput Player 1"          controller="JOYCODE_4" /> 
    
    <port type="P1_JOYSTICK_UP">
      <newseq type="standard">
        JOYCODE_1_YAXIS_UP_SWITCH OR JOYCODE_2_YAXIS_UP_SWITCH OR JOYCODE_4_YAXIS_UP_SWITCH OR JOYCODE_5_YAXIS_UP_SWITCH
      </newseq>

    1st 4 lines show "JOYCODE_1"   "JOYCODE_2"   "JOYCODE_3"   "JOYCODE_4"   (note: 1, 2, 3, 4)

    The 2nd to last line here references JOYCODE_1, 2, 4, 5  (note: 1, 2, 4, 5)

    So when you tested this, it probably didn't work for the last 2 controllers correctly.

    Based on what I'm seeing, the 1st 4 lines should point to 1, 2, 4, 5   OR   (less likely)  the 2nd to last line needs to reference 1, 2, 3, 4.

     

    So. its messed up again! i shut the PC down and unplugged the usb hub where all the joysticks are connected, and when i booted  up and started Mame, it rearranged the sticks and buttons. I had shut the PC down a few days ago and nothing changed then. Is it because i unplugged this time?

  8. 12 hours ago, Jayinem said:

    I figured out on my own a way easier way. Just make default.cfg read only, or if you have specific cfgs for each game make each one of them read only. If you ever need to make changes just uncheck read only make the changes and then make it read only again. Works very well. 

    i had been doing that too. it won't work. Windows still eventually changes it.

  9. I've tested it with all 4 contollers and it al seems to be working with the settings i have. I may be able to leave it as is. It could mess up when i introduce the wheel, but i guess for now, its functioning properly. I'm going to turn the pc off a couple times to be sure Mame isnt losing the setup.

    thx for all the help 

    • Like 1
  10. 2 hours ago, JoeViking245 said:

    I was just about to no.  But....   Since your cab is just one player... you can have just one cfg file.  (A total brain fart, afterthought on my part)  When you set your General Inputs for Player 1 Controls, i.e. for P1 UP, You'll set all 3 joysticks to UP.  So it'll say [something along the lines of ]

    
    P1 UP     Joy1Up OR Joy2UP OR Joy3UP
    P1 DOWN   Joy1Down OR Joy2Down OR Joy3Down
    P1 LEFT   Joy1Left OR Joy3Left OR Joy3Left
    (and so on down the line)

    What it actually calls the joysticks/numbers is probably different, but you get the idea.  To be clear, this is what it 'may' look like in MAME when setting it up.  It'll look totally different in the .cfg file where you'll add in the ID info.  

    Might as well throw the wheel, gun and gamepad in here too.  So you might end up with ["something like"]

    P1 UP    Joy1Up OR Joy2UP OR Joy3UP OR gamePad_UP

    So ya, just the one .cfg file.  And this will handle any input from any of the various 'controllers' for your one player cab.  Still do the part where you copy it to the "ctrlr" folder and add all the ID info in.  Give the file a special name like "MyCustomControlsThatJoeVikingHelpedMeWith.cfg".  Or something simpler like "MyCabControls.cfg".  Whatever you want to call it.  (best not to have any spaces in the name)  And then in "mame.ini", set the ctrlr line (as before) to this cfg. 

    Disregard what I mentioned about the rom_name.ini files (like "tron.ini").  Disregard needing to add Custom Command-Line Parameters.  And if you had set up  game-specific controls, you 'should' be able to delete those cfg files (like "tron.cfg" that would have gotten saved to your ../MAME/cfg/ folder).   Note: those game-specific cfg files will also save other misc info like # of times played.  So if you delete them, they will reappear on their own. 

    Sorry for my confusion, confusing you.  hope I haven't made matters even more so confusing. lol ;) 

    Sorry. Should all 3 joysticks say "joycode 1"? Or is it ok for them to say joycode 1, 2, 3 etc? Or does that matter?

  11. So if I understand you correctly,  I can't have 1 cfg file with all 3 joysticks? I have to create 3 different ones? That's fine, but under Core Input Options, I can only put 1 in there (8wayconfig in your example)? Do I do this first before setting the default and game specific controls within Mame?

    So, as long as I have 3 config files (1 for each joystick), then I go into Mame and load Tron up and under "this machine" set the controller to use my Tron style stick, Mame creates that Tron.cgfg (or .ini, I can't remember) and then each time I load Tron up, that specific controller loads up? I won't run into Windows changing it anymore? 

    Would I put my wheel, gun and gamepad still in the default cfg still? Along with the 8way.

     

    Sorry for so many questions.  I just want to get it right. 

  12. Thanks for the reply. I did know about the seperate cfg files for games, what I meant was I would only need 1 file with all the controller ID's in the ctrl folder, correct? I don't need to create seperate ones? My setup is a bit different.  I'm not setting the controllers up as player 1, player 2. I'm setting it up based on joystick 1 is a 4 way, joystick 2 is an 8 way and joystick 3 is a Tron style stick - all for specific games. 

    So once I have the ID'S set in the ctrl folder, I just set the default joystick and then if I want a game specific controller for say Tron, I set that up under "this machine", then Mame creates those cfg's. Then I'm good to go. Do I have that right?

     

    Thanks again for clarifying.

  13. 22 minutes ago, JoeViking245 said:

    Yes and No.  Windows switching around the controller input 'locations' (ports) when you unplug, plug-in and/or reboot is their little gift to us.  But what they can't change is the controllers' (devices) ID's.  Call it a unique serial number each device has.  When you do the steps from the above link, you'll be getting and saving these ID's and setting them to the respective 'controller #' for MAME.  So then at this point, MAME doesn't care which port they're plugged into.  It reads the 'serial numbers' from all ports, then matches those to what you have setup in your config file for controller #'s.

    Ya, you probably should. At least the wheel, the gun, the gamepad (if you intend to use it with MAME) as well as the cab joy's and buttons.  The trackball is usually 'just a mouse'.  So should be fine.  I honestly have no idea about the spinner.

    Generally, what you want to do is:

    1. plug in   E V E R Y   D E V I C E   you have. 
    2. Set up all the default inputs in MAME for each player/device. 
    3. Get the ID's from every device as they are set up "now" (step 2). 
    4. Modify the config file to associate the ID's  (step 3) with the players/devices (step 2)
    5. Play games.

    Don't know if you stumbled across this during your research, but it kind lays out these steps in a little more detail. Except step 5.  That always stays the same. ;) 

    Oh... and to be clear, all this is for stand alone MAME only.  No RetroArch-MAME or some offshoot branch of MAME shtuff.  Just good ol' fashioned MAME.  It may work for those also. But this can of worms would end up turning into a barrel of snakes.  Just sayin'. :D

    Actually,  after some reading, I did have a quick question. If I follow this, then I set up joystick 1 in Mame as my default controls for most games, can I still set joystick 2 or joystick 3 in Mame for specific games and it'll save that?

    So, I'd have all 3 joysticks set in the ame configuration file with the 3 seperate ID's. In Mame, joystick 1 is set to default. And say, joystick 3 is set to control Defender. In general, is this correct?

  14. On 4/17/2021 at 7:23 PM, JoeViking245 said:

    If we're talking the same thing, it does appear complicated, but it's not overly complicated.  You'll use the Command Prompt just once to get a list of all your controller ID's.  Once you get those, it's a matter of following the rest of 'the guide' to set them up for MAME.

    https://docs.mamedev.org/advanced/devicemap.html

    There are supposedly some third party programs out there that can help with this.  Not just for MAME, but other emulators/situations as well.  But I've never tried any.

    There've been several (many?) posts here on the forums and probably even some YT videos.  You'll want to look for 'stable controller IDs' or 'stable IDs'  or a variant thereof.

    Hi,

     

    I'll probably tackle this in a few days, but I just have a couple questions. I had read that after setting up the controller in mame, you can go into the config file for the game (that Mame creates) and set it to Read Only and that would keep the controller from changing. That obviously isn't working. My question is, if I follow the device mapping instructions, do I need to do anything else after setting up my controllers in Mame? Normally, I'd go in and set up general (default) controls for most games, then set game specific controls for certain games. Then Mame creates those config files for each. I don't want to keep setting up specific controls for games in mame, only to have it change (like what's been happening). Basically, I've been setting up the joysticks (#1, 2, or 3) for a Meme game, then at random, Windows changes the order or designation of that joystick.

    My other question is, I don't need to worry about the trackball, spinner or racing wheel, correct? Just the 3 joysticks?

    thanks in advance!

  15. 13 hours ago, JoeViking245 said:

    If we're talking the same thing, it does appear complicated, but it's not overly complicated.  You'll use the Command Prompt just once to get a list of all your controller ID's.  Once you get those, it's a matter of following the rest of 'the guide' to set them up for MAME.

    https://docs.mamedev.org/advanced/devicemap.html

    There are supposedly some third party programs out there that can help with this.  Not just for MAME, but other emulators/situations as well.  But I've never tried any.

    There've been several (many?) posts here on the forums and probably even some YT videos.  You'll want to look for 'stable controller IDs' or 'stable IDs'  or a variant thereof.

    Ok. Thanks. I'll give it a try.

  16. Hi guys,

     

    I thought I had this problem solved. I took the suggestion of someone to setup the general controls in MAME then set the default.cfg to READ ONLY. Also, setting special controls per game when needed and setting those to READ ONLY. That seemed to work, but Windows will still randomly change my arcade stick designations. I don't unplug any of the USB controllers btw.

     I have a custom built arcade controller with 3 sticks, multiple buttons, a tracball and spinner. I also have a gun, racing wheel and gamepad. everything is connected to a usb hub with power buttons for each (the arcade controller with all the sticks and buttons is all in one. Inside the box, all devices are connected to a usb hub, then that hub is connected to the powered hub). I only power on the controller that I need. So, if I'm in mame, the whole arcade controller with all sticks and buttons is powered on.  I don't think Windows changes things after every reboot, but it does eventually change the designations. Is there anything that I might have missed? I read that there's a MAME function using the command prompt, but this seems very complicated and I have a LOT of controllers. Is there a better way?

     

    thanks

  17. 12 hours ago, Kiinkyfoxx said:

    I am hoping this comes across as helpful rather than patronising or anything else, if it does come across in a negative manner then I am really sorry and it isn't my intention.

    I know I keep it basic and people sometimes take it the wrong way, but it is the way that I work myself and I do this as if I am doing it for myself, and I like basic and simple, as I was taught when younger Keep It Simple Stupid!! !

    Have a look at the bits below and let me know if any help to you

    Supermodel.ini 7.93 kB · 3 downloads Model 3 idea.txt 3.05 kB · 3 downloads

    Thanks. I'll have a look when I get the chance.

  18. 20 hours ago, Headrush69 said:

    What version of Supermodel3 are you using?

    Seems you're using an older UI. It's also important that you have an up to date Games.xml as well.

    I'll have a look and update. How do you update the games.xml though? Doesn't that update when you update Supermodel?

  19. 5 hours ago, Kiinkyfoxx said:

    I use mode 4 so may not be much help to you but willing to try. 

    I do have player 1 set up to use emulated mouse on my system so in theory should be same as you using mode 2.

    Can you upload a copy of your Supermodel ini file and I will compare it to mine.

    Ocean Hunter doesn't require in game, had a quick check as I happened to be at home so thought worth looking. 

     

    Supermodel.ini

  20. 21 hours ago, Kiinkyfoxx said:

    Demulshooter whilst fantastic isn't needed for Model 3 games.

    This can be played 1 or 2 player without the need for Demulshooter

    Which mode are you using the Dolphin bar in?

    Mode 2

×
×
  • Create New...