Skip to content

Releases: DonHulieo/duff

v1.2.2

11 Dec 03:42
71aa35d
Compare
Choose a tag to compare

Features

  • Added doeskeyexist to CLocale.

Fixes

  • Fixes error in CBridge related to already converted player data.
  • Another bug quash for the error in CPools when they're no players on server.

Documentaion

  • Added doeskeyexist to README.

Full Changelog: v1.2.1...v1.2.2

v1.2.1

18 Nov 05:14
7705e8b
Compare
Choose a tag to compare

Docs

  • Added new player money methods to CBridge documentation.

Features

  • Implemented three new methods into CBridge relating to player money, allowing for checking, adding and removing money across frameworks.

Fixes

  • Ensure all invalid resource states are checked in CBridge.

Full Changelog: v1.2.0...v1.2.1

v1.2.0

11 Oct 01:41
f5b8252
Compare
Choose a tag to compare

Docs

  • Update checkversion annotations.
  • Update async to await.

Fixes

  • Ensure export params are ordered correctly.
  • BREAKING!: Call check_version in a new thread and remove promise return.
  • Ensure strings save as intended in kdtree.tofile.
  • interval.destroy works as intended.
  • Ensure server CPools methods work without players.
  • kdtree.neighbours works as intended.
  • Fix all error prints in CKDTree print correct function name.

Refactors

  • Rename async to await & update all old async references.
  • Change error in server pools functions to warn.

Full Changelog: v1.1.8...v1.2.0

v1.1.8

08 Sep 06:31
33d2c83
Compare
Choose a tag to compare

Features

  • Implemented CInterval for creating timers, and optional callbacks for retrieving and manipulating data.
  • Implemented CScaleform for calling scaleform methods as a single function (much more intuitive).

Chores

  • Added new methods to docs.

Fixes

  • Ensure intervals are cleanup up on both resource and invoking resource stop.

Full Changelog: v1.1.7...v1.1.8

v1.1.7

04 Sep 07:56
5b6aa9f
Compare
Choose a tag to compare

Features

  • Implemented CKDTree for spatial searches, with a integer-key array defining parent and children.
  • Init loadtexturedict for loading texture dictionaries.

Tweaks

  • Locale Context determined by file name.

Chores

  • Added new methods to docs.

Full Changelog: v1.1.6...v1.1.7

v1.1.6

22 Aug 03:09
35b61d3
Compare
Choose a tag to compare

Features

  • Implemented hasitem & getplayeritems in CBridge for both ox_inventory & qb-inventory.
  • Implement switch as a lua equivalent of switch functions in other languages.
  • Added registermenu, openmenu & closemenu in CBridge for both ox_lib context menu & qb-menu.

Tweaks

  • Changed error messages to reflect the correct level for get_player_data in CBridge.

Chores

  • Added new methods to docs.

Full Changelog: v1.1.5...v1.1.6

v1.1.5

25 Jul 04:50
c0a7e5d
Compare
Choose a tag to compare

Features

  • Implemented addboxzone in CBridge for both ox_target & qb-target.
  • Added lerp to CMath.
  • Added loadaudio to CStreaming for loading ambient, mission & script audio banks.

Fixes

  • Default lua require now precaches modules the same as other loaders in CPackage.
  • Remove confusing return val from docs & annotations for triggercallback.

Refactor

  • bench is now more reliable for per function call performance checks, and in client usage.

Tweaks

  • Support implented for multiple target options in CBridge's target functions.

Chores

  • Added new methods to docs.
  • Reworded some module descriptions to feel less copy and paste.

Full Changelog: v1.1.4...v1.1.5

v1.1.4

09 Jul 07:23
b14d63f
Compare
Choose a tag to compare

Features

  • Created new binary search module, with methods;
    • search - Searches for a value in a binary sorted array.
    • insert - Inserts a value into a binary sorted array.
    • remove - Removes a value from a binary sorted array.
    • sort - Sorts an array in place, using table.sort.
    • new - Creates a new binary array object.

Fixes

  • mapzones.addzoneevent now gets the correct zone_id.
  • Resources return the correct state in CBridge.

Refactor

  • CPackage now supports relative paths if the file required is local the script 'require-ing' it.

Chores

  • Update docs for bridge.createuseableitem.
  • Updated error handling in Cmath to be the same as the rest of lib.

Full Changelog: v1.1.3...v1.1.4

v1.1.3

02 Jul 10:14
d16c7fe
Compare
Choose a tag to compare

Features

  • Implemented a reworked module of duff.require as CPackage, with methods;
    • require - functioning like the default Lua require.
    • import - imports a file's environment or methods into the current environment.
    • as - changes the name of the last loaded module and add it as a global.

Fixes

  • Removed require export as sparse returns would drop any trailing nils.
  • Module loading all happens in shared/import, improving performance and fixing the above issue.

Tweaks

  • Various improvements to error handling and file loading across resource.
  • Change module name of CPackages to CPackage to better imitate default Lua packagelib.
  • Moved shared/lib to server/init as there's now only server logic handled.

Chores

  • Add new methods to documentation.
  • Change usage of exports.duff:require to lib.require.

Full Changelog: v1.1.2...v1.1.3

v1.1.2

27 Jun 01:45
041d8cf
Compare
Choose a tag to compare

Tweaks

  • Any module using the is_fun method will return true for Cfx funcrefs.
  • Optimised the protect func with helper, passing varargs/var-returns without a table alloc each call.

Chores

  • Updated descriptions and parameters for new methods.

Fixes

  • Functions with spares returns not ending in nil, will return values as expected.

Full Changelog: v1.1.1...v1.1.2