adapt Fieldgenerator to take a player.t list as argument instead of nbplayers, also, unit id and p_id are ints not strings