i'm gonna use this for my go to ask questions thread for this mod so i don't spam the forums make too many new threads.
cargo ship map is working now. i fixed all the lof issues and bugs with help from you. see here:
https://openxcom.org/forum/index.php/topic,3368.0.htmlbut i am in need of more help.
i wanna make it randomly appear on water with a custom target name as SHIPPING ROUTE which is defined in alienMissions and
i am trying to make custom terror missions that pop up on water as deep alien cargo attacks. but whenever the mission appears game inst a crashes.
here is my terrain ruleset
terrains: # ---------- TERRAINS -------------------------------------------
- name: CARGO
mapDataSets:
- BLANKS
- SEA
- CARGO1
- CARGO2
- XBITS
civilianTypes:
- MALE_CIVILIAN_SAILOR
- MALE_CIVILIAN_WORKER
script: CARGO
mapBlocks:
- name: CARGO00
width: 30
length: 70
mapScripts: # -------- MAP SCRIPTS ----------------------------------------
- type: CARGO
commands:
- type: addCraft
rects:
- [1,0,1,2]
- type: addBlock
size: [3,7]
regions: # ------------ REGIONS --------------------------------------------
- type: STR_NORTH_ATLANTIC
cost: 500000
regionWeight: 5
missionWeights:
STR_CARGO_TERROR_MISSION: 20
areas:
- [305, 335, -70, -30]
- [300, 335, -30, -10]
- [315, 335, -10, 0]
missionZones:
-
- [305, 335, -70, -30]
- [300, 335, -30, -10]
- [315, 335, -10, 0]
- type: STR_SOUTH_ATLANTIC
cost: 500000
regionWeight: 5
missionWeights:
STR_CARGO_TERROR_MISSION: 20
areas:
- [330, 5, 0, 15]
- [325, 5, 15, 60]
- [5, 55, 40, 60]
missionZones:
-
- [330, 5, 0, 15]
- [325, 5, 15, 60]
- [5, 55, 40, 60]
- type: STR_INDIAN_OCEAN
cost: 500000
regionWeight: 5
missionWeights:
STR_CARGO_TERROR_MISSION: 20
areas:
- [55, 70, -15, 10]
- [70, 90, -5, 10]
- [55, 105, 10, 60]
missionZones:
-
- [55, 70, -15, 10]
- [70, 90, -5, 10]
- [55, 105, 10, 60]
- type: STR_CARGO_TERROR_MISSION
data:
- alienRank: 5
lowQty: 4
highQty: 6
dQty: 1
percentageOutsideUfo: 70
itemSets:
-
- STR_BLASTA_PISTOL
-
- STR_BLASTA_RIFLE
- STR_SONIC_PULSER
-
- STR_BLASTA_CANNON
- STR_SONIC_PULSER
- alienRank: 4
lowQty: 1
highQty: 2
dQty: 0
percentageOutsideUfo: 20
itemSets:
-
- STR_BLASTA_PISTOL
-
- STR_BLASTA_RIFLE
-
- STR_BLASTA_CANNON
- alienRank: 3
lowQty: 1
highQty: 1
dQty: 1
percentageOutsideUfo: 20
itemSets:
-
- STR_BLASTA_PISTOL
-
- STR_BLASTA_RIFLE
-
- STR_SMALL_LAUNCHER
- STR_STUN_BOMB
- STR_STUN_BOMB
- STR_STUN_BOMB
- alienRank: 2
lowQty: 1
highQty: 2
dQty: 0
percentageOutsideUfo: 20
itemSets:
-
- STR_BLASTA_PISTOL
-
- STR_BLASTA_RIFLE
-
- STR_BLASTA_CANNON
- STR_SONIC_PULSER
- alienRank: 1
lowQty: 1
highQty: 1
dQty: 0
percentageOutsideUfo: 0
itemSets:
-
- STR_BLASTA_PISTOL
-
- STR_BLASTA_RIFLE
-
- STR_BLASTA_CANNON
- STR_BLASTA_CANNON
- alienRank: 6
lowQty: 1
highQty: 3
dQty: 2
percentageOutsideUfo: 50
itemSets:
-
[]
-
[]
-
[]
- alienRank: 7
lowQty: 1
highQty: 3
dQty: 2
percentageOutsideUfo: 50
itemSets:
-
[]
-
[]
-
[]
width: 30
length: 70
height: 4
civilians: 16
terrains:
- CARGO
briefing:
palette: 6
music: GMENBASE
so i have everything working now but cargo ship terror missions crash the game when they show . i know this because with mod off game never crashes.
there must be something that i am missing .
now i am thinking maybe missions can't happen on water? so maybe i have to modify the geoscape as well so make water a new texture.
anyone has any thoughts?