Author Topic: Text not displaying as expected when spawning new alien base sites?  (Read 1037 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
I'm trying to spawn an alien base that is instantly visible to X-Com (Using showAlienBase: true) and that has different siteType: than the regular one.

So far I have been able to make the alien base appear but the text is not displaying what I was expecting on the Geoscape.
Spoiler"Screenshot":
Spoiler"Screenshot":
Spoiler"Screenshot":
Spoiler"Screenshot":
For some reason instead of the contents of the string assigned to markerName: it is displaying the string's name itself STR_TEST_MARKER_NAME.



Also, can the message for when this base is discovered by customized without effecting the discovery message for all other alien bases?
Spoiler"Screenshot":

Currently it reads "X-Com patrols have located an Alien colony in North Pacific" but that will be confusing if the new site isn't actually an alien colony.

Example:
"Aliens have taken over a factory in _location name_" etc.



I've attached a small example mod to better explain how I'm currently trying to setup the mission spawning.
Test_Base_Creation_V0-1.zip



And here is the code from the mod:

Spoiler"alienDeployments:":
Code: [Select]
alienDeployments:

# [=] Test Spawn Base [=]
  - &STR_SPAWNED_BASE_TEST_SITE
    type: STR_SPAWNED_BASE_TEST_SITE
    genMissionRaceFromAlienBase: false
    huntMissionRaceFromAlienBase: false
    data:
      - alienRank: 0
        lowQty: 2
        highQty: 2
        dQty: 0
        percentageOutsideUfo: 0
        itemSets:
          -
            []
          -
            []
          -
            []
    width: 50
    length: 50
    height: 4
    terrains:
      - ISLAND
    script: ISLAND_TERROR
    alert: STR_TEST_ALERT
    alertBackground: BACK03.SCR
    markerName: STR_TEST_MARKER_NAME
    markerIcon: 7
    alienBase: true
    briefing:
      title: STR_TEST_TITLE
      desc: STR_TEST_DESCRIPTION
      palette: 4
      music: GMATTBAS
      background: BACK01.SCR
    points: 0
    race: STR_AQUATOID

Spoiler"alienMissions:":
Code: [Select]
alienMissions:

# [=] Test Spawn Base [=]
  - type: STR_SPAWNED_BASE_TEST_SITE_MISSION
    points: 0
    objective: 2
    spawnZone: 3
    siteType: STR_SPAWNED_BASE_TEST_SITE
    showAlienBase: true
    raceWeights:
      0:
          STR_AQUATOID: 100
    waves:
      - ufo: dummy #don't spawn a ufo, we only want the site
        count: 1
        trajectory: P10
        timer: 0
        objective: true

Spoiler"missionScripts:":
Code: [Select]
missionScripts:

# [=] Test Spawn Base [=]
  - type: testSpawnBase
    missionWeights:
      0:
        STR_SPAWNED_BASE_TEST_SITE_MISSION: 100
    regionWeights:
      0:
        STR_NORTH_ATLANTIC: 10
        STR_SOUTH_ATLANTIC: 10
        STR_NORTH_PACIFIC: 10
        STR_SOUTH_PACIFIC: 10
        STR_MEDITERRANEAN: 10
        STR_SOUTH_CHINA_SEA: 10
        STR_INDIAN_OCEAN: 10
        STR_THE_EAST_SEA: 10
        STR_NORTH_SEA: 10
        STR_CARRIBEAN: 10
    useTable: false
    startDelay: 150
    varName: testbasevar
    maxRuns: 1

Spoiler"extraStrings:":
Code: [Select]
extraStrings:

  - type: en-US
    strings:

      STR_TEST_TITLE: "Test Title"
      STR_TEST_DESCRIPTION: "Test Description"
      STR_TEST_MARKER_NAME: "Test Marker Name"
      STR_TEST_ALERT: "Test Alert"
« Last Edit: August 09, 2023, 02:00:05 pm by The Martian »