Brotato

Brotato

Builder Template v1.2.0
Showing 1-5 of 5 entries
Update: 30 Dec, 2024 @ 4:14am



Version 1.2.0
  • ADDED: Updates file, so you can track its updates better.
  • RECODED: Options file as it was handling the config data
    wrong still. Though we have found a permanent for this
    one and for all. All number variables need to be floats
    when stored or set within the menu on game startup. If
    not done like this, it could take the wrong values, not
    show the entry within the menu or use incorrect values.
    By keeping it a float at all times, this issue gets
    resolved. I have added a new array option for every
    Value entry with the name "Type", this can either have
    the value: "Int", "Float", "Bool", "String". This tells
    the code what to do with them. So interger values will get
    stores as floats within the config file, and when a interger
    get a value like 1.2 within the config, the options file
    will automatically floor this number and update the config
    value back to 1.0 ( 1 ) what you also see within the menu.
    - NOTE: If you want to use a integer value from the config
    file, you need to first convert it back to a integer. This
    you can do with "int(floor(Value))" or use the build in
    utiliy "BuilderUtils.ToInt(Value)"


Update: 27 Dec, 2024 @ 7:13pm



Version 1.1.0
  • FIXED: A complete rework of the code has been done. There are a few little annoying things that came to light debugging and testing, that all number variables must be floats to work within the mod options menu. Cause of that options where often not correctly showing, or displaying the wrong values. Furthermore the Interface was not build in yet what prevented the options from being updated between game sessions, now this is fixed.
  • FIXED: The plugin was not correctly creating or updating the config files correctly, this is now fixed.
  • ADDED: Instruction comments on top of every function with detailed instructions how to use it. This info will give you a notch in the right direction.
  • ADDED: A couple new utility functions.
    1. Util.ToFloat(Value) - for converting a integer to a float.
    2. Util.ToInt(Value) - for converting a float to a integer.
  • CHANGED: I split the plugin name from the author name as both variables could be used separate from each other.
  • CHANGED: The CheckForOldConfigs() function in Options is now able to automatically cut the path with substr, so you do not have to edit the plugin name within it anymore, this is now done via the variable at the top of the file.
  • ADDED: When no config file is detected, a new config file will be generated with its associated variable values upon game engine start.
  • CHANGED: Reworked the entire options file so its compacted and easier to work with.
  • ADDED: A example folder with a couple of files showing some options and functions you can use that are build in. These are not loaded within the plugin upon start, and solely are their to help you use them. Copy the code to any script to test it out.


Update: 23 Dec, 2024 @ 10:07pm



Version 1.0.2
  • Fixed a mistake within the options file that would iterate through the Toggles array instead of iterating over the Values array.


Update: 23 Dec, 2024 @ 5:07am



Version 1.0.1
  • CHANGED: Added "keys" to the both Toggles and Values array for faster fetching of data entries without the need of iterating over the array each time you need to get or change a value.


Update: 23 Dec, 2024 @ 1:31am