View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Feb 16, 2006 4:22 am 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
Myth currently sends garbage out on the xmame command line, I can play a game by overriding them (press menu when mame game is selected and untick use default) which then creates an entry in mamesettings in database for that one game, but I can't do this for every single game. So Where does MythGame pick up the default mame settings from?

KnoppMyth default being sent.
Code:
/usr/games/xmame -rompath /myth/games/xmame/roms -history_file /myth/games/xmame/history -snapshot_directory /myth/games/xmame/screens -hiscore_directory /myth/games/xmame/hiscore -hiscore_file /myth/games/xmame/hiscore.dat -skip_disclaimer -skip_gameinfo -video-mode 1 -fullscreen -effect 9 -artwork -autoframeskip -bpp 0 -rol -ror -flipx -flipy -scale 1852401525 -antialias -translucency -beam 221840808664064642502669386121216.000000 -flicker 848409958348702886905511936.000000 -analogstick -winkeys -grabmouse -joytype 1819291510 -samples -volume 1768697715  -cheat   frogger


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 6:52 am 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
OK 5+ hours later (this is becoming a habit) and loads of googling and req'ing help to no avail. I finally guessed my way through to the solution myself. Hilight a mame game, (but don't run it) press m for menu, untick default settings. Set the settings as you wish then exit. This creates an entry in mamesettings in the database. Now change the romname field from that gamename to 'default' I do this in WebMin by setting the romname field to be the primary key in the mamesettings table, otherwise webmin won't let me edit the table. Then I can go ahead and edit it. I'm not sure why webmin doesn't allow you to edit data when there is no primary key, more madness!

So, there is it seems NO default entry in the database, so much for KnoppMyth making things easier!!! Now mame works albeit without audio (via spdif to amp is only connection I use) and uses those settings as default. I presume before, it was just sending the value of an uninit'd variable to xmame hence the daft values and failure. I'm sure in another 5 hours I'll have worked out how to get digital sound, shame there's so little help on this matter.

update:
another 3.5 hours later! finally got mame audio out of my spdif, crikey this is hard.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 11:20 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Well, if doesn't make it easy don't use it. You have options. Comments like that are going to do anything but tick me off. Not everyone uses ever plugin or perhaps they don't have the same issue you have. I've never had any issues with MythGame and XMAME. Perhaps it is karma, so if you help instead of bitch, things may just work for you. Yes, I do view your post as a bitch. You are whining... Don't like my choice of words? Don't use KnoppMyth and don't use the forum.

If you want to help, then help. You can state: 'I'm using version XZY. This is the issue I have... This is how I've resovled it. Devs, if you can comment on this/including it in future release, it will help folks'.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 12:13 pm 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
I have posted many questions politely and to be honest apart from a few basic linux questions have got very little help from you or anyone in the time I've been here with myth related queries. I have pretty much had to work everything out myself through googling and guesswork but this has taken a month solid. I have then kindly posted how to do some of these things for others.
eg:-
http://mysettopbox.tv/phpBB2/viewtopic.php?t=8175
http://mysettopbox.tv/phpBB2/viewtopic.php?t=8177
This topic explaining how to fix xmame that is broken + others
+ posts explaining how to get XBMC Myth and Myth front end on xbox working on other forums.

Here is an example of your help on this thread
http://mysettopbox.tv/phpBB2/viewtopic.php?t=8340
cecil wrote:
Perhaps I'm mistaken, but I don't think the NForce-2 IGP is twinview capable.

Which is totally wrong!

Then you come on and instead of actually offering any useful help, take time out purely to call me a whining bitch! On a thread where I am doubtless helping others who discover mame is broken in knoppmyth 30.02 You don't think it's frustrating being on a help forum where no one seems to know how to configure anything? I'm not bothered by your choice of words, it reflects on you not me. A sad state of affairs from a site admin on what is 'supposed' to be a help forum. That said there are a few very very helpful people on here, and thanks to them for taking time out to actually help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 12:32 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Lets agree to disagree... You don't have to use my distribution or my forum.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 1:39 pm 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
The clear time and effort you've put into your distro is much appreciated. Apologies for whining, I'll try to sanitise my posts.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 3:25 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
So, let put this behind and work together to make it better for others. This is all I ask. I think I've been a bit snappier than usual myself. Working like a pack of dogs has gotten to me. My apologies as well.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 16, 2006 5:28 pm 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
Cool

OK well here's how to get Myth working with spdif, ASSUMING you have spdif working in other parts of myth. The Delete line will remove the default entry if it already exists. There was no default mamesettings record on my machine hence xmame received garbage and wouldn't run at all initially. This is the key bit '-dp alsa -audiodevice digital'
'-dp alsa -audiodevice mixed-digital' or '-dp alsa -audiodevice dmix-digital' should also work (on my machine)

