Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Switchres: modeline generator engine  (Read 459001 times)

0 Members and 1 Guest are viewing this topic.

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #920 on: February 21, 2011, 09:41:14 am »
Hi bit, I was missing these steps too.

Code: [Select]
modprobe udev
modprobe uinput

chmod 666 /dev/uinput

If the command does not work, it would have to edit the file.
/etc/cwiid/wminput/ir_ptd and change this.

Code: [Select]
Plugin.ir_ptr.X = ~ABS_X
Plugin.ir_ptr.Y = ~ABS_Y

To

Code: [Select]
Plugin.ir_ptr.X = ABS_X
Plugin.ir_ptr.Y = ABS_Y


I tried to pass two wminput Mac to see if you recognize and can play two, but does not work, not whether it will do with two bluetooth, I have to prove it.

Look at this screen, mame recognizes the wiimote as a pistol.



Could you include in your next version Cwiid to see how it works in gentoo? I tried to install it but I is compiling the kernel and many more things that should not, all tests are conducted in ubuntu 10.10.


Thanks.

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #921 on: February 22, 2011, 04:54:03 pm »

Could you include in your next version Cwiid to see how it works in gentoo? I tried to install it but I is compiling the kernel and many more things that should not, all tests are conducted in ubuntu 10.10.


Thanks.

Sounds like it's one of those ebuilds that calls the kernel download.  I'll have to look into how it compiles on gentoo and work on getting it working there.  Looks really cool, very interesting.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #922 on: February 23, 2011, 09:17:39 am »
Hi, bit, is that the evidence as you can see I recognize the wiimote, but itis likejoystick , and not as shirts , somita stays on the screen when you go from one place to another and not very accurate , I found this site where a demon has to start the wiimote, you can use the two and a patch for mame, I understood that is used as a gun, but I've compiled this version of mame and I have not worked, I only work as ordinary control rather than gun, or at least in Terminator 2 and Operation Wolf.

If you can and want to try it and see how you are doing to you.


http://spritesmods.com/?art=wiimote-mamegun


Config Xorg.

Code: [Select]
Section "InputDevice"
Identifier "WiiMote0"
Driver "evdev"
Option "Device" "/dev/input/event4"
Option "SendCoreEvents" "True"
EndSection

Section "InputDevice"
Identifier "WiiMote1"
Driver "evdev"
Option "Device" "/dev/input/event5"
Option "SendCoreEvents" "True"
EndSection


Section "ServerLayout"
  Identifier    "Default Layout"
  Screen        "Default Screen"
  InputDevice    "WiiMote0"
  InputDevice    "WiiMote1"
EndSection

This configuration you have to check evtest the event to see which have the Wii Remote, mine are the last two 8 and 9.

Config Mame.

Code: [Select]
lightgun_index1           auto
lightgun_index2           auto

lightgun_index1           WiiMote0
lightgun_index2           WiiMote1

joystick                  0
lightgun                  1

lightgun_device           lightgun
mouse_device            lightgun

Patch 0.137

http://spritesmods.com/wiimote-mamegun/mame-0137-wiimote.diff

Init.d Scripts

Code: [Select]
#! /bin/sh
### BEGIN INIT INFO
# Provides:          wiimote
# Required-Start:    bluetooth
# Required-Stop:    
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: WiiMote startup script
# Description:       Starts two instances of wminput for two different wiimotes
### END INIT INFO

# Author: Sprite_tm

#Bluetooth addresses of the wiimotes. Find this out by using the lswm program.
#You can put these two lines in /etc/default/wminput too if you want.
WM_BDADDR1="00:1F:12:34:56:78"
WM_BDADDR2="00:1F:87:65:43:21"

PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="WiiMote userspace driver"
NAME=wminput
DAEMON=/usr/bin/wminput
DAEMON_ARGS="--options args"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

#
# Function that starts the daemon/service
#
do_start()
{
$DAEMON -d -c /etc/cwiid/wminput/default $WM_BDADDR1 >/dev/null 2>/dev/null &
#Try not to race between the two controllers
sleep 1
$DAEMON -d -c /etc/cwiid/wminput/default.2 $WM_BDADDR2 >/dev/null 2>/dev/null &
}

#
# Function that stops the daemon/service
#
do_stop()
{
#Evil but works....
killall wminput
}


case "$1" in
  start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
  stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
  restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
do_start
;;
  *)
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
exit 3
;;
esac


Here you have to change the WM_BDADDR  by using lswm yours for the mac.

Configuration files for cwiid
http://spritesmods.com/wiimote-mamegun/wminput-config.tgz


I'll try to ask the author I am doing wrong so I just run as command and not as a pot and see if you can adapt the patch to the latest version.


Hey the thing this stop lately, you're up to? have something new to say?

Thank.


« Last Edit: February 23, 2011, 09:27:45 am by ves »

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #923 on: February 23, 2011, 10:39:40 pm »


Hey the thing this stop lately, you're up to? have something new to say?

Thank.




I've been exploring/working on creating a mame build that has switchres built into it, also haven't felt great today too so that's been a slow down :/.  I've got a Linux version of mame, patches, that no longer need switchres and it's built in.  Also today have been pushing the Windows side of things into mame so it can alter the modelines from mame itself.  Also exploring Powerstrip to use that when it's not a Radeon, that's a bit further away.  Hopefully in a few days I might have patches which make mame fully do the switchres stuff, in Windows and Linux, without an external program.

These are the Linux patches, the build there doesn't do anything and is a Windows test so ignore that unless just wanting to see modeline generation work in Windows without it changing anything.

The Windows part of this has been quite crazy, I've been converting the registry editing code to actually compile in mingw for mame, no more cygwin kludges.  I'm close I think, although having some issues getting the modes and details out of the registry, a lot of big TCHAR conversion needed from the char* stuff I was using in cygwin.

This new version of mame has new options, in Linux these patches should make it work just the same as switchres, few things different and not as complex in the advanced options but it's all there mostly...

