State Transition Error

  • The_Silver_Kid
    1st Jan 2017 Member 0 Permalink

    I have two elements

    GLST

    EGLS

     

    GLST melts into EGLS at 366K
    EGLS freezes into GLST at 365K

     

    but whenever I open the compiled app when either elements changes state the game gives me a blue screen with a Memory read/write error and I cannot get it to work.

    PS all other element transitions still work (eg WATR > WTRV)

    GLST code : http://pastebin.com/dzL78bZS
    E
    GLS code : http://pastebin.com/c5wUapgQ

  • jacob1
    1st Jan 2017 Developer 0 Permalink
    Your element IDs are 400 and 401, that isn't possible. The max element ID is 256.

    The first unused ID is 180 right now, you should start there. (If you're basing it off the master branch it might be more like 185)


    I don't know if the bad element IDs are the problem, but it definitely might be.
  • The_Silver_Kid
    2nd Jan 2017 Member 0 Permalink

    That worked thanks!

     

    But now I have run into another issue

    Now instead of crashing on getting too hot (or too cold) the particle is killed instead of transitioning to the next element, however when I change 

     

    HighTemperatureTransition = PT_EGLS;

    or 

    LowTemperatureTransition= PT_GLST;

     

    to something like PT_WATR

    it transitions with no problem

    is there something I didnt do in another class file or is it just broken?

    this also happens when I change water to evaporate into GLST or EGLS.

    Edited once by The_Silver_Kid. Last: 2nd Jan 2017
  • jacob1
    3rd Jan 2017 Developer 0 Permalink
    What did you use as the IDs?

    Also can you check these in the console to confirm they are the same: tpt.element("EGLS") tpt.element("GLST")
  • The_Silver_Kid
    3rd Jan 2017 Member 0 Permalink

    Thanks they got switched around and I got it fixed and it works great now!

  • jacob2
    3rd Jan 2017 Member 0 Permalink
    @The_Silver_Kid (View Post)
    Yeah, I think it might possibly change the IDs on you. Just a side effect of the completely awful system we have for adding elements.
  • The_Silver_Kid
    3rd Jan 2017 Member 0 Permalink

    @jacob2 (View Post)

    thanks i'll keep that in mind

    Edited once by The_Silver_Kid. Last: 3rd Jan 2017