an new element idea

  • TheSupaMario
    11th February Member 0 Permalink

    UMTL (Undestroyable Metal)
    Type: Solid
    Category: Electronics
    Description: "Undestroyable metal, use tmp to set its funcitons (0 = normal conductor, 1 = NSCN, 2 = PSCN)."

    Melting Temperature: none

    Undestroyable: True

    Functions: Set its tmp to make it act like an normal conductor, NSCN, or PSCN

  • jacob2
    11th February Member 0 Permalink
    Try TESC with .tmp=0, it conducts electricity but doesn't melt it break under pressure

    It's extremely unlikely I will make an element take the function of PSCN or NSCN depending on tmp. In places that look for these elements, it specifically checks the type. Checking for something else would make the code slower.
  • TheSupaMario
    11th February Member 0 Permalink

    @jacob2 (View Post)

     Maybe for the undestroyable metal's functions just copy the script from the NSCN and PSCN and put them in an "if" code so the undestroyable metal acts like that conductor. Also, the better news is, that NSCN and PSCN already got an SPRK conducting script as other conductors do, so you can just make the metal do this script as well and this shouldn't be such a hassle or low FPS.

  • LBPHacker
    11th February Member 0 Permalink

    The problem here is that most of the functionality you associate with PSCN and NSCN aren't implemented by PSCN and NSCN's code but the rest of the simulation. This is what jacob meant; that bits of relevant code are sprinkled all over the simulation, and adapting those bits for a new element would increase code size and decrease performance.

  • TheSupaMario
    11th February Member 0 Permalink

    @LBPHacker (View Post)

     Then what about reusing the code for the unbreakable metal? I found that NES developers used to save place by doing some tricks, so the "Golden Rule" "Try to Save as Much Game Memory as Possible!" would really help make it alot faster.