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: Announcment: New Visual Pinball Wrapper coming....  (Read 21283 times)

0 Members and 1 Guest are viewing this topic.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Announcment: New Visual Pinball Wrapper coming....
« on: February 12, 2012, 02:50:07 pm »
I've got a freshly rebuilt mame cab with a hd monitor.  As you might have noticed in a couple of previous threads, I've become rather obsessed with visual pinball lately.  VP still needs a lot of work in regards to making it cabient friendly and I eventually intented to tackle that at the source (In other words submitting source code for vp and pinmame.)  For now though I want to experiment to see what kinds of features would be cool to have for vp/pinmame.

So for now a new wrapper is in development... or rather I should say it has been in development for a couple of weeks now and will be released shortly.  I want to post a list of features in-case anyone wants to add suggestions of things that might be nice. 


Launching Features:

Launch any table via a mame-style command line

Exit any table with the press of esc... no context menu shown

If a dmd window is found, it will be set as the "child" window of the table itself.... because child windows can never be behind their parents... it ensures that the dmd will never go behind the table

Via a temporary registry edit, the vp editor window is placed below the visible screen, this means you will NEVER see the vp editor as the table loads.

Extra Features:

An on-screen menu that appears when you press the left flipper+start.  The on screen menu will let to change table-specific settings.


VP Features:

The ability to set rendering options on a per-game basis.  Accessable via in-game menu.  Changeable options include....

Ball Shadow
Ball Decal
AA-Ball
Ball Stretch Options
Hardware Device Rendering
Check Blit Status
Reorder Playfield
Alpha Ramp Accuracy

PM Features:

The ability to set rendering options on a per-rom basis.  Accessable via in-game menu.  Changeable options include....

Color  (color macros, which are easier than editing the rgb values)
Orientation
Compact Display
Anti-Aliasing


Extra Features:

The ability to do some really cool stuff with the DMD. Accessable via in-game menu. Features include....

DMD Placement (not just absolute pixels, which is tricky... more friendly stuff like "top centered" or "upper left")
DMD Size (in percent of original size)
DMD Translucency
Clear DMD background (the black portion of the dmd is made invisible, so you only see the dots/digits over-top of the table)



Yes a decent amount of this is already done in the HP wrapper, but it's options are focused on dedicated pinball cabinets, while my options are more focused on a mame cab running tables.  Translucent DMDs are especially helpful as on a single monitor cab you normally have the option of making a dmd so tiny that you can't really make it out, or so far away from the playfield that you can't look at it while playing.


Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #1 on: February 14, 2012, 02:29:39 am »
Awesome. I could never get the old wrapper quite to work.
-Banned-

MPTech

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 437
  • Last login:January 05, 2025, 03:58:54 pm
  • UltimateArcade completed!
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #2 on: February 14, 2012, 10:17:16 am »
Keep us posted, this sounds great! The VPinball games are some of my favorites to play.  :applaud:
MPTech
   Better living thru technology!   ;-)

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #3 on: February 16, 2012, 04:09:50 pm »
Ok WIP time:

I thought some images of what I'm going for might be nice.  

First off is an image of a dmd with a transparent background below... note that it's perfectly clear behind the dots.




And my preferred sizing, transparency and coloring options for star trek tng:



And a few pics of the in-game options menu I'm working on:










Anyway, things are coming along nicely.  I've got all the code to read the registry in place, now it's just a matter of inserting the code to write to the registry and a little bit of code to switch things on the fly.  

Also I've found an incredibly annoying issue.... I didn't realize the pinmame doesn't put the rom name in the title of it's window like regular mame does.  I can work around that though, it'll just take a little more time.  


« Last Edit: February 16, 2012, 04:11:56 pm by Howard_Casto »

gatordad

  • Trade Count: (+11)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 828
  • Last login:July 16, 2025, 11:06:01 am
  • This is your brain on games.
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #4 on: February 16, 2012, 08:03:34 pm »
Looks really well thought out, looking forward to giving it a whirl.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #5 on: February 17, 2012, 12:25:06 pm »
Thanks.  I try.  :)


Well it looks like I have the whole rom issue sorted.  I annoyingly had to print a gamelist from the command-line version of pinmame.  Luckily pinmame is updated about once a century now, so it shouldn't be much of an issue.  ;)

I've got to continue hooking up things to get everything red properly.... then I'll get into the process of actually applying all the settings.  The way the vp/pinmame combo works is annoying.  For me to know for sure which rom is loaded I have to wait for the table to load completely and display the currently running rom.  Then I have to read it's registry settings and see if they match the settings that the user has defined.  If they don't I have to write the new settings to the registry and reload pinmame!  UGH!

It's going to take this weekend probably to get the reading and applying of settings correctly.  After that it'll be trivial to write settings. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #6 on: February 18, 2012, 12:09:01 am »
I'm at the home stretch finally.  Spent most of the spare hours of the day working on this.  I've got everything reading and writing properly except for settings that are applied for pinmame in the registry.  That isn't particularly difficult, but it is time consuming.  After I get that in place it's just a matter of making some nice touches like a DMD preview when you are adjusting the position and scale. 

