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: Johnny 5 and LedWiz  (Read 35428 times)

0 Members and 1 Guest are viewing this topic.

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: Johnny 5 and LedWiz
« Reply #40 on: July 22, 2006, 06:44:13 am »
Why will there be no new updates to Powermame then?

mahuti

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 2757
  • Last login:September 18, 2024, 01:16:22 pm
  • I dare anything! I am Skeletor!
Re: Johnny 5 and LedWiz
« Reply #41 on: July 22, 2006, 12:04:51 pm »
Well, you'd have to ask MikeQ about that. I think it's because he could never get any additional help developing PowerMAME. There's plenty of interest, but not enough programmers.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #42 on: July 22, 2006, 03:31:42 pm »
Yeah, unfortunately I saw that one coming as soon as pmame was released.  Programming for mame is hard, and time consuming.  It's hard to keep a custom build updated. 

Regardless, handling custom light layouts inside mame was never a good idea anyway.... it can easily be done externally.  Mame broadcasts the rom name when it launches a game for pete's sake.. all you have to do is monitor mame via an external app. 


Now controlling hardware via a mame driver (qbert knocker ,ect ) was a good idea but with the exception of qbert, nothing was ever done with it. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #43 on: July 24, 2006, 09:48:53 pm »
Got my ledwiz today.  I haven't started coding yet as I'm still learning the commands.  The suggested software is a tad odd. 

I wrote a tiny little app to mix colors with.  It'll have to be calibrated (as monitor pixels don't have the same intensity as the leds) but it is already a decent tool to get rgb color values from. Nothing fancy, just a color swatch box and three sliders to adjust the rgb value.  I haven't seen anything like that for the hardware yet, so I thought I'd mention it.  I'll release it once It's a little more user friendly.  I can also add a "pick a color" box if you guys want that just takes the colors you can pick from your typical windows app and converts their 255 color scale to 48. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #44 on: July 26, 2006, 05:39:39 pm »
I finished up that proof of concept app with the color picker. 

You can get it here.

It doesn't do anything particularly useful, but it was mainly a test to see how well I could get the hardware to respond.  What it does is turn off the first bank of lights, and then sets light 1 and 2 to the colors you choose.  Of course it assumes that both light 1 and 2 are rgb lights and that they are installed in the proper order (pin1=r, pin2=g, pin3=b ect...)

The rapid transmisson test is what I need some feedback on though... when you click it your first two buttons should quickly blink to random colors. Please let me know if this is not the result, thanks. 


Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #45 on: August 04, 2006, 12:37:08 am »
Nobody told me that the file I uploaded didn't include the ocx (oops). 

[ Here ] is a new version that does some nifty test stuff.  If you want to see something especially cool, load the program, click on the mame ambilight button once, leave it running and load up mame.  The lights will match the color of the screen!
« Last Edit: August 04, 2006, 01:25:40 am by Howard_Casto »

mr.Curmudgeon

  • It's going to hurt your brain. A lot.
  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 3833
  • Last login:October 11, 2021, 07:15:49 pm
  • Huzzah!
Re: Johnny 5 and LedWiz
« Reply #46 on: August 09, 2006, 01:27:16 am »
Granted, I might be "special", but I just downloaded the app and I get a Run-time error '76' : Path not found when I try to do anything. None of the LED's light up at all.

Just fyi.


mrC

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #47 on: August 09, 2006, 03:29:06 am »
Of course make sure you have vb6 runtime files installed.  (if you are running xp you do)

Not sure what that would mean considering the program doesn't open or close anything. 

*Sigh*  This is why I down right refuse to use ocx's for anything anymore, with a dll you can just drop it into the folder and the app has sense enough to look for it.  With ocx's, not so much. 

Try this:

copy the ledwizm.ocx to your system32 folder

now open a command prompt, navigate to that folder and type:

regsvr32.exe ledwizm.ocx


If that doesn't fix it (or even if it does) let me know. 

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #48 on: August 09, 2006, 09:28:09 am »
Your program doesn't look like it is even using the OCX, because it executes fine on a system without the OCX installed.  It gets an error only when the a slider is released.  You have a different problem here.

The error you get with an unregistered or missing OCX looks very different.  The program would error immediately at run-rime in this event with the following;


« Last Edit: August 09, 2006, 10:13:34 am by RandyT »

horseboy

  • Only Saint has those powers.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1562
  • Last login:March 07, 2021, 02:19:14 pm
  • With my last breath, I curse Zoidberg!
Re: Johnny 5 and LedWiz
« Reply #49 on: August 09, 2006, 12:26:15 pm »
Howard, I posted this over in the J5 wip thread, but I don't know how often you check it so I'll repost it here for ya.

I had a quickie question for ya. You mentioned that you were looking into making a colors.ini and all of that to display the original color of the buttons for each game. That sound like a great idea and everything (a crapload of work, but a good idea nonetheless), but is that going to make it difficult for the single color users? For instance, I know that McCoy has all red translucents on his cp, so the rgb stuff is not needed. I plan on single colors as well. So i guess to shorten up a long question... will we be able to easily light up single color leds with the correct controls?


Also on a side note... how is the dualie thing going? I am very interested in that. Even though I am going to have the proper buttons lit on my cp, I was planning on having a PS1 screen w/J5 showing the labels and everything. I think dualie is more important to me than the led wiz deal (although, my dream cab has both up and running).


Quote from: saint
saint is all powerful.

Apparently he is.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #50 on: August 09, 2006, 04:20:14 pm »
Yeah thanks guys I'll look into it.  This is just a test proggie anyway but I'm curious to find the error. 


Randy in theory ocx's are components, not registered components meaning that you shouldn't even have to include them.  Unfortunately, for whatever reason some you do, some you just have to drop into a folder, and some you have to register.  It think it's because there are some crazy things you can do like put a dll inside a ocx ect... That's why they aren't as popular as they were.  Yours does something pretty simple though so it should be internalized and work fine. 

I don't want you to misunderstand.  I wasn't complaining about the ocx itself, just the ocx format in general. 


(Howard looks at his code.)

Ok found it......  just a stray chdir in there from when I was testing.  I can take that out.  Take 3 I guess.  ;)


hb... i'll reply over at donkeyfly (I check it at least once a day). 

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #51 on: August 09, 2006, 04:50:37 pm »
Randy in theory ocx's are components, not registered components meaning that you shouldn't even have to include them.  Unfortunately, for whatever reason some you do, some you just have to drop into a folder, and some you have to register.  It think it's because there are some crazy things you can do like put a dll inside a ocx ect... That's why they aren't as popular as they were.  Yours does something pretty simple though so it should be internalized and work fine. 

Howard, If you find some way to internalize the OCX, be sure to tell me.  I've seen quite a few of them, and all were required to be present on the users system and registered via the the regsvr32 app.  You can call regsvr32 silently for automated installers or use a 3rd party DLL and do it from your own software, but to my knowledge, it is always necessary.

RandyT

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #52 on: August 10, 2006, 01:52:24 am »
Randy... just an update.... yours seems to be the type 2 variety. 

You don't have to register it, it just has to be present in either the application folder or your system folder.  It does have to be included though.  I'm gonna put mine in a res file so the user won't have to deal with it. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #53 on: August 10, 2006, 02:42:15 am »
Ok third times a charm...

[ Download ]


I also included a rather slapped-together readme.


MYX

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1527
  • Last login:September 18, 2020, 05:00:22 pm
  • Even Jesus loves Donkey Kong!
    • MYX Digital Blog
Re: Johnny 5 and LedWiz
« Reply #54 on: August 10, 2006, 10:33:53 am »
Hey Howard,
I have been on the PowerMAME band wagon for some time (with MAMEWah). I am sad to see PM die as it has so many great extras. Mike did some really cool work. I have been watching for alternatives to eventually switch to and I have been reading about your stuff for a while. Thank you for picking up interest in adding the GGG functionality to your FE.

I am not a programmer so please forgive the naivity of the following questions. I pick things up pretty darned fast, but alot goes right over my head. Ok, I do not know where MAME stops and the FE begins. I would love to see the extras that  PM offers available in the FE world if the MAME side is too hard to keep up with. But again I do not know what the limits of the FE are. I am a GGG user for interfaces, lighting, and joys, so obviously I sit in the GGG camp and will cheer on the guy who is making progress happen. The 2 majors for me are the LEDwiz functionality and the auto DRS selection per game.

1. Are the PM extras like running a LWA when there is a coin up, or qbert knocker, something that the FE can handle or is this strictly MAME?

2. Is Auto DRS select (for the 49ways) doable with the FE? Is it like the LEDWiz in the fact that MAME broadcasts the game that it is running and you can use that to also select which DRS mode to use? In PM in the user interface (within MAME) you can change this. I understand that to be a MAME thing, not a FE thing.

