Skip to content

Releases: DonHulieo/duff

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

v1.1.1

25 Jun 02:18
e7b349c
Compare
Choose a tag to compare

Features

  • fxmanifest.lua now dynamically loads shared and server scripts needed.
  • Added getblips method with optional filter function.
  • Implemented optional filter functions to methods in CPools.

Tweaks

  • Methods in CStreaming actually return boolean, always.

Chores

  • Updated installation instructions to remove parts where the user needs to edit the fxmanifest.lua.
  • Updated class name for duff to CDuff.

Full Changelog: v1.1.0...v1.1.1

v1.1.0

22 Jun 03:07
ae11b53
Compare
Choose a tag to compare

Features

  • Implemented helper functions for number conversion in math.
  • Added bench method to test performance across duff.
  • Moved async to it's own module, instead of housing it in streaming.
  • Implemented custom error handler protect for better error reports across stack.

Fixes

  • bridge now properly loads qb-target methods.

Refactor

  • BREAKING CHANGE: Any modules that used OOP methods have been removed (improve performance).
  • All modules have check_type from the debug module removed, replaced with in module error handling.

Chores

  • Updated all annotations to functions, params, returns and class definitions.
  • Updated README with better documentation for all methods.

Full Changelog: v1.0.2...v1.1.0

v1.0.2

10 Jun 05:37
6a73c1a
Compare
Choose a tag to compare

Features

  • Added checkversion export & method to the server environment for checking resources against GitHub repos.

Fixes

  • packages.paths only gets updated with modules that have loaded successfully instead of all attempts.
  • Fix issue #1 where PlayerData table was initialised as a string for ESX users.

Refactor

  • Changed server.scope to use Latent Events to improve client net performance.

Chores

  • Fixed typos with old resource name ('duf') with current ('duff').
  • Updated annotation for new method.

Full Changelog: v1.0.1...v1.0.2