LinHES Forums
http://forums.linhes.org/

MAME fails to start without joystick
http://forums.linhes.org/viewtopic.php?f=3&t=5530
Page 1 of 1

Author:  gummybear [ Sat Jul 30, 2005 12:19 pm ]
Post subject:  MAME fails to start without joystick

Couldn't find this on the forum, but it is sorta hidden in the mythTV docs:

Quote:
No joystick causing failure to launch.

By default, mythgame expects that you have a joystick installed. xmame will fail to launch because mythgame sends the option "-joytype 4" to xmame by default. You may reset this using the following command:

NOTE: The following command will set the joytype to "0" for all hosts. If you need to specify this on a per-host basis you can either modify the command below (if you know SQL), or use a tool which simplifies access to MySQL such as phpMyAdmin.

$ mysql -u root -e "update mythconverg.mamesettings set joytype=0"


FYI, if you set joytype=1 it seems to work nicely with USB gamepads.

Why they buried these startup params in a database is beyond me.

Author:  kingtj [ Sun Aug 07, 2005 1:08 pm ]
Post subject:  Very helpful tip! Thanks! Here's another that may help....

I had a problem with mythgame on R5A16 where after verifying all the paths were set correctly, copying the catver.ini, history.dat and hiscores.dat files in the proper places, etc. - Myth still wouldn't let me actually select a game to play it.

It would display the ROMs I had in my folder, and knew which category they were in and what year they were from, but none of them would ever start.

Finally, I found out it was because the catver.ini file I downloaded was in MS-DOS file format (with line feeds and carriage returns at the end of each line of text). Unix/Linux wanted the file to have the line feed codes stripped out. Loading catver.ini into nano, hitting a character and then backspacing it again (just so nano would believe the contents of the file had indeed changed), and saving it back out on top of itself fixed it for me.

I had to tell Myth to search for my games again, one last time, so it would rebuild its index. But after that, I could finally select the ROMs and play them!

Author:  tjc [ Sun Aug 07, 2005 1:36 pm ]
Post subject: 

There's a bit of discussion in this thread about other ways to do the dos2unix conversion: http://mysettopbox.tv/phpBB2/viewtopic.php?t=4759&highlight=dos2unix Including the guts of this quickie shell function substitute:
Code:
dos2unix () {
    for f in "$@" ; do
        { tr -d '\015' <"$f" | awk '{print $0}' >"$f".new ; } && mv "$f".new "$f"
    done
}

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/