first you need to add a replace weapon to the yard thing then to the new borg ship it needs to be a constructor with all its varients in a build list and then add
moduleconf = "module file here"
this tells the game that you need to select modules for this ship