Disabling fusion

  • xxx70307
    28th Sep 2013 Member 0 Permalink

    I need help. I would like to disable all the fusion thing made in built.

    Can anyone help me in this?

  • Nobody905
    28th Sep 2013 Member 0 Permalink

    @xxx70307 (View Post)

     What?

    What do you want to disable? Hydrogen fusion? Element reactions?

    Please be more specific.

  • xxx70307
    28th Sep 2013 Member 0 Permalink

    @Nobody905 (View Post)

    I would like to disable HYGN fusion

  • Nobody905
    28th Sep 2013 Member 0 Permalink

    @xxx70307 (View Post)

     I guess remove the update function?

  • xxx70307
    28th Sep 2013 Member 0 Permalink

    how to do that?

  • Nobody905
    28th Sep 2013 Member 0 Permalink

    @xxx70307 (View Post)

    In Lua, I have absolutely no idea. In c++, you just delete the function and set the update to NULL. But if you use c++ you're gonna have to compile for every version of tpt.

  • jacob1
    28th Sep 2013 Developer 0 Permalink
    try this:

    function asdf() end tpt.element_func(asdf, tpt.el.hygn.id, 1)
    (I thought just nil would work, I guess not yet)

    This will overwrite hydrogen's function with one that doesn't do anything.
  • xxx70307
    29th Sep 2013 Member 0 Permalink

    @jacob1 (View Post)

    even tough it disablesfusion, it diables HYGN+OXYG+FIRE=WTRV. I whant this to be as it is

  • Box-Poorsoft
    29th Sep 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • jacob1
    29th Sep 2013 Developer 0 Permalink
    @xxx70307 (View Post)
    yes, but there isn't any other way. You can't overwrite half the function.

    You could try coding the HYGN+OXYG+FIRE=WTRV reaction yourself maybe. Not sure how well that would work though, you might have to look at src/simulation/elements/HYGN.cpp, the code there.