'-dp alsa -audiodevice hw:0,2' the solution buried in the xmame mbox archives FAILED on my machine. As does player -ao alsa:device=hw#0,2 /myth/music/test.mp3 not sure why but hey the other way works so...

Code:
# mysql
# use mythconverg
# DELETE FROM mamesettings WHERE romname = 'default';
# INSERT INTO `mamesettings` VALUES ('default',0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0,0,1,1,0,0,0,'-dp alsa -audiodevice digital');
# quit
# /etc/init.d/mysql restart


Alternatively if using WebMin you can run the SQL queries from there OR set romname to be the primary key for mamesettings, thereby allowing you to edit the table manually (I can't imagine duplicate romname entries)



I'm currently trying to install xmame0.99 from source (didn't wanna go above as I read myth rejects higher version numbers). I'm hoping that Lirc support (turned flag on in makefile) will enable my remote control to operate (and exit) mame. It may break the lot, time will tell...

UPDATE: OK well that went well, now running xmame0.99, added Back on remote to exit game and that all works well. Now to see about adding the other keys to .lircrc, wonder how playable mame will be with a remote?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 19, 2006 11:30 pm 
Offline
Joined: Wed Jan 18, 2006 6:33 pm
Posts: 96
Tried your tips to get my xmame sound working, but I can't seem to get sound under ALSA on my motherboard (A8N-VM CSM). I've tried it on the command line to force the correct audio settings, but still no audio.

Code:
/usr/games/xmame -dp alsa -audiodevice digital  -rompath /myth/games/xmame/roms -history_file /myth/games/xmame/history -snapshot_directory /myth/games/xmame/screens -hiscore_directory /myth/games/xmame/hiscores -hiscore_file /myth/games/xmame/hiscores/hiscore.dat -skip_disclaimer -skip_gameinfo -video-mode 1 -fullscreen -noartwork -noautoframeskip  -scale 1 -noantialias -notranslucency   -noanalogstick -nowinkeys -nograbmouse -joytype 0 -samples -volume 0  -nocheat  kungfum


Any joy with upgrading your version of xmame. I'm considering doing a rebuild myself of 0.99.

Steve


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 12:06 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
HappyTalk, rather than deleting the whole default entry, you can do something like:
Code:
update mamesettings set columnname='-dp alsa -audiodevice digital' where romname='default';

But replace columnname with the actual name of the column.
This is less prone to be broken if someone is using a different version of myth where the table format is slightly different.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 3:34 pm 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
Greg Frost wrote:
HappyTalk, rather than deleting the whole default entry, you can do something like:
Code:
update mamesettings set columnname='-dp alsa -audiodevice digital' where romname='default';

But replace columnname with the actual name of the column.
This is less prone to be broken if someone is using a different version of myth where the table format is slightly different.


Except in my case as stated there was NO default entry so there would be no record to update. Obviously my example entry has no joystick as that could cause failure as well.

Re stephen Ellis, my post before yours says that the upgrade to 0.99 went fine. I did review and make a few changes to the makefile (mainly to turn LIRC on) prior to compiling. I then edited my .lircrc file and added the keys for the remote to control mame (you have to use keycodes though). This was more for curiosity than useability as ONLY one key may be depressed at once and the the arrow keys acted very strangely, but I was able to play games using the remote. The escape key is obviously worthwhile adding so you can exit mame. Re YOUR ALSA not working there are tutorials on here that explain how to set that up. Once that's done this will work. I'll post a proper tutorial including my .lircrc file with the keycodes that are a pain to work out soon.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 25, 2006 10:18 am 
Offline
Joined: Thu Jan 05, 2006 11:05 pm
Posts: 3
HappyTalk wrote:
Code:
# mysql
# use mythconverg
# DELETE FROM mamesettings WHERE romname = 'default';
# INSERT INTO `mamesettings` VALUES ('default',0,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,1,0,0,1,1,0,0,0,'-dp alsa -audiodevice digital');
# quit
# /etc/init.d/mysql restart



Thanks for the info on the digital output.

The line
Code:
# /etc/init.d/mysql restart
is not required. All entries into MySQL is instant. You might need to leave MythGame and come back to it. I usually restart my frontend.

I installed using 30.1 and the 'default' entry was already available. So using INSERT is a bit of danger. Trying UPDATE is better


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 7:43 am 
Offline
Joined: Sat Jan 28, 2006 11:29 am
Posts: 83
JohnNJ wrote:
HappyTalk wrote:
I installed using 30.1 and the 'default' entry was already available. So using INSERT is a bit of danger. Trying UPDATE is better

The INSERT is preceded by a DELETE so it cannot fail, whereas if (as in my case and hence the topic title) there was no default entry then UPDATE will fail, hence it is better to do DELETE/INSERT. My INSERT also disables the joystick which could prevent mame from running if none is attached.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu