Mount & Blade: Warband

File information

Last updated

Original upload

Created by

Lav

Uploaded by

Eleyvie

Virus scan

Safe to use

About this mod

This is module system for Native 1.165 with a number of various fixes and improvements.

Permissions and credits
Warband Module System 1.166 (with tweaks and giggles)
(official thread on the Taleworlds Forums)

This is essentially the vanilla Module System with a number of fixes and tweaks:

*) File header_operations.py has been completely replaced with properly documented version.
*) Issues with (party_set_marshal{l}) operation have been fixed, Module System will accept either syntax.
*) New 1.165 operations (try_for_prop_instances) and (try_for_players) are now correctly identified as "depth-increasing" operations (this affects compiler checks for unsafe can-fail operations and extra/missing (try_end)'s).
*) Temporary *.pyc files are no longer generated during compilation and won't clutter the folder in case of a failed compilation attempt.
*) Info page references "ip_*" are now correctly recognized by module system compiler and will not throw an "Unrecognized tag" error.
*) Added a small tweak to module_info.py which will provide a trailing slash to export_dir constant if it doesn't have one. Also provided several likely options for export_dir setting (commented out).
*) It is now possible to add items with modifiers to troop inventories directly in module_troops.py. For example, [(itm_item1, imod_rusty), itm_item2] will add rusty "itm_item1" and regular "itm_item2" to a troop. Code used is a slightly modified version of The_dragon's code from a long-forgotten thread in the Forge.
*) Modifications to header_common.py enable numeric, string and position registers up to reg127, s127 and pos127 respectively. Note that numeric and string registers with indexes of 100 and higher cannot be used in string substitutions (i.e. a string like "You have {reg120} gold." will throw errors during run-time).
*) Modifications to header_item_modifiers.py to add information about hardcoded game effects of item modifiers and make imodbit_* constants more readable.
*) Various modifications to header_items.py:
*) Item weight limit was increased from 63.75 kg to 655.35 kg with precision of up to 0.01 kg. Note that the game engine will round displayed weight to nearest 0.1 kg anyway.
*) Item other parameters will no longer overflow into hit points field, resulting in items with ridiculously high HP value (which is usually meaningless and harmless though).
*) Item max_ammo value can now go up to 65535 (compared to vanilla 255).
*) Two new flags for armor items: itp_replaces_helm and itp_replaces_shoes.

*) Modifications to header_skills.py get rid of uncomprehensibly big numbers, extend knows_*_# constants to include skill levels up to 15 and make it easier to change skill constants for mods with a non-standard skills set.
*) Modifications to header_troops.py provide attribute constants for attributes in (3..63) range.
*) Modifications to header_triggers.py to include detailed comments on triggers parameters and their effects.