the regenerative hulls for the nomads is a good Idea because the ships they use are organic in composition however if you did give them regenerative hulls and sheilds they still would need sheid bateries and nanobots to speed the healing/repair process
I think your mortar machine would break some rules of physics because an object cannot change direction unless an additional force is applied. if the object is a missle with an engine that can change directions it wouldn't break any rules however if the weapon was a blob of enery it would have to travel in a straight line(no enery missles) because it has no feasable way way of changing direction. .
for the torpedo with guns I think it might be better to design a kind of drone fighter to aid you in battle.
I can't help with the programing since I have never written code but I hope I helped in some way.