Adding Elements Messes up other Elements

  • MasterMind555
    18th Nov 2011 Member 0 Permalink
    @star400040 (View Post)
    No, you don't need an Element.c to have an elements, but you must define it's properties and state changes.
  • star400040
    18th Nov 2011 Member 0 Permalink

    MasterMind555:

    @star400040 (View Post)
    No, you don't need an Element.c to have an elements, but you must define it's properties and state changes.

    I created two new elements a liquid and a gas, the properties in terms of exploding and what not work fine, however although I added them to the transition table, that dont transition. Also this may be a stupid question but I can't find how to add a new .c file to my project in visual studio, it only lets me add visual c++ files
  • MasterMind555
    18th Nov 2011 Member 0 Permalink
    @star400040 (View Post)
    You do add file, then instead of choosing one of the choices, replace "" or whatever is the default name by "yourElementName.c"
  • pilojo
    18th Nov 2011 Member 0 Permalink
    @star400040 (View Post)
    Not stupid, it's actually quite a bit of work. There are two things you need to do in powder.h before a new .c will work, after the defines, you should see something like int update_<elemname>(UPDATE_FUNC_ARGS); ... add a new one, ALSO, at the end of the first array, with your elements, add &update_<elemname>
  • star400040
    18th Nov 2011 Member 0 Permalink
    EDIT: Ok, so is it normal that it doesnt transition yet even if I added to the transition table? Or do I need to add something to the .C file inorder for the transition to take effect?