New Options:
Quote
# CORE SwitchRes OPTIONS
#
-modeline            Generate modelines for arcade monitors
-monitor             Monitor type (cga|generic|h9110|vga|d9200|d9800|ntsc|pal)
-monitor_connector   Video card output (VGA-0|VGA-1|DVI-0|DVI-1)
-monitor_orientation Monitor orientation (horizontal|vertical|rotate)
-monitor_aspect      Monitor aspect (4:3|3:3|3:4|16:9)
-monitor_debug       Monitor debugging

http://mario.groovy.org/GroovyMame/   (Warning: patches aren't even alpha quality on Windows yet, probably will crash when reading the registry values,  Linux should work fine :-) report bugs )

That's mostly what I've been up to, and excited about getting the wii remote working eventually, but right now focusing on the mame switchres patching and waiting for the next version of Mame most likely before another ISO with the couple fixes from the last week I've done.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

rjpe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:October 27, 2020, 04:52:42 pm
    • Perdigao's Arcade
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #924 on: February 24, 2011, 04:05:23 am »
Hi,

please look at this topic: http://forum.arcadecontrols.com/index.php?topic=109962.0
will your distro solve my problem?
I'm trying to fit all native resolutions in full screen on my scart tv.
It looks like advanceMAME had a workarround.

Txs

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #925 on: February 24, 2011, 04:20:11 am »
The Windows part of this has been quite crazy, I've been converting the registry editing code to actually compile in mingw for mame, no more cygwin kludges.  I'm close I think, although having some issues getting the modes and details out of the registry, a lot of big TCHAR conversion needed from the char* stuff I was using in cygwin.

Great to hear that, thanks for your work.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #926 on: February 24, 2011, 07:20:11 am »
Hi,

please look at this topic: http://forum.arcadecontrols.com/index.php?topic=109962.0
will your distro solve my problem?
I'm trying to fit all native resolutions in full screen on my scart tv.
It looks like advanceMAME had a workarround.

Txs

Yeah that's the basic goal, right now in Windows you need a radeon card that works with soft15khz and possibly the patched ATI driver allowing a lot more modelines, and create a table of possible resolutions for it to switch to and alter the refresh rate dynamically.  Closest right now we can get to directly writing the card registers like AdvanceMame did to really create modelines dynamically (unfortunately newer radeon cards and others are off limits to advancemames techniques). In the future I'm hoping to get this directly built into mame for Windows, have done this for Linux, so no external program is needed to do the work or be a wrapper for mame.  This is very early though even with the Linux version, just this week have gotten a basic working model, hopefully it'll allow more cards to work using powerstrip and other newer Windows systems that way (right now limited to what Sof15khz supports for Radeon cards and Windows versions).  The Linux version though is so far ahead of the curve here, see below.

Right now in Linux we do have the exact same functionality as advancemame because there we are able to fully create modelines exactly to the games requirements depending on the monitor, no tricky register access or registry fiddling or limited resolution tables at all.  The distribution I built basically is the only one you'll be able to use this functionality with though because  on top of kernel patches, and specific ways of setting it up, the newest kernels are needed and so I've done all that work for you basically on the LiveCD and it also can install to disk too.

  
Also note that advancemame might have been doing some work at fiddling with the modelines to stretch them out like setting the monitor pots for each resolution basically, but doing it with resolution tricks changing the values in the modeline around.  A few games were basically smaller than the screens, or certain screen sizes were used I guess possibly, and the arcade person would adjust it to get it full, and each game somewhat requires slightly different adjustments possibly.  So running all the games on one setup/monitor is going to run into that issue slightly, and that's probably the advancemame setup of tuning resolutions and possibly some tricks with the card registers to do it the best.

Also there's overscan, which needs more of an adjustment on the TV itself in the maintenence menu which is either usually a hidden OSD or inside the TV itself and dangerous to access.  There are some settings in Linux for overscan with xrandr and certain video card outputs, although I'm not sure if it'll work for your setup and I haven't really gotten to play around with that any since I don't have a TV setup that it would work on.
« Last Edit: February 24, 2011, 07:35:13 am by bitbytebit »
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

rjpe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:October 27, 2020, 04:52:42 pm
    • Perdigao's Arcade
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #927 on: February 24, 2011, 08:52:00 am »
Great! I'll try your distro this weekend on a SSD disk I have laying arround.
Right now I have 3 AGP ATI radeon cards (2x9250, 1 HD3560)
I also have an ArcadeVGA version 2 (AGP version).

Wich one would be the best to use?

Do you support ArcadeVGA v2 AGP in both 32 and 64 bit version?
(It would be nice to see the bios booting on the TV)
And the others, both 32/64?

At this moment I'm using an AMD Sempron 64bit, running XP64, Soft15Khz and HD3560.

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #928 on: February 24, 2011, 09:03:23 am »
Great! I'll try your distro this weekend on a SSD disk I have laying arround.
Right now I have 3 AGP ATI radeon cards (2x9250, 1 HD3560)
I also have an ArcadeVGA version 2 (AGP version).

Wich one would be the best to use?

Do you support ArcadeVGA v2 AGP in both 32 and 64 bit version?
(It would be nice to see the bios booting on the TV)
And the others, both 32/64?

At this moment I'm using an AMD Sempron 64bit, running XP64, Soft15Khz and HD3560.


It should support any of those cards equally, I think the ArcadeVGA one would be fine in 32 or 64 bit (both versions are equal).  Interested in seeing how any/all the cards work, The 9250 cards are well tested but I'm not sure anyone has tested the HD3560 card yet.  Any issues with certain cards I can usually get worked out with the AMD Linux driver developer and he's pretty good at fixing all the issues we've run into yet :).
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #929 on: February 24, 2011, 09:21:56 am »
Hi bit, this property constituting switchres in mame, but now I had become accustomed to using an external program to suck, and as you said is better than be independent, because we depend on mame, as we could go just as with advmame , to change all the code and did not work, it would have to completely rewrite again, if you feel like you;)
That will give us advantages that is included in mame? being outside could stop working if the code change as well in mame?

