Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

I just installed my LEDWiz and RGB LED I think I everything setup ok in the pluggin congiuration but my player 1 button 1 is not lighting up when I'm scrolling through the games list my other 5 are working perfect and button 1 is lighting up white on the main GameEx screen when all the buttons are lit up but as soon as I go into the list of mame games it stops working completely

Is there something obvious that could be cause this? I've checked everything I can think of... in the configuration utility red, green and blue are set correctly and the button is enabled

Cheers

Stu

Posted

I switched buttons 1 and 2 around in the pluggin and now the left button lights up and the middle button (player 1 button 1) that doesn't light up when scrolling through the games list so I don't think this is a hardware issue

Is there something in your pluggin headkaze that could be causing it to ignore player 1 button 1 when using the colors.ini option?

Thanks

Stu

Posted

Man I'm getting alot of problems with the forum lately.

I lost my last post which was basically that I will be working on the plugin again soon so I will need testers to help me. I'm not entirely sure what your problem could be, but it could be the cfg code I added to the more recent versions. Can you try moving the files in "<MameFolder>\cfg" to some temp folder and try it again. It could be a cfg file screwing things up as I took a few guesses on how they worked.

Posted

Removing the CGF folder worked treat thanks headkaze

I've another problem for you :)

I previously only had 1 rgb LEG which I'd got just to have a play about with and I had it set up nicely using an AHK script that while I playing a console game there would be an auto exit timer running in the background and if I didn't insert money in my arcade then the game would close automatically, I was using the LED as a warning light so it would be red when you had less than a min, yellow when you had less than 2 mins and green if you had over 2 mins.... my problem is now that I'm using your pluggin my script isn't changing my origional LED

I'm trying to control the LED using LWSend.exe along with the a command like LWSend.exe LWZ-SB1:4... are you somehow forcing the LEDWiz to ignore me :) Is there anyway I can send a command to your pluggin to tell it to change an LED?

Thanks

Stu

Posted

Back to my first problem headkaze (player 1 button 1 not lighting up)...

I hadn't realised earlier that the cfg folder was where the MAME custom controls where held, I only realised it after renaming the directory and trying to play a few games and while all the lights were working all my controls now were not working :(

I don't use the default MAME controls as I was having lots of problems with other emulators and the ctrl and alt keys and this would now appear to be the source of my problem.

With alot of playing about I've discovered that the problem seems to be that I have button 1 set to keyboard key V it seems if I set that button to any other key in the MAME default.ini config and in your pluggin config the button lights up as it should in GameEx

Can anyone else confirm this?

I really don't want to have to change this button to a different key as I have all my emulators and scripts set to use V even my monitor marquee has the button shown as V :(

Stu

Posted

This is exactly what I need you for! I need to find my bug in the cfg parser, so I need the cfg file that is causing the button not to light up. This is why I asked you to backup the cfg folder and test it. Now I need to find the cfg file that is causing it to fail. If you can isolate which one is causing the problem and post it as an attachment here please.

First thing to try is removing all cfg files from the cfg folder except default.cfg. See if that is the one causing the problem, I have a feeling it is.

Posted
This is exactly what I need you for! I need to find my bug in the cfg parser, so I need the cfg file that is causing the button not to light up. This is why I asked you to backup the cfg folder and test it. Now I need to find the cfg file that is causing it to fail. If you can isolate which one is causing the problem and post it as an attachment here please.

First thing to try is removing all cfg files from the cfg folder except default.cfg. See if that is the one causing the problem, I have a feeling it is.

I should've said that I have already worked out the ini that was causing the trouble, it was the default.ini thats how I ended up finding that it was V that was the problem... at first I thought your parser was ignoring the first button entry in the default.ini but after a few tests swapping buttons about in the ini I realised that wasn't the case so then I started lookin at the keys being used and discovered if I edit the ini and set P1_BUTTON1's KEYCODE to anything apart from V and then change the keycode in you config everything works

Stu

Posted
Can you please post it here so I can take a look at it. And it's default.cfg not default.ini isn't it?

yeah it's .cfg not .ini sorry

