Conductivity troubles

  • Neospector
    14th May 2011 Member 0 Permalink
    So my mod has POST- Positive Electrical Output and NEGA- Negative Electrical Output in order to perform electrolysis as you would in a lab, with each output producing different molecules.
    image

    It's kinda like making negative and positive energy with adding a whole new layer. However whenever I spark these, the game will suddenly freeze. It is not concerning PROP_CONDUCTS, since Neodium uses that property and doesn't crash. I'm starting to think it isn't including the sprk.c file, but since I'm on my laptop at the moment I can't access the source code to check this:
    In the file iron.c, is there a line that has it include the file sprk.c? This is mostly what I want to check, but if there isn't I'd like some idea of why this happens?
  • jacksonmj
    14th May 2011 Developer 0 Permalink
    The game freezes because it has entered an infinite loop. Your loops for POST and NEGA in sprk.c are slightly wrong.

    for (ry=-1; ry<2; rx++)

    Should be ry++
  • Neospector
    14th May 2011 Member 0 Permalink
    @jacksonmj (View Post)
    That's done it. Now they work. Thank you so much.