core.vbs is not used in non pinmame tables - maybe that's the problem
on the other hand core.vbs has a lot of code that is not dependant on pinmame - so it can be used in non rom tables also, specially if you want some commands to be executed in all your tables
i saw for example one original table (i think from bob) without rom that used core.vbs just to get magnet object (which can be used in saucers or in plunger to keep the ball steady in one place)
most tables don't have include commands for core in table script but they get it indirectly from some other script,
for example Williams tables will have ExecuteGlobal GetTextFile(VBSfile) in LoadVPM function which includes WPC.vbs file which on the other hand has ExecuteGlobal GetTextFile("core.vbs")
gottlieb sytem 80 tables will include sys80.vbs which als has ExecuteGlobal GetTextFile("core.vbs")
So you can just put ExecuteGlobal GetTextFile("core.vbs") anywhere in your script - it is important to have core.vbs in your table directory, it will not work if core is not in same dir as table (except if you use vpman which copies all scripts to your table dir)
umm, wow.
Blur, maybe i was not clear.
>>>>>on the other hand core.vbs has a lot of code that is not dependant on pinmame<<<<
dont understand.
core is used for pinmame tables.
there is no tilt/nudge in the pinname script....only sensetivity
i do have core in my directory.
i have the scripts which include the corevbs in the table folders.
EX in corevbs: (0.6) Rnd + 5 .....huh,,,what?
some VP tables had the same in the script for tilt/nudge.
i backspaced to erase then created the tilt/nudge with L/R nudge 45, 1 or 315, 1.
it worked.
this is why i wanted to create a my own corevbs for pinmame tables using tilt/nudge from a VP table script.
if you want create a new core for us PC dummies that dont know scriptin usinng the tilt as i described from a VP table.
here is what i tried to do.
dragged the existing core to desktop to save it.
deleted the tilt/nudge section in core then copy/pasted from a VP table.
then copy/pasted the new modified core into the table folders.
got an error of "cannot open core"
maybe its a typo error.
i dunno.
some VP tables tilt/nudge may be a little different.
it looks something like this.
will this work?
what is the problem?
maybe the scripting wizards could come up with a new corevbs that we all understand.
should not be too hard.
its just one file.
i dont understand the scripting or how to change the tilt/nudge in corevbs.
here is what i tried to do:........
deleted the existing tilt section in core then copy/pasted from a VP table.
If keycode = LeftTiltKey Then
if tiltDisabled = 0 then
Nudge 45, 1
tilt.Tilt LeftTiltKey
end if
End If
If keycode = RightTiltKey Then
if tiltDisabled = 0 then
Nudge 315, 1
tilt.Tilt RightTiltKey
end if
End If
If keycode = CenterTiltKey Then
if tiltDisabled = 0 then
Nudge 180, 1.25
Edited by chas, 31 January 2013 - 08:06 AM.