Ambrosia Garden Archive
    • Outfit sold for cash, but I still have it?


      or "how to make cash selling stuff you don't lose"

      This is strange.

      I encountered this bug while testing a solution to my Arpian Hayai & Akarui bays limitation system.
      I've no idea what causes it, I've no idea how to stop it.

      But here goes.

      I have a ship with a bay on it.
      The bay has the following in its NCB fields:

      AvailBits: b989 & o520
      OnPurchase: d520
      OnSell: g520

      The outfit "520" is a 'token' that enables you to buy a bay.

      And then, when I sell it, this is what happens:
      "evaluating ncb set string 'g520' (selling outfit Akarui Bay (509))"

      But I still have it on my ship. So I get the token, but keep the bay. Despite selling it.
      I then tried buying one:
      "evaluating ncb set string 'd520' (purchasing outfit Akarui Bay (509))"

      But I still only have one bay.

      I then tried changing to this expression:
      "b989 & (o520 | o509)"
      (in case it was having trouble with the "o520 - d520" combination)

      But still nothing.
      I'm at a loss. Does anyone have a clue as to why it gives me free cash??

    • I'm not good with bits, but mabye if you changed the d520 and g520 to just b520 and !b520.

    • They're not bits, they're outfits, so it's normal.

    • I've encountered this problem as well. Just add a g(outfit id that you're buying) to the OnPurchase and add d(outfit id that you're selling) to the OnSell.

      At least I think that's how I fixed it.

      This post has been edited by EVWeb : 26 July 2007 - 09:04 AM

    • Guy confirmed that this is a known bug in the program; selling something that has gxxx or dxxx in the sell field results in it granting money back but not removing the outfit, and buying something with those bits in the buy field results in losing money but not getting the outfit.

      Like EVWeb said, if you want buying/selling an outfit to add/delete another outfit, you just have to tell the program to add/delete itself as well (so outfit id 500 will need to have g500 on buy and d500 on sell).

    • It only happens when the main outfit is a weapon or ammunition.

    • Very, very strange.

    • Yeah, I remember Charlie getting annoyed at this while working on SS (the crowning jewel of token outfit ideation).

    • Yeah yeah, we know everything will be in SS, and was in SS before it was anywhere else :rolleyes:

      But it'll be made public in ARPIA2 first, like everything else 😉

      This post has been edited by Pace : 27 July 2007 - 12:14 PM

    • @pace, on Jul 27 2007, 01:14 PM, said in Outfit sold for cash, but I still have it?:

      Yeah yeah, we know everything will be in SS, and was in SS before it was anywhere else :rolleyes:

      Damn straight.

      This post has been edited by orcaloverbri9 : 29 July 2007 - 07:06 AM