|
Storm Game Framework 2.0.0
User guide
|
Actor assembly, spawning, map travel and saving.
StormActorAssembly creates actors from reusable definitions and applies profiles such as appearance or abilities.
Connect it. Supply a resolved definition and transform on the authority, which is the server in multiplayer. Profiles are keyed by capability, a feature such as appearance or equipment that the actor offers through a StormCore interface, so a spawn can override one profile while keeping the rest of the definition. Inspect MissingCapabilities and UndeliveredProfiles before reporting the actor as ready. See assembly in a complete spawn request.
Try it. Choose the actor class and profiles in a Storm Actor Definition. Spawn one actor through your game's setup and check that each expected profile was applied.
C++ entry point. Add StormActorAssembly to your consuming module and include ActorAssembly/Assets/StormActorDefinition.h. See StormActorDefinition.h.
Validate the authored definition before attempting to apply it.
This provides the Actor Definition browser and designer.
Try it. Use Create Actor for a general definition or Create Character for a character template. Open the definition to choose its class and profiles, then check the result on a spawned actor in a test map.
C++ entry point. In an editor module, add StormActorAssemblyEditor and include StormActorAssemblyEditorModule.h. See StormActorAssemblyEditorModule.h.
This lets item representations use Actor Definitions to build and configure the actor they display.
Try it. In Item Designer, give the item a world or held representation backed by an Actor Definition. Preview it, then check that it appears in the intended world or held context.
C++ entry point. Add StormItemsActorAssemblyAdapter to your consuming module and include StormItemsActorAssemblyAdapterModule.h. See StormItemsActorAssemblyAdapterModule.h.
StormSpawn finds and reserves matching spawn points for your game.
Connect it. Place a point with a reusable profile, then supply the required tags in the request. Preview matching in Spawn Diagnostics. Commit after adoption to start the point’s cooldown or cancel the reservation when the game cannot use it. See how location fits into the spawn flow.
Try it. Place a Storm Spawn Point, assign a Storm Spawn Point Profile and add tags that describe its purpose. Have your game request a matching point and check where the actor appears.
C++ entry point. Add StormSpawn to your consuming module and include Spawn/StormSpawnSubsystem.h. See StormSpawnSubsystem.h.
After placing and registering spawn points, check the world subsystem.
This adds Spawn Diagnostics and shows spawn point information in the viewport.
Try it. Open the tool from the SGF menu to inspect the points and their profiles. During Play In Editor, preview a request to see which point would be chosen without reserving it.
StormRoster tracks a finite list of members and which ones are reserved or assigned.
Connect it. Author member, identity and actor-definition IDs. Reserve the exact member for a requester, then commit it to an assignment when the game adopts it. Cancel an outstanding reservation or release a committed assignment on failure. Follow the complete roster-backed spawn.
Try it. Use a roster when you need a particular guard or survivor to appear. Add two members, reserve and assign one, then check that a second request respects that assignment.
C++ entry point. Add StormRoster to your consuming module and include Roster/StormRosterSubsystem.h. See StormRosterSubsystem.h.
After registering members, inspect the world subsystem's count.
StormPopulation tracks how many actors count toward a population budget.
Connect it. Create a population definition with a rule and capacity. On the server, reserve capacity before creating a logical subject. Commit once the subject is tracked or cancel on failure. Test with capacity one and confirm it frees when the subject leaves. See where the population budget is checked.
Try it. Define a group and its limit, then have your spawning logic check for room before adding a member. Test reaching the limit and freeing room when a member leaves.
C++ entry point. Add StormPopulation to your consuming module and include Population/StormPopulationSubsystem.h. See StormPopulationSubsystem.h.
Pass the tag for an active population rule and a FStormPopulationRuleStatus output.
StormPool keeps actors available for reuse.
Connect it. Register a pool definition for the actor class and resolve it by its pool tag. Verify the reset contract with one acquire/return/reacquire cycle before using pooling in the game’s spawn flow. See where pooling fits.
Try it. Use a pool when the same kind of actor is repeatedly needed. Check that your actor can reset between uses, then acquire, return and acquire it again to check for leftover state.
C++ entry point. Add StormPool to your consuming module and include Pool/StormPoolSubsystem.h. See StormPoolSubsystem.h.
Pass the tag of a pool your project has registered.
This adds the read-only Spawn Sources panel under the SGF menu.
Try it. Use it to inspect pool, population, roster and level definitions and the references visible to the Editor. Start from the definition that should supply the actor or destination you are investigating.
StormLevels lets you describe map destinations as reusable level definitions.
Connect it. Register a tagged level definition with an included map. Resolve it through GetLevel and call SwitchLevel on the server. Inspect the destination after travel to verify completion. Follow travel through loading and UI.
Try it. Create a definition for a test map and register its type and folder in the Asset Manager. Have your game request it and check that the expected map opens.
C++ entry point. Add StormLevels to your consuming module and include Levels/StormLevelSubsystem.h. See StormLevelSubsystem.h.
After opening a registered level, read the subsystem's current level tag.
StormLoadingScreen carries the destination information used for travel, such as a title, body text or background.
Connect it. Use the destination descriptor for the map you are about to open. If remote players need that authored description, send the announcement before scheduling server travel. See the order for a travel request.
Try it. Supply that information when your game announces travel. In multiplayer, check that a connected client receives the expected destination details.
C++ entry point. Add StormLoadingScreen to your consuming module and include StormLoadingDestinationAnnouncerComponent.h. See StormLoadingDestinationAnnouncerComponent.h.
This draws the loading screen on the player's machine during startup and travel.
Connect it. Begin local presentation before blocking travel. If you require a rendered frame first, use the presentation barrier. If travel is refused, end the loading request with CancelLoading. If the request asked for explicit reveal, call RequestReveal when the destination is ready. Follow the travel and reveal flow.
Try it. Configure a default look and try one map change with its own title or image. If the destination needs extra preparation, have your game report when it is ready to reveal.
C++ entry point. Add StormLoadingScreenPresentation to your consuming module and include StormLoadingScreenSubsystem.h. See StormLoadingScreenSubsystem.h.
StormSave captures and restores the state your game chooses to keep.
Connect it. A participant is a placed actor that implements Storm Save Participant and carries a stamped Storm Save Identity component. Only its fields marked SaveGame are kept. Capture into the active document, wait for slot-write completion and restore after actors are available. Follow the save and restore test.
Try it. Stamp one participating actor, mark one visible fact such as a door's open state as SaveGame, and connect your game's save and load actions to a test slot. Reload and check that the same actor gets its state back.
Limits. The save API is C++ only. Actors spawned during play are not saved or rebuilt in this version.
C++ entry point. Add StormSave to your consuming module and include Save/StormSaveSubsystem.h. See StormSaveSubsystem.h.
With an active save document and an authoritative world, capture the participating actors.
This stamps and checks save identities in level assets.
Try it. Stamp the participants in a map, then run asset validation or save the map and review the results. Fix missing or duplicate identities, then try saving and restoring those actors in the game. To fail a build on identity problems, run the StormSaveValidate commandlet.
C++ entry point. In an editor module, add StormSaveEditor and include StormSaveIdentityEditorSubsystem.h. See StormSaveIdentityEditorSubsystem.h. Stamping has no menu command or Blueprint node in this version.