Hi again TPT a quick question and a really frustrating error 1) the question, it 's about decay i am wanting to make an element that randomly decays into O2 and water, but from one element to begin with. 2) the error, about the description i keep gettin an error that says Error: a value of type "constant char*" cannot be used to initialize an entity of type "unsigned char" underneath the red squiggle here is the offending line of code {"ALKI", PIXPACK(0xF0FF10), 0.6f, 0.04f * CFDS, 0.90f, 1.00f -0.1f, 0.4f, 0.00f, 0.000f * CFDS, 2, 0, 0, 0, 0, 1, 35, SC_LIQUID, R_TEMP+0.0f +273.15, 30, "Neutralises acid", ST_NONE, TYPE_LIQUID|PROP_DEADLY, NULL}, Any help? tommig
@tommig 1. Write your element. 2. In powder.h, add five things to your file: 1. The define. #define PT_NUM x must be lifted a little for your element's ID to fit in. #define PT_ELEMENTNAME must be less than pt_num 2. The function. Where the rest is, add int update_ELEMENTNAME(UPDATE_FUNC_ARGS); 3. The pre-defining. The part where the huge array is: { "ELNA", ... , PROP_SOLID, NULL }, replace the NULL with &update_ELEMENTNAME 4. The transfer. Below you'll see another table with IPL, NT, etc. Add your element beneath it. Meanings: IPL - Impossible pressure low.(-256) IPH - Impossible pressure high.(+256) ITL - Impossible temp low(-1) ITH - Impossible temp high(10001) NT - No transition. (PT_NONE means kill particle) Check other elements as examples if you want melting etc. / End of powder.h / 5. The element source. Go to (TPT Folder)\src\elements\ Make a new textfile and name it ELEMENTNAME.c Inside the textfile, use a plaintext editor to paste your element code into.