Weight doesn't work!

  • Videogamer555
    14th Dec 2011 Member 0 Permalink
    When I adjust weight of something such as sand and put it at the highest value of 100, it should sink below EVERYTHING except solids (as normally 100 is reserved for solids)
    My info from the wiki says:
    Weight: Heavier elements sink beneath lighter ones. 1 = Gas. 2 = Light, 98 = Heavy (liquids 0-49, powder 50-99). 100 = Solid. -1 is Neutrons and Photons.
    but no matter what I change various powders to (sand, dust, etc) none of them actually change their density as sand remains heavier than dust, and sand remains lighter than mercury, no matter what I do. Please help.
  • me4502
    14th Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    I experimented with that in my old mod... Powders are programmed differently... Weight doesn't do that... I believe it does for liquids though
  • Videogamer555
    14th Dec 2011 Member 0 Permalink
    l think it is supposed to work the way I described though, because that's what the wiki says it does.
  • jacob1
    14th Dec 2011 Developer 0 Permalink
    It doesn't work yet. Before powder toy even shows up, it goes through the weights of all the elements and decides which ones are heavier and can move through other elements. It puts these into a large can_move array. It never checks the weights again, and always uses the originally can_move array. Right now, changing the weight value of an element has absolutely no effect at all. If it did, I would make RAZR in lua form (I already made virus, but it lags a lot).
  • Videogamer555
    14th Dec 2011 Member 0 Permalink

    jacob1:

    It doesn't work yet. Before powder toy even shows up, it goes through the weights of all the elements and decides which ones are heavier and can move through other elements. It puts these into a large can_move array. It never checks the weights again, and always uses the originally can_move array. Right now, changing the weight value of an element has absolutely no effect at all. If it did, I would make RAZR in lua form (I already made virus, but it lags a lot).


    Maybe it needs to be in the autorun.lua, rather than any random lua file?