rockyrocket Posted December 21, 2013 Share Posted December 21, 2013 So with the new release of the Unity3d pinball alpha I thought I would try to get this going in PinballX.It has few challenges mostly being that it needs its own vpinmame.dll to work - thats fine its a alpha after all.The problem is that the U3DP DLL breaks pindmd support for me in VP so I needed to change the DLL on the fly and also register it..The tables also need to stay in separate folders and not all live in one generic tables folder and so far I do not know how to force PinballX to scan sub folders?.Anyway I managed to fudge together a work around that works apart from the occasional focus issue in PinballX.To get all this working my solution was to have a wrapper for each (3) table, this did however cause some problems as I could not get each table to load from one XML - please pipe up is you have a better way .So its a bit messy as each table is set up as a single emulator but it works until I/we find a better way.I am assuming that you already have Unity3D set up and working.This is only tested in win7 64bit if you are on 32bit or XP then please use the correct version of regsvr32.exeThe best way to explain this is probably to look at the contents of one wrapper...FileDelete, C:\Games\Visual Pinball\VPinMame\VPinMame.dllFileCopy, C:\Games\Visual Pinball\U3DP\VPinMame.dll, C:\Games\Visual Pinball\VPinMame\Run, "C:\Games\\Visual Pinball\VPinMame\register vpinmame.batRun, "C:\Games\Unit3D Pinball - Alpha Release\Unit3D Pinball.exe" "C:\Games\Unit3D Pinball - Alpha Release\Tables\Black Knight 2000\Black Knight 2000.upt" /editorSleep, 500Send {Enter Down}, Send {Enter Up}Process, wait, Unit3D Pinball.exeProcess, WaitClose, Unit3D Pinball.exeFileDelete, C:\Games\Visual Pinball\VPinMame\VPinMame.dllFileCopy, C:\Games\Visual Pinball\orig-dll\VPinMame.dll, C:\Games\Visual Pinball\VPinMame\Run, "C:\Games\\Visual Pinball\VPinMame\register vpinmame.batexitappSo you will of course have to change your paths to pinmame and unity3D but I hope this is reasonably self explanatory.In my visual pinball folder there is a folder called "U3DP" that contains my unity3d VPinMame.dll and then in a folder named "orig-dll" lives you guessed it my normal VPinMame.dll .In the root "VPinMame" folder I have placed a copy of regsvr32.exe and a bat file that will/should register the dll at each change (all of the files are attached to this post).Once all the files are in the correct place and your paths are correct in the AHK`s you can either run them as they are (you do have AHK installed right) or compile them for use in PinballX.If you can now start a table in unity3d from a wrapper and close it the also play VP fine after then most of the work is done.As for PinballX if you create three new emulators with the same names as the enclosed XML`s and use the settings from my Dr dude example in the screen grab below - you should then be good to go!.Note I have the wrappers compiled as .exe`s` and in the tables folder.So I think I have waffled on enough and hope all is explained, and please if anyone has a simpler way please speak up. Package.7z 1 Link to comment Share on other sites More sharing options...
Tom Speirs Posted December 21, 2013 Share Posted December 21, 2013 Just so folks know I will add full support as things progress. Link to comment Share on other sites More sharing options...
rockyrocket Posted December 22, 2013 Author Share Posted December 22, 2013 Good news tom. I am sure most of these steps will become irrelevant anyway. Link to comment Share on other sites More sharing options...
tezting Posted January 8, 2014 Share Posted January 8, 2014 Just so folks know I will add full support as things progress.Is that now with the beta or when it is in none beta? Link to comment Share on other sites More sharing options...
rockyrocket Posted January 8, 2014 Author Share Posted January 8, 2014 Just noticed that a DLL with unity support is now available, so no more DLL swapping is needed .http://vpuniverse.com/forums/files/file/2480-vpinmame-25-sampindmdunity-cabinet-versions/ 1 Link to comment Share on other sites More sharing options...
Tom Speirs Posted January 8, 2014 Share Posted January 8, 2014 @tezting. When I get a chance to look at it. I am cabless right now.@rocky. Thanks for sharing. 1 Link to comment Share on other sites More sharing options...
Zeiram Posted January 9, 2014 Share Posted January 9, 2014 Just noticed that a DLL with unity support is now available, so no more DLL swapping is needed .http://vpuniverse.com/forums/files/file/2480-vpinmame-25-sampindmdunity-cabinet-versions/Does this fix the broken DMD issue? Link to comment Share on other sites More sharing options...
rockyrocket Posted January 9, 2014 Author Share Posted January 9, 2014 Does this fix the broken DMD issue?Yes it does!, and as it also supports the sam roms that means avatar and ironman will also work with it . Link to comment Share on other sites More sharing options...
evilantal Posted January 28, 2014 Share Posted January 28, 2014 Could you post an update on how to get this working with the new Unit3D enabled VPinMame dll?Should be a bit easier.... Link to comment Share on other sites More sharing options...
rockyrocket Posted January 28, 2014 Author Share Posted January 28, 2014 Could you post an update on how to get this working with the new Unit3D enabled VPinMame dll?Should be a bit easier....A new update is promised by the devs so I was waiting for that - but if by the weekend nothing shows then I will have another look. Link to comment Share on other sites More sharing options...
rockyrocket Posted January 30, 2014 Author Share Posted January 30, 2014 Looks like tom has baked support directly into PinballX, thanks man!.http://www.gameex.info/forums/topic/14136-173-released/#entry117939 Link to comment Share on other sites More sharing options...
Tom Speirs Posted January 30, 2014 Share Posted January 30, 2014 I will probably add it as its own system rather than just a custom system as things move along. The update was just to make it easier to add it as a custom system. Link to comment Share on other sites More sharing options...
rockyrocket Posted February 21, 2014 Author Share Posted February 21, 2014 The promised update has arrived ,along with a new shiny project WEBSITE.Performance is much improved and some new tables are now available.Thanks to toms update above its now much easier to install with settings as shown in the attached screen grab - just remember to update your vpinmame.dll from the link above.Also attached is a working XML for all the available tables at this time....unit3d.zip 2 Link to comment Share on other sites More sharing options...
zeenon Posted February 21, 2014 Share Posted February 21, 2014 Hmmmmm, I hear the tables starting but all I see is the PinballX LOADING screen. An Alt-tab or mouse click does nothing, in fact I don't even see unit3d running. (although the DMD is playing)Works fine outside of PBX. Rocky the tables are so dark compared to your video, did you adjust the brightness?[system_6]Name=Unit3D PinballWorkingPath=D:\Unit3D PinballTablePath=D:\Unit3D Pinball\TABLESExecutable=Unit3D Pinball.exeParameters="[TABLEPATH]\[TABLEFILE]"Enabled=TrueLaunchBeforeEnabled=falseLaunchBeforeWorkingPath=LaunchBeforeExecutable=LaunchBeforeHideWindow=FalseLaunchBeforeWaitForExit=TrueLaunchAfterEnabled=TrueLaunchAfterWorkingPath=D:\PinballX\ScriptsLaunchAfterExecutable=ledset.batLaunchAfterHideWindow=TrueLaunchAfterWaitForExit=FalseMouseClickFocus=TrueZ Link to comment Share on other sites More sharing options...
pocketpal Posted February 22, 2014 Share Posted February 22, 2014 Hmmmmm, I hear the tables starting but all I see is the PinballX LOADING screen. An Alt-tab or mouse click does nothing, in fact I don't even see unit3d running. (although the DMD is playing)Works fine outside of PBX. Rocky the tables are so dark compared to your video, did you adjust the brightness?[system_6]Name=Unit3D PinballWorkingPath=D:\Unit3D PinballTablePath=D:\Unit3D Pinball\TABLESExecutable=Unit3D Pinball.exeParameters="[TABLEPATH]\[TABLEFILE]"Enabled=TrueLaunchBeforeEnabled=falseLaunchBeforeWorkingPath=LaunchBeforeExecutable=LaunchBeforeHideWindow=FalseLaunchBeforeWaitForExit=TrueLaunchAfterEnabled=TrueLaunchAfterWorkingPath=D:\PinballX\ScriptsLaunchAfterExecutable=ledset.batLaunchAfterHideWindow=TrueLaunchAfterWaitForExit=FalseMouseClickFocus=TrueZI had this same problem with 1.74, but upgrading to 1.75 solved it. Link to comment Share on other sites More sharing options...
zeenon Posted February 22, 2014 Share Posted February 22, 2014 I don't know what else to try....and I'm surprised because VP, FP, FP w/ BAM, PBFX2 all work fine (and have been for the last 20 versions of PBX)Win 7 64 bit, Nvidia GTX 660, PBX 1.75, Shark codecs, etcAll I get is a black BG and the LOADING screen on the main monitor, I can hear the table loading, I see the DMD (Vishay) fire up....but get this.....none of the keys work except 'Q'. I can't insert credits, start the game.......nothing, this sounds like the issue in the other thread.The only thing I noticed that is a bit off....when starting a Unit3D table manually, I have to single click on the table before I can insert credits/start/etc. so I'm wondering if that is throwing a wrench in the mix.Z Link to comment Share on other sites More sharing options...
rockyrocket Posted February 22, 2014 Author Share Posted February 22, 2014 I don't know what else to try....and I'm surprised because VP, FP, FP w/ BAM, PBFX2 all work fine (and have been for the last 20 versions of PBX)Win 7 64 bit, Nvidia GTX 660, PBX 1.75, Shark codecs, etcAll I get is a black BG and the LOADING screen on the main monitor, I can hear the table loading, I see the DMD (Vishay) fire up....but get this.....none of the keys work except 'Q'. I can't insert credits, start the game.......nothing, this sounds like the issue in the other thread.The only thing I noticed that is a bit off....when starting a Unit3D table manually, I have to single click on the table before I can insert credits/start/etc. so I'm wondering if that is throwing a wrench in the mix.ZSuper quick post as I am off to work but things to try are; - Run as admin and set full permissions for every user account?, did this whilst trying to associate .udp files with the exe (did not work). - Drag all the "handles" again in the set up and resave exit then restart and check all is ok?. - The having to mouse onto the screen for focus is something I also have to do but have been ignoring as I am using a mouse a lot with it at the moment, so did not even think about that. - AHK could fix the mouse problem (seems like cursor is sent to the backglass on load?), don`t have time for a few days but can look at that when I do.- The table lighting is adjustable by sliders - great fun!. Link to comment Share on other sites More sharing options...
rockyrocket Posted February 22, 2014 Author Share Posted February 22, 2014 Found some time basically by not doing what I am supposed to today .Managed to fix the focus problem (at least for myself) by making an AHK file that sends some mouse clicks to the center of screen one with some sleeps in between.The script is attached and again the settings that work for me are shown in a screenshot.As a side note to associate the .udp files I had to set the path to the EXE in the registry before win7 would let me do it?.You dont really need to do this but its how I have things workng in GameEx and sometimes its nice to be able to doubleclick a tablefile to open it.Also attached is a unit3d manufacturers logo if anyone wants one.Unit3D focus.zip 1 Link to comment Share on other sites More sharing options...
zeenon Posted February 26, 2014 Share Posted February 26, 2014 Tom,Can you whip up a test pinballx.exe to try and bring the Unit3d program to the front?Z Link to comment Share on other sites More sharing options...
randr Posted February 26, 2014 Share Posted February 26, 2014 same thing happens if you try to load another custom system vpinballdx9.exe Link to comment Share on other sites More sharing options...
Tom Speirs Posted February 26, 2014 Share Posted February 26, 2014 Try the attached. It will send the pinballx window to the back.PinballX.zip Link to comment Share on other sites More sharing options...
randr Posted February 27, 2014 Share Posted February 27, 2014 seems to did the trick..though slow. Loading screen is up backglass is up dmd is on and probably 5-7 sec later playfield will display. BUT WORKS! Link to comment Share on other sites More sharing options...
zeenon Posted February 27, 2014 Share Posted February 27, 2014 I'm going to put my Unit3D/PBX testing on hold until a few more people check in. (If anyone wants to kick this around I'm open to testing)If I run Unit3D Pinball.exe from explorer it opens then asks for a table and loads fine.If I run (start ->run) "D:\Unit3D Pinball\Unit3D Pinball.exe" "D:\Unit3D Pinball\TABLES\Scared Stiff\Scared Stiff.upt" it loads fine.Inside of PBX I start the table....PBX goes to the LOADING screen.....I can hear the table sounds and I see the DMD animations, but just a black screen. The issue I can't figure out is, it's not viewable when you alt-tab...there is no unity3d program hiding behind PBX. If I Ctrl-Alt-Delete I see the Unit3d Pinball.exe running in the processes tab but not the applications tab.Z Link to comment Share on other sites More sharing options...
Tom Speirs Posted February 28, 2014 Share Posted February 28, 2014 It may just be due to the Alpha status. I cannot even get it to run a table on win 8.1. Link to comment Share on other sites More sharing options...
rockyrocket Posted February 28, 2014 Author Share Posted February 28, 2014 Wonder if its a GPU driver thing, like used to sometimes plague the future pinball backglass not showing in hyperpin?.May sound silly but have you tried running in the different compatibility modes?, again the VP DMD used to hide unless it was in windows NT mode - may be worth a shot?. Link to comment Share on other sites More sharing options...
Recommended Posts