Chaos

Chaos 1.0.14

No permission to download
This extension is a library of commonly used functionality and extension methods in my plugins.
The extension does nothing on its own and has 0 cost to have it on your server

It also contains a custom UI framework that among many other things serializes UI to JSON significantly faster than the current Oxide CUI library and supports pooling of all UI components

Pooling works by hanging on to objects and reusing then and it does have pro's and con's.
The pro being that you don't have repeated memory allocations as objects are being recycled instead of created new every time. The con being that it is slower to grab a object from the pool over creating a new one plus the cost of returning it when you are done.
But as you can see from the following example there is a significant performance increase over the current serialization method used by Oxide that even with pooling enabled it is still many times faster

Code:
(Oxide) JsonConvert serialization of 315 containers and 635 UI components took 8.1509ms
ChaosUI serialization of 315 containers and 635 UI components took 0.6458ms
Pooling 315 containers and 635 UI components took 0.5448ms

(Oxide) JsonConvert serialization of 315 containers and 635 UI components took 8.1491ms
ChaosUI serialization of 315 containers and 635 UI components took 0.6079ms
Pooling 315 containers and 635 UI components took 0.7615ms

(Oxide) JsonConvert serialization of 315 containers and 635 UI components took 7.4499ms
ChaosUI serialization of 315 containers and 635 UI components took 0.5914ms
Pooling 315 containers and 635 UI components took 0.5137ms

(Oxide) JsonConvert serialization of 315 containers and 635 UI components took 8.1512ms
ChaosUI serialization of 315 containers and 635 UI components took 0.5789ms
Pooling 315 containers and 635 UI components took 0.6028ms

(Oxide) JsonConvert serialization of 315 containers and 635 UI components took 8.1569ms
ChaosUI serialization of 315 containers and 635 UI components took 0.5766ms
Pooling 315 containers and 635 UI components took 0.4925ms

Any future plugins developed by myself will likely be using this extension, and a bunch of existing plugins currently being overhauled are also going to make use of this


Installation
To install the extension simply download this plugin, the plugin will download the extension for you

If the extension is not already loaded on your server the plugin will load it straight away

The extension self updates so you will not need to worry about staying up to date


Console Commands
chaos.checkupdate - Check if a update is available, however the extension will periodically check automatically

Information

Author
k1lly0u
First release
Last update
Rating
4.50 star(s) 8 ratings

Latest Release v1.0.14

Released
Nov 20, 2023 at 6:36 AM
Rating
4.50 star(s) 8 ratings


More resources from k1lly0u

  • PilotEject
    PilotEject
    A mini event where a helicopter malfunctions and the pilot has to eject
  • HeliRefuel
    HeliRefuel
    A mini-event where a helicopter populated with NPCs needs to land to refuel
  • ZombieHorde
    ZombieHorde
    Create hordes of zombies that roam around your server looking for brains
  • Admin Menu
    Admin Menu
    Manage groups, permissions, commands and convars from a GUI menu
  • TeleportGUI
    TeleportGUI
    Teleport, home and warp with a easy to use UI

Chaos by k1lly0u
© chaoscode.io Feb 1, 2023

Latest reviews

07/16 13:41:22 | MissingFieldException: Field not found: ulong .BasePlayer.userID Due to: Could not find field in class
07/16 13:41:23 | MissingFieldException: Field not found: ulong .BasePlayer.userID Due to: Could not find field in class
07/16 13:41:23 | MissingFieldException: Field not found: ulong .BasePlayer.userID Due to: Could not find field in class
07/16 13:42:53 | MissingFieldException: Field not found: ulong .BasePlayer.userID Due to: Could not find field in class
Same here even after the update, still showing 0.1.1
the only problem is that when i download it. it still says 0.1.1 version im not getting the updates so my update bot keeps telling me to update but i have.
where to put the file?
works great
So far, this only seems to be causing problems. Will upgrade the rating once it is working correctly.
k1lly0u
k1lly0u
This is a library. It contains commonly used functionality throughout my plugins, it doesn't do anything itself and therefore can't cause any problems