Jump to content



Photo
* * * * - 6 votes

Direct Output Framework (DOF) R3 Beta


  • Please log in to reply
50 replies to this topic

#21 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 30 May 2017 - 09:39 AM

I've tried the DOF test table, but it also crashes when plugins are enabled in B2S Server - I'm experiencing the freeze/crash before the B2S Server even launches. I've attached a screenshot of what I see when I experience the freeze.

 

11790f1cdf77ddfdbd4d69ce03f9d381.png

 

Any more suggestions for what I can try? Sorry if I haven't given enough info, I'm really new to the digital pinball world...



#22 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 30 May 2017 - 12:41 PM

Well! Triple check that all vp, vpm, b2s, dof files are set to run as admin. Also all the dll's are not blocked.

randr___pinball.png                         


#23 Outhere

Outhere

    Pinball Wizard

  • Platinum Supporter
  • 4,807 posts

  • Flag: United States of America

  • Favorite Pinball: M M

Posted 30 May 2017 - 12:48 PM

1 - Did you check this

Unblock the DLLs

On platforms like Win7 or Vista you might need to unblock the files of the DirectOutput framework, before it can be recognized by hosting applications (e.g. B2S.Server).

Please exceute the following procedure for all dll and exe files of the DirectOutput installtion:

  • Right click the DLL file and select Properties in the context menu.
  • Select the General tab in the properties window.
  • If you find the text _"This file came from another computer and might be blocked to help protect this computer" or somthing similar on this tab, click the Unblock button. This should fix the issue.

If the text about the file coming from another computer does not exist, everthing should be fine.

 

2 - Try VP-10.2.1

http://www.vpforums....982#entry330264



#24 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 30 May 2017 - 01:27 PM

Also maybe disable virus protection for a test

randr___pinball.png                         


#25 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 31 May 2017 - 08:53 AM

Still no luck - VP, VPM, B2S & DOF executables are set to run as admin and I can't see any blocked DLLs. I've updated to VP10.2.1 and I still get the same result. I don't have an antivirus running at the moment, so that can't be interfering with the applications.

 

I'm stumped! Have I missed something really basic?

 

For reference, I am running window 10 Pro.



#26 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 31 May 2017 - 12:43 PM

Running in windowed? So you can see error?

Edited by randr, 31 May 2017 - 12:43 PM.

randr___pinball.png                         


#27 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 31 May 2017 - 12:49 PM

Yep, running windowed - same as the screenshot above, I can't even get the Table or B2S Server to load, so no errors show.



#28 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 31 May 2017 - 09:25 PM

So your saying you disable dof and it works fine?

randr___pinball.png                         


#29 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 31 May 2017 - 10:07 PM

Yes - I can either delete the shortcut to the DOF framework folder (that is in the plugins directory where B2S is sitting), or disable plugins in B2S server and the table and back glass load with no issues.


Edited by kubalicious, 01 June 2017 - 01:50 AM.


#30 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 31 May 2017 - 10:13 PM

Very strange. I would say remove all dof installs. Make sure you have only one b2s install, and start over with dof r2 test and then copy r3 over that

randr___pinball.png                         


#31 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 01 June 2017 - 09:07 AM

Still no luck, grr...

 

I've done an uninstall & reinstall of Visual Pinball & remove of DOF and reinstall of DOF r2 and Visual Pinball still freezes at the same spot. How would I check to make sure I've only got one B2S install?

 

Thanks for the suggestions so far, I really appreciate your help!


Edited by kubalicious, 01 June 2017 - 09:07 AM.


#32 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 01 June 2017 - 12:50 PM

You did then install dof r3 on top of r2? I'm at a loss you should at least be getting an error

randr___pinball.png                         


#33 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 01 June 2017 - 11:45 PM

I didn't bother installing r3 on top of r2, as I get the same result with r2. Is there some way to enable logging in Visual Pinball? That may give some more insight as to why the crash is happening?



#34 randr

randr

    I'm just a hardware guy so...

  • VIP
  • 2,650 posts
  • Location:Minnesota

  • Flag: United States of America

  • Favorite Pinball: Twilight Zone

Posted 02 June 2017 - 12:05 AM

