ARK: Survival Evolved

ARK: Survival Evolved

Not enough ratings
StructureSaver Interface Example
   
Award
Favorite
Favorited
Unfavorite
Content Types: Mod, Structures
File Size
Posted
Updated
515.640 KB
7 Aug, 2019 @ 2:17pm
11 Nov, 2019 @ 5:41pm
5 Change Notes ( view )

Subscribe to download
StructureSaver Interface Example

Description
Public modding interfaces for StructureSaver2

This mod is an example mod, not to be used in normal games.

StructureSaver2 (starting from v2.7) contains a public modding interface to allow other mods to save and restore structure specific states and perform some additional initialization upon restoration.

Documentation for the interfaces and the interface files can be found from here: https://github.com/Peanhua/StructureSaverInterfaces

For a tutorial about interfaces, check ZenRowe's Wildcard Workshop #11: Blueprint Interfaces[survivetheark.com].


Contents of this example mod:

You can find the source code for this example mod from here: https://github.com/Peanhua/StructureSaverWeb/tree/master/mod_interfaces

This example mod contains a single structure that must be spawned in:
cheat giveitem "Blueprint'/Game/Mods/StructureSaverInterfaceExample/PrimalItemStructure_StorageBox_Small_SSIE.PrimalItemStructure_StorageBox_Small_SSIE'" 1 0 0

When that structure (a small storage box variant) is placed down, it'll get assigned a random number and the number is shown on the structure (as a high priority multiuse entry). And the structure uses the interface to save and restore that random number.