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: MalaLauncher not working  (Read 6042 times)

0 Members and 1 Guest are viewing this topic.

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
MalaLauncher not working
« on: September 28, 2008, 12:13:56 am »
After hours and hours of searching for something to load apps on startup without explorer.exe I found TheShanMan's MalaLauncher. :applaud:

I cant get it to do anything.  The readme says that I might have to put the msvc files in bot the mala folder or the plugins folder; Ive put them in both and no-go.  I dont have anything in the Plugins tab, I dont have any logfiles or errors.  Its as if I did nothing at all.

What Im actually trying to do is start CPWizard in resident mode when I shell to mala.

I tried this with the new mala106be and also 105.

TIA

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #1 on: September 28, 2008, 12:57:34 am »
Just to be sure, there is a file called malalauncher.mplugin in the plugins directory, right?

I've never checked this myself, but I'd guess the mala log file should show something about trying to load the plugin. Does it? If so, could you post what it says here?

Also, you could try putting some other plugin in the plugins directory and see if that plugin loads properly, and let me know about that too (if other plugins don't load then obviously that would be a mala issue, and maybe the mala log file would help with that, or someone else here could).
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

dungbeetle46

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 327
  • Last login:June 25, 2016, 07:27:47 pm
Re: MalaLauncher not working
« Reply #2 on: September 28, 2008, 09:09:49 am »
you dont need to set anything in mala, just install cpwizard, point all the inputs in cpwizard to your mame directorys.
now start mala
start a game and press p
the cpwizard menu will open
left control or P1 Button1 will select an option and escape will exit back to menu.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #3 on: September 28, 2008, 12:13:48 pm »
He's trying to get cpwizard to start at bootup with mala as the shell. That's why there is something to set up in mala: he wants to use malalauncher to start cpwizard since windows will only do it if explorer is the shell.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #4 on: September 28, 2008, 12:22:04 pm »
2008/09/28  09:18:03.53   Info: Starting MaLa 1.0.6.5
2008/09/28  09:18:03.54   Info: Check plugin directory: L:\Theme\plugins
2008/09/28  09:18:03.54   Info: Collecting event plugins (*.mplugin) in L:\Theme\plugins\
2008/09/28  09:18:03.57   Info: Found event plugin MaLaLauncher.mplugin
2008/09/28  09:18:03.57   Error: Could not load plugin: L:\Theme\plugins\MaLaLauncher.mplugin
2008/09/28  09:18:03.59   Info: Found event plugin MatureAlarm.mplugin
2008/09/28  09:18:03.64   Info: Event plugin MatureAlarm.mplugin loaded
2008/09/28  09:18:03.64   Info: Function: PluginName found
2008/09/28  09:18:03.64   Info: Function: PluginCopyright found

Please excuse my retarded paths, this is my test setup.

@dung - I have CPWizard running perfectly.  Im shelling to Mala so windows is unable to start things in the startup folder.  As it stands, I start the machine with MaLa, F4 out and start explorer.exe, start CPW minimized, then restart MaLa.  PITA!

Thx Shan

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #5 on: September 28, 2008, 05:09:54 pm »
An awesome tool for tracking problems like this down is called Process Monitor from www.sysinternals.com (it's a free download). If you could download that, and add an "exclude" filter "process name is not mala.exe" (otherwise you're going to log an ungodly amount of file accesses and other stuff). Then start mala and when it is done loading, go back to Process Monitor and turn off Capture Events from the file menu. You will probably have 10,000 or so lines of output (I have 17,000 from the run I just did). Then search for .mplugin. When you get to the malalauncher.mplugin line, look at the subsequent lines. There are probably are some lines regarding the msvc files that don't say SUCCESS. Could you select the whole range of lines starting with the first malalauncher.mplugin line all the way to where it looks like mala is moving on to something else (in my case I see it moves on to trying to load malakeyhook.dll). Copy those selected lines to the clipboard and post them here.

My bet is that the problem you're experiencing will be evident from these lines.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

dungbeetle46

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 327
  • Last login:June 25, 2016, 07:27:47 pm
Re: MalaLauncher not working
« Reply #6 on: September 28, 2008, 08:49:48 pm »
now I get what your trying to do

just been fooling with this and got it to work fine, I was just wondering if you have the .mplugin file in the plugins folder ie:mala/plugins  or is it where it unzipped to ie:mala/plugins/plugins because it doesnt work there.

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #7 on: September 28, 2008, 09:40:58 pm »

I think I got far enough, if not, let me know.  Im not good with understanding this stuff. ???


loadman

  • Moderator
  • 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: MalaLauncher not working
« Reply #8 on: September 28, 2008, 09:47:03 pm »
Just to be sure, there is a file called malalauncher.mplugin in the plugins directory, right?

I've never checked this myself, but I'd guess the mala log file should show something about trying to load the plugin. Does it? If so, could you post what it says here?

Also, you could try putting some other plugin in the plugins directory and see if that plugin loads properly, and let me know about that too (if other plugins don't load then obviously that would be a mala issue, and maybe the mala log file would help with that, or someone else here could).

FYI

When you experienced your 'out of focus' moments in the past.
- Are you using mouse/trackball?
- Did the layout contain videos?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #9 on: September 28, 2008, 09:55:54 pm »
Sorry, I realize now I didn't provide good enough info. If you could re-run the steps I provided, but after it captures all of that data, search for *.mplugin. That should appear on a line that says QueryDirectory. After that, you should find some references to malalauncher.mplugin. This is where mala is loading the plugin. There will be some lines that relate to windows trying to load dll's needed by the plugin, and it is here where I'm suspecting some errors will exist. What I see is mostly SUCCESS lines with a few NAME NOT FOUND lines. Let me provide you with the relevant lines from my run, so you can get a clearer picture of what I'm looking for (though yours will undoubtedly differ somewhat since you're having trouble).
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #10 on: September 28, 2008, 09:57:28 pm »
FYI

When you experienced your 'out of focus' moments in the past.
- Are you using mouse/trackball?
- Did the layout contain videos?

Loadman, this would appear to be quite a thread hijack! Did you post to the wrong thread or something? No idea how this relates to this thread.

:dizzy:
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #11 on: September 28, 2008, 10:00:18 pm »
loadman, You fixed it!  Super quick turnaround!

...not really  :o

loadman

  • Moderator
  • 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: MalaLauncher not working
« Reply #12 on: September 28, 2008, 10:02:07 pm »
FYI

When you experienced your 'out of focus' moments in the past.
- Are you using mouse/trackball?
- Did the layout contain videos?

Loadman, this would appear to be quite a thread hijack! Did you post to the wrong thread or something? No idea how this relates to this thread.

:dizzy:

Check out the name badge boy 'Moderator'  
Licensee to Hijack.. :laugh2:

(JOKE)

You are probably right. I was just thinking about your plug-in and why MaLa loses focus.

Sorry.  If you could give me some clues on how to get MaLa to loose focus on another thread that would b good. Alternativley I can send you a version of mala with more logging about when it attempts to gain focus so we can figure this one out  ;)

loadman, You fixed it!  Super quick turnaround!
...not really  :o
What did I fix?

« Last Edit: September 28, 2008, 10:54:05 pm by loadman »

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #13 on: September 28, 2008, 10:14:19 pm »
OK, heres the entire thing from load to exit.  This is my entire output filtering MaLa 106be.exe.   I looked for your specific line but couldnt quit find it.  Bear with me here...

51960 is where things get loaded, but theres no mention again til the 52633 area.

BTW: I rescanned this again so the number are different.

<edit>  uhhh, didnt attach.
« Last Edit: September 28, 2008, 10:48:09 pm by system01 »

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #14 on: September 28, 2008, 10:47:01 pm »
loadman, You fixed it!  Super quick turnaround!
...not really  :o
What did I fix?



oh, did I say TURNaraound?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #15 on: September 28, 2008, 10:59:26 pm »
OK, heres the entire thing from load to exit.  This is my entire output filtering MaLa 106be.exe.   I looked for your specific line but couldnt quit find it.  Bear with me here...

51960 is where things get loaded, but theres no mention again til the 52633 area.

BTW: I rescanned this again so the number are different.

<edit>  uhhh, didnt attach.

Hmmm. Are you sure you grabbed ALL the output? Did you select all the lines? It looks like there should be a lot more. If you did, maybe the filters are set to filter too much. If the output you provided really is all you saw in process monitor, maybe you could save your filters and post that?

Check out the name badge boy 'Moderator'  
Licensee to Hijack.. :laugh2:

(JOKE)

You are probably right. I was just thinking about your plug-in and why MaLa loses focus.

Sorry.  If you could give me some clues on how to get MaLa to loose focus on another thread that would b good. Alternativley I can send you a version of mala with more logging about when it attempts to gain focus so we can figure this one out  ;)

I'd be glad to help, but when I experienced the problem (prior to writing my focus plugin, which is an effective workaround for me), it was intermittent and uncommon enough to make it hard to figure out a way to reproduce it, or figure out the cause. If you have a build that will log relevant info, I'd be glad to turn off my plugin and see if I can get it to happen for you. I wouldn't be unhappy if I could stop using my plugin. :)
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

loadman

  • Moderator
  • 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: MalaLauncher not working
« Reply #16 on: September 29, 2008, 03:01:11 am »
I'd be glad to help, but when I experienced the problem (prior to writing my focus plugin, which is an effective workaround for me), it was intermittent and uncommon enough to make it hard to figure out a way to reproduce it, or figure out the cause. If you have a build that will log relevant info, I'd be glad to turn off my plugin and see if I can get it to happen for you. I wouldn't be unhappy if I could stop using my plugin. :)

Yeah that would be good.  ;D

I have a gut feeling it is Video engine related. I am finding that Delphi video component it is the cause of instability generally for MaLa. That is the first thing that I will replace for Version 2.0 (some time in the future  :P  )

I will let you know when I have a version with heavy logging regarding focus etc. Thanks in advance.


DP Louie

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 47
  • Last login:September 19, 2022, 09:30:50 pm
  • Jeep! Jeep!
Re: MalaLauncher not working
« Reply #17 on: September 29, 2008, 06:42:38 pm »
I have Mala shelled on my horizontal cab, and it runs CPWiz from a program called RunAsSvc:

http://www.pirmasoft.com/runassvc.php

It's free and it works great, very easy to use, just run it and choose CPWiz (or any other program you want to load at startup) and it runs these as a windows service.  Works great on my cab - it boots to Mala via the shell, and CPWiz is minimized and ready to roll.  No focus issues (knock on wood!).  Give it a try.   ;D

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #18 on: September 29, 2008, 07:12:30 pm »
Yep. That is another option (I used to use it in fact). You have to make sure you set the service to interact with desktop.

Back to my plugin though, I would prefer to get this issue figured out and solved, but if you're growing tired of trying to get it to work you could just install Microsoft's redistributable package from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #19 on: September 29, 2008, 09:07:38 pm »
Sorry I didnt get back sooner.  I was going to post from work this morning, but as it turns out it works flawlessly on that machine. :dizzy:

So I did another scan and theres a lot more this time.  Maybe I quit MaLa too fast the first time?

The last mention of mplugins is at 182712, and the last Launcher is mention is at 180747 (In the whole report).

Better?

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #20 on: September 29, 2008, 09:18:19 pm »
Very strange. There are no lines there relating to the loading of the msvc dll's that it depends on. It's almost like for some reason it decided not to load the plugin before it even got to that point, though it's totally unclear why.

I'm at a loss and I'm not sure what else to suggest so let's resort to installing the redistributable package from microsoft that I linked before. It basically installs the same dll's (and probably some others as well) in a more globally available way (at which point the extra dll's that my plugin comes with are no longer required within the mala directory). Let me know if that works. Thanks for patiently trying my suggestions!
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

system01

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 283
  • Last login:March 04, 2023, 08:06:55 pm
  • System Idle Processes are the Devil's Playthings
Re: MalaLauncher not working
« Reply #21 on: September 29, 2008, 09:27:59 pm »
I'm at a loss and I'm not sure what else to suggest so let's resort to installing the redistributable package from microsoft that I linked before. It basically installs the same dll's (and probably some others as well) in a more globally available way (at which point the extra dll's that my plugin comes with are no longer required within the mala directory). Let me know if that works. Thanks for patiently trying my suggestions!

Works perfectly.

If youre bent on getting this resolved, Im more than happy to keep trying.  I just need your patience on sorting through these logs when I dont know what Im looking for.

Thx for all the help.

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Re: MalaLauncher not working
« Reply #22 on: September 30, 2008, 12:37:39 am »
Glad it's working for you. At this point I'll leave it at that, unless I can think of anything else to try. Thanks for offering though.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup