Jump to content




Photo
* * * * * 2 votes

PinScreenGen - Automatically Generates Playfield & BG Images & HP XML for VP/FP Tables


  • Please log in to reply
68 replies to this topic

#1 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 28 December 2010 - 06:23 PM

***********************************************************************
**** Automatically Creates Missing PLAYFIELD and BACKGLASS Images plus Hyperpin XML
**** No need to rename images (they are created with same name as table)
**** Works with both FUTURE PINBALL and VISUAL PINBALL (PF Only in VP)
**** Can directly update images in Hyperpin Folders (optionally set in ini file)
**** Can also be used in attract mode only, launching each table for a specified time
PinScreenGen Utility Video
PinScreenGen Utility Download
***********************************************************************

NOTE-1: Windows 7 Users - You are likely to have problems generating screenshots with this tool if you use nVidia 260.99 drivers on a Window 7 PC. All XP and other Windows 7 setups should work correctly. Many thanks to Blitz17 and Blur for identifying this.
NOTE-2: Windows 7 Users - if you experience other issues with FP screen capture not working / FP not closing / crashing then please set the batch file and PinScreenGen.exe file to Windows XP Service Pack 3 compatibility. Thanks to Arcade4 for the info.

If you don’t have time to download/install the Hyperpin media packs for VP and FP tables, this utility will generate all the Playfield and Backglass images and Hyperpin XML for all your tables automatically.

The utility is a AutoHotKey script (based on FPLaunch) which automatically launches each Visual Pinball OR Future Pinball table located in a specified folder, for each table captures the playfield screenshot and Backglass screenshot (for FP Only) to two separate PNG images with the same name as the table along with the Hyperpin XML for the tables (the name and description which is taken from the filename).

After I you have run the utility all that is left to do is batch convert the playfield images to rotate them 180 degrees to work with Hyperpin (highlight all images in windows explorer thumbnail view and rotate twice).

The utility can work incrementally so if you download say 20 new tables I can get the utility to just generate the missing images with XML in a few minutes.

I have also added an ‘Attract Mode Only’ option which just cycles through the table launching each one in Future Pinball for a specified time period. All settings are controlled from a simple INI file.


These are the generated playfield images (backglass images are in other folder):


Cheers

Vic

Edited by settingsons, 22 January 2012 - 03:15 PM.


#2 lonnie

lonnie

    Enthusiast

  • VIP
  • 155 posts
  • Location:Logansport, In

  • Flag: United States of America

  • Favorite Pinball: Dirty Harry

Posted 28 December 2010 - 07:11 PM

That would be great and very handy. Also for VP.

Regards,
Lonnie

#3 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 29 December 2010 - 10:16 PM

As several people have shown interest here and over on the Hyperpin forums in this utility that I initially just did for myself, I have tidied it up a bit, and have uploaded the utility and a video. I also added support for VP as well as FP.

It has only been tested on my XP PC, and I created 100 FP screenshots and about 80 VP screenshots in about 30 minutes. The only time I got issues was when it loaded tables that had missing ROMS, etc. but I tried to handle these cases so the process should proceed to the next table. I have only tested it with FP, VP with/without Pinmame, VP with UVP, but not with FlashUVP tables like Monopoly.

I hope it helps someone - any feedback appreciated. Cheers

There is a quick video on Youtube (excuse the poor quality!)
PinScreenGen Utility Video

Here is the util with source code:
http://www.vpforums....s...ost&p=93111

Edited by settingsons, 01 January 2011 - 05:07 PM.


#4 Flying Dutchman

Flying Dutchman

    Pinball Wizard

  • VIP
  • 3,075 posts

  • Flag: ---------

  • Favorite Pinball: Medieval Madness / Champion Pub



Posted 29 December 2010 - 10:41 PM

Great utility settingsons .. will try it for my FP Tables later on! smile.gif

Cheers,
FD.

'Flying Dutchman'

In need for a Backglass or 'Active Backglass / UVP' please 'click' on below and visit the complete revised website at:
Posted Image

