TPT command inquiry

  • yy_xrc
    24th November Member 0 Permalink

    I'm making a cold fusion reactor, and I want to remove the conductive property from NBLE because whenever NBLE sparks, it freezes up and slows down the fusion. But when I tried to use the command it just ended up breaking the NBLE and making it stuck, not able to transfer into PPIP

     

    Here's the command I tried to use

     

    elem.property(52,"Properties",elem.PROP_CONDUCTS,false)

     

    It didn't give me any errors so I don't know what went wrong. Does it use binary instead of Boolean? or are there other commands that I'm supposed to add for it to work

    Edited 3 times by yy_xrc. Last: 24th November
  • Aeiouman
    24th November Member 0 Permalink

    @yy_xrc (View Post)
    its a bitflag

     use elem.property(elem.DEFAULT_PT_NBLE, "Properties", bit.bor(elem.PROP_CONDUCTS))
    i think
    i dont know how to turn off properties
    for the cold fusion reactor, use stor to pick up the nble right as it fuses

  • 12034056
    24th November Member 0 Permalink

    Use this to switch NBLE conductivity on/off:

    elem.property(52, "Properties", bit.bxor(elem.property(52, "Properties"), elem.PROP_CONDUCTS))

    Note that changes using the console don't get saved and only affect current instance of TPT, so this won't work if you want to upload the simulation with that change.

  • yy_xrc
    8:13:48 Member 0 Permalink

    @Aeiouman (View Post)

     I tried using stor to pick up the NBLE but the problem is that some of it sparks the moment it turns into NBLE so it can't be picked up by stor