15 Commits

Author SHA1 Message Date
Jacob Schmidt
257a62acc0 fix: Rename companyGenerals to companyShareholders
This commit renames the `companyGenerals` variable to `companyShareholders` to better reflect its intended purpose and usage within the codebase. The change affects the following files:

-   `addons/main/config.cpp`: Renames the `companyGenerals` config entry to `companyShareholders`.
-   `addons/init/functions/fnc_handleServerState.sqf`: Updates the variable name used when saving company state.
-   `addons/db/functions/fnc_loadGameState.sqf`: Updates the variable name used when loading company state.
-   `addons/db/functions/fnc_saveGameState.sqf`: Updates the variable name used when saving company state.
-   `addons/init/functions/fnc_handleServerStateLoad.sqf`: Updates the variable name used when loading company state from the server.

This change ensures consistency and clarity in the codebase, making it easier to understand and maintain. The `companyGarageUnlocks` variable was also removed from the save/load functions as it was not being used.
2025-04-05 14:24:46 -05:00
Jacob Schmidt
5b30efa3b0 feat: Refactor database system for improved persistence and functionality
All checks were successful
Build / Build (push) Successful in 26s
This commit refactors the database system to improve persistence, functionality, and code clarity. The key changes include:

-   **Removed direct store access:** Removed `createStore`, `getFromStore`, and `getStore` PREP macros.
-   **Centralized store management:** Introduced a central store registry (`FORGE_STORE_REG`) managed by the database interface.
-   **Namespace-based persistence:** Stores are now persisted in mission and profile namespaces instead of a global store.
-   **Simplified load/save functions:** `loadFromMission`, `loadFromProfile`, `saveToMission`, `saveToProfile`, and `saveToTemp` functions are updated to use the new namespace-based persistence. They now accept a `keyField` parameter for retrieving specific fields within a key's data.
-   **Refactored `processDBRequest`:** Updated to handle new request types and parameters, aligning with the refactored load/save functions.
-   **Improved error handling:** Added more robust error handling and logging, including checks for empty store names and missing keys.
-   **Removed client registration:** Removed client registration and cleanup logic as it's no longer needed with the new persistence model.
-   **Updated `verifyDB`:** Simplified to directly return the store registry.
-   **Updated `initDB`:** Refactored to use a HashMap object for the store interface and added more database functions.
-   **Added .gitignore entries:** Added entries for Visual Studio and other common build artifacts.
-   **Updated `loadGameState` and `saveGameState`:** Updated to support loading and saving game state to either mission or profile namespace.
2025-04-05 14:16:35 -05:00
github-actions
5b762b3ad0 v1.0.0 Build 5 2025-03-30 22:16:57 +00:00
Jacob Schmidt
3bd5a4a9bf feat: Implement store persistence and improve store interface
All checks were successful
Build / Build (push) Successful in 24s
This commit introduces store persistence and refactors the store interface for improved functionality. The changes include:

-   Adding a `save` function to persist store data.
-   Refactoring `createStore` to `create` and `getStore` to `get`.
-   Adding `set` function to create store if not exist.
-   Refactoring `set` to `hset` and `get` to `hget` for hash set and get operations.
-   Refactoring `delete` to `hdel` for hash delete operations.
-   Implementing store saving after each modification.
2025-03-30 17:15:28 -05:00
github-actions
767c95978e v1.0.0 Build 4 2025-03-28 14:46:30 +00:00
Jacob Schmidt
b4f30ef954 Merge branch 'master' of https://gitea.innovativedevsolutions.org/IDSolutions/server
All checks were successful
Build / Build (push) Successful in 25s
2025-03-28 09:46:12 -05:00
Jacob Schmidt
bec0adcdbf feat: Update build environment and add XEH PREP
This commit includes the following changes:

-   Updates the build environment in the GitHub Actions workflow to use `ubuntu-latest` instead of `ubuntu-22.04`.
-   Adds `playerGroup2Server` to the XEH_PREP.hpp file.
-   Updates the picture path in CfgMods.hpp to include the file extension.
2025-03-28 09:46:08 -05:00
github-actions
53d0e2b8ab v1.0.0 Build 3 2025-01-05 01:48:29 +00:00
Jacob Schmidt
fbbfc031dc Merge branch 'master' of https://gitea.innovativedevsolutions.org/IDSolutions/server
All checks were successful
Build / Build (push) Successful in 52s
2025-01-04 19:48:14 -06:00
Jacob Schmidt
a9403504d1 Added Game Mode Types 2025-01-04 19:48:09 -06:00
github-actions
882b11c0d1 v1.0.0 Build 2 2025-01-05 01:26:26 +00:00
Jacob Schmidt
028227a590 Merge branch 'master' of https://gitea.innovativedevsolutions.org/IDSolutions/server
All checks were successful
Build / Build (push) Successful in 1m3s
2025-01-04 19:26:10 -06:00
Jacob Schmidt
872857c257 Major Hotfix 01042025@1925 2025-01-04 19:25:56 -06:00
github-actions
c62dd0d51e v1.0.0 Build 1 2025-01-01 20:30:52 +00:00
Jacob Schmidt
48e3e15f71 Initial Repo Setup
Some checks failed
Build / Build (push) Failing after 51s
2025-01-01 14:30:34 -06:00