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: Plug-In: Event Logger -Tool to make Plug-ins  (Read 3356 times)

0 Members and 1 Guest are viewing this topic.

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
Plug-In: Event Logger -Tool to make Plug-ins
« on: March 03, 2008, 05:20:36 am »
Here is a quick Plug-in I made for JukeBox software complying to the JPS standard

It is more of a quick and dirty plug-in development tool really.

Just put the unzipped file in your plug-ins folder and configure via your Jukebox Plug-in configure section

The plugin can be download from this link:
http://www.jukeplugsys.com/?page_id=8
« Last Edit: March 08, 2008, 11:23:41 pm by loadman »

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: Plug-In: Event Logger
« Reply #1 on: March 03, 2008, 09:46:22 am »
I fixed the link, which got screewy. When uploading a file, remember to write a title before doing it to make a nice like. When updating, you need to delete the file under browsing and reupload the new file again.

If you want a FTP account for easier upload of files (or PM me), so you only need to update the version number, let me know.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Plug-In: Event Logger
« Reply #2 on: March 03, 2008, 03:38:44 pm »
I looked at this very quickly before leaving for work this morning.   

If I have this correct then this plugin is just used to display messages sent to the plugin ... right?

I would suggest adding an option to turn on ALL messages except "GET" messages.   Seems like you have other variations but I would assume this one would be more important.   

Now ... are you working on other jukebox plugins as well?   :P


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: Plug-In: Event Logger
« Reply #3 on: March 03, 2008, 06:31:38 pm »
otherwice I have planning to create a webstats like something that one Freebox have.... There are few bugs in MultiJuke in Linux version I need to look on, and have thetouchscreen support more important than writing a plugin (even I like spinoff projects like this).

Mightbe this could been a idea to Loadman?
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

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: Plug-In: Event Logger
« Reply #4 on: March 03, 2008, 06:47:43 pm »
I fixed the link, which got screewy.
Thanks  :cheers:

 
If I have this correct then this plugin is just used to display messages sent to the plugin ... right?
Yes  ;D  And Log to a file. Can be very handy when you have this running at the same time your are testing a real plug-in. If something does not go as expected you can check the log to see what message was sent from the jukebox at a certain time. As the same commands are sent to all enabled plug-ins at the same time (as you know)

Quote
I would suggest adding an option to turn on ALL messages except "GET" messages.   Seems like you have other variations but I would assume this one would be more important.   
That is what the default option is.  Possibly my wording could have been more clear?   ;)

Quote
Now ... are you working on other jukebox plugins as well?   :P
Yes, When I suggested plug-in support I did not expect you guys to impliment it so quickly. I was really just putting the idea in the suggestion box as writing a plug-in or two for my Jukebox was on my timeline. Sorry . Is there any plug-in you are eager for soon ?  :)


« Last Edit: March 03, 2008, 06:52:13 pm by loadman »

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Plug-In: Event Logger
« Reply #5 on: March 03, 2008, 07:07:27 pm »
I would expect a plugin to do no less than retrieve all songs I do not have in my library, categorize them, get the associated lyrics (of course check for spelling and all gramatical errors) and obtain all the required artwork images as well.  If it does not do all of this then I am not sure if anyone would use it but I could be wrong   ;D

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: Plug-In: Event Logger
« Reply #6 on: March 03, 2008, 08:43:25 pm »
I would expect a plugin to do no less than retrieve all songs I do not have in my library, categorize them, get the associated lyrics (of course check for spelling and all gramatical errors) and obtain all the required artwork images as well.  If it does not do all of this then I am not sure if anyone would use it but I could be wrong   ;D

...Sure. But deleting some Country music artists might be a priority for me  :laugh2:

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Plug-In: Event Logger
« Reply #7 on: March 03, 2008, 09:14:26 pm »
Gotta leave the Reba for the wife     :dunno

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: Plug-In: Event Logger
« Reply #8 on: March 04, 2008, 02:03:18 am »
I would expect a plugin to do no less than retrieve all songs I do not have in my library, categorize them, get the associated lyrics (of course check for spelling and all gramatical errors) and obtain all the required artwork images as well.  If it does not do all of this then I am not sure if anyone would use it but I could be wrong   ;D

If I known you just kidding, this is not possible, since there is no file sent to the plugin. We could add a another agument to the song tags, so it also got the file used  too? This would not break the combatible if we just add this as last argument.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

unclet

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3561
  • Last login:March 17, 2025, 11:51:15 am
Re: Plug-In: Event Logger
« Reply #9 on: March 04, 2008, 07:06:04 am »
I was kidding ..... lets see how many people actually use the JPS before expanding it right now.......  :)

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: Plug-In: Event Logger
« Reply #10 on: March 04, 2008, 09:22:20 am »
of course I know it. I guess you hare completly right here (why did I write, If I known you just kidding?), let hold here and wait expandend it after a while if needed.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

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: Plug-In: Event Logger -Tool to make Plug-ins
« Reply #11 on: March 08, 2008, 08:56:59 pm »
Minor Bug Fixes:

0.07

- Version displayed correctly
- Current directory fixed for re-loading last log on disk. This was failing to reload as it could not find the file with some apps.


« Last Edit: March 08, 2008, 09:39:51 pm by loadman »

AussieJuke

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:October 18, 2011, 02:22:10 am
Re: Plug-In: Event Logger -Tool to make Plug-ins
« Reply #12 on: March 09, 2008, 05:13:06 am »
Just checked it out now. I have a question though.
Shouldn't the log be created in the same directory as the plugin that created it?
This is how I resolve the paths in mine:

Code: [Select]
// This gets called when the dll first loads
procedure InitializeDll;
var
  Buf: array[0..MAX_PATH] of char;
  DllPath: string;
begin
  // Get the host's full path and name
  GetModuleFileName(0, Buf, SizeOf(Buf));
  // Extract just the filename from it
  HostName := ExtractFileName(Buf);
  // Get this dll's full path and name
  GetModuleFileName(hInstance, Buf, SizeOf(Buf));
  // Extract just the path from it
  DllPath := ExtractFilePath(Buf);
  // Add the trailing backslash & fully qualify the event log filename
  EventLogFileName := IncludeTrailingPathDelimiter(DllPath)+'JPS_Event_Logger.log';
end;

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: Plug-In: Event Logger -Tool to make Plug-ins
« Reply #13 on: March 09, 2008, 06:13:29 am »
Just checked it out now. I have a question though.
Shouldn't the log be created in the same directory as the plugin that created it?

I could...

Thanks but I was decided to keep it in the same dir as the app that uses the plugin  ;)

Just me I suppose  :dunno
« Last Edit: March 09, 2008, 06:16:53 am by loadman »

AussieJuke

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:October 18, 2011, 02:22:10 am
Re: Plug-In: Event Logger -Tool to make Plug-ins
« Reply #14 on: March 09, 2008, 07:06:40 am »
Yeah, I couldn't make my mind up on where to write the log file at first.
I can see pros and cons for both locations. No real hassle either way.