3. Which I should have asked before 2, but are you considering adding the Auto DRS ability, if it is possible?

Thanks Howard

M    Y    X

BLACKOUT  - Finally rewritten - http://blog.myxdigital.com/
Original BLACKOUT thread - http://forum.arcadecontrols.com/index.php?topic=48239.0

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #55 on: August 10, 2006, 11:01:05 am »
Ok, worked this time.

Here's something you may find interesting (I did.)  It appears that Windows (2K at least) will automatically register an OCX if it is in the same folder as the executable that uses it and that executable is run. 

After I ran any program that made use of the OCX, with it present in the same folder, it was ready to use by any program on the system that required it.  To make the OCX inaccessible again, I had to use regsvr's /u function and feed it the path to the OCX file that was first found by the system.

BTW, the color picker is pretty cool.  But if one were going to add a color picker to a utility, I would suggest the ability for the user to "offset" each of the 3 primary colors by a set value to account for variations in RGB LED's.  Probably a "White-point" setting that is carried through the rest (I know this is just a start, it's just a suggestion in case you, or others haven't considered it.)

RandyT


horseboy

  • Only Saint has those powers.
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1562
  • Last login:March 07, 2021, 02:19:14 pm
  • With my last breath, I curse Zoidberg!
Re: Johnny 5 and LedWiz
« Reply #56 on: August 10, 2006, 01:23:52 pm »

I am not a programmer so please forgive the naivity of the following questions. I pick things up pretty darned fast, but alot goes right over my head. Ok, I do not know where MAME stops and the FE begins. I would love to see the extras that  PM offers available in the FE world if the MAME side is too hard to keep up with. But again I do not know what the limits of the FE are. I am a GGG user for interfaces, lighting, and joys, so obviously I sit in the GGG camp and will cheer on the guy who is making progress happen. The 2 majors for me are the LEDwiz functionality and the auto DRS selection per game.


Howard's FE is Dragon King, and it has nothing to do with the project at hand. This project has to do with adding LedWiz support to Johnny 5. J5 is an external app used to view the controls of a particular game. Basically it shows the layout of your cp with each button labeled with its corresponding action. Some poeple use it to show the buttons on screen before the game loads. Others have set it up show up when the game is paused. Howard is also working on dual screen functionality so that it can be displayed at all times on a second display (ie. PSone screen).

So, when I figured out PowerMame was dead, I wanted a LedWiz solution that could be used with any version of mame (and possibly other emulators). Since J5 knew what buttons were used in a game, I thought (having no programming skills, pretty much just hoping) that it would be relatively easy to implement LedWiz support into J5. I started this thread to see what Howard thought. He thought it was a good idea, and here we are...

On a side note Youki has just received a LedWiz and is planning on implementing functionality into AtomicFE, so you may want to ask him what he plans on doing with it.


Quote from: saint
saint is all powerful.

Apparently he is.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #57 on: August 10, 2006, 02:28:03 pm »
Just to clarify... I might... keyword might add ledwiz support to dk in the future.  The thing is I'm not sure what a fe has to do with cp lights. I suppose I could have lights to go with skins, but right now it seems too much form and not enough function for my tastes.

However, as Aaron Giles seems to be on the output bandwagon (read the qbert thread in this forum) powrmame might not be needed anymore.  It looks like we might finally get proper outputs in mame, meaning any crappy old third-party app can set lights and stuff based on real-game outputs. I am working on such an app as well, but I'm not going to bother starting until the mame stuff is worked out. 

Sirp has a utility he made that'll do the 49 way stuff.  You can find it over at fe.donkeyfly.com in the idvt forum. 


Randy:

Yeah the color picker isn't calibrated yet.  I haven't started on that part because it'll be frikkin hard to implement. It'll probably involve me taking the sliders to certain points and looking at the real world results on some ice buttons. 


Yeah I found out about the ocx thing too while I was trying to figure out why the heck the thing was working without a ocx.  The dropping it in the folder thing always worked, even on 98.... the thing about registering the ocx automatically kinda threw me for a loop.  I'm not sure why it is done this way, seems to cause more problems than the old method.  It explains why some applications seemingly don't need the components though.  I've downloaded so many examples over the years the ocx's a random program might need are probably already on my drive somewhere. 



RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #58 on: August 10, 2006, 04:10:25 pm »
Sirp has a utility he made that'll do the 49 way stuff.  You can find it over at fe.donkeyfly.com in the idvt forum. 

BTW, I think the ActiveX control is going to include GP-Wiz49 switching capabilities in the next rev.  Might as well have one tool that does it all.

