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. Thank you for your support. Tom Speirs

Patreon

[PLUGIN DEVELOPMENT] VB.NET PinballX Snap-In Plugin Template


Adultery

Recommended Posts

I put this together as I was in the planning phase of a new Xpadder plugin for PinballX. If you want to get into making a plugin for Tom's interface, here's the only start-up tool you'll ever need! All you need to do is drop the zip file in the Visual Studio Templates>Visual Basic directory. Included in the package are:

  • Updated PinballX Plugin class
    Includes the new keypress function!
  • Logger Utility
    Based on a modified version by our very own Headkaze!
    Built in support for debug logging
  • INI Utility
    A comprehensive INI reading and writing utility
  • A sample configuration form

The template was created in VS 2012 Ultimate. If you have questions or need advice, don't hesitate to ask!

Download the template from here.

  • Like 4
Link to comment
Share on other sites

  • Draco1962 pinned this topic
  • 1 year later...

@Tom Speirs

Hi Tom,

I'm trying to add basic navigation to the media player plugin (skip etc). This would be for when PinballX is in Attract Mode only. What i want to do is capture a key/joy button press in the Event_Input function, do the stuff in the plugin and then set the the key/joy button value to False and pass that back to PinballX.

Unfortunately it appears that PinballX exits attract mode regardless of the key/button press being cancelled by the plugin. I want PinballX to stay in Attract Mode in these circumstances (it would exit attract mode for other button presses where they are not cancelled by the plugin), is there a way to achieve that?

Hope i'm making sense!... let me know if you need more info.

Thanks

Edit - do i need to use the PinballXStatus integer flag somehow? - not sure what the values for that in the Event_Input function for the plugin mean.

Link to comment
Share on other sites

Also tried returning False from the Event_Screensaver function in the plugin for Type 2 (exit screensaver) - doesn't seem to cancel the exit, i guess this would be the correct way of doing what i want if i can get it to work

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...

Hi Tom,

Quick question on PinballX v3.49 and later that include the System menu..

While in the system menu it seems that Info.GameDescription is set to the same value as Info.SystemName (Info.GameName is inaccessible, "Object reference not set to an instance of an object.") in Event_GameSelect

Is the best way for a plugin to check if PinballX is in the System menu to see if Info.SystemName = Info.GameDescription in Event_GameSelect, and is it safe to assume that behaviour going forward?

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...