I have not done anything about the gun in mame, but when you hear from the I will tell you.

Thanks for all your work.

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #930 on: February 24, 2011, 09:40:03 am »
Hi bit, this property constituting switchres in mame, but now I had become accustomed to using an external program to suck, and as you said is better than be independent, because we depend on mame, as we could go just as with advmame , to change all the code and did not work, it would have to completely rewrite again, if you feel like you;)
That will give us advantages that is included in mame? being outside could stop working if the code change as well in mame?

I have not done anything about the gun in mame, but when you hear from the I will tell you.

Thanks for all your work.

It's actually quite interesting how it seems to be fitting into mame.  There's actually little change to the mame code, just calling the functions I have in switchres files but all separated from the main mame files.  So that way, it's minimal to keep up with mame, since the places I've fitted it won't ever really change and if so it'll just be changing the machine class/structure call slightly (and all around the places are similar calls so it'll be easy to know what to do).  The Linux side was easy really because nothing much changed besides rewriting how I call the basic switchres modeline functions and monitor selection, and it's all in a separate file still.  In Windows the issue I'm right now dealing with is reading values of the actual modeline data from the registry, which now I'm having to change the data types and it seems to be somewhat close but something is still just not reading the values properly.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #931 on: February 24, 2011, 02:36:39 pm »
You're really cooking now bitbytebit. Well done.
-Banned-

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #932 on: February 24, 2011, 02:41:34 pm »
It should support any of those cards equally, I think the ArcadeVGA one would be fine in 32 or 64 bit (both versions are equal).  Interested in seeing how any/all the cards work, The 9250 cards are well tested but I'm not sure anyone has tested the HD3560 card yet.  Any issues with certain cards I can usually get worked out with the AMD Linux driver developer and he's pretty good at fixing all the issues we've run into yet :).

Those HD3560 are known to only accept dotclocks higher than 7 MHz with Window drivers, it will be good to check if Linux can do better with them, and if it's a software issue after all.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #933 on: February 24, 2011, 07:04:13 pm »
Hi I got it, I've been able to use wiimote as a gun in mame no problems, must be used as a joystick, no need to patch any, as I suck above and acknowledges, the key to not stand in the middle the display is changed.

joystick_deadzone 0.3

by

joystick_deadzone 0

Tomorrow I explain a little more to do, I need to prove the reload shots when shooting off the screen.

Confirmed reload shots works perfect .
« Last Edit: February 24, 2011, 07:27:09 pm by ves »

quazl

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:January 02, 2020, 08:20:13 pm
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #934 on: February 25, 2011, 03:07:43 pm »
Very Exciting. I wish I could code. I wish could actually contribute to this community that I love so much.

Making switchres work within Mame on windows is great news. Would I need to have a normal ATI card or will this work with an AVGA card? I am going to test your mamebuild this weekend on Windows (and Linux if I can figure it out) as well as the 64 bit Linux that I haven't gotten around to yet. I have had hardware die at work. 70 hours already this week.

Anyways, hope you get to feeling better, bit :)

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #935 on: February 25, 2011, 05:15:46 pm »
Very Exciting. I wish I could code. I wish could actually contribute to this community that I love so much.

Making switchres work within Mame on windows is great news. Would I need to have a normal ATI card or will this work with an AVGA card? I am going to test your mamebuild this weekend on Windows (and Linux if I can figure it out) as well as the 64 bit Linux that I haven't gotten around to yet. I have had hardware die at work. 70 hours already this week.

Anyways, hope you get to feeling better, bit :)

In windows a normal ATI card or possibly older AVGA cards I think, since the Soft15khz and newer AVGA 3000 do not play together and you can't set ATi custom registry modelines with those cards.  In Linux of course any ATI card just about except possibly newer HD6xxx ones. 

Yeah the GroovyMame version is looking good, might be working now, Calamity is double checking but I think it's no longer needed switchres in Windows and might just do something.  I would recommend using my Windows builds in the GroovyMame directory now, because there's some other bugs I fixed in the patch and even if not using the modeline functionality it's find to just not enable that (disabled by default) and use switchres instead.  I should have more information on the /GroovyMame/ directory on how to use it, working on that side of things partly now, and hopefully all the command option settings are being done right when in switchres mode.

I'm feeling a little better today, dang cold got me, at least my head feels mostly better and I think in a day or two it'll be fully cleared up. 
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #936 on: February 25, 2011, 06:36:12 pm »
I confirm the new GroovyMame for Win is working fine here, calculating and updating the modelines on the fly, so this is actually the first Mame binary since AdvanceMame v0.106 capable of doing modelines.

Hopefully tomorrow I'll upload a new version of VMMaker that automatically creates a mode table suitable for GroovyMame to work as good as in Linux.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #937 on: February 26, 2011, 06:29:10 am »
Hello, already running from ubuntu, I need gentoo, you could include cwiid for the next version? order to have the wiimote working as gun we need the following.

Uinput support in kernel.

Code: [Select]
chmod 666 /dev/input/uinput
Support for Bluetooth (bluez) and load them from the beginning.

Cwiid (lswm, wminput libcwiid1).

Script init.d wiimote.

Remembers to put the WM_BDADDR1 of your wiimote in the scritps
To know the BDADDR you have it is with lswm

Code: [Select]
#! /bin/sh
### BEGIN INIT INFO
# Provides:          wiimote
# Required-Start:    bluetooth
# Required-Stop:    
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: WiiMote startup script
# Description:       Starts two instances of wminput for two different wiimotes
### END INIT INFO

# Author: Sprite_tm

#Bluetooth addresses of the wiimotes. Find this out by using the lswm program.
#You can put these two lines in /etc/default/wminput too if you want.
WM_BDADDR1="00:1F:12:34:56:78"
WM_BDADDR2="00:1F:87:65:43:21"

PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="WiiMote userspace driver"
NAME=wminput
DAEMON=/usr/bin/wminput
DAEMON_ARGS="--options args"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

#
# Function that starts the daemon/service
#
do_start()
{
$DAEMON -d -c /etc/cwiid/wminput/default $WM_BDADDR1 >/dev/null 2>/dev/null &
#Try not to race between the two controllers
sleep 1
$DAEMON -d -c /etc/cwiid/wminput/default.2 $WM_BDADDR2 >/dev/null 2>/dev/null &
}

#
# Function that stops the daemon/service
#
do_stop()
{
#Evil but works....
killall wminput
}


case "$1" in
  start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
  stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
esac
;;
  restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
do_stop
do_start
;;
  *)
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $SCRIPTNAME {start|stop|restart}" >&2
exit 3
;;
esac


Cwiid set to put two wimote.

You can use these configuration files replacing the original
http://spritesmods.com/wiimote-mamegun/wminput-config.tgz

or do the following.

Code: [Select]
/etc/cwiid/wminput

rm default

cp ir_ptr ir_ptr.2

ln -s ir_ptr default
ln -s ir_ptr.2 default.2

If the wiimote was not working as going, to change in ir_ptr/ir_ptr.2

Code: [Select]
Plugin.ir_ptr.X = ~ABS_X
Plugin.ir_ptr.Y = ~ABS_Y

To

Code: [Select]
Plugin.ir_ptr.X = ABS_X
Plugin.ir_ptr.Y = ABS_Y

Configuration for mame.

Code: [Select]
joystick 1
joystick_deadzone 0


Now playing ;)


Links with documentation.

http://abstrakraft.org/cwiid/wiki/Gentoo
http://pelican.rsvs.ulaval.ca/mediawiki/index.php/Wiimote_on_Gentoo
http://spritesmods.com/?art=wiimote-mamegun
http://www.movimientolibre.com/articulos/cwiid-0.6.00.html


Thank.



bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #938 on: February 26, 2011, 08:40:53 am »
Ves, 

I got my wii remote working :), really cool, quite amazed.  I fortunately had an old bluetooth dongle laying around and a wii.

Here's what I did in the Gentoo Arcade Linux to do it, everything else is not necessary besides these steps in Groovy Arcade Linux, so somewhat simpler since don't need to edit xorg.conf.  The Gentoo overlay doesn't exist, it's merged but requires the kernel source, so I just downloaded the gentoo archive of it and built it manually...
Code: [Select]
# Bluez install
autounmask net-wireless/bluez-4.82
USE=consolekit emerge -av bluez

# Cwiid
cp /usr/portage/app-misc/cwiid/files/60-cwiid.rules /etc/udev/rules.d/
wget http://dev.gentoo.org/~lxnay/cwiid/cwiid-20110107.tar.bz2
# unpack and enter directory
sed -i "s:--disable-ldconfig:--without-ldconfig:g" configure.ac
sed -i "s:enable_ldconfig:with_ldconfig:g" configure.ac
autolocal
autoconf
./configure --prefix=/usr --sysconfdir=/etc

make install

cd /usr/etc/cwiid/wminput/
rm default
cp ir_ptr ir_ptr.2
ln -s ir_ptr.2 default
wminput -d -c /usr/etc/cwiid/wminput/default 00:24:1E:A3:08:2D &


So I've got it working, but I have a problem.  I have to stand way to the left side of my cabinet to get the mouse cursor to work :-).  So how do I tune it to the screen like you do on the Wii?

Looks really exciting, and I've got the nintendo old style controller attachment, so the NES emulator should be fun now :D, thanks for figuring all this out.  It should be pretty easy to make the installation contain the above changes, and will have to look at how to have some sort of setup for it in the menu system I guess (do we really need the MAC if only using one remote?).
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #939 on: February 26, 2011, 10:03:14 am »
Ves,  

I got my wii remote working :), really cool, quite amazed.  I fortunately had an old bluetooth dongle laying around and a wii.

Here's what I did in the Gentoo Arcade Linux to do it, everything else is not necessary besides these steps in Groovy Arcade Linux, so somewhat simpler since don't need to edit xorg.conf.  The Gentoo overlay doesn't exist, it's merged but requires the kernel source, so I just downloaded the gentoo archive of it and built it manually...
Code: [Select]
# Bluez install
autounmask net-wireless/bluez-4.82
USE=consolekit emerge -av bluez

# Cwiid
cp /usr/portage/app-misc/cwiid/files/60-cwiid.rules /etc/udev/rules.d/
wget http://dev.gentoo.org/~lxnay/cwiid/cwiid-20110107.tar.bz2
# unpack and enter directory
sed -i "s:--disable-ldconfig:--without-ldconfig:g" configure.ac
sed -i "s:enable_ldconfig:with_ldconfig:g" configure.ac
autolocal
autoconf
./configure --prefix=/usr --sysconfdir=/etc

make install

cd /usr/etc/cwiid/wminput/
rm default
cp ir_ptr ir_ptr.2
ln -s ir_ptr.2 default
wminput -d -c /usr/etc/cwiid/wminput/default 00:24:1E:A3:08:2D &


So I've got it working, but I have a problem.  I have to stand way to the left side of my cabinet to get the mouse cursor to work :-).  So how do I tune it to the screen like you do on the Wii?

Looks really exciting, and I've got the nintendo old style controller attachment, so the NES emulator should be fun now :D, thanks for figuring all this out.  It should be pretty easy to make the installation contain the above changes, and will have to look at how to have some sort of setup for it in the menu system I guess (do we really need the MAC if only using one remote?).


Hello, regarding to stay on the left side because the wiimote is not, you are using the sensor bar for wii? you got the right direction? have proven this right on the wii? I guess I'll be stoked with the wii sensor bar, if it is original, and if it is battery or USB, no? mame.ini off the mouse on, if you can upload some photos to see what is wrong, that will happen only in arcade and also on your pc?

