Save and load problems
What this page is for
Section titled “What this page is for”Every save, load, delete and capture answers with a status. A save or load can also carry problems, each with a code. This page lists all 78 statuses and all 69 codes in one place. Look one up by name. The objects that hold them, and how to read a load, are on Save and load results.
When you come here
Section titled “When you come here”- A call came back with
Okfalse and you want to know what itsStatusmeans. - A load report lists a code such as
MissingClan. You want to know what it did to your game. - You write code that tests a status or a code, and you want the exact names, the numbers and the line of the code that declares each one.
How to read the tables
Section titled “How to read the tables”A status is the answer of one call. A problem code is a finding inside a save or a load. A load can say Ok and still carry problems, so read both, and when your own code reacts to a problem, test the code and not the message, because a code never changes after release and a message may be reworded.
The Number column is the value of the enum member. Source is the line that declares it, in the package’s Runtime folder. Meaning is the code’s own summary. Where it says (information), that is the code’s own word. The severity of the other problems is set where the code raises them, so the tables do not list it.
Each status row has an anchor made of the enum and the name, such as #loadstatus-nodata. Each code has #code- and its name, such as #code-nodata. Use them to link to one row.
Statuses
Section titled “Statuses”Storage statuses are the answers of a save storage. They are also on Your own storage.
SaveStatus
Section titled “SaveStatus”| Value | Number | Meaning | Source |
|---|---|---|---|
Ok | 0 | The save was written (it may still carry warnings; see the problems). | Save/Slots/SlotTypes.cs:277 |
RefusedOffHost | 1 | This machine is a multiplayer client: only the host saves. Nothing was written. | Save/Slots/SlotTypes.cs:279 |
NotMainThread | 2 | Asked from another thread than the main thread. Nothing was written. | Save/Slots/SlotTypes.cs:281 |
NoSaveSystem | 3 | There is no Save System in the scene (it runs the slot operations' work on the main thread). Nothing was written. | Save/Slots/SlotTypes.cs:283 |
InvalidSlot | 4 | The slot's name is not a valid storage key. Nothing was written. | Save/Slots/SlotTypes.cs:285 |
Busy | 5 | Another slot operation runs and the settings refuse a second one (Refuse). Nothing was written. | Save/Slots/SlotTypes.cs:287 |
LoadRunning | 6 | A load is running (a slot load, or a load across scenes that waits for its actors). Nothing was written. | Save/Slots/SlotTypes.cs:289 |
CaptureFailed | 7 | The game could not be captured (see the reason and the problems). Nothing was written. | Save/Slots/SlotTypes.cs:291 |
EncodeFailed | 8 | The captured game could not be turned into the bytes of a save. Nothing was written. | Save/Slots/SlotTypes.cs:293 |
WriteFailed | 9 | The storage could not write the save; the slot's earlier save is unchanged. | Save/Slots/SlotTypes.cs:295 |
NewerSaveInSlot | 10 | The slot holds a save of a newer version of Intrigues and OverwriteNewer was not set. Nothing was written. | Save/Slots/SlotTypes.cs:297 |
AutosaveOff | 11 | Autosave is off (AutosaveSlots is 0). Nothing was written. | Save/Slots/SlotTypes.cs:299 |
Cancelled | 12 | A new game started (or the world was cleared) after the save was asked. Nothing was written. | Save/Slots/SlotTypes.cs:301 |
Stopped | 13 | The Save System was switched off or destroyed while the save waited; a write in flight may or may not have reached the storage. | Save/Slots/SlotTypes.cs:303 |
InvalidParts | 14 | A partial save (Parts) that cannot be written: no part, an Intrigues key, a part not registered or writing nothing, an autosave or a save to the current slot. Nothing was written. | Save/Slots/SlotTypes.cs:306 |
SecretRefused | 15 | The save holds a secret save part and there is no password for it (SecretProtector), or the password is the one Intrigues ships with. Nothing was written. | Save/Slots/SlotTypes.cs:309 |
InsideNode | 16 | The save was asked while a node of a scheme ran and that node did not return within the frames a save waits (CaptureInsideNode): saved there, the node would run again on load. Nothing was written. | Save/Slots/SlotTypes.cs:315 |
LoadStatus
Section titled “LoadStatus”| Value | Number | Meaning | Source |
|---|---|---|---|
Ok | 0 | Loaded (it may still carry warnings or data loss; see the problems). | Save/State/SaveResults.cs:404 |
RefusedOffHost | 1 | This machine is a multiplayer client: only the host loads. Nothing changed. | Save/State/SaveResults.cs:406 |
NoSaveSystem | 2 | There is no Save System in the scene. Nothing changed. | Save/State/SaveResults.cs:408 |
NoData | 3 | No save data was given. Nothing changed. | Save/State/SaveResults.cs:410 |
Incomplete | 4 | The save misses lists a game needs. Nothing changed. | Save/State/SaveResults.cs:412 |
OldFormat | 5 | The save was written by an older version of Intrigues. Nothing changed. | Save/State/SaveResults.cs:414 |
ManagerRefused | 6 | The Intrigue Manager refused the world (no manager, or a client). Nothing changed. | Save/State/SaveResults.cs:416 |
Aborted | 7 | The load stopped at the first failing item (Abort); the world is half loaded. | Save/State/SaveResults.cs:418 |
Failed | 8 | The load threw outside a guarded step; the world may be half built. See the problems. | Save/State/SaveResults.cs:420 |
Busy | 9 | A save, capture or load is running (this was asked from one of its listeners): refused, nothing changed. | Save/State/SaveResults.cs:422 |
NotMainThread | 10 | Asked from another thread than the main thread: refused, nothing changed. | Save/State/SaveResults.cs:424 |
AlreadyRestored | 11 | This checked data was restored already; stage it again for another load. Nothing changed. | Save/State/SaveResults.cs:426 |
NotFound | 12 | A slot load: nothing is stored under the slot. Nothing changed. | Save/State/SaveResults.cs:428 |
ReadFailed | 13 | A slot load: the storage could not read the slot (see the reason). Nothing changed. | Save/State/SaveResults.cs:430 |
Damaged | 14 | A slot load: the save is not an Intrigues save, or it is cut off or damaged (see the reason). Nothing changed. | Save/State/SaveResults.cs:432 |
PasswordRequired | 15 | A slot load: the save is encrypted and the slot manager has no password for it. Nothing changed. | Save/State/SaveResults.cs:434 |
WrongPassword | 16 | A slot load: the save is encrypted and the password does not open it. Nothing changed. | Save/State/SaveResults.cs:436 |
NewerFormat | 17 | A slot load: the save was written by a newer version of Intrigues that this version cannot read. Nothing changed. | Save/State/SaveResults.cs:438 |
InvalidSlot | 18 | A slot load: the slot's name is not a valid storage key. Nothing changed. | Save/State/SaveResults.cs:440 |
Cancelled | 19 | A slot load: a new game started (or the world was cleared) after the load was asked. Nothing changed. | Save/State/SaveResults.cs:442 |
NoScene | 20 | A slot load with FromSave: the save's header names no scene. Nothing changed. | Save/State/SaveResults.cs:444 |
Stopped | 21 | A slot load: the Save System was switched off or destroyed while the load waited. Nothing changed (unless its restore had begun; see the report). | Save/State/SaveResults.cs:446 |
Unprotected | 22 | A slot load: encrypted saves only are accepted (AcceptUnprotected off) and the save is not encrypted. Nothing changed. | Save/State/SaveResults.cs:448 |
Partial | 23 | The save is a partial save (some of your save parts only): it is loaded with RestoreParts or a slot load, never as a whole game. Nothing changed. | Save/State/SaveResults.cs:450 |
NoWorld | 24 | A partial load: no Intrigue Manager runs a world to load the parts into. Nothing changed. | Save/State/SaveResults.cs:452 |
UnknownPart | 25 | A partial load: the save holds a part this game has not registered (IntrigueSave.Register). Nothing changed. | Save/State/SaveResults.cs:454 |
NotPartial | 26 | RestoreParts was given a save that is not a partial save. Nothing changed. | Save/State/SaveResults.cs:456 |
Reverted | 27 | The load failed and the game was put back in the same scene as it was before the load (RevertSameScene): the save was not loaded. NotReverted lists what was not undone; the report holds why it failed. | Save/State/SaveResults.cs:461 |
RevertUnavailable | 28 | RevertSameScene was asked for a load that cannot be put back: a load across scenes or from a file, a load that tells nobody (internal), a world with Actor Home World (parked actors cannot be put back), or a game that could not be captured before the load. The load did not start (nothing of the save was loaded). | Save/State/SaveResults.cs:467 |
DeleteStatus
Section titled “DeleteStatus”| Value | Number | Meaning | Source |
|---|---|---|---|
Ok | 0 | The slot (and every copy the storage keeps of it) was removed. | Save/Slots/SlotTypes.cs:373 |
NotFound | 1 | Nothing was stored under the slot (not a failure: it is gone either way). | Save/Slots/SlotTypes.cs:375 |
RefusedOffHost | 2 | This machine is a multiplayer client: only the host deletes saves. | Save/Slots/SlotTypes.cs:377 |
NotMainThread | 3 | Asked from another thread than the main thread. | Save/Slots/SlotTypes.cs:379 |
NoSaveSystem | 4 | There is no Save System in the scene. | Save/Slots/SlotTypes.cs:381 |
InvalidSlot | 5 | The slot's name is not a valid storage key. | Save/Slots/SlotTypes.cs:383 |
Busy | 6 | Another slot operation runs and the settings refuse a second one. | Save/Slots/SlotTypes.cs:385 |
Failed | 7 | The storage could not delete the slot. | Save/Slots/SlotTypes.cs:387 |
Stopped | 8 | The Save System was switched off or destroyed (or the world was cleared) while the delete waited; the slot may or may not be gone. | Save/Slots/SlotTypes.cs:389 |
SlotStatus
Section titled “SlotStatus”| Value | Number | Meaning | Source |
|---|---|---|---|
Ok | 0 | The header is whole and this version can load the save. | Save/Slots/SlotTypes.cs:11 |
Damaged | 1 | The save is cut off or damaged (its frame or header does not check out). It cannot be loaded; a storage that keeps a backup may still load that one (UseBackup). | Save/Slots/SlotTypes.cs:13 |
NewerFormat | 2 | Written by a newer version of Intrigues that this version can still read: it loads with a warning, and saving over it needs OverwriteNewer. | Save/Slots/SlotTypes.cs:15 |
NeedsPassword | 3 | The save is encrypted and the slot manager has no password (no protector of its kind, or one that is not ready). | Save/Slots/SlotTypes.cs:17 |
TooNew | 4 | Written by a newer version of Intrigues that this version cannot read. | Save/Slots/SlotTypes.cs:19 |
OldFormat | 5 | Written by an older version of Intrigues whose saves this version no longer reads. | Save/Slots/SlotTypes.cs:21 |
NotASave | 6 | The slot holds something that is not an Intrigues save. | Save/Slots/SlotTypes.cs:23 |
ReadFailed | 7 | The storage could not read the slot (see Reason). | Save/Slots/SlotTypes.cs:25 |
Partial | 8 | A partial save (Parts): some of the game's save parts, no game. Not offered to continue (CanLoad is false); a slot load reads only its parts into the running game. | Save/Slots/SlotTypes.cs:31 |
CaptureStatus
Section titled “CaptureStatus”| Value | Number | Meaning | Source |
|---|---|---|---|
Ok | 0 | The state was captured (it may still carry warnings). | Save/State/SaveResults.cs:261 |
RefusedOffHost | 1 | This machine is a multiplayer client: only the host's state is a game's state. | Save/State/SaveResults.cs:263 |
WorldFrozen | 2 | A scheme is held by a test run's trace: a test world is never saved. | Save/State/SaveResults.cs:265 |
NoManager | 3 | There is no Intrigue Manager. | Save/State/SaveResults.cs:267 |
Failed | 4 | The capture threw; see the problems. | Save/State/SaveResults.cs:269 |
Busy | 5 | A save, capture or load is running (this was asked from one of its listeners): refused, nothing changed. | Save/State/SaveResults.cs:271 |
NotMainThread | 6 | Asked from another thread than the main thread: refused, nothing changed. | Save/State/SaveResults.cs:273 |
InsideNode | 7 | Asked while a scheme's flow runs (any code that runs while a scheme's flow runs (a node's Run, Run Code's method, a Signal Receiver, a trigger, Changed, scheme-end, actor or accomplice listener)) and InsideNode is Refuse (the default): refused, nothing changed. That node has not returned yet, so its visit would be saved as waiting and a load would run it again (its effect twice). Capture after it returned (the next frame), or save to a slot: a slot save waits on its own until the node returned (CaptureInsideNode). | Save/State/SaveResults.cs:280 |
StorageStatus
Section titled “StorageStatus”| Value | Number | Meaning | Source |
|---|---|---|---|
Ok | 0 | The call did what was asked. | Save/Storage/ISaveStorage.cs:52 |
NotFound | 1 | Nothing is stored under the key (or, for DeleteAsync, there was nothing to remove). | Save/Storage/ISaveStorage.cs:54 |
InvalidKey | 2 | The key is not allowed (see IsValid); nothing was touched. | Save/Storage/ISaveStorage.cs:56 |
InvalidArgument | 3 | An argument is not usable (no bytes, a size limit below one); nothing was touched. | Save/Storage/ISaveStorage.cs:58 |
TooLarge | 4 | The bytes are larger than MaxBytes; nothing was written or read. | Save/Storage/ISaveStorage.cs:60 |
IoError | 5 | The disk or the platform refused (no permission, disk full, file in use, ...); the reason says what. | Save/Storage/ISaveStorage.cs:62 |
Problem codes
Section titled “Problem codes”These are the values of SaveProblem.Code. A ProblemSeverity is Info, Warning, DataLoss or Error. Each problem carries one of them next to its code, and the table below does not repeat it.
| Code | Meaning | Source |
|---|---|---|
NoData | No save data was given. | Save/State/SaveResults.cs:57 |
Incomplete | The save misses its actor list, its game data or one of the game data's lists. | Save/State/SaveResults.cs:59 |
OldFormat | The save was written by an older version of Intrigues that this version no longer reads. | Save/State/SaveResults.cs:61 |
NewerFormat | The save was written by a newer version of Intrigues; the fields this version does not know are dropped. | Save/State/SaveResults.cs:63 |
DuplicateActorId | Two saved actors share one ID; the first one is used. | Save/State/SaveResults.cs:65 |
ActorWithoutId | A saved actor has no ID and cannot load. | Save/State/SaveResults.cs:67 |
MissingParent | A saved actor names a parent the save does not hold. | Save/State/SaveResults.cs:69 |
MissingClan | A saved actor names a clan the save does not hold; it loads without a clan. | Save/State/SaveResults.cs:71 |
MissingFamily | A saved actor names a family the save does not hold. | Save/State/SaveResults.cs:73 |
MissingRole | A saved actor names a role the save does not hold; it loads without that role. | Save/State/SaveResults.cs:75 |
MissingCulture | A saved actor, clan or family names a culture the save does not hold. | Save/State/SaveResults.cs:77 |
MissingOverlord | A saved clan stands under a clan the save does not hold; it stands alone. | Save/State/SaveResults.cs:79 |
MissingSpouse | A saved marriage names an actor the save does not hold. | Save/State/SaveResults.cs:81 |
OnlyInSave | The save holds a clan, family, role, culture or policy the database no longer has (it is kept from the save). | Save/State/SaveResults.cs:83 |
OnlyInDatabase | The database has a clan, family, role, culture or policy this save does not hold (it is not part of this game). | Save/State/SaveResults.cs:85 |
SchemeMissing | A running scheme of the save names a scheme the database no longer has: the run is dropped. | Save/State/SaveResults.cs:87 |
SchemeGraphMissing | A running scheme of the save has no graph in the database: the run is dropped. | Save/State/SaveResults.cs:89 |
SchemeTargetMissing | A running scheme of the save targets an actor the save does not hold: the run is dropped. | Save/State/SaveResults.cs:91 |
VisitDropped | Saved visits of a running scheme name nodes its graph no longer has: those visits are dropped. | Save/State/SaveResults.cs:93 |
VisitKept | Saved visits of a running scheme name nodes its graph no longer has: they are kept as saved (On Missing Node: Keep Parked). | Save/State/SaveResults.cs:95 |
RunEndedForMissingNode | A restored run waited on nodes its graph no longer has and was ended (Failed) (On Missing Node: End Run). | Save/State/SaveResults.cs:97 |
DefinitionAddedToGame | A culture, policy or role of the database was not in the save and was added to the loaded game (New Definitions: Add Missing). | Save/State/SaveResults.cs:99 |
VisitTypeChanged | A saved visit waits on a node that is now a node of another kind (same ID): dropped by Resume By Port Then Index, else restored as before. | Save/State/SaveResults.cs:101 |
VisitPortMissing | A saved visit was starting the links of an output its node no longer has (by key): it goes on with the saved output number. | Save/State/SaveResults.cs:103 |
VisitStateIgnored | A saved visit's state was left out: its node no longer keeps a state (ISavableNode). | Save/State/SaveResults.cs:105 |
VisitStateNewer | A saved visit's state was written by a newer version of its node and was left out (the visit restores without it). | Save/State/SaveResults.cs:107 |
VisitStateFailed | A node threw while it took its saved state back (the visit restores without it). | Save/State/SaveResults.cs:109 |
VariableDropped | A saved value of a variable the database no longer has (by ID or name): the value is dropped. | Save/State/SaveResults.cs:111 |
DefinitionChanged | Definitions of the database changed after the save was written (their stamps differ; information, a warning for a scheme graph that saved runs wait in). | Save/State/SaveResults.cs:113 |
DefinitionAdded | A scheme was added to the database after the save was written (information). | Save/State/SaveResults.cs:115 |
DefinitionRemoved | A scheme of the database the save was written with is gone (information). | Save/State/SaveResults.cs:117 |
DefinitionsNotStamped | The save carries no definition stamps: definitions were compared by ID only (information). | Save/State/SaveResults.cs:119 |
StampRulesDiffer | The save's definition stamps follow other rules than this version's and were not compared (information). | Save/State/SaveResults.cs:121 |
StampsShortened | The definition stamps did not fit in the save header: one stamp stands for all schemes, or none was written (information; never a failed save). | Save/State/SaveResults.cs:123 |
SchemeStampsOmitted | The save holds one stamp for all schemes (see StampsShortened): a change of schemes is seen, not which one (information). | Save/State/SaveResults.cs:125 |
RestoreOrderPerActor | Restore Order is After All Actors, but a plain file load restores its actors' schemes per actor (information). Only the internal file load of the dev tests can raise it: no public load path is a plain file load any more (slots and RestoreAsync are not), so a game never sees this code. | Save/State/SaveResults.cs:131 |
ActorNotLoaded | A saved actor did not load (no object for it and nothing that creates one). | Save/State/SaveResults.cs:133 |
ActorLoadFailed | An actor threw while it loaded; it was skipped and the others loaded. | Save/State/SaveResults.cs:135 |
ActorCreateFailed | A saved actor could not be created again; it was skipped and the others were created. | Save/State/SaveResults.cs:137 |
SchemeLoadFailed | A running scheme threw while it was restored; it was skipped and the others were restored. | Save/State/SaveResults.cs:139 |
MindLoadFailed | The mind (calendar, thinking state) threw while it loaded; the load went on. | Save/State/SaveResults.cs:141 |
MindSaveFailed | The mind (calendar, thinking state) threw while it was written; the capture has no or a partial mind part. | Save/State/SaveResults.cs:143 |
ListenerFailed | A listener of a save event threw; the other listeners were still told. | Save/State/SaveResults.cs:145 |
DayInProgress | The capture was taken while a day's thinking was in progress: the rest of that day does not happen after loading it. | Save/State/SaveResults.cs:147 |
CaptureFailed | The capture threw; nothing was captured. | Save/State/SaveResults.cs:149 |
SaveFailed | A save of the Save System was not written (the reason is in the message and was logged). | Save/State/SaveResults.cs:151 |
Aborted | The load stopped at the first problem (Abort). | Save/State/SaveResults.cs:153 |
LoadFailed | The load threw outside a guarded step, or was refused after it was asked for; see the message. | Save/State/SaveResults.cs:155 |
CheckFailed | The check of the save data threw; the load went on without the rest of the check. | Save/State/SaveResults.cs:157 |
ActorNeverAppeared | A load across scenes reached its deadline and this saved actor had not appeared (no object in the scene, nothing created one): it is not in the game. | Save/State/SaveResults.cs:159 |
RelationsDropped | A saved actor never appeared: its marriages and parent / child links with actors of the game are not in the game and are dropped from the next save. | Save/State/SaveResults.cs:161 |
NoSceneLoaded | A load across scenes waited for a scene that never loaded; it was completed without one. | Save/State/SaveResults.cs:163 |
ActorWakeFailed | An actor of a load across scenes threw in its Awake or Start outside the guarded steps (the exception went on as before). | Save/State/SaveResults.cs:165 |
PartWriteFailed | A save part (ISavePart) threw while it was written: the save has no section for it. | Save/State/SaveResults.cs:167 |
PartReadFailed | A save part threw while it was read (or told its section is absent); the load went on. | Save/State/SaveResults.cs:169 |
PartNewerVersion | A save part's section was written by a newer version of the part than the registered one; it was read as it is. | Save/State/SaveResults.cs:171 |
PartKeyTaken | A save part was not written: the save holds an entry with its key already (written by Intrigues or an add-on). | Save/State/SaveResults.cs:173 |
SaveDeferred | A slot save was asked inside a day's thinking (DeferInsideDay) or while a node of a scheme ran, and was put off to the end of the frame. | Save/State/SaveResults.cs:178 |
LoadedFromBackup | A slot load read the storage's backup of the slot (an older save), not its main copy. | Save/State/SaveResults.cs:180 |
NotCurrent | A slot save was written, but a new game started (or the world was cleared) while it was written: it is not the current slot. | Save/State/SaveResults.cs:182 |
PartSecretUnreadable | A secret save part's section could not be opened (no or another password, a changed file, or it was not encrypted): a full load treats it as missing (Absent), a partial load does not read it. | Save/State/SaveResults.cs:184 |
SecretRefused | A slot save was refused: it holds a secret save part and there is no password for it, or the password is the one Intrigues ships with. | Save/State/SaveResults.cs:186 |
Reverted | A load failed and the game was put back as it was before it (RevertSameScene); NotReverted lists what was not undone. | Save/State/SaveResults.cs:188 |
RevertFailed | A load failed and putting the game back failed too (RevertSameScene): the game is left as it is, half loaded. | Save/State/SaveResults.cs:190 |
EmptyEntry | A list of the save holds an empty entry (null); the load skips it. | Save/State/SaveResults.cs:192 |
DefinitionWithoutId | A saved clan, family, culture, policy or role has no ID: it loads, but nothing can name it. | Save/State/SaveResults.cs:194 |
DuplicateDefinitionId | Two saved clans, families, cultures, policies or roles share one ID: both load, and whatever names the ID finds the first one. | Save/State/SaveResults.cs:196 |
UnknownValue | A saved value of a fixed list (an actor's gender or life state, a marriage's state) is one this version does not know; it loads as it is. | Save/State/SaveResults.cs:198 |
CaptureInsideNode | A capture or a slot save was asked while a scheme's flow ran (any code that runs while a scheme's flow runs (a node's Run, Run Code's method, a Signal Receiver, a trigger, Changed, scheme-end, actor or accomplice listener)): a capture is refused (InsideNode; with InsideNode = Warn it is taken and this is a warning); a slot save of the whole game waits until the node returned, and is refused (InsideNode) only when that does not happen within its frames. Saved there, the node would run again on load (its effect twice). | Save/State/SaveResults.cs:206 |
How it connects
Section titled “How it connects”- The result objects, the load report and a worked read of a load, with the members you test on each result, are on Save and load results. Read it first.
- What a load does after you changed the database is on Loading after the database changed.
- The encryption settings, including the one behind
Unprotected, are on Encryption. - A save asked while a node runs is explained on Saving while a scheme runs.