Ambrosia Garden Archive
    • Division Calculation method using syst visibility


      Division Calculator:
      This uses the principles discovered by the brilliant Jonathan Boyd for the Boyd If Then Else Counter (BITEC) to a distinctly different effect, namely, division. If we put the denominator into binary form (by methods i belive are known), but keep the numerator as an outfit quantity, we can then make one mission per bit and determine wheather it is triggered by using the binary value of the denominator to control system visibility.
      Of course, this all depends on wheather BITEC works.
      Read about BITEC: (url="http://"http://www.ambrosiasw.com/webboard/Forum9/HTML/004995.html")http://www.ambrosias...TML/004995.html(/url)

      4 bit:
      This will devide the quantity of outfit 1 by a binary number in NCB's 1-4 and store the answer in outfit 4. NCB's 11-14 just tell you which misns "succeeded" last time (so you can look at these relative to NCB's 1-4 to determine the extent of any rounding that occured.

      Syst .. spob.. Visability
      1 ..... 1..... b1&(o2&!b0)
      2 ..... 2..... b2&(o2&b0;)
      3 ..... 3..... b3&(o2&!b0)
      4 ..... 4..... b4&(o2&b0;)

      5 ..... 1..... !b1|(!o2 | b0)
      6 ..... 2..... !b2|(!o2 | !b0)
      5 ..... 3..... !b3|(!o2 | b0)
      8 ..... 4..... !b4|(!o2 | !b0)

      Misn
      Misn ..... OnSuc .... OnFail.....Dest.
      1 ........ d2 b11 ... !b11 ...... 1
      2 ........ d22 b12 . !b12 ...... 2
      3 ........ d2
      4 b13 . !b13 ...... 3
      4 ........ d2*8 b14 . !b14 ...... 4

      Cron...... Enable ...OnEnd... OnStart
      1 ........ b100 o1 .. - ..... d1 g2 g5
      2 ........ b100 o5 .. - ..... d5 g1
      3 ........ b100 o2 .. !b100.. S1 b0 F1 S2 !b0 F2 S3 b0 F3 S4 !b0 F4 g4
      When b100 is set, o1 will be devided by the binary value in ncb's 1-4 and outputted as a quantity of outfit 4.

      All crons have Continuous Iterating Cron Entry.
      Crons 1 and 2 just copy the number of o1 into o2.
      Enjoy.
      Masamune, will this do for your SS division thing?
      -Az

      ------------------
      It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
      Stuffit is a piece of .sit.

      (This message has been edited by Azratax2 (edited 01-10-2004).)

    • Yo. I cant test this cause the Fxxx operator malfunctions on the PC, so anyone with a mac (Masamune, where are ya?) wanna test this?
      -Az

      ------------------
      It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
      Stuffit is a piece of .sit.

      (This message has been edited by Azratax2 (edited 01-10-2004).)

    • I see it. I'm drooling. I'm answering you email. I'll test it either tonight, or if Shadowrun goes too late, tomorrow evening.

      Man, good work!

      ------------------
      ~Charlie
      Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)

    • Quote

      Originally posted by Masamune:
      **I see it. I'm drooling. I'm answering you email. I'll test it either tonight, or if Shadowrun goes too late, tomorrow evening.

      Man, good work!

      **

      Thanks
      Didnt get your email. I swear my email client is deleting mail at random.

      A simpler thing to test would be the simple 3 bit BITEC.
      Heres an implementation of BITEC, but its in windows .rez format (and it doesnt work on windows cause of the fxxx bug). If BITEC works, AzDC will work. (url="http://"http://www.aznt.com/EVN/BITEC.zip")www.aznt.com/EVN/BITEC.zip(/url)
      That implementation of BITEC also has outfits that appear when the appropriate bits are set (so you can see bits 0,1,2 and 3 without quitting to look at a pilotlog.

      EDIT: Also, even if BITEC doesnt work, for atleast one potential failure mode i have a workaround (which wouldnt work if it works as configured now).
      -Az
      David Arthur, where are you with that fixed version of the rez converter? Now that I have used EVNEW i cant stand novatools, but David's converter doesnt work, and Arios has said that he wont make his work on 8.6 (and my mac cant take anything more than 8.6 for reasons nobody has explained to me).

      ------------------
      It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
      Stuffit is a piece of .sit.

      (This message has been edited by Azratax2 (edited 01-10-2004).)

    • Or you could always send your plug-in to a willing Mac user (with his or her permission, of course), and kindly ask them to convert for you. Offer them a pers or some other type of acknowledgement :).

      ------------------
      Retribution: An Upcoming Plug-in for EVN.
      Visit the (url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/forumdisplay.cgi?action=topics&number;=20&SUBMIT;=Go")Chronicles(/url) today! Be sure to read the short story ' (url="http://"http://www.ambrosiasw.com/cgi-bin/ubb/newsdisplay.cgi?action=topics &number;=20&forum;=*EV/EVO+chronicles&DaysPrune;=100&article;=000262&startpoint;=")Fiery Descent(/url)'!
      (url="http://"http://www.cwssoftware.com")Sephil Saga(/url): An upcoming TC, visit the web page today.| | | Both the best and the worst plug-in editor for Windows! (url="http://"http://www.aznt.com/EVN/EVNEW")EVNEW(/url)!

    • Hmm..... not good news to report... I'm buisily testing BITEC right now... and it's not working. However, I still have things to try. I'll report back with more status reports as they become available.

      <Professor from Futurama> Bad news everyone. I just checked the debuglog (should have been my first stop, I know), and compared it to the behavior I was experiencing.

      evaluating ncb set string 'b11' (purchasing outfit Increment Counter (416))
      evaluating ncb set string 'S1 !b1001 F1 S1 ^b1002 A1 ^b1001 !b1000 !b11' (activating cron 232)
      terminating cron 232
      terminating cron 232

      evaluating ncb set string 'b11' (purchasing outfit Increment Counter (416))
      evaluating ncb set string 'S1 !b1001 F1 S1 ^b1002 A1 ^b1001 !b1000 !b11' (activating cron 232)
      terminating cron 232
      terminating cron 232

      evaluating ncb set string 'b11' (purchasing outfit Increment Counter (416))
      evaluating ncb set string 'S1 !b1001 F1 S1 ^b1002 A1 ^b1001 !b1000 !b11' (activating cron 232)
      terminating cron 232
      terminating cron 232

      *unnecessary parts have been eliminated.
      This was generated by simply landing, buying an Increment Counter outfit which removes itself after purchase, taking off, and landing again immediately. I have some marker outfits that show up and tell me what bits are set. After first purchase: B1 B2. After second purchase: B1. After third purchase: B1 B2. And so on and so forth. Looking at the set strings, I realize that the mission is not getting activated. Still, I haven't given up hope... have to triple-check my settings.
      </professor from Futurama>

      ------------------
      ~Charlie
      Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)

      (This message has been edited by Masamune (edited 01-11-2004).)

    • Masamune, it'll not work with a mission of ID 1. ID > 127.

      Or maybe it will, I get the same behaviour as you. :frown:
      ------------------
      (url="http://"http://en.wikipedia.org")En Wikipedia(/url)

      (This message has been edited by Engla (edited 01-11-2004).)

    • Nice catch, Engla. I'll try again. Forgot to change that- doesn't have much of a chance otherwise, does it?

      Edit: Tried it. Different effect, but same behavior overall:
      evaluating ncb set string 'b11' (purchasing outfit Increment Counter (416))
      evaluating ncb set string 'S200 !b1001 F200 S200 ^b1002 A200 ^b1001 !b1000 !b11' (activating cron 232)
      beginning mission Counter Mission 1 (200)
      beginning mission Counter Mission 1 (200)
      aborting mission Counter Mission 1 (200)
      aborting mission Counter Mission 1 (200)
      terminating cron 232

      Basically, NCB evaluation does not display nested execution behavior. It is taken as a whole. Also, it doesn't seem that OnSuccess, OnFail, and OnAbort are evaluated when used from Sxxx, Fxxx, and Axxx.

      Damn.
      ------------------
      ~Charlie
      Sephil Saga Homepage: (url="http://"http://www.cwssoftware.com")www.cwssoftware.com(/url)

      (This message has been edited by Masamune (edited 01-11-2004).)

    • Quote

      Originally posted by Azratax2:
      **(and my mac cant take anything more than 8.6 for reasons nobody has explained to me).

      **

      Is it a PowerPC processor or 68k?

      ------------------
      Here a slice, there a slice,
      everywhere a slice slice.

    • (quote)Originally posted by Katana:
      **(QUOTE)Originally posted by Azratax2:

      Is it a PowerPC processor or 68k?

      **(/quote)

      I was told and paid for it as a G3, though its so slow it may be the 604 chip that it came with...
      -Az

      ------------------
      It is here. EVNEW Public Beta (url="http://"http://www.aznt.com/EVN/EVNEW")www.aznt.com/EVN/EVNEW(/url)
      Stuffit is a piece of .sit.