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: Led-wiz helper app Version 2.0.89 released - Faster  (Read 1514 times)

0 Members and 1 Guest are viewing this topic.

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!
Led-wiz helper app Version 2.0.89 released - Faster
« on: July 07, 2006, 12:24:31 am »
I did a little work on the not-so-swiftled, and made it a little swifter. The good news is; it's faster. The bad news is, it's not going to get much faster than this, at least for the non-autolighting commands. I still have a few things I can do to the autolighting stuff that should increase the speed. The speed will probably be increased by milliseconds though, not seconds. I'm mostly going to be fine tuning it just to streamline my code and get ready to begin the next round of feature enhancements.

You can download it here.

Other than fine tuning the speed a bit, there are no additional changes or feature enhancements in this version.

Raspberry Pi, AttractMode, and Skeletor enthusiast.

buks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 28, 2011, 06:43:25 pm
  • Squash the Sno-Bees !
    • Arcade Machine Construction
Re: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #1 on: July 07, 2006, 11:48:30 am »
Excellent news mahuti !

I'm presuming I can just drop the new version ontop of the old ? After backing it up first obviously ! And I'm also presuming that the mamewah command lines will be the same ?

Not really waiting for answers to those Qs as I will find out for myself pretty quickly !

I'll post my findings later - in fact I'll try to remember to use a stopwatch and time the old version V the new version at loading mamewah, running the same game and dropping back to mamewah and then exiting back to windows.

Later dood !

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: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #2 on: July 07, 2006, 12:14:41 pm »
a. You can just drop the .exe into the old folder.
b. command lines are the same.
c. don't bother stopwatching it. I can get millisecond speed comparisons if you're really interested, but I know for a fact that this version is faster.

The main speed increases here should be;

1. Running of command line parameters, XLEDWIZ, LLEDWIZ, LEDSOFF
2. Running .lwa files.

Random Notes: All of the autolighting stuff will still probably take just as long as it did. I have been continuing to work on streamlining the code for that however, and I've made some improvements. hmmmmm.... just now I thought of another shortcut. Maybe a good one. No matter what, though, this will probably always take a second or 2 to launch. With the new version of MAME supporting single game listouts for listxml, I'll be able to reduce the apps filesize, as well as increase features. Overall runtime probably won't get any better.

Future enhancement ideas....
I may create new commandline parameters or ini parameters to set how the app should autolight. For instance, set the option of lighting the controls & buttons, or just buttons. Not autolighting the controls will probably shave at least 1/2second - 1 second off of the overall time of autolighting. 

I'll be getting to single, double color leds, and support for multiple players soon. Still no support for multiple led-wizzes on the horizon I'm afraid. I looked at the DLL code, and I just have no idea where to start. And even if I did know where to start, it would take some time for me to figure out how to write an efficient set of commands to talk to both of the led-wizzes. This little app is about one step away from a full control panel viewer... complexity that I didn't set out to create.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

buks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 28, 2011, 06:43:25 pm
  • Squash the Sno-Bees !
    • Arcade Machine Construction
Re: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #3 on: July 07, 2006, 03:44:34 pm »
mahuti,

I've backed up my old ledwiz, unzipped the new one and copied over the previous ini folder. When I start mamewah (v162b10) nothing seems to happen - I lose the cursor (which I think is expected behaviour from MW) and windows just sits there doing nothinng (ie MW doesnt start).

I've tried logging out and rebooting but nothing made a difference.

So I decided to just test swiftled on the command line :

swiftled lledwiz - starts the ledwiz resident software

swiftled 3backsweep.lwa - A strange thing happens. The letters "Ple" appear in the middle of the screen in bright green.

swiftled xledwiz - nothing happens.

So, I removed ledwiz with a right click/close and then started it again with lledwiz. Thinking that trying to start an lwa file has *hagged something I immediately ran xledwiz but that then also did the "Ple" thing.

At this point setledwiz.exe is still running in the Task Manager.

I'm going to triple check the ini files but as you said I should be able to drop the exe file in with no other changes.

Any ideas ?

Buks
« Last Edit: July 07, 2006, 03:52:02 pm by buks »

buks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 28, 2011, 06:43:25 pm
  • Squash the Sno-Bees !
    • Arcade Machine Construction
Re: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #4 on: July 07, 2006, 03:53:03 pm »
oops - forgot to mention - lledwiz seems to definately be quicker than the previous version !

buks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 28, 2011, 06:43:25 pm
  • Squash the Sno-Bees !
    • Arcade Machine Construction
Re: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #5 on: July 07, 2006, 04:00:25 pm »
more testing :