#5 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 29 December 2010 - 11:27 PM

great utility, will check it ASAP

does it saves backglasses for VP?

you should not save backglass for VP because if you had a backglass that means you already have image in backglass folder so you could overwrite it with new image that would probably be darker then the first one because UVP uses images from hyperpin's backglass dir and darkens them with alpha mask. And this new dark backglass would be too dark to be used again in uvp and darkened again.


#6 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 29 December 2010 - 11:37 PM

QUOTE (blur @ Dec 29 2010, 11:27 PM) <{POST_SNAPBACK}>
great utility, will check it ASAP

does it saves backglasses for VP?

you should not save backglass for VP because if you had a backglass that means you already have image in backglass folder so you could overwrite it with new image that would probably be darker then the first one because UVP uses images from hyperpin's backglass dir and darkens them with alpha mask. And this new dark backglass would be too dark to be used again in uvp and darkened again.


You are correct Blur it doesn't save backglasses for VP as you would already have them. I just grab them for the FP table mode because they are part of the table file. (Please note for FP you still need to size/move the table and bakglass using the scroll-lock options - this is something I would love to automate in the future).

The defaults in the ini file don't point directly to the Hyperpin image directories so you can generate images and copy them once you are happy with them. I put a lot of comments in the ini file and also wrote a readme.txt.

Thanks

Edited by settingsons, 29 December 2010 - 11:40 PM.


#7 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 29 December 2010 - 11:54 PM

QUOTE (Flying Dutchman @ Dec 29 2010, 10:41 PM) <{POST_SNAPBACK}>
Great utility settingsons .. will try it for my FP Tables later on! smile.gif

Cheers,
FD.


Thanks FD!

#8 Flying Dutchman

Flying Dutchman

    Pinball Wizard

  • VIP
  • 3,075 posts

  • Flag: ---------

  • Favorite Pinball: Medieval Madness / Champion Pub



Posted 30 December 2010 - 06:35 PM

Just run your utility for my FP Tables under Windows7 and I must say: Brilliant!!

It recognized the ones that already had a Table image and BG image to them and simply added all the missing ones!!

Simple to setup => make sure you got the location of where the Table-images as well as the BG images needs to be stored correctly setup in your .ini file and off you go ..

Under W7 I didn't even have to use IrfanView (which by-the-way is a great application by itself) to rotate the Table images. Simply go to the directory where the Table images are stored, select the ones you would like to rotate .. rotate them and .. ready!

Congrats .. a Great Tool to use!! smile.gif
Thanks again!

Cheers,
FD.
'Flying Dutchman'

In need for a Backglass or 'Active Backglass / UVP' please 'click' on below and visit the complete revised website at:
Posted Image

#9 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 30 December 2010 - 07:05 PM

QUOTE (Flying Dutchman @ Dec 30 2010, 07:35 PM) <{POST_SNAPBACK}>
Just run your utility for my FP Tables under Windows7 and I must say: Brilliant!!

It recognized the ones that already had a Table image and BG image to them and simply added all the missing ones!!

Simple to setup => make sure you got the location of where the Table-images as well as the BG images needs to be stored correctly setup in your .ini file and off you go ..

Under W7 I didn't even have to use IrfanView (which by-the-way is a great application by itself) to rotate the Table images. Simply go to the directory where the Table images are stored, select the ones you would like to rotate .. rotate them and .. ready!

Congrats .. a Great Tool to use!! smile.gif
Thanks again!

Cheers,
FD.


Glad to know that it worked for you FD and many thanks for the positive comments! Cheers

Vic


#10 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 01 January 2011 - 05:05 PM

Please note an updated version of the Screenshot utility has been uploaded at this URL....

http://www.megaupload.com/?d=89BDFVSW

#11 anthias

anthias

    Enthusiast

  • VIP
  • 283 posts

  • Flag: Australia

  • Favorite Pinball: Flame Reaper: First Responders Unit



Posted 02 January 2011 - 12:27 AM

