Jump to content



Photo
- - - - -

[Request] Standalone Script Editor?


  • Please log in to reply
26 replies to this topic

#1 yagesz

yagesz

    Enthusiast

  • Platinum Supporter
  • 303 posts
  • Location:Wyoming

  • Flag: United States of America

  • Favorite Pinball: TAF, TSPP, Metallica, CV

Posted 29 January 2013 - 07:21 PM

I personally hate the endless fuss of running from table to table and manually changing minuscule settings to get what I want. I.E. UVPBackglass.Serv, Leds_Timer, DMD repositioning (I mess with Video settings alot for some reason) So I have been setting a permanent location where the DMD is period.

 

A standalone that I could use on a separate machine so It would open script only would be awesome so that I could just edit on the fly or write a AHK script to automatically add the settings.

 

Hope this makes sense.

 

Even just allowing the VP to auto open directly into script would be better so that I can do these kind of things faster.

 

Xagesz



#2 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 29 January 2013 - 08:36 PM

you can put that code which is same for every table in one of core files



#3 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 29 January 2013 - 08:38 PM

notepad

Build a fire, vipers love the heat.


#4 yagesz

yagesz

    Enthusiast

  • Platinum Supporter
  • 303 posts
  • Location:Wyoming

  • Flag: United States of America

  • Favorite Pinball: TAF, TSPP, Metallica, CV

Posted 29 January 2013 - 08:59 PM

I tried Notepad didnt work out for me.
 

And I can?

 

Could you explain Blur? That would be awesome. Or point me in the right direction.



#5 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 29 January 2013 - 09:17 PM

Wordpad. :)

For Blur's suggestion, you could use "Notepad" or "Wordpad" to open core.vbs, go to the bottom of the file and paste in your code that you want all your VPM tables to use.

If it is simply dmd position, colors, sizing, etc, uninstall visual pinmame and delete the registry entries, re-install visual pinmame, and then set the Default key in regedit. All games will use those default positions unless the table overwrites them.

Edited by destruk, 29 January 2013 - 09:18 PM.

Build a fire, vipers love the heat.


#6 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 29 January 2013 - 11:01 PM

or you can use "setdmd" (is it from bigboss?) utility to set all tables at once - just google for setdmd



#7 yagesz

yagesz

    Enthusiast

  • Platinum Supporter
  • 303 posts
  • Location:Wyoming

  • Flag: United States of America

  • Favorite Pinball: TAF, TSPP, Metallica, CV

Posted 29 January 2013 - 11:38 PM

Blur You are awesome. That is exactly what i needed.

Any way to streamline the process of creating a Leds Timer and script for UVPS?



#8 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 30 January 2013 - 06:00 AM

awhile back i tried creating my own tilt in the corevbs using the tilt nudge from a VP table for pinmame.

sensitivity is already in the script for pinmame.

deleted the tilt section in the corevbs then copy/pasted the VP tilt nudge.

ex;

left tilt 45, 1

right tilt  315, 1

center tilt 180, 1.25

i think it got an error of "cannot open core"

whats the problem and is it possible to use this method in the corevbs for pinmame tables?



#9 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 30 January 2013 - 07:45 AM

Blur You are awesome. That is exactly what i needed.

Any way to streamline the process of creating a Leds Timer and script for UVPS?

 

tnx yagesz!

UVP will be soon replaced with directB2S which is much easier to configure (you only have to change controller, no timers and no xml lookup for description) and we hope it will not have any stuttering problem like uvp has.

 

chas maybe you made some syntax error like using objects that are not yet defined (maybe they are defined only in table script after table initializes?)


Edited by blur, 30 January 2013 - 10:42 AM.


#10 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 30 January 2013 - 09:38 AM

Blur You are awesome. That is exactly what i needed.

Any way to streamline the process of creating a Leds Timer and script for UVPS?

 

UVP will be soon replaced with directB2S which is much easier to configure (you only have to change controller, no timers and no xml lookup for description) and we hope it will not have any stuttering problem like uvp has.

 

chas maybe you made some syntax error like using objects that are not yet defined (maybe they are defined only in table script after table initializes?)

hmmm, i have had some syntax errors in the past when making a change in the script.

usually it was a typo mistake like using a period instead of a comma. 

it was not a syntax error.

if i remember correct it was  a "cannot open core" error.

ill look again.

what do you mean "you made some syntax error like using objects that are not yet defined (maybe they are defined only in table script after table initializes?)" .