With regard to the steps, I find autolocal, correct? does not come out to emerge.

I'm testing with a virtual machine if it works go to the arcade to see if it works well.

I have installed Bluez, and then I dropped the code of web cwiid I libcwiid/bluetooth.c changing  this “hci_remote_name” to “hci_read_remote_name”  file and let me compile it and install it, but I get error ImportError: No module named cwiid, I need to prove your steps from zero.


The Mac is set for not having to synchronize the remote always, you pass the PARAMETER to wminput this expecting to see the command, not a new one, once you press the buttons 1 +2 is activated and ready.

Have you tried to change this in ir_ptr?

Plugin.ir_ptr.X = ~ABS_X
Plugin.ir_ptr.Y = ~ABS_Y

To

Plugin.ir_ptr.X = ABS_X
Plugin.ir_ptr.Y = ABS_Y

You can put the configuration files you have in /etc/cwiid/wminput/ ?


Thanks.
« Last Edit: February 26, 2011, 10:06:18 am by ves »

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #940 on: February 26, 2011, 10:16:26 am »
Ves,  

I got my wii remote working :), really cool, quite amazed.  I fortunately had an old bluetooth dongle laying around and a wii.

Here's what I did in the Gentoo Arcade Linux to do it, everything else is not necessary besides these steps in Groovy Arcade Linux, so somewhat simpler since don't need to edit xorg.conf.  The Gentoo overlay doesn't exist, it's merged but requires the kernel source, so I just downloaded the gentoo archive of it and built it manually...
Code: [Select]
# Bluez install
autounmask net-wireless/bluez-4.82
USE=consolekit emerge -av bluez

# Cwiid
cp /usr/portage/app-misc/cwiid/files/60-cwiid.rules /etc/udev/rules.d/
wget http://dev.gentoo.org/~lxnay/cwiid/cwiid-20110107.tar.bz2
# unpack and enter directory
sed -i "s:--disable-ldconfig:--without-ldconfig:g" configure.ac
sed -i "s:enable_ldconfig:with_ldconfig:g" configure.ac
autolocal
autoconf
./configure --prefix=/usr --sysconfdir=/etc

make install

cd /usr/etc/cwiid/wminput/
rm default
cp ir_ptr ir_ptr.2
ln -s ir_ptr.2 default
wminput -d -c /usr/etc/cwiid/wminput/default 00:24:1E:A3:08:2D &


So I've got it working, but I have a problem.  I have to stand way to the left side of my cabinet to get the mouse cursor to work :-).  So how do I tune it to the screen like you do on the Wii?

Looks really exciting, and I've got the nintendo old style controller attachment, so the NES emulator should be fun now :D, thanks for figuring all this out.  It should be pretty easy to make the installation contain the above changes, and will have to look at how to have some sort of setup for it in the menu system I guess (do we really need the MAC if only using one remote?).


Hello, regarding to stay on the left side because the wiimote is not, you are using the sensor bar for wii? you got the right direction? have proven this right on the wii? I guess I'll be stoked with the wii sensor bar, if it is original, and if it is battery or USB, no? mame.ini off the mouse on, if you can upload some photos to see what is wrong, that will happen only in arcade and also on your pc?

With regard to the steps, I find autolocal, correct? does not come out to emerge.

I'm testing with a virtual machine if it works go to the arcade to see if it works well.

I have installed Bluez, and then I dropped the code of web cwiid I libcwiid/bluetooth.c changing  this “hci_remote_name” to “hci_read_remote_name”  file and let me compile it and install it, but I get error ImportError: No module named cwiid, I need to prove your steps from zero.


The Mac is set for not having to synchronize the remote always, you pass the PARAMETER to wminput this expecting to see the command, not a new one, once you press the buttons 1 +2 is activated and ready.

Have you tried to change this in ir_ptr?

Plugin.ir_ptr.X = ~ABS_X
Plugin.ir_ptr.Y = ~ABS_Y

To

Plugin.ir_ptr.X = ABS_X
Plugin.ir_ptr.Y = ABS_Y

You can put the configuration files you have in /etc/cwiid/wminput/ ?


Thanks.


I'm just using a bluetooth dongle, not sure about how the original wii sensor would work.  The controllers work with the wii fine.  I have to stand with my hand out to the right and the controller sort of sideways for it to work.  All the buttons work fine and the config ir_ptr stuff I changed and it goes the right directions, just seems to not allow me to point directly but have to be out to the right.  At first it was needing to have me also stand to the far left, now I can stand directly in front, also my usb bluetooth adaptor is on the right side of the screen at the lower corner (everything else seems worse).  My screen is slanted, it's a PGA Golf Tour cabinet, 27" WG9800, not sure if that changes things, does the screen have to be straight up/down for it to work best?  I can play duckhunt ok, but of course it's real flaky and having my hand out to the right side makes it weird, no direct pointing works. 

Yeah the default version of cwiid doesn't compile, but the one I have the link for above does, Gentoo must have grabbed a better build and it's a bit newer than the current stable version I think.  I'm not sure if perhaps part of the issue would be the version, but for some reason the 0.6.00 one has issues I guess like you saw with Gentoo too. 
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #941 on: February 26, 2011, 10:26:00 am »
Hello,  if you do not use the wii sensor bar, it will not have to work well, I say this because I tried many things and will not work if you do not.
If you do not have the sensor bar, you can try with 2 sails, no kidding, you can look and see.


With respect to command autolocal, is well given, or is a bug and wanted to give another command? I have not found this command to emerge, apt-get or the web.

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #942 on: February 26, 2011, 10:30:46 am »
Hello,  if you do not use the wii sensor bar, it will not have to work well, I say this because I tried many things and will not work if you do not.
If you do not have the sensor bar, you can try with 2 sails, no kidding, you can look and see.


With respect to command autolocal, is well given, or is a bug and wanted to give another command? I have not found this command to emerge, apt-get or the web.