great utility! Hyperpin is great and I stopped doing anything with it because my collection of supporting media was out by about 50 tables and I couldnt be stuffed doing them, so this is awesome. Thanks!

suspended earth . com - site devoted to my science fiction and fantasy novels

Games not pinball related

Currently in the game room: 
Williams Defender converted MAME cab,
Largescreen JAMMA cab running "Gemini Wings"

Sadly the game room has lost its shining stars.


#12 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 03 January 2011 - 06:48 PM

QUOTE (anthias @ Jan 2 2011, 01:27 AM) <{POST_SNAPBACK}>
great utility! Hyperpin is great and I stopped doing anything with it because my collection of supporting media was out by about 50 tables and I couldnt be stuffed doing them, so this is awesome. Thanks!


Thanks anthias for the feedback - much appreciated. Glad it saved you some work!

Cheers.
Vic

#13 lonnie

lonnie

    Enthusiast

  • VIP
  • 155 posts
  • Location:Logansport, In

  • Flag: United States of America

  • Favorite Pinball: Dirty Harry

Posted 03 January 2011 - 09:40 PM

I think this is fantastic. Great tool. Thanks for your hard work. This along with the program to set all DMD written in German once you set one sure does help alot.

Regards,
Lonnie

#14 pinball buzz

pinball buzz

    Pinball Fan

  • VIP
  • 823 posts
  • Location:United Kingdom

  • Flag: United Kingdom

  • Favorite Pinball: TOM



Posted 04 January 2011 - 06:42 AM

Hi Vic,
Thanks for your hard work on this - downloaded and runs like a dream.

Awesome work cool.gif cool.gif cool.gif cool.gif cool.gif

This combined with Melons XML Update Utility is just great,

Cheers Buzz
Pinball Buzz - Builder of pinball cabs since May 2008.

See my cab pictures here

http://www.flickr.co...s/94649948@N00/
[/size][/size]

#15 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 15 January 2011 - 01:31 AM

Updated first post with additional information.

#16 settingsons

settingsons

    Pinball Fan

  • VIP
  • 956 posts
  • Location:Switzerland

  • Flag: Switzerland

  • Favorite Pinball: Terminator 2 and many EM machines



Posted 10 March 2011 - 08:21 PM

Please note that the first post in this thread has been updated with Windows 7 compatibility information. Thanks

#17 bladexdsl

bladexdsl

    Joined the elite ranks

  • Banned
  • PipPipPipPip
  • 1,234 posts
  • Location:Queensland

  • Flag: Australia

  • Favorite Pinball: Scared stiff and Congo

Posted 01 June 2011 - 02:48 PM

i'm having trouble with this in windows 7 with nvidia 270 drivers. i can get images to work with the Playfield_Image_Capture_X_Y_H_W = "0,0,1366,766" option however when i try the ;Playfield_Image_Capture_X_Y_H_W = "0,0,1920,1080" option it saysd it has created the images but when i go to the folder it's empty?!

Edited by bladexdsl, 01 June 2011 - 02:49 PM.


#18 DedRok_V

