Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: tony.silveira on June 25, 2012, 09:46:48 am
-
hey guys,
i'm about to start my build of a new panel and am adding a servo to auto switch joysticks from 8 to 4 way. daoldman has written a great plug in for mala but in all honesty, i'm happy using mamewah and the task of moving 30+ emu's from one FE to another is not something i'm looking forward to.
from an older post, user "terahawk" seems to have created a bat file that calls to an edited text file containing the names of 4 way games. if his bat doesn't find the name, it assumes 8 way and adjusts the servo accordingly. that sounds great but i dont want to have to edit a txt file everytime i update mame.
so, if anyone out there is willing to tackle this, i'd be happy to throw $40 your way for your time. i *think* it could be relatively easy. my thought is that the servo bat would check controls.ini file for the rom name, and adjust the servo based on results. obviously it would only be looking for "4 way" and "8 way" so there would have to be soemthing in there that would just ignore other stick/trackball/spinner, etc. control types.
any takers? here is the sample code from the post by "terahawk"
@echo off
d:
cd d:\mame
findstr /b /r "%1$" game-stick-mapping.txt > result.txt
for /f %%A in ("result.txt") do if %%~zA NEQ 0 goto four
echo 8-way
usccmd --sub 0,8
goto end
:four
echo 4-way
usccmd --sub 0,4
:end
mame "%1"
-
Could writeup a quick utility to export the mame xml and parse it for 4way in the controls I spose. We'll see if I get bored enough in the next few days. :lol
-
Could writeup a quick utility to export the mame xml and parse it for 4way in the controls I spose. We'll see if I get bored enough in the next few days. :lol
come on boredom!
-
Just throwing it out there but Joychoose won a BYOAC UCA. I'm sure something similar ported for other FE's would be well received by many out there. I know a lot of the HS crowd would kill for this functionality... that and to be able to tate their FE on the fly.
-
Thinking...........
-
that and to be able to tate their FE on the fly.
Is that a typo Chuck? Tate?
-
that and to be able to tate their FE on the fly.
Is that a typo Chuck? Tate?
Nope, that's what the kids these days say. ::)
-
Thinking...........
if your thinking, let me throw this out there... PLEASE! :)
also, if there would be any way to make it command line. i know i'm living in the past with mamewah but i spent a long time tweaking that FE to get countless emu's to run on it and am happy with the way it is
-
Command line would be great. I had a batch file set up in hyperspin (I think I still do... it's been a while...) where I pretended that my mame executable was the bat instead of the exe. So it gets called with the rom name... I then called an old control panel viewer passing in the rom name so it could show the proper controls, then when you hit a key to exit it called my real mame executable and passed the rom name along. I have it on my list of things to do to replace that whole business with CPWizard, but I have no free time to do anything at the moment.
A command line version of the joystick switcher could easily be integrated in the same way.
-
that and to be able to tate their FE on the fly.
Is that a typo Chuck? Tate?
Tate = vertical
Yoko = horizontal
-
Rotate = done in software
Tate = physically rotating the monitor putting your monitor on its side (I think that is the more correct usage)
-
Thanks for the info... That's some slang I'll never use, but at least I'll know what it means now...
-
Nobody should be using the word "tate" it sounds too close close to "taint". That's all i can think of when i read it.
http://m.urbandictionary.com/#define?term=taint (http://m.urbandictionary.com/#define?term=taint)
-
So, the game-stick-mapping.txt is simply a list of romname.zip then?
Edit: Or I'm guessing that's all that would be needed in the result.txt
-
Mmmmmm- Taters.
-
Mmmmmm- Taters.
Dictator's or just regular taters? ;D
Edit: Build tools installed on new pc......and around 50% of boredom code has been done. :D
-
now i know why
>Yoko = horizontal<
my gawd 30 year's after the fact
ed
-
now i know why
And knowing is half the battle. GI JOE!
-
I have every device in the house setup for any forum using the proper wording of tate, so here I am. Kudos Le
Chuck Tate
-
Mmmmmm- Taters.
Dictator's or just regular taters? ;D
Po-taters - just to be clear, wise guy. :whap
preferably in tater tot form.
-
Since we're already off-topic:
Dictator's or just regular taters? ;D
Ever wonder where that came from?
It's at 1:39, but the joke starts at the beginning.
CONTAINS PROFANITY...OBVIOUSLY
Mantan Moreland Party Record (http://www.youtube.com/watch?v=smrJ7459pj0#)
-
Anyone else want some mustard and biscuits now?
Mmmm hmmm. And I was thinkin' I could use me another couple cans o' that potted meat if ya got any extree.
-
Nobody should be using the word "tate" it sounds too close close to "taint". That's all i can think of when i read it.
http://m.urbandictionary.com/#define?term=taint (http://m.urbandictionary.com/#define?term=taint)
awww I KNEW what taint was and I STILL clicked the link :-\
-
i'll be the party pooper, you guys go talk about taints on another thread :)
spoot / daoldman, either of you have any headway? spoot, sounds like you actually started working on something?
-
i'll be the party pooper, you guys go talk about taints on another thread :)
spoot / daoldman, either of you have any headway? spoot, sounds like you actually started working on something?
Yeah guys, better move along or I'll report you to taint, er, I mean saint.
-
move along, notaint to see here...
-
Another thread tainted. :dunno
I'm ok with a mod deleting my off-topic posts if they want to clean it up.
-
I'm ok with a mod deleting my off-topic posts if they want to clean it up.
Yes, feel free. I never post on topic anymore. my bad. :-[
-
Tony, in their defense DaOld Man has been around long enough not to be scared off by some light banter about that part that isn't this nor is it that. If he'll do it he'll do it, if he won't no amount of prodding will move him, he'll just tell you to get off his lawn.
-
i'll be the party pooper, you guys go talk about taints on another thread :)
spoot / daoldman, either of you have any headway? spoot, sounds like you actually started working on something?
Yep, command line program that creates the result.txt file with all games that are flagged as joy:4 in the xml output from the mame specified in an argument when running the program. If the mame isn't specified it will try to determine 32/64 mame to run in the directory this program is run from.
It's currently completed, but not sure that's what you were really looking for. :laugh:
-
Tony, in their defense DaOld Man has been around long enough not to be scared off by some light banter about that part that isn't this nor is it that. If he'll do it he'll do it, if he won't no amount of prodding will move him, he'll just tell you to get off his lawn.
i hear ya, i wasn't trying to press, just curious :)
now back to the taints!