<?xml version="1.0"?>
<!-- This file is autogenerated; comments and unknown tags will be stripped -->
<mameconfig version="10">
<system name="default">
<input>
<port type="P1_JOYSTICK_UP">
<newseq type="standard">
KEYCODE_UP OR JOYCODE_1_UP JOYCODE_1_BUTTON13
</newseq>
</port>
<port type="P1_JOYSTICK_DOWN">
<newseq type="standard">
KEYCODE_DOWN OR JOYCODE_1_DOWN JOYCODE_1_BUTTON15
</newseq>
</port>
<port type="P1_JOYSTICK_LEFT">
<newseq type="standard">
KEYCODE_LEFT OR JOYCODE_1_LEFT JOYCODE_1_BUTTON16
</newseq>
</port>
<port type="P1_JOYSTICK_RIGHT">
<newseq type="standard">
KEYCODE_RIGHT OR JOYCODE_1_RIGHT JOYCODE_1_BUTTON14
</newseq>
</port>
<port type="P1_BUTTON1">
<newseq type="standard">
KEYCODE_V OR MOUSECODE_1_BUTTON1 OR JOYCODE_1_BUTTON3
</newseq>
</port>
<port type="P1_BUTTON2">
<newseq type="standard">
KEYCODE_B OR JOYCODE_1_BUTTON2
</newseq>
</port>
<port type="P1_BUTTON3">
<newseq type="standard">
KEYCODE_N
</newseq>
</port>
<port type="P1_BUTTON4">
<newseq type="standard">
KEYCODE_C
</newseq>
</port>
<port type="P1_BUTTON5">
<newseq type="standard">
KEYCODE_Z
</newseq>
</port>
<port type="P2_BUTTON5">
<newseq type="standard">
KEYCODE_I
</newseq>
</port>
<port type="P2_BUTTON6">
<newseq type="standard">
KEYCODE_K
</newseq>
</port>
<port type="START2">
<newseq type="standard">
KEYCODE_2
</newseq>
</port>
<port type="COIN3">
<newseq type="standard">
NONE
</newseq>
</port>
<port type="COIN4">
<newseq type="standard">
NONE
</newseq>
</port>
<port type="UI_SHOW_GFX">
<newseq type="standard">
KEYCODE_F1
</newseq>
</port>
<port type="UI_SELECT">
<newseq type="standard">
KEYCODE_V
</newseq>
</port>
<port type="UI_TOGGLE_CROSSHAIR">
<newseq type="standard">
KEYCODE_F4
</newseq>
</port>
</input>
</system>
</mameconfig>

I've also tried changing it so that it only lists 1 control eg.

<port type="P1_BUTTON1">

<newseq type="standard">

KEYCODE_V

</newseq>

</port

but it didn't make any difference

Stu

Posted

I've found myself a work around for the meantime... I have my LEDWiz wired so that player 2's buttons are wired in the same output's as player 1's so they both light at the same time so I edited the color.ini and swapped all the P1_BUTTON1 with P2_BUTTON1 and vice versa then in your config I enable player 2 button1 and set it to KEYCODE_A

It's not ideal but it works :)

Stu

Posted

I think it might be because you have two keys mapped to KEYCODE_V. Try changing..

<port type="UI_SELECT">
<newseq type="standard">
KEYCODE_V
</newseq>
</port>

To some other key. Let me know how you go.

Posted
I think it might be because you have two keys mapped to KEYCODE_V. Try changing..

<port type="UI_SELECT">
<newseq type="standard">
KEYCODE_V
</newseq>
</port>

To some other key. Let me know how you go.

Yeah that was the problem headkaze cheers, any idea why my timmer script isn't working alongside your pluggin?

What is your pluggin written in, VB or C? I'd like to see how your communicating with the LEDWiz but VB is all I can program with and even then I wouldn't say I know much about it

Stu

Posted

The problem is you can't have two apps communicating to the LEDWiz at the same time. It is how the dll was designed by MikeQ, and unfortunately he won't release the source for it.

I have made an SDK for it which includes VB6 example source. You can download it from here

Posted
The problem is you can't have two apps communicating to the LEDWiz at the same time. It is how the dll was designed by MikeQ, and unfortunately he won't release the source for it.

I have made an SDK for it which includes VB6 example source. You can download it from here

I took a blast at the SDK there, not really sure exactly what I was doing but I managed to get the lights lighting up via .net :) I'm no better off though, I thought I could make a few exe's that I could then call from my Timmer AHK script to change the lights with without interfering with yours but when my light lights up then your's all now go out :(

Is there any chance I could try and incorparate my script into your pluggin code or is your code top secret :) Or do you know if there is anyway of getting the current status of the outputs so that I could change my light and then set your's to the way they were?

Cheers

Stu

Posted

The other option if you were feeling generous :wub: would be for you to take a look at my Timmer script and see if you thought you could incorporate it into a pluggin without too much hassle... basically if you remember the old SNES arcade games that let you play the likes of FZero and Mario but instead of a set number of lives per credit you got a time limit and to play on you had to insert more money well I've recreated this for all the console emulators... it stops my mates hogging my cabinet as they have to keep paying up :)

Don't worry if your not interested I'm sure you've plenty of other things to keep you busy :)

Stu

Guest
This topic is now closed to further replies.
×
×
  • Create New...