Ported Outpost map scripts into a DS library