Plutonium

  • ALEXANDERMW
    5th Oct 2014 Member 2 Permalink

    Please, give me plutonium lua file. 

  • CeeJayBee
    5th Oct 2014 Member 0 Permalink
    @ALEXANDERMW (View Post)
    It's not a lua file... it's combined into C++. The source code can be found here (PLUT's specific cpp file is right here).
    Edited once by CeeJayBee. Last: 5th Oct 2014
  • boxmein
    5th Oct 2014 Former Staff 0 Permalink
    It's not even "combined" into C++, it's been written in C or C++ for as long as plutonium has existed, which is a while.
  • RCAProduction
    6th Oct 2014 Member 0 Permalink

    Plutonium was in version 1 if I remember right..... So before TPT was even open-source!!

  • QuentinADay
    10th Oct 2014 Member 0 Permalink

    I just happened to make a script which does the same thing PLUT does so this might help you: 

     

    local a = elements.allocate("XXXX" , "AAAA")
    elements.element(a, elements.element(elements.DEFAULT_PT_PLUT))
    elements.property(a, "Name" , "XXXX")
    elements.property(a, "Description" , "Kinda like PLUT")
    function plutonium(i,x,y,s,n)
    if tpt.get_property("type", x + math.random(-1,1), y + math.random(-1,1)) == tpt.el.neut.id then
    if math.random(1,3) == 1 then
    tpt.parts[i].type = tpt.el.neut.id
    sim.pressure(x/4,y/4,75)
    tpt.set_property("temp", math.huge, x, y)
    elseif math.random(1,3) == 2 then
    tpt.parts[i].type = tpt.el.lava.id
    sim.pressure(x/4,y/4,75)
    tpt.set_property("temp", math.huge, x, y)
    elseif math.random(1,3) == 3 then
    tpt.parts[i].type = tpt.el.uran.id
    sim.pressure(x/4,y/4,75)
    tpt.set_property("temp", math.huge, x ,y)
    end
    end
    if sim.pressure(x/4,y/4) > 1 then
    if math.random(1,250) == 10 then
    tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'neut')
    end
    end
    end
    tpt.element_func(plutonium,a)

    function neutron(i,x,y,s,n)
    if tpt.get_property("type", x + math.random(-1,1), y + math.random(-1,1)) == a then
    if math.random(1,30) == 10 then
    tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'neut')
    end
    end
    end
    tpt.element_func(neutron,tpt.el.neut.id)

  • Klus
    1st Jan 2015 Member 0 Permalink

    You gave me a similar one but for solid PLUT

  • Lord_Bowserinator
    1st Jan 2015 Member 0 Permalink

    Probably the same one but without it being solid

  • QuentinADay
    2nd Jan 2015 Member 0 Permalink

    @Lord_Bowserinator (View Post)

     

    I actually made this one first

     

  • Antoine18
    11th Jan 2015 Member 0 Permalink

    Antoine18 returns !

  • FeynmanLogomaker
    11th Jan 2015 Member 1 Permalink
    This post has been removed: talking about bans