DataCpt Utils

by DataCpt

DataCpt utility mod to avoid repeating code.

Internal
2 days ago
2.0
15.0K

Changelog

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.
    - 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.
  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.
  Bugfixes:
    - Fixed add_flags inserting duplicates.
    - Fixed div by 0.
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.