DedRok_V

    Crazed Pinball Wizard (Australia's Former #1)

  • Platinum Supporter
  • 2,223 posts
  • Location:Newcastle, Australia

  • Flag: Australia

  • Favorite Pinball: Avengers Blue LE : Judge Dredd : Cosmic Princess

Posted 01 June 2011 - 03:42 PM

If i'm not mistaken, you have to add the 2nd backglass res to the 1st.
Yours would be showing off screen.
Re read the setup instructions, and see how you go.


Edited by DedRok_V, 01 June 2011 - 03:46 PM.





Blueprint game : up to date list http://www.vpforums....s...st&p=147107

#19 bladexdsl

bladexdsl

    Joined the elite ranks

  • Banned
  • PipPipPipPip
  • 1,234 posts
  • Location:Queensland

  • Flag: Australia

  • Favorite Pinball: Scared stiff and Congo

Posted 01 June 2011 - 03:44 PM

but it's not even creating the images the dir is empty afterwards whether it be off screen or not?

this is what my ini file looks like

Hyperpin XML table for FP
; Show_Table_Time = Time in ms to keep table open for after laucnh. 2 seconds is adequate to capture screenshot
; Attract_Mode_Only = true = Will just display tables without generating images
; Delay_After_Emu_Close = Increase this if you get an error message box saying cannot close FP
;*******************************************************************************
************************************

;------------------------------------------- FUTURE PINBALL ----------------------------------------------
[Future Pinball]
;--- TODO - Define where your future pinball exe and tables are defined
Exe = Future Pinball.exe
Path = C:\Games\Future Pinball\
Table_Path = C:\Games\Future Pinball\Tables\
;--- TODO - Define where you want to create the generated playfield and backglass images (can use the defaults below)
Table_Image_Creation_Path = .\Future Pinball\Table Images\
Backglass_Image_Creation_Path = .\Future Pinball\Backglass Images\

Capture_Image_Type = png
Max_Tables_To_Process = 999
Override_Existing_Images = false
Generate_Database_XML_Entries = true
Show_Table_Time = 2000
Delay_After_Emu_Close = 4000
Attract_Mode_Only = false

;---- TODO - Define the capture co-ordinates for the playfield and backglass
;---- Settings for 1366 x 766 Playfield and 1280 x 1024 ----
Playfield_Image_Capture_X_Y_H_W = "0,0,1366,766"
Backglass_Image_Capture_X_Y_H_W = "1367,0,2646,1024"

;---- Settings for 1920 x 1080 Playfield and 1280 x 1024 ----
;Playfield_Image_Capture_X_Y_H_W = "0,0,1920,1080"
;Backglass_Image_Capture_X_Y_H_W = "1921,0,3201,1024"


;------------------------------------------- VISUAL PINBALL ----------------------------------------------
[Visual Pinball]
;--- TODO - Define where your future pinball exe and tables are defined
Exe = VPinball.exe
Path = C:\Program Files (x86)\Visual Pinball\
Table_Path = C:\Program Files (x86)\Visual Pinball\Tables
;--- TODO - Define where you want to create the generated playfield images (can use the default below)
Table_Image_Creation_Path = .\Visual Pinball\Table Images\

Capture_Image_Type = png
Max_Tables_To_Process = 999
Override_Existing_Images = true
Generate_Database_XML_Entries = true
Show_Table_Time = 2000
Delay_After_Emu_Close = 4000
Attract_Mode_Only = false

;---- TODO - Define the capture co-ordinates for the playfield and backglass
;---- Settings for 1920 x 1080 Playfield and 1280 x 1024 ----
;Playfield_Image_Capture_X_Y_H_W = "0,0,1920,1080"

Edited by bladexdsl, 01 June 2011 - 03:46 PM.


#20 DedRok_V

DedRok_V

    Crazed Pinball Wizard (Australia's Former #1)

  • Platinum Supporter
  • 2,223 posts
  • Location:Newcastle, Australia

  • Flag: Australia

  • Favorite Pinball: Avengers Blue LE : Judge Dredd : Cosmic Princess

Posted 01 June 2011 - 03:49 PM

So the playfield isnt showing at 1920 1080.

Maybe this?
You have the 1920 x 1080 still commented out and the 1366 x 766 commented.
Change it around

;---- TODO - Define the capture co-ordinates for the playfield and backglass
;---- Settings for 1366 x 766 Playfield and 1280 x 1024 ----
Playfield_Image_Capture_X_Y_H_W = "0,0,1366,766"
Backglass_Image_Capture_X_Y_H_W = "1367,0,2646,1024"

;---- Settings for 1920 x 1080 Playfield and 1280 x 1024 ----
;Playfield_Image_Capture_X_Y_H_W = "0,0,1920,1080"
;Backglass_Image_Capture_X_Y_H_W = "1921,0,3201,1024"

Edited by DedRok_V, 01 June 2011 - 03:58 PM.





Blueprint game : up to date list http://www.vpforums....s...st&p=147107