12 votes

Aliens: Colonial Marines' stupid AI may have been caused by a single typo

8 comments

  1. [3]
    Deimos
    Link
    This seems like a really strange setting to put in an INI file. I feel like INI files have the implication of "it's reasonable for users to tinker with the settings in here", so I don't know why...

    This seems like a really strange setting to put in an INI file. I feel like INI files have the implication of "it's reasonable for users to tinker with the settings in here", so I don't know why you'd want a core part of AI behavior to be in there.

    Regardless, I bet the developers had custom INI files set up that didn't have this error, so they probably didn't realize this was happening (and might even have been confused about and unable to duplicate complaints about AI in reviews).

    6 votes
    1. tvfj
      Link Parent
      For a release INI it makes no sense, for sure, but during development INI files are used for pretty much anything, so long as it's a value that might need changing. In this case, it could have...

      For a release INI it makes no sense, for sure, but during development INI files are used for pretty much anything, so long as it's a value that might need changing. In this case, it could have been a more general rewrite, or just a renaming, where they left the original code intact and set as default and used the INI as a temporary override. Then someone fixed the typo in the class name, but not in the INI file.

      3 votes
    2. demifiend
      Link Parent
      I wouldn't be surprised if the developers used INI format as a "more readable" alternative to XML, YAML, or JSON. Either way, you gotta check your config files when debugging, not just your code.

      I wouldn't be surprised if the developers used INI format as a "more readable" alternative to XML, YAML, or JSON. Either way, you gotta check your config files when debugging, not just your code.

      2 votes
  2. [5]
    starchturrets
    Link
    Is this the bug where Gandhi turns into a warmongering nuke-happy dictator?

    This isn't the first time we've seen AI buggered by a small typo. Earlier this year, Civilization 6 developer Firaxis confirmed that a spelling error in one of the game's data files was messing with the way AI leaders allocate resources.

    Is this the bug where Gandhi turns into a warmongering nuke-happy dictator?

    1 vote
    1. vakieh
      Link Parent
      I believe Gandhi did involve a wrap-around bug from memory (they tried to set him to the least likely, ended up wrapping around to super-duper-most-likely).

      I believe Gandhi did involve a wrap-around bug from memory (they tried to set him to the least likely, ended up wrapping around to super-duper-most-likely).

      4 votes
    2. Crespyl
      Link Parent
      I think that's a much older bug from either Civ I or II, after Nuke-Ghandi became an icon of the series they just adopted it and wrote it in as an explicit feature.

      I think that's a much older bug from either Civ I or II, after Nuke-Ghandi became an icon of the series they just adopted it and wrote it in as an explicit feature.

      4 votes
    3. pun-master-general
      Link Parent
      That was a bug in the original Civilization game, that happened because of an error where the game tried to calculate 1 - 2 and got a result of 255 due to wrap-around.

      That was a bug in the original Civilization game, that happened because of an error where the game tried to calculate 1 - 2 and got a result of 255 due to wrap-around.

      4 votes
    4. spctrvl
      Link Parent
      Nah, that's one from way back in the day. The original Civ set Gandhi's aggression value to the minimum, I think 1. When democracy is adopted, it reduces warmongering tendencies by 2; in Gandhi's...

      Nah, that's one from way back in the day. The original Civ set Gandhi's aggression value to the minimum, I think 1. When democracy is adopted, it reduces warmongering tendencies by 2; in Gandhi's case, that wrapped him back around to 255 aggression. It was acknowledged as a bug, but it was so funny and became so iconic that they left it in later versions.

      3 votes