Class DefaultSmokeCharacter
A clean, game-created Valheim 1.0.16 local character for an owned smoke run. It has completed its first spawn, has visited no worlds and contains no data copied from another character. Every run stages a copy from a DisposableCharacterStore; the packaged save is never played or rewritten.
public static class DefaultSmokeCharacter
- Inheritance
-
objectDefaultSmokeCharacter
Remarks
The save format belongs to Valheim. Recheck this fixture in the native client after a game update. Each copy has the same player ID, so use it for one client at a time, never for simultaneous players.
Fields
Name
public const string Name = "vtseedclean"
Field Value
- string
Methods
Ensure(string)
Reuses a valid store or repairs a missing/changed copy in a directory previously made by Prepare(string). It refuses an unfamiliar directory or any extra file; it never repairs a live or personal character folder.
public static DisposableCharacterStore Ensure(string root)
Parameters
rootstring
Returns
Prepare(string)
Creates a registered, disposable character store under a new directory. Pass the returned store's
Root as client.characterStore and Name as
client.character in a targeted run. The source save stays embedded in the package.
public static DisposableCharacterStore Prepare(string newRoot)
Parameters
newRootstring
Returns
StageForRun(DisposableCharacterStore, string, string)
Stages this registered fixture under its exact local filename for one owned client run. Dispose the returned scope only after the client has stopped; it removes only that filename and its game-made backups. A collision with an existing local or Steam Cloud character is refused before writing anything.
public static IDisposable StageForRun(DisposableCharacterStore store, string charactersLocalDirectory, string steamUserDataDirectory)
Parameters
storeDisposableCharacterStorecharactersLocalDirectorystringsteamUserDataDirectorystring
Returns
- IDisposable