You can enable logging in dof in your config xml. Visual
Pinball is not issue I think it's either your hardware or some software but not vp. Does everything work if you test with ledblinky?

randr___pinball.png                         


#35 kubalicious

kubalicious

    Neophyte

  • Members
  • Pip
  • 8 posts

  • Flag: Australia

  • Favorite Pinball: TBA

Posted 02 June 2017 - 08:27 AM

I finally figured it out.... I'm using a Pinscape and I need to use the customised Pinscape DLLs with DOF - installed the customised DLLs and everything works a treat... I really should have read through the Pinscape documentation a little more....



#36 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 08 June 2017 - 10:25 AM

When mjr's Pinscape material is incorporated into the main thread can the issue of redefinitions please be looked at.  At present in mjr's version of DOF R3, in the Pinscape.Device there are two definitions causing me issues, they are UnitNo / unitNo and numOutputs / NumOutputs.  In C# this is fine due to case sensitivity, but in VB its just not allowed.  As such if you try and use the Pinscape.Device and access either of those properties / functions you simply cannot.  So, ideally from my perspective they would have different spelling to make them usable in VB.

 

A second Pinscape item.  Given that the Pinscape does LEDWiz emulation, to allow a person to have LEDWiz emulation set and still allow programs to determine the difference between a real LEDWiz and an emulated one, is there some property that can be added?  I suspect it would be a Pinscape property, perhaps something like PInscape.Device.LEDWizNum as a Short. This would mean when detecting LEDWiz and Pinscape devices it would be possible to know that a given LEDWiz device should not be used if you've correctly identified and accessed it as a Pinscape device.

 

PS - mjr - I tried to PM you about these but I think the postie may have filled up your inbox  :)


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#37 rambo3

rambo3

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Norway

  • Favorite Pinball: Attack from Mars!

Posted 14 June 2017 - 06:23 AM

Looking at the Pinscape.cs now, and UnitNo() is a function returning local int unitNo inside Device. NumOutputs() is a function returning local int numOutputs. Example:

public int NumOutputs() {
  return numOutputs;
}

If VB is targetting NumOutputs when trying to access numOutputs variable, you might have better luck accessing it like a function  / NumOutputs(). Does that help?


Edited by rambo3, 14 June 2017 - 06:23 AM.


#38 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 14 June 2017 - 07:48 AM

 

Looking at the Pinscape.cs now, and UnitNo() is a function returning local int unitNo inside Device. NumOutputs() is a function returning local int numOutputs. Example:

public int NumOutputs() {
  return numOutputs;
}

If VB is targetting NumOutputs when trying to access numOutputs variable, you might have better luck accessing it like a function  / NumOutputs(). Does that help?

 

 

Thanks for the suggestion, but unfortunately that is not a solution.  I understand the difference between the two, but unfortunately VB.net cannot.  VB.net cannot deal with items of the same name (made the same by case insensitivity) regardless of them being functions or values.  Summed up in MSDN here.

 

I have an ugly work around where I declare system.reflection, return the structure, then crawl through it looking for "unitNo" via getfield and getvalue.  So I can use the value, but could never use the function.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here

#39 rambo3

rambo3

    Enthusiast

  • Members
  • PipPipPip
  • 53 posts

  • Flag: Norway

  • Favorite Pinball: Attack from Mars!

Posted 01 July 2017 - 02:37 PM

Did you get this resolved? I can compile a version to test with the local variables prefixed with a _ for the variables. Gets it closer to getter/setter-style anyway which makes sense in this case.



#40 DDH69

DDH69

    Pinball Wizard

  • Platinum Supporter
  • 3,603 posts
  • Location:DOFLinx HQ, Adelaide

  • Flag: Australia

  • Favorite Pinball: Monster Bash

Posted 02 July 2017 - 03:49 AM

Did you get this resolved? I can compile a version to test with the local variables prefixed with a _ for the variables. Gets it closer to getter/setter-style anyway which makes sense in this case.

 

Thanks for asking.  Still in the same position as my last post in this thread.  It is working fine with mjr's branch and the main branch, but with an ugly work-around.  My desire to have the main branch not use function / variables that are spelt the same just with different capilitalisation remains when mjr's great work is rolled in.


DOFLinx
Contributions for equipment to help with ongoing DOFLinx development can be made here