aliens

Author Topic: Question about 1999  (Read 2068 times)

Offline Longbaugh

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Question about 1999
« on: November 07, 2020, 04:05:05 am »
Hey! I'm a big fan of the mod and I'm enjoying it a great deal. I haven't reached this point yet, but I had a question about aliens appearing in 1999. If I wanted to play a bit more at my own pace, would it be possible to edit the game date in the save game file to keep the aliens at bay for longer so I can prepare? Or is there something else that triggers them into invading?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Question about 1999
« Reply #1 on: November 07, 2020, 04:48:46 pm »
Hello, and thanks for the interest in the mod!

The answer to your question about editing the date of alien invasion is technically "yes", but it's not so simple. Code-wise, there is no "invasion date"; instead, all events in the mod which are limited by time passed refer to a number of months passed since the beginning. If you check missionScripts_XCOMFILES.rul, you see for example:

Code: [Select]
  - type: alienFlyby
    missionWeights:
      0:
        STR_ALIEN_FLYBY: 100
    firstMonth: 25
    executionOdds: 8
    startDelay: 20
    randomDelay: 43500

This means that the mission STR_ALIEN_FLYBY starts happening at the earliest in month 25 (beginning from 0), which is January 1999.

In order to postpone the alien invasion by, say, one year, you would have to increase all relevant instances of firstMonth by 12. (Be careful to not affect other missions, like cult activities, or you may end up having no missions at all for a year.) As a bonus, you can also open vars_XCOMFILES.rul and change startingTime from 30th of December 1996 to 30th of December 1995 (don 't forget to change the weekday as well to match the calendar), to ensure that the invasion still happens January 1999, but you get an extra year.

Having said all that, I don't think it's that worth it - the invasion is not a  complete game changer and you should be fine going at your own speed regardless.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: Question about 1999
« Reply #2 on: November 07, 2020, 04:59:31 pm »
I haven't reached this point yet, but I had a question about aliens appearing in 1999. If I wanted to play a bit more at my own pace, would it be possible to edit the game date in the save game file to keep the aliens at bay for longer so I can prepare? Or is there something else that triggers them into invading?

Changing the date won't do anything, date is just cosmetic.

But you can change "the number of months passed since the beginning", which will effectively allow you to time travel. In the save file, look for "monthsPassed" and change it for example from "monthsPassed: 23" to "monthsPassed: 11" (this will give you 1 more year = 12 more months).

Offline Longbaugh

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: Question about 1999
« Reply #3 on: November 07, 2020, 08:08:23 pm »
Thanks for the replies and the info! I'll just keep chugging along without any editing then and see how it goes.