I'm also going to write a very simple future pinball wrapper as well.  I see that after all these years Randy hasn't learned from his mistakes.  In FP you can sometimes see the editor window when a table is loading.  Form.visible = false Randy, Form.visible = false ;)  It's so trivial to fix on his end and yet it's a total nightmare to do it externally.   

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #7 on: February 18, 2012, 12:36:50 pm »
Hey if anyone wants to help out I've got a job for you guys:


I need some new loading screens.  The old "idiot police" screen is showing it's age and considering vp has been around for years now without legal incident, I'm not as concerned about the "stealing roms" message. 

Something simple and clean would be nice..... no need to make a "vp launch" logo or anything, just a simple "loading" message. 


I whipped something up, but it's rather plain.  If anyone's interested just whip me up a sample and if it's any good we'll go with it!

Circo

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 849
  • Last login:May 11, 2020, 03:27:51 am
  • Still using screenshots? Try EmuMovies instead.
    • EmuMovies
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #8 on: February 18, 2012, 08:23:22 pm »
This looks amazing, great work!
My Websites

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #9 on: February 18, 2012, 09:34:56 pm »
Nice work!

For the loading message, can you support an animated GIF, or just static images?

I was going to play around with making some large animated "loading" bits ala winphone 7 or the iphone...

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #10 on: February 18, 2012, 10:12:39 pm »
No animated gifs, but I can "flipbook" a collection of static images if you have an animation in mind.

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #11 on: February 19, 2012, 01:17:37 am »
I'm at the home stretch finally.  Spent most of the spare hours of the day working on this.  I've got everything reading and writing properly except for settings that are applied for pinmame in the registry.  That isn't particularly difficult, but it is time consuming.  After I get that in place it's just a matter of making some nice touches like a DMD preview when you are adjusting the position and scale. 

I'm also going to write a very simple future pinball wrapper as well.  I see that after all these years Randy hasn't learned from his mistakes.  In FP you can sometimes see the editor window when a table is loading.  Form.visible = false Randy, Form.visible = false ;)  It's so trivial to fix on his end and yet it's a total nightmare to do it externally.   

Juussttt an FYI, Randy has nothing to do with FP Howard, that was Chris's (Black) baby.  Hmmm a wrapper eh? 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #12 on: February 19, 2012, 04:55:36 pm »
My bad... In my mind at least Randy and Black and interchangeable.  ;)

Sorry guys... I was aiming to release this today, but I needed to clean the bathtub and now I'm all hopped up on cleaners.  There are still some things to work out with the dmd manipulation and thus it will probably be later this week before I release it. 