Quote
Yeah I found out about the ocx thing too while I was trying to figure out why the heck the thing was working without a ocx.  The dropping it in the folder thing always worked, even on 98.... the thing about registering the ocx automatically kinda threw me for a loop.  I'm not sure why it is done this way, seems to cause more problems than the old method.  It explains why some applications seemingly don't need the components though.  I've downloaded so many examples over the years the ocx's a random program might need are probably already on my drive somewhere. 

Hehe, you must have forgotten about it then.  That was one of the things (the ability to drop it in the same folder as the app) you just said you disliked about an OCX compared to a DLL :)

I've been told that an OCX is really just a more advanced DLL.  This is probably part of what makes it "more advanced".  It only makes sense to make the OCX available to the entire system once it is used by an application that requires it.  Just the OS thinking for the user again, I guess.  In this case, I think it's a "good thing."

Quote
I'm gonna put mine in a res file so the user won't have to deal with it.

BTW, I looked through the resource file stuff and didn't see any way to add an OCX.  Are you sure that's possible?  Or are you talking about something else?

RandyT

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #59 on: August 10, 2006, 04:45:56 pm »
It's an old trick... doesn't always work. 

You put in in a res file, then on startup of the app you check to see if the ocx exists outside of the app somewhere (check the app path and the system folders) if not you open a file (named after the ocx of course) for binary output, use loadresdata to get the ocx contained in the res file as binary data, "put" it to the file you created, and poof, the ocx is installed. 

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #60 on: August 10, 2006, 05:09:55 pm »

If the OCX isn't in the folder with the app, then the application is going to error out before it makes it that far.  Also, the size of the file has to be less than 64k to use the loadresdata function, so that will limit things as well. 

Am I missing something?

RandyT

loadman

  • Wiki Contributor
  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Re: Johnny 5 and LedWiz
« Reply #61 on: August 10, 2006, 07:13:58 pm »
Great to see you guys working together   ;)

Quote
Just to clarify... I might... keyword might add ledwiz support to dk in the future.  The thing is I'm not sure what a fe has to do with cp lights. I suppose I could have lights to go with skins, but right now it seems too much form and not enough function for my tastes.

FYI.
For DK 'function wise' you may want to do something similar to MaLa where you have the option of having the appropriate buttons light up when you highlight a game
and
have the added 'option' of leaving the appropriate Leds on while Mame (or other emu) is running. (for those of us who don't want/need J5 or similar tool)

And as for 'form' ....'attract mode' while the CAB is sitting there doing nothing is pretty sexy.

I love that stuff






Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #62 on: August 10, 2006, 07:22:11 pm »

If the OCX isn't in the folder with the app, then the application is going to error out before it makes it that far.  Also, the size of the file has to be less than 64k to use the loadresdata function, so that will limit things as well. 

Am I missing something?

RandyT


Yeah the 64k limit is the part about it not always working.

A program doesn't error out until the ocx in question is actually called upon, unless it's a form control (which yours isn't).  As long as you do the check before you call the ocx of anything, you are good to go.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #63 on: August 10, 2006, 10:08:57 pm »
A program doesn't error out until the ocx in question is actually called upon, unless it's a form control (which yours isn't).  As long as you do the check before you call the ocx of anything, you are good to go.

Ahh, yes.  Should have figured that one out myself by trying it with a program that doesn't call the control immediately.  :P

I suppose the 64k limit can be overcome as well if one were to write a little utility to split up files into 64k chunks and then re-assemble them afterwards.  Seems like too much work to hide a file though. 

Still an interesting item to know for future reference.

RandyT


Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #64 on: August 10, 2006, 10:13:19 pm »
Well it's not so much for hiding the files rather than managing the files, especially if you have a bunch of em.  Also it eliminates a lot of user error.  If your user moves the exe and forgets to move the rest of the stuff the function will re-generate it, so they can delete that original folder without error. 

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Johnny 5 and LedWiz
« Reply #65 on: August 11, 2006, 09:29:39 am »
yep, these problem do the dll not have. They dosen
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7013
  • Last login:June 20, 2025, 02:19:52 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re: Johnny 5 and LedWiz
« Reply #66 on: August 11, 2006, 09:43:06 am »
yep, these problem do the dll not have. They dosen

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Johnny 5 and LedWiz
« Reply #67 on: August 11, 2006, 10:07:03 am »
a DLL is just a function library with bunch of functions. You need to call the function by you self, like it was a regular function.

Now I leave here so I dosne
« Last Edit: August 11, 2006, 10:54:19 am by Space Fractal / Denmark »
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

mr.Curmudgeon

  • It's going to hurt your brain. A lot.
  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 3833
  • Last login:October 11, 2021, 07:15:49 pm
  • Huzzah!
Re: Johnny 5 and LedWiz
« Reply #68 on: August 11, 2006, 09:20:58 pm »
Ok third times a charm...

Yup. Worked.. pretty neat...can't wait for a stand-alone LED lighty prog. Hopefully one that will allow the lights to respond to music/sound ect., as well
as various mame signals. I understand the MAME part needs to be worked out first, but the possibilities are exciting all the same.

Tried the ambient light setting, didn't work with Mame32. I assume it's for regular ole' mame?


mrC

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #69 on: August 14, 2006, 12:58:41 am »
Ok guys... back on topic, the j5 beta is out, please look here:

http://fe.donkeyfly.com/forum/index.php?topic=119.255

It isn't on my site yet because I didn't spend a lot of time packaging it up and I'm sure I've forgotten something, be it files, docs or otherwise. Once we are sure everything is there I will release it as the official beta. 

Oh one important note: For users that do NOT intend to use the new light functionality, please delete or rename your lights.ini in the lights folder as well as your default.clf  There isn't any point in wasting resources to light something that isn't there.



Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 and LedWiz
« Reply #70 on: August 26, 2006, 08:04:56 pm »
Ok, I do not know where MAME stops and the FE begins.
You really have three different things that can be going on.  (Without knowing if you are familiar with the previous version of Johnny5, etc).

1)  You can modify MAME so the it sets DRS modes correctly, sets LEDwiz lights, calls Johnny5 on pause, etc.  This is where MikeQ was going with PowerMAME, but it's pretty difficult even with an app that isn't re-written every six months or less.

2)  You can setup your frontend so that along with launching a game, it also sets the correct DRS modes, or monitors for certain keypresses, etc.  (GameEx does a little of this, but most FE's don't do this.).

3)  You can use third party software that runs in the background and does certain things when certain keys are pressed.  These can be launched by (most) frontends prior to calling MAME.  (Howard C's AutoHotKey script for Johnny 5 and SirPoonga's DRS modes software would be examples of this.)
Quote
1. Are the PM extras like running a LWA when there is a coin up, or qbert knocker, something that the FE can handle or is this strictly MAME?
Typically neither.  MAME normally would not do this until MikeQ modified it.  Most FE's are not going to support it.  What you will likely see is Aaron Giles seems to be pretty determined to fix the output (LED's (specifically 7-segment LED's), lighting in Beatmania, possibly force-feedback down the line, Q-bert knockers, lighting events (Weapons Van light in spyhunter)) side of MAME.

When this happens, it will be easier to write specific third party software to watch for these event triggers from MAME and act on them.

You can see this in 0.108 with the keyboard LED's which are now run off an external program rather than from inside MAME.
Quote
2. Is Auto DRS select (for the 49ways) doable with the FE?
Yes - with GameEx, it can be done inside the frontend, however it is usually done outside the FE with SirPoonga's app.  See http://www.mameworld.net/tigerheli/set49mode/
Quote
Is it like the LEDWiz in the fact that MAME broadcasts the game that it is running and you can use that to also select which DRS mode to use?
No, it is not quite like the LEDWiz in that rather than having SirP's app running constantly and listening for MAME to launch so it can get the rom name, you simply call SirP's app and pass it the rom name when your FE launches a game.
Quote
In PM in the user interface (within MAME) you can change this. I understand that to be a MAME thing, not a FE
thing.
In PM it is a MAME thing, but that is the only time it would be and only b/c MikeQ coded it that way.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #71 on: August 26, 2006, 09:17:47 pm »
Continuing what tiger already answered:

The beta of j5 I released has a -justlight tag.  What this means is a fe can launch it prior to mame and set the lights for you. I don't have it setup to run in the background because j5 takes a considerable amount of resources when loading a entry and it's a tad slow starting up. 


Aaron's output method works pretty well.  I've already started on an app to make use of the outputs but I'm having trouble retriving the id names.  Once that is done I will make a resident app. I've actually got a little test app up and running, but since you guys probably need the outputs labeled "Led1" instead of "12345" I think I better wait to release it.  ;)  This kind of stuff doesn't have anything to do with j5 so it will never be included in j5.  J5 is about controls, not controlling do-dads.  The only reason I'm adding light support is because it's an alternative way to label buttons, which falls into J5's scope. 

