There are 4 compile errors in the mod now, when you fixed all the ones I mentioned before you added them at the same time ):
The NEMR Directive should have PT_NEMR in the middle like this: //#TPT-Directive ElementClass Element_NEMR PT_NEMR PT_NORMAL_NUM + 24
There also needs to be a directive comment before the graphics function: //#TPT-Directive ElementHeader Element_NEMR static int graphics(GRAPHICS_FUNC_ARGS)
RAND.cpp has the same problem as NEMR, missing a PT_RAND in the directive: //#TPT-Directive ElementClass Element_RAND PT_RAND PT_NORMAL_NUM + 25
Also delete src/client/ToolClasses.cpp, or move it to generated/ToolClasses.cpp where it belongs