Ah, it's aclocal :) I mistyped that.

Oh, how does the wii sensor bar plugin, it isn't USB is it?  Yeah that makes sense how, didn't realize it needed that.  Are you saying two usb bluetooth devices will be better?  I do have two of these, interesting.  Would be interested in getting the wii sensor bar hooked up but seems like it has some strange plug on it.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #943 on: February 26, 2011, 10:41:37 am »
Hello, wii sensor bar need not be connected to the pc, only to pick up the signal better command and return to Him, to know which part is when I said usb was not to connect to the pc, but that has Power supply, either with USB or batteries.

Only need 1 bluetooth to use the 2 wiimote.

Thanks for the howto so that it can install, just install the virtual machine, but when I run vminput fails.

ImportError: /usr/lib/python2.6/site-packages/cwiid.so undefined symblo: cwiid_get_balance_cal.

I guess its gonna be cwiid trying to install several times, in different ways, or you need to install something else in GroovyArcade? I'll do this later in the arcade.

I have to try this, but right now I'm out, if you want to see if it works, edit the files ir_ptr ir_ptr.2 and add this

/etc/cwiid/wminput/ir_ptr
Plugin.led.Led4 = 1

/etc/cwiid/wminput/ir_ptr.2
Plugin.led.Led4 = 2

To see if the controls identified.

It works, but you have to put so

/etc/cwiid/wminput/ir_ptr
Plugin.led.Led1 = 1

/etc/cwiid/wminput/ir_ptr.2
Plugin.led.Led2 = 1

« Last Edit: February 26, 2011, 01:50:31 pm by ves »

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #944 on: February 26, 2011, 06:28:58 pm »
Hi, I've tried cwiid in GroovyArcade, works pretty well, so if it's not like a real gun arcade.
The wiimote script does not work with gentoo, it has to change, will watch tomorrow.

first you said that is not fully focused the Wiimote, right? happened to me a little, but not if cells will be for the sensor bar that are the minimum or the short distance that I have tomorrow proves it better, it's too late, I've also noticed that in several games to make reload gun, returning the pointer on your position, but shifted a bit more ..

I have to do more tests using mouse lightgun options etc. ..

Thanks.
« Last Edit: February 26, 2011, 06:32:42 pm by ves »

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #945 on: February 27, 2011, 02:33:13 am »
Hi, I've tried cwiid in GroovyArcade, works pretty well, so if it's not like a real gun arcade.
The wiimote script does not work with gentoo, it has to change, will watch tomorrow.

first you said that is not fully focused the Wiimote, right? happened to me a little, but not if cells will be for the sensor bar that are the minimum or the short distance that I have tomorrow proves it better, it's too late, I've also noticed that in several games to make reload gun, returning the pointer on your position, but shifted a bit more ..

I have to do more tests using mouse lightgun options etc. ..

Thanks.

I'm going to get one of these:
http://www.walmart.com/ip/Nyko-Wireless-Sensor-Bar-Wii-Wii/5607973

Looks like it should do the trick.  Does your nunchuck part work?  Mine doesn't, and my classic controller doesn't work either, they claim they should work.  As a basic mame controller it works well right now, although it's hard to use the normal buttons in games because it also is listening to the movement sensing too so it seems to cause the left/right movements to get triggered constantly.  I'm guessing turning off joystick support in mame ini files for games I don't want the motion to work with, or only turning it on for games with light guns possibly.  I'm guessing the classic controller would be hard to use, if it worked, with the motion sensing also influencing the movement.

Here's a button mapping I made that allows me to use it to navigate through advmenu and games in general:
Code: [Select]
#buttons

Wiimote.A = KEY_LEFTALT
Wiimote.B = KEY_LEFTCTRL
Wiimote.Up = KEY_UP
Wiimote.Down = KEY_DOWN
Wiimote.Left = KEY_LEFT
Wiimote.Right = KEY_RIGHT
Wiimote.Minus = KEY_5
Wiimote.Plus = KEY_6
Wiimote.Home = KEY_ESC
Wiimote.1 = KEY_1
Wiimote.2 = KEY_2

Nunchuk.C = BTN_LEFT
Nunchuk.Z = BTN_RIGHT

Classic.Up = KEY_UP
Classic.Down = KEY_DOWN
Classic.Left = KEY_LEFT
Classic.Right = KEY_RIGHT
Classic.Minus = KEY_BACK
Classic.Plus = KEY_FORWARD
Classic.Home = KEY_HOME
Classic.A = BTN_LEFT
Classic.B = BTN_RIGHT
#Classic.X =
#Classic.Y =
#Classic.ZL =
#Classic.ZR =
#Classic.L =
#Classic.R =

SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

ves

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 225
  • Last login:April 11, 2020, 02:57:49 am
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #946 on: February 27, 2011, 06:37:54 am »
Hello to use the classic controller, you have to use file  nunchuck_stick2btn and not the ir_ptr, because if you say fails to detect the movement of the wiimote.
I've seen you put cwii gif, but you need to put the ir_ptr.2 and add the option for you to know that this command is running Plugin.led.Led1 = 1 Plugin.led.Led2 = 1

I've had to change the buttons in buttons so that when you put the command in a shot gun trigger is the B and not A.

Wiimote.A               = BTN_LEFT
Wiimote.B               = BTN_RIGHT

To

Wiimote.A               = BTN_RIGHT
Wiimote.B               = BTN_LEFT

