tpt++: new sim and ren lua api functions cbc80de6522b