do you scripters think my creation of a "moded core" using tilt/nudge from a nonpinmame no rom VP table script will work as in post 8 for pinmame tables?

if you want try moding it like i did and see if it works then post it as a new modified core.

drag and highlight the entire tilt/nudge section in the core then right click delete.

copy/paste the entire tilt/nudge section from a VP table script.

i used my own nudge of:

left tilt 45, 1

.............................

right tilt 315, 1

.............................

center tilt 180, 1.25

if tilt >3 then tilt...etc......

 

well, you get the idea what i tried to do.

i got an error of "cannot open core"

maybe i made a typo

im interested to see if it will work.


Edited by chas, 30 January 2013 - 10:05 AM.


#11 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 30 January 2013 - 11:01 AM

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)


Edited by blur, 30 January 2013 - 11:07 AM.


#12 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 31 January 2013 - 07:44 AM

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.


#13 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 20 February 2013 - 07:23 AM

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
 

no suggestions why it dont work.

gets an error "cannot create core".



#14 blur

blur

    Pinball Fan

  • VIP
  • 1,500 posts

  • Flag: Croatia

  • Favorite Pinball: Amazing Spiderman, Black Hole, Totem



Posted 20 February 2013 - 07:33 AM

maybe you are moving the link around? Why do you have to move core.vbs to desktop to edit it?



#15 Wizards_Hat

Wizards_Hat

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 1,258 posts
  • Location:Manchester, UK

  • Flag: United Kingdom

  • Favorite Pinball: STTNG




  • Trophies:

Posted 20 February 2013 - 10:43 AM

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.

 

lol - I really like this approach to problems:

 

Maybe the physics wizards could come up with a new Grand Unified Theory that we all understand.

Should not be too hard.

It's just one set of equations.

I don't understand math's or how to apply scientific procedure.

 

:tongue3:

 

Regards,

Dan.


A wizard only needs one ball...but can handle six.

#16 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 21 February 2013 - 07:20 AM

blur>>>>>maybe you are moving the link around? Why do you have to move core.vbs to desktop to edit it?

chas>>>>because then after moding it i copy/paste to overwrite in the vptable folder and the tables folder.

lol - I really like this approach to problems:

 

Wizard>>>>>Maybe the physics wizards could come up with a new Grand Unified Theory that we all understand.

Should not be too hard.

It's just one set of equations.

I don't understand math's or how to apply scientific procedure>>>>>>

chas>>>>>well  wiz, i went to school for other things like cars, motorcycles, diesels and general everyday skills. 

my math is fine.

i do ok.

you have your fortes' and i have mine.

all i asked is what could be the problem with my approach.

ive seen posts on the forum from members with scripting questions.

whats the problem?


Edited by chas, 21 February 2013 - 07:34 AM.


#17 Wizards_Hat

Wizards_Hat

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 1,258 posts
  • Location:Manchester, UK

  • Flag: United Kingdom

  • Favorite Pinball: STTNG




  • Trophies:

Posted 21 February 2013 - 09:54 AM

lol - I wasn't criticizing your schooling - it was your approach to how easy the solution should be for someone else to do for you, and/or be able to explain to you when you admit that you don't even have the basic skills in scripting, coupled with the assumption that the problem is easily solvable.

My example was of a problem that currently isn't solvable by anyone (regardless of their mathematical ability), and the assumption that it could be solved & explained to anyone regardless of their ability in that field.

Should I ask you to help me...I have put rocket fuel in my car, but it still won't fly to the Moon, in fact it won't work at all now...I want to go the Moon in my car, what am I doing wrong? Oh & btw, I have no idea how to open the bonnet of my car....but tell me what to do to get my car to the Moon.

 

You want to know how to change the nudging/tilting in the core.vbs so that it will overwrite nudging/tilting routines in all tables that you play.  This is not something the core.vbs was designed to do.  To criticize the "scripting wizards", or "the forum" for not completely redesigning the core.vbs to meet your particular needs, or telling you how to do it, is funny. 

Seriously, you are asking a *lot* of someone to help you here - maybe this is a bigger problem than I realize for users of this forum, or maybe it is actually really easy to accomplish & someone will step up & do it for you, but I doubt it tbh.

Good luck.

 

Regards,

Dan.


A wizard only needs one ball...but can handle six.

#18 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 21 February 2013 - 10:03 PM

