finally create data model store page. This will need to be expanded |
category |
||
(One intermediate revision by the same user not shown) | |||
Line 14: | Line 14: | ||
A [[ProtoFlux:Data Model Store|Data Model Store]] will allow writes to it that will persist across contexts, allowing for another impulse or script to read the variable later and act on it. This is good for storing your final value after a massive calculation as a value for a smaller drive script. If a [[ProtoFlux:Data Model Store|Data Model Store]] is written to multiple times in a Impulse, the last value is the value that gets networked to other users. Data model stores can be read much later, and will even keep and save their value when an item is saved. | A [[ProtoFlux:Data Model Store|Data Model Store]] will allow writes to it that will persist across contexts, allowing for another impulse or script to read the variable later and act on it. This is good for storing your final value after a massive calculation as a value for a smaller drive script. If a [[ProtoFlux:Data Model Store|Data Model Store]] is written to multiple times in a Impulse, the last value is the value that gets networked to other users. Data model stores can be read much later, and will even keep and save their value when an item is saved. | ||
{{Template:Variable_Name_ProtoFlux}} | |||
See also: [[Impulses#Contexts|Contexts]] | |||
[[Category:ProtoFlux:Variables]] |
Latest revision as of 16:37, 2 April 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
This page is missing content because it needs many more examples, since this node is quite a complex topic. TODO: Maybe explain this in reference to variables in programming?
A Data Model Store will allow writes to it that will persist across contexts, allowing for another impulse or script to read the variable later and act on it. This is good for storing your final value after a massive calculation as a value for a smaller drive script. If a Data Model Store is written to multiple times in a Impulse, the last value is the value that gets networked to other users. Data model stores can be read much later, and will even keep and save their value when an item is saved.
The visual on this page is not a good representation of the node's appearance in game at the moment.
The node in game has a string in the center that can be edited like a text field. This text field actually just renames the slot of the protoflux node, and will populate with the node's name when unpacked. This is useful for naming your variables, and should have no downsides. As such, never assume this node will have their slot name contain this node's type or something similar.
See also: Contexts