Releases: youneuoy/M2TWEOP-library
M2TWEOP-3.3.1
Release Notes
NOTE : NOT SAVEGAME COMPATIBLE!!!!
M2TWEOP-3-3-1
- Fixed custom mod building UI in
data/ui/generic
not being read correctly when EOP was installed - Medik
Known Issues
- Building UI is not loaded from vanilla if not present in your mod files. To fix just unpack vanilla and add the UI, don't replace if prompted
M2TWEOP-3-3-0
(all changes by Fynn)
Library
- Increased culture limit to 31. NOTE: the 8th culture (index 7) is NOT valid and you need to place a dummy culture there you won't actually use.
- Do not use cultures over limit in offmap_models file, event_bodies and sound files.
- Added ability to use EOP units in custom battle.
- Added ability to use EOP units in game files like export_descr_buildings, descr_strat, descr_rebel_factions etc
- Can spawn EOP units by name instead of index. (Both this and using in game files only works for file-added EOP units)
- EOP unit type names need to be unique now.
- Fixed maintain option for siegeSettlement/siegeFort.
- Fixed "random_name" in spawnArmy
- Fixed armies not attacking in sieges with Elephants in their army.
- Fixed elephant artillery not attacking gates.
- Fixed crashes relating to EOP mercenaries.
Lua Plugin
- Added new
mapImage
struct- Enables users to render their own versions of the campaign strategy map
- Includes options for filling certain tiles and regions with color and blurring options for smoothing out jagged lines
- Added all the unit actions that were possible to execute in campaign_script, and expanded the unit struct.
- Added get unit by label
- Added 2 extra unit functions: Attack building and collect engine.
- Added unit groups, getting group by label, defining groups, and every script function relating to groups.
- Added siegeEngine struct and ability to get all engines in battle or get the engine a unit is carrying.
- Fixed checking if unit/eduEntry has an attribute.
- Added creating watchtowers.
- Added all character stratmap actions, diplomacy, spying, assassination, blockading, sabotage etc
- Added ability to split armies, disembark and embark on ships.
- Added ability to merge by movement instead of by teleportation.
- Added new functions to switch a characters or fort faction, and added option to convert the settlement garrison when switching a settlement's faction.
- Added loading saves.
- Added function to log something to game log (flushes log immediately).
- Expanded EDU entry struct, and added ability to get localized name, description.
- CreateFortXY does not cost money any more, and both fort construction functions now will always work even if you have buildable forts off.
- Expanded
coords
toxCoord
andyCoord
in thetileStruct
and added many new fields. - Added
aiFaction
tofactionStruct
- Fixed
battleBuilding:getBuilding()
returning the wrong thing - Fixed a bug where right clicking an EOP unit in the building description would do nothing
- Added ability to get the character/settlement/fort the cursor is hovering over.
- Added getting merc pool by name.
- Added global roads db to campaign struct.
- Fixed setting diplomatic stances and getting them.
- Added sending characters off map through lua.
- Added ability to get various info on the battlemap, like height at any point, street deployment positions, hill positions, terrain lines, zones etc.
- Added get culture/climate id by name, and getting their name by id.
- Added recruitment queue info
- Added ability to check all the available construction/recruitment items in a settlement and add them to the queue.
- Added ability to see which unit/building is being looked at in the info scroll.
- Added all the options from the campaign DB.
- Many new fields in many structs.
ImGUI
- Added all the drawList functions to draw stuff on the screen.
- Added optional extra parameters to image to draw only parts of it.
NOT SAVEGAME COMPATIBLE!!!!
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.3.0
Release Notes
NOTE : NOT SAVEGAME COMPATIBLE!!!!
(all changes by Fynn)
Library
- Increased culture limit to 31. NOTE: the 8th culture (index 7) is NOT valid and you need to place a dummy culture there you won't actually use.
- Do not use cultures over limit in offmap_models file, event_bodies and sound files.
- Added ability to use EOP units in custom battle.
- Added ability to use EOP units in game files like export_descr_buildings, descr_strat, descr_rebel_factions etc
- Can spawn EOP units by name instead of index. (Both this and using in game files only works for file-added EOP units)
- EOP unit type names need to be unique now.
- Fixed maintain option for siegeSettlement/siegeFort.
- Fixed "random_name" in spawnArmy
- Fixed armies not attacking in sieges with Elephants in their army.
- Fixed elephant artillery not attacking gates.
- Fixed crashes relating to EOP mercenaries.
Lua Plugin
- Added new
mapImage
struct- Enables users to render their own versions of the campaign strategy map
- Includes options for filling certain tiles and regions with color and blurring options for smoothing out jagged lines
- Added all the unit actions that were possible to execute in campaign_script, and expanded the unit struct.
- Added get unit by label
- Added 2 extra unit functions: Attack building and collect engine.
- Added unit groups, getting group by label, defining groups, and every script function relating to groups.
- Added siegeEngine struct and ability to get all engines in battle or get the engine a unit is carrying.
- Fixed checking if unit/eduEntry has an attribute.
- Added creating watchtowers.
- Added all character stratmap actions, diplomacy, spying, assassination, blockading, sabotage etc
- Added ability to split armies, disembark and embark on ships.
- Added ability to merge by movement instead of by teleportation.
- Added new functions to switch a characters or fort faction, and added option to convert the settlement garrison when switching a settlement's faction.
- Added loading saves.
- Added function to log something to game log (flushes log immediately).
- Expanded EDU entry struct, and added ability to get localized name, description.
- CreateFortXY does not cost money any more, and both fort construction functions now will always work even if you have buildable forts off.
- Expanded
coords
toxCoord
andyCoord
in thetileStruct
and added many new fields. - Added
aiFaction
tofactionStruct
- Fixed
battleBuilding:getBuilding()
returning the wrong thing - Fixed a bug where right clicking an EOP unit in the building description would do nothing
- Added ability to get the character/settlement/fort the cursor is hovering over.
- Added getting merc pool by name.
- Added global roads db to campaign struct.
- Fixed setting diplomatic stances and getting them.
- Added sending characters off map through lua.
- Added ability to get various info on the battlemap, like height at any point, street deployment positions, hill positions, terrain lines, zones etc.
- Added get culture/climate id by name, and getting their name by id.
- Added recruitment queue info
- Added ability to check all the available construction/recruitment items in a settlement and add them to the queue.
- Added ability to see which unit/building is being looked at in the info scroll.
- Added all the options from the campaign DB.
- Many new fields in many structs.
ImGUI
- Added all the drawList functions to draw stuff on the screen.
- Added optional extra parameters to image to draw only parts of it.
NOT SAVEGAME COMPATIBLE!!!!
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.2.0
Release Notes
Library
- Rewrote and improved moveToTile, siegeSettlement, attackCharacter (Fynn)
- Fixed some more potential crashes with EOP unit recruitment due to reports provided to me, thanks to perry123 (Fynn)
Lua Plugin
-
Added settlementInfoScroll struct. Allows you to set colours of some elements (Medik)
-
Added spawnArmy, works similar to game spawn_army command allowing you to spawn admirals, respawn off-map characters and use random_name (Fynn)
-
Added siegeFort, works pretty much the same way as siegeSettlement but for forts (Fynn)
-
Added getFaction, getSettlement and getRegionByName which use internal hash tables for instant retrieval of the selected types by their names. (Fynn)
-
Added onUnloadCampaign event so you can for example detect when a user quits back to main menu from the campaign. (Fynn)
-
Expanded eduEntry struct with many new fields like getting the animation names, checking if unit has an attribute and getting the mount/projectile the entry uses (Fynn)
-
Incompatibility: siegeSettlement now takes 3 arguments, third one being a boolean isAttack which does the same as the game's siege_settlement command maintain|attack option. (Fynn)
Documentation
- Some more fixes and missing fields added (Fynn)
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.1.4
Release Notes
Lua Plugin
- New event onCalculateUnitValue allowing more freedom over game balance as you can modify how the game evaluates a unit's strength, which affects autoresolve, AI recruitment, AI attack decisions on strategy and battle map and more.
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.1.3
Release Notes
ImGUI
- Fixed beginChild() parameters
- Fixed the number keys binding
- Fixed fontAtlas not returning the font
Documentation
- Major fixes to the documentation in many places, some fixes enabled some fields that were broken due to typos (siegeStruct besiegedSettlement for example)
- Added the enums to the online documentation too.
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.1.2
Release Notes
Lua Plugin
- Add setCharacterNameFaction to factionStruct, allowing you to change which faction a faction draws it's names from for a specific agent type.
- Added getTileCharacterCount and getTileCharacterAtIndex, as there are instances where there is no other way to get every character on a tile (for example in postBattle event auxiliary characters that are part of a settlement's garrison army)
ImGUI
- Fixes FontAtlas extra parameters not being optional
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.1.1
Release Notes
Launcher
- Fix setting of faction name in Discord Rich Presence - Medik
Library
- Updated DXVK library to the latest version 2.3.1 - Medik
- Includes a fix for the black screen issue during loading screens in windowed mode
Lua Plugin
- Fixed
M2TWEOP.restartLua()
crashing the game. It is now bound toCTRL+SHIFT+R
by default. You can rebind this to something else if you prefer. - Medik
Links
- Known Bugs
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.1.0
Release Notes
Library
- Fixed crashing on startup in some mods - Fynn
- Fixed a vanilla game bug costing some performance in battle - Fynn
- Fixed
CombatVsReligion
attribute going out of range with religions over 10 (The bonus is always 0 now if the religion index > 9).- Note: Do not use religions > 10 in getting CombatVsReligion attributes from named character struct! - Fynn
- Reinstated some lost fixes including getting building by name on disk version. - Fynn
Lua Plugin
- Removed default
CTRL+1
andCTRL+2
binds for the Console/Developer Mode.- These are now bindable in Lua, see
M2TWEOP.toggleConsole()
(Bound toCTRL + ~
by default) andM2TWEOP.toggleDeveloperMode()
(Bound toALT + ~
by default)
- These are now bindable in Lua, see
- Added
M2TWEOP.setEquipmentCosts()
. Allows you to set the siege points required to make different siege equipment. Fynn - Added
battleBuildings
field tobattleResidence
struct - Fynn - Added CombatVsFaction and CombatvsReligion arrays to namedCharacter - Fynn
- Added regionID to character and resource - Fynn
- Expanded and fixed siege struct a bit - Fynn
ImGUI
- Updated to the latest version of the ImGUI library - Fynn
Documentation
- Added proper ImGUI documentation in the same format as the normal Lua documentation. - Fynn
- This enables proper Intellisense for all ImGUI Lua provided you are using Visual Studio Code and the correct Lua Extension
Links
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.0.4
Release Notes
Library
- Fixed general hero abilities for hotseat battle generation - Fynn
Lua Plugin
- Added isChild and isOffMap to namedCharacter - Fynn
- Added lot more information about traits and new structures - Fynn
- Added getLocalFactionID - Fynn
- Added setPerfectSpy - Fynn
- Added getCampaignPath - Fynn
- Added enum for sort types you can use with sortStack and added sorting by AI unit value - Fynn
- Added inBattle to battle struct - Fynn
Documentation
- Various doc fixes - Fynn
Links
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features
Download
M2TWEOP-3.0.3
Release Notes
Library
- Fixed erratic behavior when changing settlement cas models - Fynn
- Fixed the setting and loading of character cas models - Fynn
Lua Plugin
- Added setters and getters for ownership EDU entries - Fynn
- Added
getMountClass
for units - Fynn - Added
setAsFamily
andgetIsMale
for characters - Fynn - Added new
buildingBattle
struct - Fynn - Added
getReligion
by religion name - Fynn - Added
getObjective
for battle AI - Fynn - Added scale param for creating character cas models - Fynn
Documentation
- Updated and fixed some bugs/typos - Fynn
Links
- Website
- FAQ
- Lua Documentation
- ImGUI Documentation
- Discord
- Installation Video
- M2TWEOP Tutorials
- M2TWEOP Features