TPT Snapshots / Betas

  • LBPHacker
    7th May Developer 0 Permalink
    Hi!

    a) Yes, sim.createParts has changed, though only in the manner I outlined in my last comment here: in a way that still allows it to be used in simulation contexts without involving brushes. Why this doesn't apply to your case is hard to tell without seeing your code.

    b) Dynamic heat display can in fact do that, there just happens to be no way to configure it from the user interface yet, nor is it documented. There's
    ren.heatDisplayLimits(low, high)
    , where low/high are either numbers or the string
    "auto"
    , which translates appropriately to the min/max heat being drawn. There's also
    ren.heatDisplayAutoArea(x, y, w, h)
    to configure the area in pixel coordinates that the min/max is applied to.
    Edited once by LBPHacker. Last: 7th May
  • Ximorro
    7th May Member 0 Permalink

    Hello!

    a) Thanks, I thought the idea was to code it the same but without using the brushes that are only available in the UI. So that last parameter for the shape can only be set to ellipse, is that it? Are there plans to implement rectangle and triangle shapes in the future like the original createParts did?

    b) Ah, great! That's fantastic, thank you!

    Edited once by Ximorro. Last: 7th May
  • jacob1
    3:17:47 Developer 0 Permalink
    @Ximorro (View Post)
    About wiki, yeah I'll update it before release (I hope), although I don't know what kind of format the restrictions will be in.

    About dynamic heat display, I agree with what you said. Heat display is one of the things I want to port from my mod, and I'll definitely be adding an option to set a fixed min/max onto the UI. (the more powerful options I'll probably leave as Lua only).

    @Ximorro (View Post)
    Shapes are a feature of brushes, so things like triangle / square won't work. But for square, you can use sim.createBox instead. For triangle ... well, I have no idea why you'd ever want that.

    If you have more issues, you can post your script and I can try to help. You may want to offload things onto a tick event for example. Queue up a list of actions and then run them in an interface event, that kind of thing.