- Expanded README.md to detail economy addon functionalities including refueling, medical services, and service charges. - Updated XEH_PREP.hpp to include initSEconomyStore preparation. - Modified XEH_postInit.sqf to ensure MEconomyStore initializes only if not nil. - Adjusted XEH_preInit.sqf to initialize SEconomyStore correctly. - Updated config.cpp to include forge_server_common as a required addon. - Enhanced fnc_initFEconomyStore.sqf to manage fuel refueling sessions and organization charges. - Improved fnc_initMEconomyStore.sqf to handle medical billing and fallback to organization funds. - Created fnc_initSEconomyStore.sqf for organization-funded service charges and repairs. - Updated org.rs and org.rs service layer to support member debt recording and organization fund charging. - Added ECONOMY_USAGE_GUIDE.md for comprehensive documentation on economy functionalities. - Updated MODULE_REFERENCE.md and README.md to include links to the new economy guide.
Forge Server Organization
Overview
The organization addon is the server-side bridge for player organizations, membership, treasury funds, reputation, credit lines, shared assets, fleet entries, and invitations.
Organization hot state is owned by the extension. SQF coordinates Arma-facing events, UI payloads, membership syncs, and integration with actor, bank, store, and task flows.
Dependencies
forge_server_mainforge_server_commonforge_server_extensionat runtime for organization extension callsforge_server_actorat runtime for organization membership lookupsforge_client_organdforge_client_notificationsfor response RPCs
Main Components
fnc_initOrgStore.sqfinitializesOrgModelandOrgStore.fnc_initPayloadBuilder.sqfbuilds portal, organization, member, asset, and fleet payloads.
Supported Operations
- initialize and hydrate organization portal data
- register, leave, and disband organizations
- invite, accept, and decline members
- assign and repay credit lines
- update funds and reputation
- grant assets and fleet vehicles
- save organization hot state
Runtime Notes
The addon ensures the default organization exists during store creation.
Task rewards and store checkout both rely on OrgStore for authoritative
organization-owned state.