Skip to content

A simple Godot system that helps with performance and calculations

License

Notifications You must be signed in to change notification settings

deadlykam/CodeOptPro_Godot

Repository files navigation

CodeOptPro

Introduction

This is a simple Godot system that helps with performance.

Table of Contents:

Prerequisites

Godot Game Engine

Godot version v4.3.stable.mono.official [77dcf97d8] and above should work. Previous Godot version of v4.1.3.stable.mono.official [f06b6836a] and v4.1.1.stable.mono.official [bd6af8e0e] should work but any version before that have not been tested and may give errors.


Stable Build

Stable-v1.14.0 is the latest stable build of the project. The compressed file for this project can also be found there. If development is going to be done on this project then it is adviced to branch off of any Stable branches because they will NOT be changed or updated except for README.md. Any other branches are subjected to change including the main branch.


Installation

  1. First download the latest CodeOptPro-v1.14.0.zip from the latest Stable build.
  2. Once downloaded extract/unzip the file.
  3. Enter the folder and copy the folder named kamran_wali.
  4. Now paste the folder in the addons folder of your Godot project. If your Godot project does not have the addons folder then just create it in the root folder, res://, and paste the copied folder there.
  5. (Optional) To open the interface for CodeOptPro simply go to the menu Project -> Projct Settings. Click the Plugins tab and enable the Variable Creator or Instantiate Object. This should open and dock the Variable Creator or Instantiate Object.
  6. (Optional) If you want access to the CodeOptPro's script templates then go to the folder addons -> kamran_wali -> code_opt_pro and copy then copy the folder named script_templates. Paste the copied folder in the root folder, res://. Now the script_templates should be available while inherting from Resource.

Features

I have added lot of features to CodeOptPro below is a list of feature added. Also I have moved all the tutorials to Wiki because ReadMe was getting too big.

Updates

Here I will share all the updates done to the current versions. Below are the updates.

  1. Added a new variable type which are the Observers types.
  2. Added a new script template for the observers.
  3. Clearing the input fields once a variable is created. This allows less accidental creation by the user.
  4. Upgraded to Godot version v4.3.stable.mono.official [77dcf97d8].
  5. Devs - Made adding new variables much more dynamic. Now it will be easier to add a new variable with less chances of getting errors/bugs.
  6. Created Wiki and moved all the tutorials there.

Bug Fixes:

  1. Fixed calculation bugs in base_bar.add(value) and normal_bar.subtract(value). In both the methods 0 and negative values will be ignored. Only positive values will be allowed for calculation.
  2. Gave the variable base_pool._p_index_object int. Now this variable is no longer untype.
  3. Gave the method pool_global._add_self_to_manager() void type.
  4. Gave the method cop_bool_var.set_value() void type.

Versioning

The project uses Semantic Versioning. Available versions can be seen in tags on this repository.


Authors


License

This project is licensed under the MIT License - see the LICENSE.md file for details.