Main > Main Forum
easy coding, i'll pay you $40!
(1/7) > >>
tony.silveira:
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"
spoot:
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
tony.silveira:

--- Quote from: spoot on June 25, 2012, 03:12:25 pm ---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

--- End quote ---

come on boredom!
Le Chuck:
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. 

DaOld Man:
Thinking...........
Navigation
Message Index
Next page

Go to full version