Need to copy Ctype and Tmp

  • Videogamer555
    27th Dec 2011 Member 0 Permalink
    I am working on making my own elements in Lua, and am using the Ctype and Tmp properties. Unfortunately save stamps don't copy the Ctype or Tmp variables of every element, ONLY those which use them in the "official" version. So my Lua edited elements that DO USE THEM don't get copy/pasted correctly, don't get stamp saved correctly, and don't get saved correctly in the a CPS complete save file.

    Please fix this, and make every element have saveable/copyable Tmp and Ctype variables.
  • vanquish349
    27th Dec 2011 Member 0 Permalink
    that would require a lot of reworking of how saves work, if i am not misstaken only like 10 elements save ctype(i may be wrong).
  • therocketeer
    27th Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    not sure about coding, but clearly @vanquish349 has more expertiese than me, so he's proberbly right. I'd certainly like to do that though.
  • jacob1
    27th Dec 2011 Developer 0 Permalink
    You could use tmp and life, those are saved for every element. If tmp wasn't saving for you, then it must just be a problem in your code, because it should automatically save for everything. You could also copy the life value into the ctype if you want it to display in the HUD.
  • Videogamer555
    27th Dec 2011 Member 0 Permalink

    vanquish349:

    that would require a lot of reworking of how saves work, if i am not misstaken only like 10 elements save ctype(i may be wrong).


    Well then a fix to the save code needs to be made. It should have been that way since the beginning of TPT. Yes the save files will be bigger, but it doesn't matter because it's BZIPed so it's gonna be pretty small anyway.
  • me4502
    27th Dec 2011 Member 0 Permalink
    @vanquish349 (View Post)
    not really... only make it that every element saves, not just those 10