Jump to content



Photo
- - - - -

External source code


  • Please log in to reply
7 replies to this topic

#1 TheGreatGrizz

TheGreatGrizz

    Hobbyist

  • Members
  • PipPip
  • 12 posts

  • Flag: Canada

  • Favorite Pinball: Addams Family Original, 3 angels.

Posted 12 March 2010 - 11:04 AM

How can I include external source in my listing ?

A command like "Include" c:\filename.xxx

to allow me to split the main listing into multiple files so I don't have to work
with 10,000 line at te same time...

And this way I can make shure I won't mess with completed subs.

I remember a table that did this... but wich one ?

I'm still searching...

Thanks in advance for any support !



#2 ruckage

ruckage

    Enthusiast

  • VIP
  • 70 posts
  • Location:UK

  • Flag: United Kingdom

  • Favorite Pinball: Tales from the crypt



Posted 12 March 2010 - 11:13 AM

Tells you in the included help file how to do that in the scripting section under 'global methods and variables'. I've pasted the relevant section below.


CODE
LoadExternalScript( <String> Scriptname )

This allows you to load an external script from either a Future Pinball Library or from the disk. If the script is being loaded from disk, then script can either be in the current directory (where the table was loaded from) or the scripts / tables sub-directories in the main Future Pinball installation directory. In order to load the script from a library then the library name must also be given as part of the Scriptname path.


#3 TheGreatGrizz

TheGreatGrizz

    Hobbyist

  • Members
  • PipPip
  • 12 posts

  • Flag: Canada

  • Favorite Pinball: Addams Family Original, 3 angels.

Posted 12 March 2010 - 11:30 AM

Thanks...

I've read all the Future Pinball help file once, but it might be time for a refresh !

cool.gif

Edited by TheGreatGrizz, 12 March 2010 - 11:32 AM.


#4 Steve Paradis

Steve Paradis

    Pinball Fan

  • Members
  • PipPipPipPip
  • 555 posts
  • Location:Montreal,Qc Canada

  • Flag: Canada

  • Favorite Pinball: RFM



Posted 12 March 2010 - 12:37 PM

pinned!
I like poutine...Not the russian guy but the fries and gravy and cheese curds stuff.

#5 Jerry Winter

Jerry Winter

    Enthusiast

  • Members
  • PipPipPip
  • 50 posts
  • Location:Germany

  • Flag: Germany

  • Favorite Pinball: PSYCHO WILD WEST

Posted 13 March 2010 - 10:06 AM

QUOTE (TheGreatGrizz @ Mar 12 2010, 12:04 PM) <{POST_SNAPBACK}>
How can I include external source in my listing ?

A command like "Include" c:\filename.xxx

to allow me to split the main listing into multiple files so I don't have to work
with 10,000 line at te same time...

And this way I can make shure I won't mess with completed subs.

I remember a table that did this... but wich one ?

I'm still searching...

Thanks in advance for any support !



Some tables by Light66 i.e. "Stones 'n Bones"
I hope this helps wink.gif
Tables I have created in cooperation with Sebek74 and Slash2084: BILLION DOLLAR GAMESHOW, PSYCHO WILD WEST.
WIP: Who knows? ;-)

#6 TheGreatGrizz

TheGreatGrizz

    Hobbyist

  • Members
  • PipPip
  • 12 posts

  • Flag: Canada

  • Favorite Pinball: Addams Family Original, 3 angels.

Posted 13 March 2010 - 09:52 PM

QUOTE (Jerry Winter @ Mar 13 2010, 05:06 AM) <{POST_SNAPBACK}>
QUOTE (TheGreatGrizz @ Mar 12 2010, 12:04 PM) <{POST_SNAPBACK}>
How can I include external source in my listing ?

A command like "Include" c:\filename.xxx

to allow me to split the main listing into multiple files so I don't have to work
with 10,000 line at te same time...

And this way I can make shure I won't mess with completed subs.

I remember a table that did this... but wich one ?

I'm still searching...

Thanks in advance for any support !



Some tables by Light66 i.e. "Stones 'n Bones"
I hope this helps wink.gif



QUOTE (TheGreatGrizz @ Mar 13 2010, 04:51 PM) <{POST_SNAPBACK}>
QUOTE (Jerry Winter @ Mar 13 2010, 05:06 AM) <{POST_SNAPBACK}>
QUOTE (TheGreatGrizz @ Mar 12 2010, 12:04 PM) <{POST_SNAPBACK}>
How can I include external source in my listing ?

A command like "Include" c:\filename.xxx

to allow me to split the main listing into multiple files so I don't have to work
with 10,000 line at te same time...

And this way I can make shure I won't mess with completed subs.

I remember a table that did this... but wich one ?

I'm still searching...

Thanks in advance for any support !



Some tables by Light66 i.e. "Stones 'n Bones"
I hope this helps wink.gif




#7 TheGreatGrizz

TheGreatGrizz

    Hobbyist

  • Members
  • PipPip
  • 12 posts

  • Flag: Canada

  • Favorite Pinball: Addams Family Original, 3 angels.

Posted 17 March 2010 - 12:00 AM

Stones'n bones !

That was it...

I knew I saw it somewhere...

Thanks for the infos...

By the way, I had some difficulties with the las 2 posts... I tried to delete them without success....

Sorry for the inconvenience...

See ya !






#8 Sebek74

Sebek74

    Enthusiast

  • Members
  • PipPipPip
  • 114 posts
  • Location:Lodz, Poland

  • Flag: Poland

  • Favorite Pinball: Pinball Dreams: Ignition

Posted 22 August 2010 - 09:47 PM

QUOTE (ruckage @ Mar 12 2010, 01:13 PM) <{POST_SNAPBACK}>
...
LoadExternalScript( <String> Scriptname )
...


Beware... it works but this solution is not good for table coding, because all errors raised in included part with report error at LoadExternalScript call number line.

Sebek74
Visit http://futurepinball.mm.com.pl/ for my tables download: Ignition, Beat-Box, Nightmare, Billion Dollar Gameshow, Wild West
http://futurepinball...om.pl/Gfx2DmdF/ for Gfx2DmdF font conversion
http://picasaweb.google.com/sebek74 - personal photo gallery