Ambrosia Garden Archive
    • applescript and EV


      This came from the "changing syst#128..." topic, but I thought it deserved its own thread:
      -------------------

      Quote

      Originally posted by Martin Turner:
      **This then puts a new plug (v small - 1k or so) into the plugins folder which changes the start system. Whenever he or she is rescued after that, they appear in the revised start system. Just make sure it begins further down the alphabet than your original replacement. You can also use this to change descs on as many worlds as you want without having to mamothly change visbits.
      **

      As I suggested in the EV3 discussions, something like this would be great for "evolving plugins" but the need to stop the game, move plugs around, and then resume is kinda of a drag. It'd be so much better if, after a particular misn bit is set, an applescript is launched which moves the plugs around for you. You could even have an applescript that creates new plugs based on the various states in the pilot file (something I've been working on every now and then for a while now).

      Alas, this probably won't be implemented in EVN. Besides, such an implementation would introduce the possibility of applescript EV viri. Sure, it moves the plugs around, but it also changes you desktop picture so something else. You see the potential problems.

      Still, if enough people were so say to Matt et al "Hey, can you have it so misns can launch QT movies OR applescripts," maybe they'd implement it. I don't think it would take much to implement, and if you're woried about security, there'd be a preference box saying "Never launch applescripts".

      -STH

      ------------------

    • I like it a lot. How about writting an articel about it for Ev Dev.net?

      ------------------
      (url="http://"http://pages.hotbot.com/games/ambjorn/index.html")1000 Worlds(/url)
      (url="http://"http://www.AmbrosiaSW.com/webboard/Forum10/HTML/001524.html")The Tides of War(/url)
      (url="http://"http://www.ohhla.com")The Original Hip-Hop Lyrics Archive(/url)
      Hip Hop Recomendation of the week: Cypress Hill - Skull and Bones
      ------------------

    • security would really be a problem, suppose some lame guy decided to start deleting stuff using applescript, you get the picture.

      apart from that, the idea is good

      ------------------
      Captain Orne
      AIM:CaptnG3
      ICQ:3116256
      Yahoo!:CaptainG3

    • Quote

      Originally posted by the Necromicon:
      **How about writting an articel about it for Ev Dev.net?
      **

      I'm unfamiliar with Ev Dev.net. Can you give more info?

      -STH

      ------------------

    • It'll be a dedicated website for EV Developers.

      ------------------
      (url="http://"http://CelticStarbase.tsx.org")http://CelticStarbase.tsx.org(/url) (url="http://"mailto:webmaster@CelticStarbase.com")mailto:webmaster@CelticStarbase.com(/url)webmaster@CelticStarbase.com

    • The team is me, Celtic and WhamMan. Read the 'EV Community Website' or the 'ATTN: Everybody' posts for more info.

      ------------------
      (url="http://"http://pages.hotbot.com/games/ambjorn/index.html")1000 Worlds(/url)
      (url="http://"http://www.AmbrosiaSW.com/webboard/Forum10/HTML/001524.html")The Tides of War(/url)
      (url="http://"http://www.ohhla.com")The Original Hip-Hop Lyrics Archive(/url)
      Hip Hop Recomendation of the week: Cypress Hill - Skull and Bones
      ------------------

    • Heh, ask matt burch, he'll say no. He doesnt even know how to use code plugins, so I doubt he can do applescript 😉

      For anyone who wants to know, the PDF 'Building and Managing Programs in MPW' tells you how (basically) to do code plugins. The only problem you have after that is creating the API....

      ------------------
      --blackhole
      (url="http://"mailto:blackhole@mac.com")mailto:blackhole@mac.com(/url)blackhole@mac.com

    • Quote

      Originally posted by blackhole:
      **Heh, ask matt burch, he'll say no. He doesnt even know how to use code plugins, so I doubt he can do applescript;)

      For anyone who wants to know, the PDF 'Building and Managing Programs in MPW' tells you how (basically) to do code plugins. The only problem you have after that is creating the API....
      **

      Well I don't know what "coding" plugins is, but I do know apple-script and know that it is a hellofalot easier than ANY programing. Security issues aside, I would love for there to be apple-scripting in plugs.

      ------------------
      Herodotus: The Histories
      "If an important decision is to be made, they discuss the question when they are drunk, and the following day when they are sober reconsider it. If they agree, it is made law. Conversley, any decision they make when they are sober, is reconsidered when they are drunk."
      Sounds like good government.

    • Quote

      Originally posted by blackhole:
      Heh, ask matt burch, he'll say no. He doesnt even know how to use code plugins, so I doubt he can do applescript;)

      I think there was a misunderstanding. I wasn't proposing that applescript be somehow embedded into a plugin. The way I imagine it working is similar to how QT movies are used by plugins: throw a self-executing applescript into the plugin folder along with a plug that calls it. When a particular misn bit is set (or whatever criteria you define), the applescript is launched.

      Quote

      **
      For anyone who wants to know, the PDF 'Building and Managing Programs in MPW' tells you how (basically) to do code plugins. The only problem you have after that is creating the API....
      **

      Interesting. I've been poking around. For those interested:

      ftp://ftp.apple.com/devworld/Tool_Chest/C..._In_MPW.sit.hqx

      See also:
      (url="http://"http://developer.apple.com/techpubs/mac/pdf/PPC_System_Software/Code_Frag_Mgr.pdf")http://developer.app...de_Frag_Mgr.pdf(/url)

      -STH

      ------------------

      (This message has been edited by seant (edited 10-11-2000).)

      (This message has been edited by seant (edited 10-11-2000).)

    • Just for kicks, I tried replacing QT movies called by a misn string with applescripts saved as applications/compiled scripts and got...nothing. EV tried to load the movie, but displayed a horizontal white bar right across the middle of the screen. It didn't freeze EV up, though. Pressing return made everything return to normal. I suppose I don't have to say that the applescripts didn't do anything.

      Just thought I'd share.

      The important thing I learned is that the EVO engine doesn't look for a file of type "Moov" with name X. Instead it just looks for a file of name X (I stripped the type out of the moov files and they worked fine).

      -STH

      ------------------

    • No matter whether you ***** the scripts in a plugin or have it seperate the problems are the same. Anyway, I know that matt burch has ruled out anything like that. If you're interested in something like that, check out epsilon by andrew welch's arch-rivel (he. he.) laer at (url="http://"http://laer.damnsw.net/epsilon/")http://laer.damnsw.net/epsilon/(/url)

      ------------------
      --blackhole
      (url="http://"mailto:blackhole@mac.com")mailto:blackhole@mac.com(/url)blackhole@mac.com

    • What the? The script just censored 'e m b e d '

      ------------------
      --blackhole
      (url="http://"mailto:blackhole@mac.com")mailto:blackhole@mac.com(/url)blackhole@mac.com

    • Hey, I recognise Jos Delbar's name, where have I seen it before?

      ------------------
      (url="http://"http://CelticStarbase.tsx.org")http://CelticStarbase.tsx.org(/url)
      (url="http://"mailto:webmaster@CelticStarbase.com")mailto:webmaster@CelticStarbase.com(/url)webmaster@CelticStarbase.com

    • Quote

      Originally posted by CelticStarbase:
      **Hey, I recognise Jos Delbar's name, where have I seen it before?

      **

      Jos Delbar was the webmaster of escape-velocity.com a long time ago and he's doing (url="http://"http://laer.damnsw.net/epsilon/")Epsilon(/url).

      ------------------
      Captain Orne
      AIM:CaptnG3
      ICQ:31162561
      Yahoo!:BOrnelasPT

    • You could also use seperate Plugs to change the story. (i.e. What race the main character is) But it IS way to impractical to move around the Plugins anytime you want to change something. :frown:

      ------------------
      "5 exclamation marks: The true sign of an insane mind."
      Terry Pratchett

      (This message has been edited by Talon Karrde (edited 10-18-2000).)