Skip to content

Releases: tabularelf/lexicon

Lexicon v3.0.7

28 Nov 15:25
Compare
Choose a tag to compare

Fixed

  • Issue where lexicon_index_declare_from_csv didn't store cell/string delimiters for loading later.

Lexicon v3.0.6

15 Oct 01:30
Compare
Choose a tag to compare

This release has been a long time coming, I hope it was worth the wait! 🙏

Added

  • lexicon_language_get_index(), which returns the current index within the language array.
  • lexicon_dynamic_define(name, callback, [updateCache=true]), which updates any text passed to lexicon_text and lexicon_text_array calls, replacing them with the return of the callback.
  • Ability to refer to entries within entries, along with recursion detection.

Changed

  • Reworked all of the macros to now be __MACRO_NAME instead of MACRO_NAME (To privatise these)
  • Changed a couple default settings (struct accessors are now {foo} instead of %foo%)
  • Any updates/fixes made from the last few v2.1.x versions
  • Neaten up lexicon_settings comments
  • Any string can be processed via lexicon_text and lexicon_text_array. (lexicon_text("Hello {0}!", "Bob") will be processed and actually return the processed string.)

Deprecated

  • Legacy accessor %s
  • lexicon_text_struct. Superseeded by lexicon_text and lexicon_text_array.

Removed

  • Removed a bunch of old settings that were no longer needed.

Lexicon v3.0.5

27 Jun 19:49
Compare
Choose a tag to compare
Lexicon v3.0.5 Pre-release
Pre-release

Added:

  • Ability to refer to entries within entries
  • Recursion detection for entries referred within entries.

Lexicon v3.0.3

04 Mar 03:46
Compare
Choose a tag to compare
Lexicon v3.0.3 Pre-release
Pre-release

Added:

  • lexicon_language_get_index()

Lexicon v3.0.2

15 Nov 01:14
Compare
Choose a tag to compare
Lexicon v3.0.2 Pre-release
Pre-release

Fixed

  • Script order now respected (as per a28b391)
  • ds bug fixed (also as per a28b391)

Full Changelog: v3.0.0...v3.0.2

Lexicon v3.0.1 Alpha

15 Oct 21:02
Compare
Choose a tag to compare
Lexicon v3.0.1 Alpha Pre-release
Pre-release

#Fixed

  • Game crashes due to missing lexicon_db.json

Full Changelog: v3.0.0...v3.0.1

Lexicon v3.0.0 Alpha

21 Sep 02:36
Compare
Choose a tag to compare
Lexicon v3.0.0 Alpha Pre-release
Pre-release

New

  • Added in callback functions into lexicon_text (A few are reserved and more may be reserverd for localisation purposes, these are currently unavailable)
  • Can define dynamic callback functions such as {DateTime}, {Date}, {Time} as lexicon_dynamic_define(name, function, [updateCache])
  • Added in new database (currently disabled as it's nowhere near finalized)
  • Added in support for template strings. (Similar to 2022.11, passing in a value after the text entry will replace {num} to value)

Changed

  • Reworked all of the macros to now be __MACRO_NAME instead of MACRO_NAME (To privatise these)
  • Changed a couple default settings (struct accessors are now {foo} instead of %foo%)
  • Any updates/fixes made from the last few v2.1.x versions
  • Neaten up lexicon_settings comments

Deprecated

  • lexicon_text_struct is now apart of lexicon_text, and is therefore no longer needed.
  • Legacy accessor (%s) is no longer needed. (A compatibility option has been added in)

Removed

  • Removed a bunch of old settings that were no longer needed.

Known bugs

  • Having a misplaced { or } may cause Lexicon to fail parsing and crash.

Full Changelog: v2.1.6...v3.0.0

Lexicon v3.0.4

23 Mar 01:51
Compare
Choose a tag to compare
Lexicon v3.0.4 Pre-release
Pre-release

Fixed

  • Bug where struct keys would just fill in place of the string contents.

Lexicon v2.1.7

21 Sep 02:36
Compare
Choose a tag to compare

Lexicon v2.1.6

19 Aug 05:08
Compare
Choose a tag to compare

Changed

  • Definitions can now load alongside other definition files

Fixed

  • Fixed a bug where empty text entries were being added into Lexicon