Xiaou2

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4134
  • Last login:June 11, 2025, 11:55:17 pm
  • NOM NOM NOM
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #13 on: February 19, 2012, 08:19:59 pm »
Personally, I dont think its a good idea to further destroy the already poor visibility of the top portion the field.

 I think better options, are something like making the display smaller, and popping it on the Apron (nearest the player.  The place there the instruction cards are held. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #14 on: February 19, 2012, 08:45:28 pm »
Personally, I dont think its a good idea to further destroy the already poor visibility of the top portion the field.

 I think better options, are something like making the display smaller, and popping it on the Apron (nearest the player.  The place there the instruction cards are held. 

Well it's a good thing that I've always had that option in there, even since the last version of my wrapper then.  ;)

Nice try, thanks for playing.

spoot

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:June 15, 2015, 10:36:18 am
  • Destroyer of electronics
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #15 on: February 20, 2012, 09:59:10 am »
I'll have to check this out later this week.  I hated the "old" method of pinmame I've not run it in ages.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #16 on: February 20, 2012, 03:29:51 pm »
Ran into a bit of a snag this morning. 

I've been running vp in 16 bit mode because I have an ati card and tables just don't render properly otherwise.  What I noticed form futher testing this morning is that both my in-game menu and the dmd don't render their translucency properly in 32 bit mode.  Worst case scenario this isn't the end of the world.... vp pre-renders tables prior to launching, so there is virutally no difference visually between 16 bit and 32 (you still get all your nice alpha blending and ect....)  that being said I want to figure out what the issue is, because it seems to be at the windows api level. 

I'll look into it further.....

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #17 on: February 20, 2012, 11:21:18 pm »
What are you using to alpha blend?

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #18 on: February 20, 2012, 11:58:05 pm »
Sorry guys... I was aiming to release this today, but I needed to clean the bathtub and now I'm all hopped up on cleaners.  

Some Ajax, a blue scrubby, and some elbow grease....oh, and a large-ass cup (I have an old Del Taco 64oz'er). Takes several minutes.

Oh, neat idea. I had no idea what you were describing. However, I don't want all my tables to look like Pinball 2000 tables.
« Last Edit: February 20, 2012, 11:59:56 pm by Gray_Area »
-Banned-

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #19 on: February 21, 2012, 08:29:22 pm »
What are you using to alpha blend?

Well SetLayeredWindowAttributes is what I've been using... it seems to be the only thing that'll work on the pinmame window.  I could try some of vistas/7s aero features, but that would limit functionality to exclude xp and a lot of people still use xp on their cabs. 

It's odd, it seems like the api has a glitch in it.  Alpha blend seems to work ok (yet unreliably) in 32 bit color, but color key is having issues.  A color key of 0,0,0 in 16 bit mode makes the dmd background clear, but in 32 bit mode it just seems to make the dmd glitch out.  There are also other oddities... I'm making  a "transparent form" to overlay the in game menu.  The form has a color value of 0,16,0 set via a rgb macro, which is the way msdn suggests you set the color.  In 16 bit mode this makes the form clear as it should, but in 32 bit is doesn't.  I have to set the color key value and the form value to 0,17,0 in 32 bit mode for it to work.   

You know, come to think of it areo is disabled in 16 bit mode..... could areo and layered attributes be fighting each other? 

I could do an os check and incorporate functions from both.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #20 on: February 21, 2012, 09:20:33 pm »
Sorry guys... I was aiming to release this today, but I needed to clean the bathtub and now I'm all hopped up on cleaners.  

Some Ajax, a blue scrubby, and some elbow grease....oh, and a large-ass cup (I have an old Del Taco 64oz'er). Takes several minutes.

Oh, neat idea. I had no idea what you were describing. However, I don't want all my tables to look like Pinball 2000 tables.

Nah man it was bad.... waaaaay over-due.... Between this and the slight cold I'm getting I was in bed until just a couple of hours ago.  :(  (Sorry I didn't see this post before... still dizzy.)  I had to use stright bleach in a few places.... bleach fumes.... fun!

Yeah it's not for everyone, but it's useful for other reasons as well. 
Examples: 

You can put the dmd in the drain/apron area as X2 suggested

I don't have a dedicated pm cab so I don't know if it handles every issue but I've noticed how pm cab users constnatly complain about the dmd being the wrong orientation.... you can change that via settings.  I'm looking into the "cabinet" tables as well so that I can add placement options specific for them.

It hides the editor and makes the dmd a child of the table so it can't go behind the table.

You can change the render settings on a per-game basis.  I know on my own setup the recent star trek table won't display properly without some tweaks to the video options in vp.... options that make all the other tables look like garbage.  It was what inspired me to do a new wrapper.  ;)

**Update**

HK:  You always seem to save my butt even without realizing it.  I wouldn't have thought about aero's interference without you asking about the method I used.  Turns out that aero totally screws up layered attributes.  Far worse than simply making it not work, it makes it "half work" causing buggy, unreliable results.  I changed to a "basic" theme and everythign worked properly.

You know there were a few more experimental apps that I abandoned because of glitchiness..... they used layered attributes as well.  I'll have to re-visit them.


Now the fun really begins.... I'll have to find a way to programatically disable aero.  What I found in my testing is that even when you turn it off for a specific exe via compatability settings, it doesn't stop the glitchiness because aero is still running on other windows (or the desktop, for that matter).  You have to disable aero period... not just for the specific app, or even all the apps used (in this case vp, pm and the wrapper).  
« Last Edit: February 21, 2012, 09:28:45 pm by Howard_Casto »

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #21 on: February 21, 2012, 11:30:29 pm »
At the moment, I zero idea which app it was, but there's one I ran where on loading it stated "must turn off Aero" which it did, then when the app was exited, aero was re-enabled.  Shoot!  If I can remember, this may assist you in how they did it.

edit:  http://www.howtogeek.com/howto/windows-vista/easily-disable-vistas-aero-before-running-an-application-such-as-a-video-game/

I'm assuming that's what you are referring that you tried, which didn't work, shoot. "Disabling the desktop composition" seems to be what that app I was referring to was using but... it sure seems to turn off the THEME itself which you'd figure works.  Too bad.
« Last Edit: February 21, 2012, 11:34:44 pm by Loafmeister »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #22 on: February 22, 2012, 12:06:41 am »
No... actually that works!  But when I do that via calling the dll that does the very same fuction (in other words programatically) it doesn't?  I guess I didn't see the forest for the trees on that one... I disabled themes, thinking that would turn off aero as well.... didn't specifically check the "disable composition" box.  

I wonder if I distribute the exe if my preferences for compatability mode will be checked or if I'll have to instruct users to change them?

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #23 on: February 22, 2012, 07:11:18 am »
Glad it worked!!!  Dunno, but at least it's something you can put in the documentation for the user to do as part of its installation process.

RetroBorg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 818
  • Last login:July 06, 2022, 09:22:13 am
  • Your arcade games will be assimilated!
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #24 on: February 22, 2012, 07:31:48 am »
This looks great!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #25 on: February 23, 2012, 03:38:14 pm »
Thanks for all the help guys.... I would have been pulling my hair out for a week trying to figure out the oddball aero issues and fix.

I'm still fighting off a bit of a head cold, but in my pre-medicated stupor I managed to get some real progress.  

Because of vp's oddball setup there isn't a 100% sure method to determine the rom being used.  Since three of the registry entires I need to set apply to the dmd, which uses the romname, this causes a bit of a headache.  I wrote a system that I think will eliminate having to reset pinmame 99% of the time (pinmame only reads the registry at startup, so whenever I change things I have to reset it.)

Step 1.  Prior to launching a table the wrapper checks to see if the last rom used for the table is recorded in tableroms.ini

Step 2a.  If that fails then I run the same function that I wrote for my rom retrival tool to try and parse the most likey rom from the table's script.
              We go ahead and write those settings to the registry assuming this rom name is correct.

Step 2b.  If it was found then we are 100% certain that this is the correct rom... go ahead and write the preferred settings to the registry.

Step 3.  After launching the table, we grab the caption of the actual rom running... get the rom name by looking up said caption and compare it to the romname used in step 2.  Regardless, we record the rom currently running in tableroms.ini so save us from all this searching the next time the table is launched.


Step 4a.  If they are the same then good!  No reset required.

Step 4b.  If they aren't the same, we go ahead and write the proper registry values to the current rom running.  Using code the table gets reset.  You'll have to wait up to 5 seconds for the dmd to reappear, but hey, this will only happen once.



I want to add even more troubleshooting code, to make things as painless as possible as well as a check to verify that we are actually changing any of the registry values  (no need to reset if there is nothing to change.)

After that it's a simple matter of hooking up the in-game menu to all of these functions so that it actually changes the settings.  I'll want to do some other little touches as well, like a message box detector, so you can navigate through any annoying pop-ups.
« Last Edit: February 23, 2012, 03:41:14 pm by Howard_Casto »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #26 on: February 26, 2012, 01:37:32 am »
Not much to report tonight I'm afraid.  I'm not really in the mood to program.  I'm still churning along though. 


Because there is a slim chance that the wrapper might grab the wrong dmd romname, thus making the wrapper have to write the settings after the table is loaded and requiring a reset of the dmd, I've added some code to avoid that if at all possible. 

I figure 90% of the time your dmd registry settings are going to be your default settings.  I wrote a function to read the current values of the dmd prior to writing the new ones.  If they are the same, the dmd won't reset.  Likewise, if this is the first time the rom has been loaded (blank values) It checks to see if the settings we are writing (which remove the "ok" prompt btw...) are different form pinmame's default settings. 

In lamens terms all this code means that the dmd isn't going to reset unless there is something worth resetting for. 


I also hooked up the code to delete entries via the in-game menu last night.  I also added code to block the option to delete your default settings as there's no point in ever doing that.... just change em and save. 

So I've still got to hook up the "save" functions for the in-game menu.  They are already working in the wrappers pre-launch gui, I just have to hook them up. 

I'll also need to hook up the apply function... which resets the table and/or dmd if necessary. 

So it's those two things and a little bit of cleanup. 




Oh btw....

I would like suggestions on what key combinations to use to open the in-game menu.  Right now it's start+left flipper but I found that this combo activates league play in some tables.  A lot of people don't use the magna-save buttons so those are probably out.  I could allow the use of a dedicated button or make it a three button combo. (Like start+left flipper+right flipper) 

Suggestions?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #27 on: February 26, 2012, 03:49:09 am »
Ugh.... those two hours just flew by... (NOT)


DMD options are hooked up.... you can now change them in-game.  I manged to make the restart fairly quick as well.... it's quick enough to where you can keep trying different settings over and over until you get what you like... which was the whole point of in-game adjustments.

I'll see if I can tackle the table options tomorrow.  After that it's just cleanup and testing.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #28 on: February 28, 2012, 02:28:07 am »
We're on the home stretch now!

I added in the code to change the vp rendering settings via the in-game menu.  I also added in the code to completely unload and restart a table.... something that is necessary when you want to apply new render settings.


In other words, everything is working now.

I want to do some more testing and the graphics are in need of a cleanup, but that's about it.  This will definately be released by this weekend, probably sooner!

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #29 on: February 28, 2012, 08:57:34 am »
Cool stuff Howard - now that I've got my cab sorted, I'm going to look into VP (and FP) on a faster machine.  I look forward to giving your work a spin. Thanks for doing it. 

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #30 on: March 01, 2012, 10:48:55 am »
Same here, well done!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #31 on: March 01, 2012, 07:47:41 pm »
Just a heads up.  I'm having internet problems atm.  I'm trying to get the cable guy to come look at it, but that's like trying to get a cow to stand on one leg.  I can connect, but my speed is only slightly faster than dial-up.  Took like 5 min for the forum to load!

Anyway, all software is on hold until this gets sorted.  Even assuming I could manage to work on it without downloading more tables to test things out, I couldn't possibly get it uploaded to the site.... so just site tight... I'll be a lurker at best until my cable gets fixed. 

Now hopefully this will post.......

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #32 on: March 02, 2012, 12:50:43 am »
I guess I reverese jinxed myself.    I got fed up a pulled out  a spare modem (don't ask) at midnight.... the midnight tech support guys are always better and this guy just setup this different modem for me and thus far I'm good!

I'm wore out though and didn't get any of the stuff done I wanted tech-wise.  So I guess it's another delay.  :(

But on the bright side you can get in contact with me if you have issues with my other stuff.  ;)

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #33 on: March 04, 2012, 12:50:35 am »
Ok I got a little more done this weekend.

I reworked all the menu images so now they look good regardless of the bit depth.  I had to make them gifs (BLEH!) but the images only contain a few colors and no gradiation anyway.

I've also squashed all the remaining bugs I could find.  What's left is to add a few more nice features that people might find helpful as well as some tweakable settings in case the wrapper behaves strangely on your system.

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #34 on: March 05, 2012, 07:39:22 am »
Ok I got a little more done this weekend.

I reworked all the menu images so now they look good regardless of the bit depth.  I had to make them gifs (BLEH!) but the images only contain a few colors and no gradiation anyway.

I've also squashed all the remaining bugs I could find.  What's left is to add a few more nice features that people might find helpful as well as some tweakable settings in case the wrapper behaves strangely on your system.

Hi Howard,

How about showing the hiscores.
I've got a commandlinereader program that reads out the hiscores from the .nv file.
It can read out all the hiscores , loop champion , buyin hiscore table etc.
Maybe you can use it as you have found a way to extract the romname from the tables and this program works with the romname.

You can download it at www.pinemhi.com and maybe try it out to see if it's something worthwhile.

I've also built a flashfile that shows an output example (reads-out a txt-file written by the pinemhi program)
Here is a youtube video of it.


Dna Disturber :cheers:



Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #35 on: March 05, 2012, 12:25:26 pm »
I'm not opposed to it at all, but I think you are going to have to explain what the point would be.

If you are reading the hi-scores from the nv file then aren't they already going to be displayed in the DMD? 

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #36 on: March 05, 2012, 03:12:37 pm »
I'm not opposed to it at all, but I think you are going to have to explain what the point would be.

If you are reading the hi-scores from the nv file then aren't they already going to be displayed in the DMD?  

For the most part that is true but....
It takes a while before they get displayed (especially the special ones , such as loop champion and such)
If you don't pay attention , you have to wait until it comes around again....
And they can go by pretty fast...
With this you can see , even before you start the game what your target(s)  ;D is/are....
And did I mention the bragging rights even when you just cycle through the tables among friends..... >:D

It could work similar to HitoText in hyperspin (showing the hiscores in the frontend instead of ingame and waiting on it to show the hiscore table)
I liked that feature but I'm biased of course as I worked on the project in the past  :laugh:

 :cheers:


« Last Edit: March 05, 2012, 03:16:34 pm by dna disturber »
Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #37 on: March 05, 2012, 05:58:39 pm »
Well it's just mho, but it sounds a bit redundant then.  In a front-end it totally makes sense.... you can check high scores without having to load up a table!  But once the table is already loaded, I dunno, I perfer to see them on the real DMD myself. 

See I thought that the tool did some kind of online database thingy, I didn't realize it only worked on your own local scores.  You should work on that!  Have vpforums host it....  it'd be awesome.

I was thinking of adding rules viewing though.  It seems odd to me that vpinball has the option to put a full set of rules in the info section but no universal way to view them. 

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #38 on: March 05, 2012, 08:02:33 pm »
No problem....
The online database thingy is already there and working.  :laugh:
It's hosted on the same website.
The program is called pinemhi leaderboard.
Has also challenges and a 5 minute mode and of course all the normal hiscores.
I,ve got a thread on vpforums about the program.

No experience with rules unfortunately..

 :cheers:
Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #39 on: March 07, 2012, 01:58:41 pm »
Well I am interested in adding support for that.  Loading/Saving nv ram to a database should be done at the launching level afterall.  I think this would better be discussed in PM, so shoot me a line when you are ready.

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #40 on: March 08, 2012, 01:45:41 am »
Unfortunately it doesn't work with loading and saving the nvrams.
After you end a game it takes a couple of bytes out of the nvram (before and after image to check if a game has been played) , translates the bytes into a score and sends that to a php page that inserts the score with a username and passcode
Also the name of the tables should be as you download them to have a clean competition and database.
There is also a check on tablename before entering the score.

The application is a mix of Visual basic , autohotkey, php and mysql.

You can't load the scores into your vpinball , it's just oneway...you can look at the scores using a php page (using query's)
It's more like a frontend for vpm games at the moment with an online database behind it (with a twitterfunction).



« Last Edit: March 08, 2012, 01:47:54 am by dna disturber »
Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #41 on: March 08, 2012, 02:04:17 am »
It sounds to me like it could though....  You've already figured out how to extract the scores from the games correct?  So you've managed to figure out where in the nvram file the scores are stored right?  It should be possible to inject the top 10 from the database to the nvram prior to launch then.  Likewise it should be possible to auto-submit scores if the user name and password is pre-stored. 

The launcher is essentially done atm... it'll be released this weekend.  I would be willing to work with you on this though for a future version.

dna disturber

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 154
  • Last login:August 03, 2014, 01:01:22 pm
  • Michael J. was my 1st experiment,cut me some slack
    • Cabinet "Monster Arcade" & Bartop "Futurama"
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #42 on: March 08, 2012, 11:39:04 am »
Extracting is no problem but injecting is difficult as there are checksums in most nvrams, it wil reset to default when checksum isn't right...
Maybe phoenix is something that already comes close to the idea
http://www.hyperspin-fe.com/forum/showthread.php?t=14705

Author of PINemHi..
Decipher-dude for the HiToText project..


HiToText 2010.11.4  Vs.  Mame 0.140  ::)
-------------------------------------------------------------------
Percentage of original games in HiToText :  8.09 %
Percentage of original + clone games in HiToText : 10.57 %
-------------------------------------------------------------------

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #43 on: March 11, 2012, 04:29:45 am »
Sorry I had some real world concerns the past couple of days... didn't get a chance to work on this any. 

DNA.... the first post says:  "Removed by user" 

I'm guessing this is something related to the scoreboard, but if I can't dl it then I dunno what I can do. 


I managed to work on this a little more today.  To make things easier when running from a frontend, I smartened up the launch commands a bit.  Now you can either pass the full path to the table or just the vpt name.  If you pass the latter the launcher will look for the table first in the current directory, and then in the "tables" folder.  So like mame, you should now just be able to pass the file name and it'll just work. 

I also added a new transparent background mode for the DMD.  Originally, it just turned the dmd's background transparent.  This looked good for true dmd's but the segmented displays looked a little nasty because the "off" led segments are so large.  So now you have the option to make the "off" leds/segments transparent as well.  This looks really good on the segmented displays.... because they are so thin you can just stick em right in the middle of the table without any translucency and they don't get in the way at all!

I need to add three more global options, which might take and hour at the most.  Then I want to add a warning message or two for the onscreen menu and I think I'm done. 

Everything should be out sunday or monday night depending on if I get time. 

I apologize for the severe delay.  This was going to be one of those "quick" projects but several things in the real world outside my control prevented me from getting it out in a timely manner.  I set my own release schedule on these things, but when I say it'll be out at a certain time, I like to get it out there.  I'm not one of those "when it's done it's done"  devs... ;)

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #44 on: March 11, 2012, 07:03:24 pm »
Worked on this a little more.  I added some more dmd positioning macros to support spanned tables. 

I also did a little cleanup. 

I think the next thing I need to do is add a option to block the renaming of the title bar on the DMD.  Why table author's want to do this is beyond me, afterall, nobody plays v pinball with the title bar showing.  It causes issues with rom lookup.  Nothing major, but it is annoying.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #45 on: March 12, 2012, 01:54:56 am »
Ok.... I added in the global options and they are working just fine. I see no reason why I can't release this tomorrow, barring any bugs I might find between now and then.

BobA

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5943
  • Last login:July 11, 2018, 09:52:14 pm
  • What Me Worry?
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #46 on: March 12, 2012, 01:29:22 pm »
Looking forward to seeing this. Thanks Howard :applaud:

TopJimmyCooks

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2097
  • Last login:March 26, 2024, 01:18:39 pm
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #47 on: March 12, 2012, 01:42:52 pm »
I finally DL'd VP last night and tried out a few VP 9 tables on my new-ish win 7 notebook. With a few adjustments, I got harlem globetrotters to play somewhat like the real thing- scores in the same range anyway.  I really understand now about the comments that VP doesn't give the experience of an old, worn table.  I felt like it was playing laser sharp, factory fresh, or like a new dmd pin.  I had to keep reminding myself not to try to tap pass or post pass, not that I'm much good at those.  any trigger of the flipper bangs the ball off the arch rail.  The real 30 y/o game is creaky, soft and worn in like an old shoe.  Maybe one of your upcoming mods could be a simulation of the effect of cupped inserts on the ball travel, Howard.

Hopefully If VP works smoothly at all on my crappy old cab PC, I'll be looking forward to trying the wrapper and going to the table itself rather than the editor window, and adding VP to Mala.   

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #48 on: March 13, 2012, 02:10:24 am »
UGH!   The fates just aren't with us on this one.  Had a minor mouse problem (the furry kind) to deal with.  It took up my entire afternoon.  The wrapper is ready, it just isn't ready for me to release yet.  I've still got to write the docs and prepare the website.  I'm hoping I can get it done tonight (working on it atm) but no promises. 


Jimmy.... that sounds like table editing to me, you couldn't do that on the fly.  Regardless vp's physics engine isn't that sophisticated..... the ball is actually a cube!  The things you are talking about is the table's physics though.... things like flipper strength and ect can be altered in the game's script to adjust such things.  I've gotta be honest, I'd rather play a factory fresh table myself.  In real life we are stuck with a worn out table because all the old tables are worn out.  ;)

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #49 on: March 13, 2012, 08:45:26 pm »
Ok FINALLY!

The new wrapper is up.  Unfortunately my win xp boxes are having issues so it's untested on xp..... run fantastic on vista/win7 though.

Enjoy!

http://dragonking.arcadecontrols.com/index.php

Loafmeister

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 490
  • Last login:June 03, 2025, 01:49:49 am
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #50 on: March 14, 2012, 07:47:18 pm »
Thanks Howard, I'll give this a try, by the weekend (real life stuff in the way right now). Looks great!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #51 on: March 14, 2012, 09:40:29 pm »
Crap well I did forget something.....

I didn't include the font that I use in the menu.  You'll need it for vp anyway so you might already have it installed.  Download the font pack from vpforums.org and you are good to go.    It'll work without it, but it will be ugly.  ;)

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #52 on: March 17, 2012, 03:57:24 am »
Have you checked out FPLaunch?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #53 on: March 17, 2012, 06:41:25 am »
Yeah I've seen it.  It doesn't have the features I need and it's basically a hyperpin-centric launcher.  I like it a lot, but it's decidedly geared towards dedicated pinball cabs.  Mines for desktop/mamecab use.

ratsflif

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
  • Last login:January 29, 2024, 06:08:07 pm
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #54 on: March 29, 2012, 06:13:32 pm »
Just set this up on my Naomi Universal launching from hyperspin.  Works great man, thanks.

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #55 on: January 24, 2013, 12:18:40 am »
I just got this wrapper set up and working with Mala. Great work Howard. Thanks for your time and skill.

One question..I'd like to use a two-key Exit combo instead of ESC to quit. How can I set this up using your wrapper? is it possible?
I tried to set it up by inputing 50+52 in the 'Exit Keycode' instead of 27 but that didn't seem to work.

I'd like to set it up so that if I press the 2 and the 4 key at the same time it will exit Visual Pinball and kick me immediately back to Mala. Reason is I have all my other emulators starting with MAME set up this way and I'd like to keep things consistent for cabinet users.

Any help or advice? Thanks so much!!


My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #56 on: January 24, 2013, 12:46:56 am »
There isn't a direct way to do this no. 

You could make a little ahk script that presses Escape or the button of your choice when 2 and 4 and pressed though.  That would probably do it. 

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #57 on: January 24, 2013, 10:51:57 am »
OK. That was the solution I had come up with as well.

In that case, I suppose I would have to create a script that would set up the keys I wanted, THEN launched your vp-launcher program. I'd point Mala to that script instead of your launcher program. Does that sound about right?

Thanks again for your response, and excellent work on that script. Really...great stuff.
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #58 on: January 25, 2013, 03:29:11 pm »
By the way...

Just for fun I created a new "Loading" screen complete with a re-envisioned Visual Pinball logo I found.

See attached for the 4:3 ratio (1024 x 768 resolution) version.

If you (Howard) would like to include this screen in your set-up files, I'd be more than happy to create the slightly larger 4:3 version that you already had as well as a 16:9 ratio version.  :P
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #59 on: January 28, 2013, 12:34:48 am »
Would anyone know how I might be able to run an AHK script along with Howard_Casto's excellent Visual Pinball Wrapper (vp-launch6.exe)?

The only reason I need to run an additional script is so I can map a 2-button exit combo to escape (ESC key) and map the Mouse 1 and Mouse 2 buttons (LButton & RButton). Everything else that the vp-launcher6.exe does is great.

I'm using Mala. I tried to create an executable from AHK which would IN TURN launch vp-launcher6.exe and set up the new key mapping, but I can't get it to work. I'm trying to pass the same table name info to vp-launch6.exe as before but I must be missing something.

Below is my AHK code. Any help?:

___________________________________

#NoEnv
SendMode Input 
SetWorkingDir, C:\Arcade\Visual Pinball\
#SingleInstance force

Run, "vp-launch6.exe" /open "C:\Arcade\Visual Pinball\Tables\%1% /play /exit

LButton::D
RButton::G

~2 & ~4::
Send {Esc}

ExitAPP
return

___________________________________


In Mala's settings I just tried to point it to the new executable (VP Table Launcher.exe) I created (using above non-working code) instead of vp-launch6.exe. All other settings are the same. So essentially I have an .exe launching another .exe. Will that work?

Executable:
C:\Arcade\Visual Pinball\VP Table Launcher.exe

Rom Path:
C:\Arcade\Visual Pinball\Tables

Rom Extensions:
vpt

Execution/Command Line:
"%rom%.%ext%"

Maybe there's another way to do this and I'm just making it more complicated than it needs to be?  :dunno

Thanks in advance for any help.


[EDIT] Solved this issue on this thread:
http://forum.arcadecontrols.com/index.php/topic,130016.msg1329961.html#msg1329961
« Last Edit: February 15, 2013, 12:02:53 pm by Wade007 »
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #60 on: January 28, 2013, 02:08:25 am »
Well you don't really have to launch it with vp-launch.  You coudl leave this script on all the time and have it press a useless key (like right bracket or something) that wouldn't interfere with operation of other emulators. 

Honestly I'm not sure what your setup is hardware-wise, but if you are using a ipac or keywiz you should be able to setup the shift functions so that when you press 2 and 4, the esc key is pressed.  That's why I didn't add support for exit key combos.  ;) 

Clavius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:September 03, 2024, 02:04:48 pm
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #61 on: February 05, 2013, 08:08:23 pm »
I'm in the process of updating lots of stuff on my cabinet, and I just switched to using vp-launch and so far it's working great.  Thanks for the awesome utility!  :applaud:

One thing I need help with, though, is when I use vp-launch it is showing two windows for a few seconds each.  I'm not sure why.  Here are some pictures I took to show what's happening, and I highlighted the windows with green circles to point them out:
http://img268.imageshack.us/img268/3641/launcherwindow1.jpg
http://img254.imageshack.us/img254/8650/launcherwindow2.jpg

I'm using MaLa 1.7.4 and Visual Pinball 9.0.5, with Windows XP SP2 32bit, ArcadeVGA (gen 1), and a Betson Multisync 2914.


Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #62 on: February 06, 2013, 01:40:21 am »
That's not vp launch, that's visual pinball.  Not much I can do unfortuanately... depending upon your setup you might sometimes get errant window while loading. 

Clavius

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 44
  • Last login:September 03, 2024, 02:04:48 pm
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #63 on: February 06, 2013, 11:23:29 am »
Hmmm... yeah, you're right those are visual pinball windows popping up.  I was previously using something called "PinballWrapper.exe" that was made a long time ago (around 2004 by someone named John according to the readme file) but I have no idea where I found it or if there's an updated version.  When I upgraded MaLa and Visual Pinball to more recent versions it stopped launching a few of the tables in my list but not all of them.  Somehow it was able to hide those windows that are now popping up.  They appear to be *almost* offscreen, maybe they actually were just offscreen before?  Or is there a setting in visual pinball that got changed that allows me to hide those windows?

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #64 on: February 08, 2013, 02:53:26 pm »
AHA. That's what I was talking about - those windows - splash screens actually - I assumed the wrapper would *not allow*. So I'm not the only one hosed. Good.

@Clavius: no, the VP devs seem not to really care about the desktop build, so it's stuck in 1999.
-Banned-

Gray_Area

  • -Banned-
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3363
  • Last login:June 23, 2013, 06:52:30 pm
  • -Banned-
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #65 on: February 14, 2013, 03:52:07 pm »
So I tried this again, and it's loading the table first, then the 'loading' screen pops in for a microsecond, then the table shows again.




-Banned-

Wade007

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 309
  • Last login:April 06, 2017, 01:33:35 pm
  • A MAME cabinet at home is heaven
    • bit.ly/1cWnoIC
    • Cheapskategamer.com
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #66 on: February 15, 2013, 12:06:17 pm »
Grey_Area,
I watched your videos and can see what you were trying to show...table, "Loading", then table.

That is a bit odd.

I don't get that issue at all on my setup. I get "Loading" then Table. Done.

I've testing via VP Launcher and via Mala. Same result.

Maybe there is a setting within VPLauncher that needs to be tweaked? Try running it Windowed mode first.....  :banghead:

I can send you my settings if that helps.
My Super Arcade cabinet project:
Software blog article: http://bit.ly/1cWnoIC

Hardware blog article: http://bit.ly/1dWxjvP

YouTube video: http://bit.ly/1N818Xm

Super Arcade Cabinet Progress thread (Now Complete):
http://forum.arcadecontrols.com/index.php/topic,123292.0.html

Frontend Video Intro: http://bit.ly/1P9HPDN

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 02:45:49 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #67 on: February 15, 2013, 12:46:40 pm »
It could be a myriad of things.  The table is loading and exiting properly, so be thankful and use it. 

I don't think people understand what a cluster******  visual pinball/pinmame is.  Some table authors write code to change the window focus/position from within their table's script, so authors rename the dmd window, causing hooking errors, ect....  It's more of a game maker engine than a simulator/emulator and thus it's constantly doing unexpected things. 

It could be the setup, it could be the wrapper itself, it could be the os, it could be the vp version, it could be the fe, ect...

I got it to work right on my pcs, and that's really all I can do.  There are too many variables to get the loading routine to look beautiful for everyone, unfortunately.

spoot

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 688
  • Last login:June 15, 2015, 10:36:18 am
  • Destroyer of electronics
Re: Announcment: New Visual Pinball Wrapper coming....
« Reply #68 on: February 18, 2013, 07:12:49 pm »
I don't think people understand what a cluster******  visual pinball/pinmame is.

AHMEN!  Writing up a program to match roms/tables to make hyperpin xml atm and set registry settings last few days on and off.  Certain things have filled me with rage.   :badmood: