- Updated HomeView and RegistrationView to reflect the new $50,000 registration fee for organizations. - Enhanced actor onboarding process to include sending welcome emails and messages, along with initializing bank accounts with $2,000 starting credit. - Added functionality to change bank PINs, including validation and persistence of new PINs. - Updated bank and organization modules to handle registration fee charges and refunds appropriately. - Enhanced documentation to reflect changes in organization registration and bank operations.
Forge Server Actor
Overview
The actor addon is the server-side bridge for player identity and character state. It keeps Arma-facing actor snapshots in SQF while durable and hot actor state are owned by the Rust extension.
Actor records include UID, name, loadout, position, direction, stance, rank, life state, phone number, email, organization, and holster state.
Dependencies
forge_server_mainforge_server_commonforge_server_extensionat runtime for actor extension callsforge_server_phonefor new actor welcome email and messagesforge_server_bankfor new actor starting bank creditforge_client_actorfor response RPCs
Main Components
fnc_initActorStore.sqfinitializesActorModelandActorStore.ActorModelprovides defaults, player snapshot conversion, migration, and validation.ActorStorewraps extension hot-state calls and exposes event-facing actor operations.
Runtime Behavior
- Missing persistent actors can be created from live player snapshots.
- Newly created actors receive a Field Commander job orientation email, two
Field Commander text messages, and a
$2,000starting credit in their bank account. - Hot actor reads are migrated and hydrated before use.
saveHotStatein the main addon snapshots and saves actor state on player disconnect and mission end.
Event Surface
The addon handles server events for actor init, get, set, multi-set, save, and remove requests, then replies to the requesting player through client actor RPCs.