Lua libraries for use by other mods and submods that are parts of a larger mod.
Version: 0.10.4
Date: 2026.07.11
Features:
- Added adjust_partial_recip fn.
- Added truncate fn.
Minor Features:
- Improved tech fns (still unfinished).
- Updated update_recip, create_recipe and the new tech fns to take prototypes or names of prototypes as shorthand params.
- Updated adjust_recip to take in attributes instead of just energy_required.
- Added silent_table support to most relevant fns.
- Added support for "changed" in adjust_attr logging.
Changes:
- Changed print_prefix logging in set_attribs.
Bugfixes:
- Improved error catching.
- Improved update_recip's reliability.
Modding:
- Added "Error:" to the start of all failure logs for grepping.
- Improved types.
- Removed current_mod_name log prefix when using the DEBUG_FILE option.
- Added support for "changed" in adjust_attr logging.
- Improved support for tables in set_attr logging.
- Improved support for tables in has_value fn.
- Improved find_adjust_values and find_set_values.
Version: 0.10.3
Date: 2025.12.17
Major Features:
- Discovered remove_path and no longer create empty files to wipe them.
- Added clamped_probability as a noise fn for tiers.
Features:
- Added unfinished tech fns.
- Added tint_icon fn.
- Added increment_letter from tiers.
- Added string key table filter fn.
- Added support for attrib updates and silent_table in adjust_recip fn.
- Added find_key fn.
- Added find_rename_key.
- Added find_set_simple_values.
Modding:
- Updated find_set_values fn.
- adjust_attr fn now handles empty initial values.
- Streamlined create fns.
- Updated update_recip, create_recipe and the new tech fns to take prototypes or names of prototypes as shorthand params.
Version: 0.10.2
Date: 2025.12.09
Bugfixes:
- Added error handling for adjusting empty entity resistances.
Modding:
- Added has_key and has_key_value.
- Adjusted logging messages.
Version: 0.10.1
Date: 2025.12.04
Changes:
- Split get_offset_position.
Bugfixes:
- Fixed logging issue.
Version: 0.10.0
Date: 2025.10.19
Major Features:
- Added detailed logging features, split logs to their own files inside script-output/data-utils/ or prefix logs with the mod names. (Only during development!)
- Added performance logging file for testing.
- Added constants file.
- Added types file.
- Added common file for simple recipe and resistance creation/modification.
Features:
- Added faster unsafe versions of some functions.
- Better localised string support.
- Added assert_default for error alerts.
- Added deep_copy from Wube for use during runtime in specific situations.
- Added mult_energy function.
- Improved profiler logging.
Minor Features:
- Reverted debug_log change for localisation.
- Added squared versions of functions calling sqrt.
- Added commonly used types for use in my other mods.
- Added safe insert function.
- Added string function.
- Added get_offset_position, get_rotated_offset_position, get_gps_pos_location, get_key and more.
Optimizations:
- Increased code duplication to save multiple microseconds.
Bugfixes:
- Fixed add_flags inserting duplicates.
- Fixed div by 0.
Modding:
- Renamed debug var.
- table_length now calls internal table_size with a type check. (I accidentally recreated the example lua implementation of table_size.)
- Removed validate from get_next.
- Added optional debug param to filter_table.
- Improved localized string support.
Version: 0.9.5
Date: 2025.05.07
Features:
- Added 2 new string fns for Diurnal Dynamics.
- Added optional max to set_atr for Distant Misfires.
Version: 0.9.4
Date: 2025.05.02
Features:
- Added a new check, a new table fns and runtime setting fns for Diurnal Dynamics.
Version: 0.9.3
Date: 2025.04.27
Features:
- Added 2 new table fns for Momentum.
- Added get speed fn for Momentum.
Version: 0.9.2
Date: 2025.03.04
Features:
- More functions and types.
Version: 0.9.1
Date: 2025.02.19
Features:
- Sorted and documented most functions.
Version: 0.9.0
Date: 2025.02.18
Major Features:
- Merged my existing utility functions into this new mod.