![]() ![]() Type "%PINemHiHS%\%TEMPTXT%.txt" | "%ImageMagick%\convert.exe" -background none -fill yellow -pointsize 26 -resize 570x730 "%PINemHiPNG%\%TEMPTXT%.png" REM if you'd like a monospaced output, add -font Courier REM Choose to size the resulting image based on the background file you use REM Call ImageMagick convert to create a PNG from the hiscore TXT file (note color, font and other options available) "%PINemHiPath%\pinemhi.exe" %TEMPTXT%.nv>"%PINemHiHS%\%TEMPTXT%.txt" REM we will only process the nvram file if the rom is supported by PINemHiįor /F "usebackq delims=" %%A in ("%PINemHiPath%\supported.txt") do ( IF NOT EXIST "%NVRamPath%\%TEMPTXT%.nv" exit REM We generate a text file with the high scores High scores:>"%PINemHiHS%\%TEMPTXT%.txt"Ĭall echo %%var%% %%var%%>"%PINemHiHS%\%TEMPTXT%.txt" REM We read the PostIT file into an Arrayįor /f "usebackq delims=" %%I in ("%UserPath%\%TEMPTXT%") do ( More "%PINemHiHS%\%1\HighScore%%G">"%PINemHiHS%\%TEMPTXT%.txt"įor /f %%I in ("%PINemHiHS%\%TEMPTXT%.txt") do if %%~zI=0 del "%PINemHiHS%\%TEMPTXT%.txt" ![]() More "%PINemHiHS%\%1\HighScore%%GName">"%PINemHiHS%\%TEMPTXT%.txt" REM Then parse and build TXT file similar to POSTIT %Zexepath%\7z.exe x -o"%PINemHiHS%" "%UserPath%\VPReg.stg" %1 REM extract hiscore files from High Scores>"%PINemHiHS%\%TEMPTXT%.txt" REM delete TXT files with size 0 as they are emptyįor /f %%I in ("%PINemHiHS%\%~2.txt") do if %%~zI=0 del "%PINemHiHS%\%TEMPTXT%.txt" IF NOT EXIST "%FPNVRamPath%\%~2.fpram" exit REM We will select the right parsing routine REM "%PINemHiPath%\pinemhi.exe" -lr>"%PINemHiPath%\supported.txt" REM Uncomment the next line to regenerate PINemHi supported roms DB REM Need to change to the PINemHi folder in order for the exe to read its INI REM This suffix will be added to the second parameter passed (tablename) when saving high score PNGs SET "POPFPMedia=c:\Pinball\PinupSystem\POPMedia\Future Pinball\GameInfo" REM Folder where you want the FP high score PNGs with high scores placed (GameInfo, Topper, DMD, etc.) SET "POPVPMedia=c:\Pinball\PinupSystem\POPMedia\Visual Pinball X\GameInfo" REM Folder where you want the VP high score PNGs with high scores placed (GameInfo, Topper, DMD, etc.) SET "UserPath=c:\Pinball\Visual Pinball\User" ![]() SET "FPNVRamPath=c:\Pinball\Future Pinball\fpRAM" SET "NVRamPath=c:\Pinball\Visual Pinball\VPinMAME\nvram" REM Filename of background image to be used REM Path for temporary PNGs and background image If NOT EXIST "%PINemHiHS%" (mkdir "%PINemHiHS%") REM Set the following variables based on your setup Note: I'm currently using a 736×920 background imageĤ) windows batch script hiscore.bat that takes and “” “” as parameters off Note: lots of customization here, so you can experiment with font size, colors, background image, etc.ģ) JPG for background (use I use a chalkboard in my setup (examples at ) Note: Tested with the portable 32-bit version ![]() Note: Takes a txt file and merges it with a background picture. Note: PINemHi supports Future Pinball but I did not spend any time on thatĢ) MagiImageMagick-7.0.8-14-portable-Q16-x86 ( ) Note: PINemHi has an ini file that only requires pointers to VPinMAME\nvram\ and Future Pinball\fpram Takes romname.nv as parameter, and outs the high-score information via stdout Users can choose to save in Topper or DMD folders if they fit their setup better.Ĭomponents: 1) PINemiHi 1.3.1 (from vpforums) The PNG file is saved, in this example, as GAMEFILE-06.png and stored in \POPMedia\Visual Pinball X\Gameinfo (Note: the “-06” suffix fits well into my personal setup, and the \Visual Pinball X\ folder is where I store all media for VP, independently of version). Summary: after exiting a VP/FP table, a script is called to parse either the VPM nvram file or the PostIT-style high score text file, as well as Future Pinball fpram files, and generates a PNG file with the high score information for that particular rom (example: ). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |