freezy / node-pind

A lightweight webapp that runs on a virtual cab, serving all kinds of neat stuff.
http://pind.ch/
Other
2 stars 1 forks source link

Automatically update tables for B2S #23

Open viriiguy opened 11 years ago

viriiguy commented 11 years ago

A feature to take the legwork out of modifying each individual Table to Use B2S, as all tables will need to be updated to this in order to use the newest Direct Output Framework LEDWiz version.

The change is a simple find and replace. Find Set Controller = CreateObject("VPinMAME.Controller") Or Set Controller = CreateObject("UltraVP.BackglassServ")

Replace with Set Controller = CreateObject("B2S.Server")

freezy commented 11 years ago

Yup, that's on the plan. However, it's not always that easy. For instance, the T2 table has a more sophisticated config:

'DMD and B2S options
DMD_Rotation      = 0     ' 1 will change the DMD orientation
B2S_Backglass     = 0     ' 1 if you use B2S backglass (working only with the new B2S system)

Dim B2S_Backglass
   Sub LoadVPM(VPMver,VBSfile,VBSver)
    On Error Resume Next
        If ScriptEngineMajorVersion<5 Then MsgBox"VB Script Engine 5.0 or higher required"
        ExecuteGlobal GetTextFile(VBSfile)
        If Err Then MsgBox"Unable to open "&VBSfile&". Ensure that it is in the same folder as this table."&vbNewLine&Err.Description:Err.Clear
        If B2S_Backglass = 0 Then:Set Controller=CreateObject("VPinMAME.Controller"):Else:Set Controller=CreateObject("B2S.Server"):End If  
        If Err Then MsgBox"Can't Load VPinMAME."&vbNewLine&Err.Description
        If VPMver>"" Then If Controller.Version<VPMver Or Err Then MsgBox"VPinMAME ver "&VPMver&" required.":Err.Clear
        If VPinMAMEDriverVer<VBSver Or Err Then MsgBox VBSFile&" ver "&VBSver&" or higher required."
    On Error Goto 0
   End Sub
viriiguy commented 11 years ago

This is very true, but those are a rarity... And we can easily edit those by hand when required.

bleasby commented 10 years ago

You are most probably not focused on developing pind anymore, as it looks like you are developing the VP10 VP database project, but could you spend a little bit of your time to just include the automatic download of B2S backglasses?

I would be really thankfull if you did that, as VP9 tables can take a lot advantage of that also.

I am not asking for the full implementation of the script editing. I just wan't to be able to download all existent B2Ss to my tables, and I will adjust myself the scripts when needed. It is just to make it easier to get the newer released B2S tables through pind, as it is much nicier than any other alternative.

I was thinking of doing this myself, but I am not that well versed on java script. Anyway, I thought about just adding a new "media" asset, so whenever you choose the find media option you would also look for the B2S backglass existence, and them we would need only to adapt the cat number on the _findMedia and the extraction path on the hyperpin.js for this special case.

Thank you very much for everything that you done until now. This utility saved me a lot of time, and I never get tired of seeing my tables on it.

freezy commented 10 years ago

Oh, someone is actually using this ;)

So you basically want another tab "B2S" so you can easily download the backglasses?

bleasby commented 10 years ago

Yeah, that is exactly what I want.

And Yes! I am using it, and loving it. It is much much better than navigating on vpforums to download tables and assets. In the perfect world I would only use your tool and nothing more. The only things that I download by hand are the B2S download and the VPU exclusive tables, and if you implement the B2S, that would save me a huge time.

Thanks again for making such nice ap.

freezy commented 10 years ago

Okay I'll see what I can do, shouldn't be too hard. Cheers!