A NeosModLoader mod for Neos VR that does a way to store data in a local db through logiX.
- Install NeosModLoader.
- Place LocalKeyValueStore.dll and CustomEntityFramework.dll into your
nml_mods
folder. This folder should be atC:\Program Files (x86)\Steam\steamapps\common\NeosVR\nml_mods
for a default install. You can create it if it's missing, or if you launch the game once with NeosModLoader installed it will create the folder for you. - Start the game. If you want to verify that the mod is working you can check your Neos logs.
- First, add a DynamicVariableSpace named "CF" to a Slot in NeosVR.
- Next, add the string variables "Key" and optionally "Table" to the DynamicVariableSpace.
- Finally, add any value type or ref Type Slot variable "Value" to the DynamicVariableSpace.
Note that the table is optional. If you don't specify a table, the table name "default" will be used.
Once you've set up the DynamicVariableSpace, create a DynamicImpulseTriggerWithValue of type Slot and pass the Slot with the DynamicVariableSpace to it. The tag will determine the action that will be performed:
- To write a value to the database with the specified key and table name, use the tag "cf.lkvs.write".
- To read a value from the database with the specified key and table name, use the tag "cf.lkvs.read".
You can create a DynamicImpulseReceiverWithValue with the tag "cf.lkvs.read" and it will return the Slot containing the CF DynamicVariableSpace. If you read a Slot, it will return the new Slot.
You can use the same key to store values of different types (e.g., strings, integers, booleans), but you cannot have the same key storing values of the same type in the same table.
If you read a value that doesn't exist, the DynamicVariable "Value" will not be set.
Tables and entries are automatically created when you write to them.
[Include examples or screenshots here to help users understand how to use the mod.]