Better electricity!

  • TestinSparksStudio
    8th Jan 2017 Member 3 Permalink

    The electricity features aren't enough for me.. I mean, yeah they're cool and all, but... I just don't think it's good enough.

    I would like to see...

     

    A voltage status, like pressure and temp, different voltages and amps. I mean, you can't just spark a switch and have metal become red hot without even knowing the volts and amps!

     

     

     

    Electrical arcs. If the live wire or metal is destroyed along the line, an electrical arc would spark out and supply the dead wire with heat and some electricity. Or.. if there are two different amps and voltages on the same line... well.. its hard to explain..

     

    -300v---------------500v- = -0v------  ? --------500v. 2 different voltages on the same line, like connecting a car battery to a 9v battery. It'll probably end with flames...

     

     

     

    Faulty wiring... overvoltages, stuff like that is needed..

    Edited once by TestinSparksStudio. Last: 8th Jan 2017
  • zaccybot2
    8th Jan 2017 Member 1 Permalink

    Perhaps this would be better suited to a seperate mod rather than changing the actual function of TPT. I might have a look if you would put everything you were thinking on here

  • jombo23
    10th Jan 2017 Member 0 Permalink

    I think what theyre looking for would likely be a spark, but instead of life being 0-4, it would be 0-9999, and it would fade over time traveling on wires. Two sparks colliding would add their lifes, etc

  • fallencrow305
    11th Jan 2017 Member 1 Permalink

    Really not feasible for our current TPT, I believe. It would break TONS of saves, and would really change a whole awful lot. I agree with zaccybot2 that perhaps it could become a mod, but I don't think it could be added.

  • John1Cena
    11th Jan 2017 Member 0 Permalink

    Lol:

    .You dont know voltage and other.

    .You testing with this.

    .It dont work, you FUUUUUUU.

    Idiot idea

  • zaccybot2
    11th Jan 2017 Member 5 Permalink

    @John1Cena (View Post)

     That was not constructive or helpful. It barely made sense.

     

    Are you after electricity which travels instantly along a conductor, and where each element that conducts has a resistance value associated with it? And whilst they have current flowing through them, they heat up?

    Edited once by zaccybot2. Last: 11th Jan 2017
  • minecraft-physics
    16th Jan 2017 Member 1 Permalink
    In TPT, each pixel has no 'knowledge' of the structures around it - a pixel doesn't 'know' that it's part of a wire. The way it works now, SPRK looks for conductors in the vicinity (neighbouring 20 pixels) of the current sprk, then turns them into sprk as well. To do this, the pixel only has to look at the neighbouring 20 pixels (a circle with radius 2), meaning that only 20 checks have to be made per frame per pixel. In computer science, we call this O(n) time - the number of lookups is proportional to the number of SPRK pixxels, n.

    There would be two ways to implement realistic electronics:

    1. Treat each pixel as a separate circuit element that is connected to the ones immediately adjacent
    2. Use the layout to simplify the circuit into a traditional circuit diagram and use SPICE to simulate it


    For the first approach, the number of 'neighbour lookups' each conductor pixel has to do is constant - it's O(n) as well. Now we need to simulate the resistance, capacitance and inductance of all of these conductor parts. Assuming you find some way to do that satisfactorily - say, leaving a one pixel gap creates capacitance, otherwise it's a resistor, but if it's made of GOLD it acts as an inductor - you still have an extremely complicated circuit, with as many nodes as there are conducting pixels.

    You then have n^2 n-term couples differential equations in need of solving. Analytical solutions are impossible in general, so you'd have to use SPICE to do the numerical simulations. However, these simulations get less reliable with larger circuits - you'll end up with a whole lot of weird behaviour and possibly failures to converge - in other words, it won't work the way you expect it to, and you may as well just use http://www.falstad.com/circuit/.

    The second approach is even more problematic. To even figure out where the wires are would require recursively traversing every single node whenever a conductor is put down - very, very laggy and difficult to get right. Even if it worked, it'd still be slower than current electronics and even they're known to cause significant lag.

    Apart from breaking literally every electronic save on the server, realistic electricity just isn't in keeping with the look and feel of TPT - it's a toy. The electronics are present at logic level only – no high voltages are present.

    TL; DR

    It's a nice idea, but the nails in its coffin are that:
    • It's not really in the spirit of TPT
    • It'd break every save
    • It's very hard to implement at all, and even harder to implement in a performant way
  • Ben_Ger
    17th Jan 2017 Member 1 Permalink

    There is a problem with your idea (as some have already mentioned) you need to overhaul the entire thing.

    Like, how would we determine resistance? how do we determine voltage in a single piece?

    As others have suggested, a mod (an extensive one at that) would work.

  • TestinSparksStudio
    18th Jan 2017 Member 0 Permalink

    True... it was good idea at the time, but it bothers me that you can't see the voltage while the metal gets red hot. Is it at 1,000KV? Or is it 500KV? 

  • TPT_PL
    18th Jan 2017 Member 0 Permalink
    Maybe have an additional value, like tmp3? And in SPRK this would be voltage. But I don't know how this would be useful.