lol - I wasn't criticizing your schooling - it was your approach to how easy the solution should be for someone else to do for you, and/or be able to explain to you when you admit that you don't even have the basic skills in scripting, coupled with the assumption that the problem is easily solvable.

My example was of a problem that currently isn't solvable by anyone (regardless of their mathematical ability), and the assumption that it could be solved & explained to anyone regardless of their ability in that field.

Should I ask you to help me...I have put rocket fuel in my car, but it still won't fly to the Moon, in fact it won't work at all now...I want to go the Moon in my car, what am I doing wrong? Oh & btw, I have no idea how to open the bonnet of my car....but tell me what to do to get my car to the Moon.

 

You want to know how to change the nudging/tilting in the core.vbs so that it will overwrite nudging/tilting routines in all tables that you play.  This is not something the core.vbs was designed to do.  To criticize the "scripting wizards", or "the forum" for not completely redesigning the core.vbs to meet your particular needs, or telling you how to do it, is funny. 

Seriously, you are asking a *lot* of someone to help you here - maybe this is a bigger problem than I realize for users of this forum, or maybe it is actually really easy to accomplish & someone will step up & do it for you, but I doubt it tbh.

Good luck.

 

Regards,

Dan.

you got it all wrong.

i was thinking it was maybe the methods i was using.

i was using a VPtable script tilt/nudge for a pinnmame table.

i asked the script wizards for an idea or suggestions what could be wrong.

alot of members are having some trouble reading the script language.

there is no L/R nudge settings.

 

ok, lets try this.

i copy/pasted the nudge in the core.

the userguide does not talk about this.

how do we change the L/Rnudge direction and strength in core?

 

'--------------------
'       Nudge
'--------------------
line1  class cvpmNudge
    Private mCount, mSensitivity, mNudgeTimer, mSlingBump, mForce
    Public TiltSwitch

    Private Sub Class_Initialize
line5.        mCount = 0 : TiltSwitch = 0 : mSensitivity = 5 : vpmTimer.AddResetObj Me
    End sub

    Private Property Let NeedUpdate(aEnabled) : vpmTimer.EnableUpdate Me, False, aEnabled : End Property

    Public Property Let TiltObj(aSlingBump)
        Dim ii

10        ReDim mForce(vpmSetArray(mSlingBump, aSlingBump))
        For ii = 0 To UBound(mForce)
            If TypeName(mSlingBump(ii)) = "Bumper" Then mForce(ii) = mSlingBump(ii).Force
            If TypeName(mSlingBump(ii)) = "Wall" Then mForce(ii) = mSlingBump(ii).SlingshotStrength
        Next
15    End Property

    Public Property Let Sensitivity(aSens) : mSensitivity = (10-aSens)+1 : End property

    Public Sub DoNudge(ByVal aDir, ByVal aForce)
        aDir = aDir + (Rnd-0.5)*15*aForce : aForce = (0.6+Rnd*0.8)*aForce
        Nudge aDir, aForce
20        If TiltSwitch = 0 Then Exit Sub ' If no switch why care
        mCount = mCount + aForce * 1
        If mCount > mSensitivity + 10 Then mCount = mSensitivity + 10
        If mCount >= mSensitivity Then vpmTimer.PulseSw TiltSwitch
        NeedUpdate = True
25    End sub

    Public Sub Update
        If mCount > 0 Then
            mNudgeTimer = mNudgeTimer + 1
            If mNudgeTimer > 1000\conTimerPulse Then
30                If mCount > mSensitivity+1 Then mCount = mCount - 1 : vpmTimer.PulseSw TiltSwitch
                mCount = mCount - 1 : mNudgeTimer = 0
            End If
        Else
            mCount = 0 : NeedUpdate = False
35        End If
    End Sub

    Public Sub Reset : mCount = 0 : End Sub

    Public Sub SolGameOn(aEnabled)
        Dim obj, ii
40        If aEnabled Then
            ii = 0
            For Each obj In mSlingBump
                If TypeName(obj) = "Bumper" Then obj.Force = mForce(ii)
                If TypeName(obj) = "Wall" Then obj.SlingshotStrength = mForce(ii)
45                ii = ii + 1
            Next
        Else
            For Each obj In mSlingBump
                If TypeName(obj) = "Bumper" Then obj.Force = 0
50                If TypeName(obj) = "Wall" Then obj.SlingshotStrength = 0
            Next
        End If
    End Sub
End Class
 


 


Edited by chas, 21 February 2013 - 10:39 PM.


