Skip to content

v2.5.0

Compare
Choose a tag to compare
@kartoFlane kartoFlane released this 20 Apr 21:23
· 795 commits to master since this release

Game version: 1.2.20

Thanks to Matthew Davis from Subset Games, who went out of his way to make sure the mod loader doesn't break with the new version of the game!

BEFORE UPDATING

  1. Run uninstall.bat to remove the mod loader
  2.  
    Non-steam: update the game (or reinstall)
    Steam: run Verify integrity of game cache (google it if you don't know how)
    Optionally try running the game, to make sure it works
  3. Install the new verison of the mod loader
  4. Go to ITB's save / profile directory, find settings.lua file, open it and change:
    ["force_opengl_1"] = 0 to ["force_opengl_1"] = 1 and
    ["language"] = 0 to ["language"] = 1

General

  • Added marker file to /mods directory so that it'll get unpacked properly.
  • Reworked handling of text and text replacements in an attempt to better support the new way the game handles text
  • Tweaked squad selection and pilot UIs
  • Added default and randomize buttons to squad selection and pilot UIs (thanks KnightMiner and tosx)
  • Fix statistics screen crashing the game (thanks Lemonymous)

API

  • modApi:conditionalHook - third parameter is now a function instead of a boolean. When this function returns true, the conditional hook is removed.
  • Added modApi:getGameVersion, which returns the game version: either 1.2.20, 1.1.22, or 1.0.22.
  • Added language-related functions:
    • modApi:getLanguageIndex() - returns id of the currently selected language
    • modApi:getLanguageId() - returrns a string identifier of the currently selected language. Can pass language index as argument to get the result for other languages.
    • modApi:getLanguageDisplayName() - returns the display name of the specified language (name of the language as displayed by the game). Can pass language index as argument to get the result for other languages.
  • Fix sdlext.isShiftToggled / sdlext.isAltToggled / sdlext.isCtrlToggled hooks not working
  • Fix SpaceDamage.IsMetadata crashing (thanks Lemonymous)
  • Change list_indexof() to return -1 instead of nil (thanks KnightMiner)
  • Added FinalEnemyList global table, that can be used to modify the list of enemies that will spawn during the final mission (thanks Lemonymous)
  • Added EnemyLists.Bots global table, that can be used to modify the list of bot enemies that will spawn in bot missions (thanks Lemonymous)
  • Removed accidental modApiExt dependency in mod loader code (thanks Lemonymous)

UI

  • Added Ui:swapSibling(), Ui:bringUp(), Ui:bringDown()