I have not been able to prove the gun well, but I think we will have little problems with the calibration of the wiimote, because there is no such option linux: (, and all the projects I see are already dead, just still in windows.
I have to try in windows to confirm.

You could see something to load at startup the wminput?
« Last Edit: February 27, 2011, 06:39:34 am by ves »

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #947 on: February 27, 2011, 09:00:56 am »
Hello to use the classic controller, you have to use file  nunchuck_stick2btn and not the ir_ptr, because if you say fails to detect the movement of the wiimote.
I've seen you put cwii gif, but you need to put the ir_ptr.2 and add the option for you to know that this command is running Plugin.led.Led1 = 1 Plugin.led.Led2 = 1

I've had to change the buttons in buttons so that when you put the command in a shot gun trigger is the B and not A.

Wiimote.A               = BTN_LEFT
Wiimote.B               = BTN_RIGHT

To

Wiimote.A               = BTN_RIGHT
Wiimote.B               = BTN_LEFT

I have not been able to prove the gun well, but I think we will have little problems with the calibration of the wiimote, because there is no such option linux: (, and all the projects I see are already dead, just still in windows.
I have to try in windows to confirm.

You could see something to load at startup the wminput?

I can't believe they wouldn't have a calibration utility like in the wii, that seems like the biggest part of it. 

I got my classic controller working great with mame, here's my updated config with all the buttons mapped out to match mame ones.  works pretty nice, will have to play with trying to calibrate when I get that wireless sensor.
Code: [Select]
#buttons

#Plugin.ir_ptr.X = ABS_X
#Plugin.ir_ptr.Y = ABS_Y

Wiimote.A = KEY_LEFTALT
Wiimote.B = KEY_LEFTCTRL
Wiimote.Up = KEY_UP
Wiimote.Down = KEY_DOWN
Wiimote.Left = KEY_LEFT
Wiimote.Right = KEY_RIGHT
Wiimote.Minus = KEY_5
Wiimote.Plus = KEY_6
Wiimote.Home = KEY_ESC
Wiimote.1 = KEY_1
Wiimote.2 = KEY_2

Nunchuk.C = BTN_LEFT
Nunchuk.Z = BTN_RIGHT

Classic.Up = KEY_UP
Classic.Down = KEY_DOWN
Classic.Left = KEY_LEFT
Classic.Right = KEY_RIGHT
Classic.Minus = KEY_5
Classic.Plus = KEY_6
Classic.Home = KEY_ESC
Classic.A = KEY_LEFTALT
Classic.B = KEY_LEFTCTRL
Classic.X = KEY_SPACE
Classic.Y = KEY_LEFTSHIFT
Classic.ZL = KEY_1
Classic.ZR = KEY_2
Classic.L = BTN_LEFT
Classic.R = BTN_RIGHT

#Classic.Dpad.X = ABS_X
#Classic.Dpad.Y = ABS_Y
Classic.LStick.X = ABS_HAT0X
Classic.LStick.Y = ABS_HAT0Y
Classic.RStick.X = ABS_HAT1X
Classic.RStick.Y = ABS_HAT1Y

#Nunchuk.C               = KEY_C
#Nunchuk.Z               = KEY_SPACE

#plugin for nunchuk stick
Plugin.nunchuk_stick2btn.Up = KEY_UP
Plugin.nunchuk_stick2btn.Down = KEY_DOWN
Plugin.nunchuk_stick2btn.Left = KEY_LEFT
Plugin.nunchuk_stick2btn.Right = KEY_RIGHT


So we would want this as a player 1 config I guess, and then another for a player 2 config with the right keys mapped there.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #948 on: February 27, 2011, 03:34:57 pm »
I've attached a new test version of VMMaker and ArcadeOSD (1.2). This VMMaker version is capable of creating and installing a video mode list suitable for Switchres or Groovymame. By now you'll need to download one of the previous CRT_Emudriver packages (6.5 or 9.3 depending on your Radeon model, download from http://postback.geedorah.com/foros/viewtopic.php?id=1424) and replace the files there with the newer ones attached to this post. Then edit VMMaker.ini to point to your Mame path. The rest of options are already set up for you. I've translated the whole thing into English. Hopefully in some days I'll have the CRT_Emudriver packages updated and the rest of documentation translated.

This VMMaker 1.2 has a new option called ModeTableMethod, that specifies if we're creating a static or dynamic mode table. There's also a new option called VerticalAspect that accounts for the aspect ratio of vertical games and must be set up with the same value we will use in Switchres or GroovyMame.

Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

quazl

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:January 02, 2020, 08:20:13 pm
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #949 on: February 27, 2011, 05:48:05 pm »
Hey Calamity,

I have the AVGA 2400. I am trying out your drivers. Before I start doing alot of troubleshooting, will this work with my card? I lost video on the VGA side after uninstalling AVGA drivers and trying yours.

By the way, Arcade_OSD is amazing! Great job on that tool!

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #950 on: February 27, 2011, 05:55:05 pm »
I'm afraid that AVGA model is not tested and probably won't work, I've only tested it with 9250 based models. However, just out of curiosity, you mean you have no video at all or only on the vga connector?
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

quazl

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:January 02, 2020, 08:20:13 pm
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #951 on: February 27, 2011, 06:34:02 pm »
I have video on the dvi but not on the VGA to my d9800.

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #952 on: February 28, 2011, 04:20:35 am »
I have video on the dvi but not on the VGA to my d9800.

Interesting, have you tried to connect your d9800 to the dvi with an adapter or are you connecting a lcd to that one?
For some reason, these drivers only enable output to the primary device (dvi in your case), even if modelines are installed to both of them. VMMaker only installs modelines to the primary device as for now. Something that could be happening is that modelines are not working at all and you are only having picture on the dvi thanks to the monitor built in modes or something. You may try to enable VGA from Screen Properties (extend desktop).
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #953 on: February 28, 2011, 04:54:47 am »
I have video on the dvi but not on the VGA to my d9800.

Interesting, have you tried to connect your d9800 to the dvi with an adapter or are you connecting a lcd to that one?
For some reason, these drivers only enable output to the primary device (dvi in your case), even if modelines are installed to both of them. VMMaker only installs modelines to the primary device as for now. Something that could be happening is that modelines are not working at all and you are only having picture on the dvi thanks to the monitor built in modes or something. You may try to enable VGA from Screen Properties (extend desktop).

The HD2400 card is the same basic R600 GPU as the HD2600 card which both the AVGA 2400 and AVGA 2600 are based off of these cards.  That being the case, I'm pretty certain they would both be using the same type of method, which is totally different than previous AVGA cards.  So basically I suspect the card is hardwired in the actual video bios to not use the regular VGA port normally, instead it's stuck with a static modetable internally and you can't touch it with drivers without knowing some proprietary methods of talking to it which only the AVGA drivers know.  I know that this card supposidly works with my Linux fix, odd though because I thought the two would require a slightly different fix being different cards and I check the cards device id/manufacturer id before I do the changes for them.  I get the feeling that no regular ATI driver other than AVGA driver would get the 2400 as well as the 3000 working out the VGA port, at least that is what a guy from AMD said the ATI vbios team told him.  The vbios firmware is supposed to be completely different in the pixelclock routines it uses and so normal drivers are just not going to know how to do things right, and there's obviosuly some funny stuff done to the VGA port on top of that.  At least if it really is in the same area as the 3000, I really don't see how it couldn't be since it's the same model GPU basically and makes sense it would be the same vbios type.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

Calamity

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 7441
  • Last login:Today at 01:47:45 pm
  • Quote me with care
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #954 on: February 28, 2011, 05:10:48 am »
The HD2400 card is the same basic R600 GPU as the HD2600 card which both the AVGA 2400 and AVGA 2600 are based off of these cards.  That being the case, I'm pretty certain they would both be using the same type of method, which is totally different than previous AVGA cards.  So basically I suspect the card is hardwired in the actual video bios to not use the regular VGA port normally, instead it's stuck with a static modetable internally and you can't touch it with drivers without knowing some proprietary methods of talking to it which only the AVGA drivers know.  I know that this card supposidly works with my Linux fix, odd though because I thought the two would require a slightly different fix being different cards and I check the cards device id/manufacturer id before I do the changes for them.  I get the feeling that no regular ATI driver other than AVGA driver would get the 2400 as well as the 3000 working out the VGA port, at least that is what a guy from AMD said the ATI vbios team told him.  The vbios firmware is supposed to be completely different in the pixelclock routines it uses and so normal drivers are just not going to know how to do things right, and there's obviosuly some funny stuff done to the VGA port on top of that.  At least if it really is in the same area as the 3000, I really don't see how it couldn't be since it's the same model GPU basically and makes sense it would be the same vbios type.

Yes, I agree bitbytebit here. What surprises me is that the AVGA 2400 was not refused by the driver installation at first hand. Actually, though not documented, my patched drivers (6.5) should install with any AVGA 9200/9250/X600/X1050, but only 9200/9250 have been tested afaik.
Important note: posts reporting GM issues without a log will be IGNORED.
Steps to create a log:
 - From command line, run: groovymame.exe -v romname >romname.txt
 - Attach resulting romname.txt file to your post, instead of pasting it.

CRT Emudriver, VMMaker & Arcade OSD downloads, documentation and discussion:  Eiusdemmodi

quazl

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 6
  • Last login:January 02, 2020, 08:20:13 pm
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #955 on: February 28, 2011, 01:51:05 pm »
Going to try the DVI tonight.

Also, found this
http://derrick.mameworld.info/docs/Tutorial/VideoModes/Custom_Video_Modes.html
while purusing the WIP pages. I am sure you have seen this, but I thought I would post just in case it might be applicable.

bitbytebit

  • Moderator
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 896
  • Last login:August 02, 2019, 11:07:16 am
    • The Groovy Organization
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #956 on: February 28, 2011, 09:34:47 pm »
Groovy Arcade Linux ISO version 1.495

Quote
         - Mame ebuild updated with groovymame patch to have switchres builtin
         - Added Cwiid and Bluez, allows wii remotes to work as light guns/controllers
         - Updated kernel to 2.6.38-rc6-git4+ now does vblank timestamps in interlaced mode too
         - Mouse setup with xset in xinit and usbhid module set to 512ms polling
         - Improved mouse/trackball sensitivity
         - Really copy /data/ information to installation

To enable a wii remote, for now you'll manually have to run `wminput -d &` at the console or remote through ssh.

Mouse and trackball/spinner handling should be very nice compared to before, or in most other Linux distributions.
SwitchRes / GroovyMame - http://arcade.groovy.org
Modeline Generator and Mame Wrapper for Windows or Linux
LiveCD of Groovy Arcade Linux for Arcade Monitors
GroovyMame - generate arcade resolutions like advancemame
--
The Groovy Organization

rjpe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:October 27, 2020, 04:52:42 pm
    • Perdigao's Arcade
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #957 on: March 01, 2011, 06:15:06 am »
Hi calamity, does your driver work with Windows XP 64 bit?

bitbytebit, I tried your distro but had some problems. I'll be back to that when I have more time.

newmanfamilyvlogs

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1694
  • Last login:June 15, 2022, 05:20:38 pm
    • forum.arcadecontrols.com/index.php/topic,103584.msg1096585.html#msg1096585
    • Newman Family Vlogs
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #958 on: March 01, 2011, 06:40:27 am »
Hi calamity, does your driver work with Windows XP 64 bit?

bitbytebit, I tried your distro but had some problems. I'll be back to that when I have more time.

wtf. i was JUST clicking on the thread to ask the same question. Get out of my head! (:


I tried the driver on my Xp64 cab about 50 minutes ago; did an 'update driver' from the control panel, and it booted into 640x480x4bit and wouldn't change resolution. I wasn't sure if it was an issue with the driver or if I needed to do a full uninstall/reinstall.

rjpe

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 129
  • Last login:October 27, 2020, 04:52:42 pm
    • Perdigao's Arcade
Re: Switchres arcade monitor modeline generator and mame wrapper
« Reply #959 on: March 01, 2011, 06:48:57 am »
Yeah, very weird!   :)
BTW, the question about the driver in XP64 is for 9250 (ArcadeVGA2 agp and all the other ATI), the driver based in Catalyst 6.5.
The other one I'm almost sure it will work.