firstly - AFAIK my ini files are fine.

When I get the "Ple" message (presumably "Please something or other ?") if I then kill off the swiftled.exe in Task Manager, then run the command again (lledwiz or xledwiz or an lwa file) - it works !

Weird huh ?

Buks

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: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #6 on: July 07, 2006, 05:32:34 pm »
weird. I'll look into it. I'm about 10 versions beyond the version we're talking about here already, so it may be a bug that I've already fixed.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

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: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #7 on: July 07, 2006, 09:45:46 pm »
I've updated the swiftled link above. The newest version, 2.0.99 hopefully corrects the bug you mentioned. I made one addition to the configuration.ini... added mamepath, but otherwise nothing has change.

Please read the WARNING in the readme if you plan to autolight trackball, joystick, dial controls.... you have to use the included mame.exe for that.. but only for that, autolighting the buttons doesn't require it. (why? because I'm using -listxml gamename parameter passed into mame to discover the control type... which is not supported by any version of mame other than the very, very, newest U version.... previously I just compiled this entire mame version into my app, but I took it out to save load time & file size)

I haven't extensively tested this newest version, but in a number of instances, it worked just fine. Please let me know if you have difficulties. I've been really streamlining the code, and some of it's getting portable enough now that it's reducing the time I need to add new features, or to correct bugs.
Raspberry Pi, AttractMode, and Skeletor enthusiast.

buks

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 238
  • Last login:January 28, 2011, 06:43:25 pm
  • Squash the Sno-Bees !
    • Arcade Machine Construction
Re: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #8 on: July 08, 2006, 04:27:11 pm »
mahuti,

As usual you are right there with the solution !

Mamewah loads now as do games, lights etc.

Much quicker going from swiftled attract lighting to powermame attract lighting.

Still pretty slow exiting a game and going back to mamewah (although the mamewah menus appear quickly theres a "freeze" until the buttons light up again - about 20 seconds in total). I did only test this once though ! But only because I wanted you to know you'd fixed my problems !!!!


NOTE : I have not tested the included build of mame as I use powermame. But heres a question - if swiftled does all the attract mode stuff AND can light controls (as per powermame) - does this mean I dont need powermame ? I only ask cos thats all I user pmame for - lattract mode lighting and control lighting. I'm not too bothered about having the controls spoken to me (I'm not a huge fan of any of the voices as they aren't quite good enough IMOHO). So does swiftled light the controls as soon as the game loads ? Or does it do what pmame does and run attarct mode lights and only lights the controls when a coin is inserted (the pmame coin flash sequence is pretty cool actually).


BIG BIG BIG thanks for this mahuti !

Buks

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: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #9 on: July 08, 2006, 11:12:33 pm »
20 seconds. Hm, that's a lot. It takes a few seconds here... not 20. Hm. It must be looking for something & not finding it... I'll run some tests while "missing" stuff and see what happens. 

You don't have to use the included build of mame to actually play mame. It's only there to read out whether a game uses a 2way, 4way, 8way joystick, trackball or spinner. You can set the mamepath to it, which will allow the autolighting to check the control types.... it doesn't do anything else.

Re: Powermame.

Powermame lighting features
1. Responds to in-game lighting events... currently only for a few games AFAIK.
2. lights the controls after a coin is input
3. Supports multiple led-wizes

Swiftled lighting features
1. Autolights the controls based on YOUR CFG setup. If you have not configured a game using the tab menu, this will not autolight the controls. It only works on games that have CFG files associated with them. EVENTUALLY it will read the listxml output of mame and the default.cfg file to autolight, but it does not currently.
2.Swiftled does the autolighting at startup, no attract mode. This can also be used without actually activating mame... to light up controls that a game will use... kind of like a control panel viewer, but with lights.
3. Swiftled will also run .lwa files

It's similar to some of powermame's lighting features, but not better. Powermame has more features that are already fully formed, and it supports multiple led wizes. Powermame also supports multiple players, swiftled does not (yet)
Raspberry Pi, AttractMode, and Skeletor enthusiast.

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: Led-wiz helper app Version 2.0.89 released - Faster
« Reply #10 on: July 11, 2006, 12:31:13 pm »
Started work last night on a major rewrite to accomodate the default.cfg, much cleaner, shorter code, support for multiple players and single or dual color leds. I got about 1/2 done. Maybe I'll have some time tonight to get the rest done. Either way, it'll be at least a week before I get it done, tested & working, and released... if I can keep my progress up.

Really happy with the progress I've made, and all in all, the code feels much better.
Raspberry Pi, AttractMode, and Skeletor enthusiast.