v1.03 - November 29th, 2024
- Internal Recovery Module Added
- Introduced
:SafeCall()
function to handle retries when a function fails. - The
SafeCall
function is now used within theAchievementService
module for more resilient function calls.
- Introduced
- New Variables
-
MaxRetryLimit
- Controls the maximum number of retry attempts (default is 5).
-
RetryDelay
- Defines the delay between retry attempts (default is 1 second).
-
- Code Documentation Improvements
- More comments have been added throughout the code to increase legibility and clarify the functionality for developers
-
achievementsService.Defaults
Table- Default values for configurable variables are now stored in the
Defaults
table for easier management.
- Default values for configurable variables are now stored in the
- Initialization Enhancements
-
AutoInitialize
variable- Determines whether the module initializes automatically on startup or if developers should initialize it manually.
- Developers can now call
AchievementService.init()
again to retry initialization if the first attempt fails. (It is recommended to disableAutoInitialize
and handle initialization yourself if you choose to do this.) - Improved checks during initialization for a smoother startup process.
-
- Removed Redundancy
- Removed the redundant
achievementService.Timeout
variable and more for cleaner and more efficient code.
- Removed the redundant
- New IntValue Dependency (
Duration
)- Added an
IntValue
calledDuration
inside each AnimationStyle folder. This new value can be used to configure the duration of animations.
- Added an
This update improves both the robustness and flexibility of the AchievementService
module, providing developers with more control over initialization and retry logic.