[APBeta] Running Scripts

I.R. van de Stadt irvandestadt at hotmail.com
Sat Feb 28 16:02:45 PST 2009


Hi Robin

> Date: Sat, 28 Feb 2009 23:58:28 +0100
> From: robin at lauryssen-mitchell.com
> To: apbeta at lists.astroplanner.net
> Subject: Re: [APBeta] Running Scripts
> 
> There is no Scripting Manual for v2 at the moment.  Use the Scripting 
> Framework display instead.  The v2 scripting system is being almost 
> continuously updated at the moment.  Quite a few changes between one 
> beta release and the next; after all that is what betas are for :)
Ah, I see, so it's not me just being stupid 

> 
> If you like I'll take a look at DSS Gallery for you.  However it is not 
> certain that if I get the script working for one version of v2 that it 
> will work for the next.

Well, I'll need to switch between V1 and V2 now anyway (I use those scripts so often). If it's just a temporary fix, that might not be worth the effort. If you think its valuable and would help me sort other scripts out (even temporarily) please do, otherwise don't. I'll just have to be more patient and should not get in your way.

It's just that I've already grown attached to V2 :-)
Thanks,
Inge
> 
> Regards
> Robin
> 
> I.R. van de Stadt wrote:
> >
> > I tried DSS gallery, but had no luck
> >
> > with sub main() inserted at line 14
> > and end sub at the end (now line 169)
> >
> > There was an error message:
> >    script error on line 64: Too many parameters
> >
> > line 64 is
> >   c=new Canvas(w,h,"DSS Gallery")
> >
> > There it gets to the point that I would have to dive into the 
> > scripting manual...
> >
> > Celestial Mixmaster probably needs the sub main(args() as Variant), 
> > but what goes into the args()? or is args itself an existing function, 
> > should there go anything into the ()?
> >
> > with either the constants left as as before or moved to within the sub 
> > main (I tried both ways)
> >
> > scipt error on line 44: there is no class with this name
> >
> > that is line
> >   function findObjectInPlan( planIdx as Integer, obj as 
> > APPlanObjectData, fuzzyMatch as Boolean ) as Integer
> >
> > (there are many more !s but maybe (hopefully) for the same problem)
> > now I'm lost a again
> >
> > Any suggestions?
> > Clear Skies
> > Inge
> >
> > > Date: Sat, 28 Feb 2009 10:31:51 +0100
> > > From: robin at lauryssen-mitchell.com
> > > To: apbeta at lists.astroplanner.net
> > > Subject: Re: [APBeta] Running Scripts
> > >
> > > Your script needs to contain a sub called main(). For example
> > >
> > > sub main()
> > > print "Main part of your program goes here"
> > > end sub
> > >
> > > See <http://www.astroplanner.net/reports/details/1500/1533.shtml>
> > >
> > > Paul is working on fixing the scripts. If there is one or two in
> > > particular that are of interest to you, let me know and I'll see if I
> > > can fix them for you if you like.
> > >
> > > Regards
> > > Robin
> > >
> > > I.R. van de Stadt wrote:
> > > >
> > > > Am I missing something? I can't run any of the scripts, whether
> > > > converted from V1 or newly downloaded.
> > > > The error is usually
> > > >
> > > > Script must contain a (global) main() method.
> > > > i.e. one of:
> > > > Sub main()
> > > > or
> > > > Sub main(args() as Variant)
> > > >
> > > > Even 'Observing nights' - created in de V2 era gives an error message:
> > > > Script must not contain any calls to the main() method.
> > > >
> > > > Clear Skies!
> > > > Inge
> > > >
> > > > 
> > ------------------------------------------------------------------------
> > > > Ook nieuwsgierig naar de nieuwe Messenger? Download 'm hier
> > > > <http://download.live.com/messenger>
> > > > 
> > ------------------------------------------------------------------------
> > > >
> > > > _______________________________________________
> > > > APBeta mailing list
> > > > APBeta at lists.astroplanner.net
> > > > http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net
> > > >
> > >
> > > _______________________________________________
> > > APBeta mailing list
> > > APBeta at lists.astroplanner.net
> > > http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net
> >
> > ------------------------------------------------------------------------
> > Twee keer zo leuk. Deel foto's terwijl je chat met de nieuwe Messenger 
> > <http://download.live.com/messenger>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > APBeta mailing list
> > APBeta at lists.astroplanner.net
> > http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net
> >   
> 
> _______________________________________________
> APBeta mailing list
> APBeta at lists.astroplanner.net
> http://lists.astroplanner.net/listinfo.cgi/apbeta-astroplanner.net

_________________________________________________________________
Blijf altijd op de hoogte van wat jouw vrienden doen
http://home.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.astroplanner.net/pipermail/apbeta-astroplanner.net/attachments/20090301/2b919c39/attachment-0003.htm>


More information about the APBeta mailing list