Laggy Neutrinos

  • DanielGalrito
    8th Apr 2015 Member 0 Permalink

    It doesnt work. The neutrino doesn't go throught other elements.

  • jacob2
    9th Apr 2015 Member 0 Permalink
    Probably because Lord_Bowserinator had you break it, flip the arguments back around (I think, didn't check docs)

    Edit: yes, that is the problem. sim.can_move works like sim.can_move(src, dst, #).
    Edited once by jacob1. Last: 8th Apr 2015
  • Lord_Bowserinator
    9th Apr 2015 Member 0 Permalink
  • Factorial
    9th Apr 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • DanielGalrito
    9th Apr 2015 Member 0 Permalink

    So? How can i fix it?

  • jacob1
    9th Apr 2015 Developer 0 Permalink
    I updated my post on the last page, just flip the first two arguments in sim.can_move around.
  • DanielGalrito
    30th Apr 2015 Member 0 Permalink

    So... after 21 days it still doesnt work the way you said jacob1, any other way?

    I made another script just with the ntno and removed all functions excluding the sim.can_move.

    I found sometime ago that the smaller the variations on

    "for i = 1,255 do"

    the smaller the lag.

  • jacob1
    30th Apr 2015 Developer 0 Permalink
    If you post exactly what you currently have (the entire script) and exactly what the problem is, I can fix it. The thing I said on the last page should still be the answer though.
    Edited once by jacob1. Last: 30th Apr 2015
  • DanielGalrito
    1st May 2015 Member 0 Permalink

    The whole script is here:

    http://pastebin.com/saMLLXGR

     

    The Ntno and Antn should go through everything excluding dmnd.

  • DanielGalrito
    11th May 2015 Member 0 Permalink

    I think i found the solution, finally...

    if tpt.get_property("type", x+math.random(-1,1), y+math.random(-1,1)) > 28 then

    for i = 1,255 do
    sim.can_move(tpt.element('ntno'),i, 2)
    end
    end

     

    this part of code will make neutrinos go through particles with type number bigger than dmnd, just need to to the same to smaller than diamond and implement on the complete version :)