There are a ton of outputs already supported initially, so this is a exciting turn of events.  Btw... the force-feedback support is not a problem. I primarily use dx8 to write stuff anymore and it has very good ff support.  it's ony a matter of linking a mame trigger to a ff-effect or directly streaming raw data into the motors. 

Timoe

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1662
  • Last login:July 14, 2009, 09:50:12 am
  • Team-Oh-tAy-Oh
    • Rattlin' Trash
Re: Johnny 5 and LedWiz
« Reply #72 on: August 27, 2006, 10:45:33 am »
I'm getting a runtime error 399.  the "Ledwizm.ocx is missing or not found" but I have thie file in both my J5 and Ledwiz folders.

??

Any ideas?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #73 on: August 27, 2006, 05:25:56 pm »
Are you running 98?  98 might require you to register the files.  I can help you with that if you want. 

I don't reccomend running 98 on a cabinet anymore which is why I didn't mention it. 

Timoe

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1662
  • Last login:July 14, 2009, 09:50:12 am
  • Team-Oh-tAy-Oh
    • Rattlin' Trash
Re: Johnny 5 and LedWiz
« Reply #74 on: August 27, 2006, 06:07:08 pm »
Win XP Pro, SP2



Could it be that when doing minor tweaks to XP from the suggestions at this forum that I have disabled some process and that is causing my problem here? 

Maybe this is why I'm also having problems with Zinc?
« Last Edit: August 27, 2006, 06:38:56 pm by Timoe »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #75 on: August 28, 2006, 02:02:14 pm »
It's very possible.

Try this and see if it helps.

1.  Copy those files into your sytem32 folder.

2.  Open up a command prompt, navigate to that folder and type:

regsvr32.exe ledwizm.ocx

Xp is supposed to auto-register, but if you've done tweaks then it probably doesn't anymore. 

Please allow me to complain for a sec.  ;)

 :angry:
[rant]

I completely understand the fact that people running mame cabs want to stream-line things, and I do it as well.  With that being said, due to dependancies of helper apps there are only about three things you can tweak safely in xp.  1.  Turn on disk-backup, 2.  Turn off themes.  3.  Turn off dr.  watson. 

Everything else is required.

[/rant]

Ok I'm done.  :)

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: Johnny 5 and LedWiz
« Reply #76 on: August 28, 2006, 02:21:43 pm »
:angry:
[rant]

I completely understand the fact that people running mame cabs want to stream-line things, and I do it as well.  With that being said, due to dependancies of helper apps there are only about three things you can tweak safely in xp.  1.  Turn on disk-backup, 2.  Turn off themes.  3.  Turn off dr.  watson. 

Everything else is required.
[/rant]
I think you can also turn off System Restore and Disk Indexing Service which are the major resource hogs.  But in general I agree, I've followed Black Viper's guides more than once and had things fail b/c some process that usually wasn't required turned out to be required for some installation or program I discovered.
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #77 on: August 28, 2006, 02:29:16 pm »
By disk backup I meant system restore.  But yeah I forgot about indexing service. I was thinking that was off by default though.  Now I'm going to have to check. 

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Johnny 5 and LedWiz
« Reply #78 on: September 24, 2006, 05:17:51 pm »
BTW, the color picker is pretty cool.  But if one were going to add a color picker to a utility, I would suggest the ability for the user to "offset" each of the 3 primary colors by a set value to account for variations in RGB LED's.  Probably a "White-point" setting that is carried through the rest (I know this is just a start, it's just a suggestion in case you, or others haven't considered it.)

I have no idea if this will help, but a really simple way to create a professional colour picker is to just have a picturebox with a colour wheel that registers a mouse down event and uses GetPixel to read the RBG value. Attached is a colour wheel you could use. Not sure if it's what your after, but in general they are much easier to use than colour sliders.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Yesterday at 10:25:04 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Johnny 5 and LedWiz
« Reply #79 on: September 24, 2006, 08:17:32 pm »
That's not the issue.  I actually use a color wheel for one of my transition tests doing what you describe. 

The issue is that led colors are not the same as colors on your monitor.  As the color value is lowered on your pc, the color approaches black.  On your ice button, it first gets dimmer and then approaches white (the color of the button).  I don't think it'll ever get to the point that you can calibrate it exactly because of this, but your major arcade button colors could be mapped out and matched with the proper windows color picker swatches.