#19 Wizards_Hat

Wizards_Hat

    Pinball Fan

  • VP Dev Team
  • PipPipPipPip
  • 1,258 posts
  • Location:Manchester, UK

  • Flag: United Kingdom

  • Favorite Pinball: STTNG




  • Trophies:

Posted 22 February 2013 - 07:52 AM

you got it all wrong.

ok

 

 

 

 

alot of members are having some trouble reading the script language.

Yep - that's because they need to learn visual basic scripting.  This is totally independent of visual pinball.  A lot of people on the forum have learnt the very first things they ever knew about scripting/coding.programming from trying to understand a VP script.  Personally I had experience of coding in other languages before I came across VP, the structure is very similar to some other languages, so I was able to "teach myself" (read as: use Google to look up stuff on sites other than vpf). The option to try & help yourself by learning scripting is always there too :)

 

 

 

the userguide does not talk about this.

True - the userguide is about all of the functions in the editor - it quite explicitly states that to cover how to script a table is beyond the scope of the document. The userguide does not cover anything to do with core.vbs, PinMame, B2S, or how to make toast, as these things are all separate to VP.

(btw the userguide needs an update - it was written for 9.09 - it needs updating to 9.14 (at least)....any volunteers? I'm way too busy to able to do it).

 

 

 

 

how do we change the L/Rnudge direction and strength in core?

Depends on how you want it changed - the script in each table sends the core.vbs 2 variables, "aDir" (for direction) & "aForce" (for the force, or strength). The core.vbs then runs these lines with that info:

 

 

        aDir = aDir + (Rnd-0.5)*15*aForce : aForce = (0.6+Rnd*0.8)*aForce
        Nudge aDir, aForce

 

If this means very little to you - other than writing it for you, which I don't have the time to do - I don't think I can help you...it's similar to the analogy of me wanting to fly my car to the Moon, but I don't know how to open the bonnet - there's very little you can do to help me - you could build me a rocket, as that would be quicker than explaining it or teaching me how to do it, but do you have the time and/or inclination?

 

Good luck.

Regards,

Dan.


A wizard only needs one ball...but can handle six.

#20 chas

chas

    Pinball Fan

  • Banned
  • PipPipPipPip
  • 1,791 posts

  • Flag: ---------

  • Favorite Pinball: i played Timezone, quickdraw, triple action, frontier and a few more

Posted 23 February 2013 - 05:28 AM

you got it all wrong.

ok

 

 

 

 

alot of members are having some trouble reading the script language.

Yep - that's because they need to learn visual basic scripting.  This is totally independent of visual pinball.  A lot of people on the forum have learnt the very first things they ever knew about scripting/coding.programming from trying to understand a VP script.  Personally I had experience of coding in other languages before I came across VP, the structure is very similar to some other languages, so I was able to "teach myself" (read as: use Google to look up stuff on sites other than vpf). The option to try & help yourself by learning scripting is always there too :)

 

 

 

the userguide does not talk about this.

True - the userguide is about all of the functions in the editor - it quite explicitly states that to cover how to script a table is beyond the scope of the document. The userguide does not cover anything to do with core.vbs, PinMame, B2S, or how to make toast, as these things are all separate to VP.

(btw the userguide needs an update - it was written for 9.09 - it needs updating to 9.14 (at least)....any volunteers? I'm way too busy to able to do it).

 

 

 

 

how do we change the L/Rnudge direction and strength in core?

Depends on how you want it changed - the script in each table sends the core.vbs 2 variables, "aDir" (for direction) & "aForce" (for the force, or strength). The core.vbs then runs these lines with that info:

 

 

        aDir = aDir + (Rnd-0.5)*15*aForce : aForce = (0.6+Rnd*0.8)*aForce
        Nudge aDir, aForce

 

If this means very little to you - other than writing it for you, which I don't have the time to do - I don't think I can help you...it's similar to the analogy of me wanting to fly my car to the Moon, but I don't know how to open the bonnet - there's very little you can do to help me - you could build me a rocket, as that would be quicker than explaining it or teaching me how to do it, but do you have the time and/or inclination?

 

Good luck.

Regards,

Dan.

 

ok....

referred to the user guide as much a i could.

i used a VP table tilt/nudge in "core.vbs".

maybe ill try a 36_1 script tilt/nudge.

can you give me an idea why my method did not work with a script error "cannot create core"?


Edited by chas, 23 February 2013 - 05:50 AM.