Generator piston system