Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Utilities

TechSide edited this page May 21, 2025 · 2 revisions

Logging

This will log any message to the console, while logging it to a file at the same time.

Message

Usage:

OctoEngine.MarrowFramework.Internal.ModLog.LogMessage("YOUR MESSAGE");

This will log as:

[Log] YOUR MESSAGE

Warning

Usage:

OctoEngine.MarrowFramework.Internal.ModLog.LogWarn("YOUR WARNING");

This will log as:

[Warn] YOUR WARNING

Error

Usage:

OctoEngine.MarrowFramework.Internal.ModLog.LogError("YOUR ERROR");

This will log as:

[Error] YOUR ERROR

TempStorage

This allows you to write temporary files to store any string you want.

Writing values

Usage:

OctoEngine.TempStorage.WriteTempValue("NAME", "VALUE");

This will create a temp file called NAME with a value of VALUE.

Reading values

Read value

Usage:

OctoEngine.TempStorage.ReadTempValue("NAME");
OctoEngine.TempStorage.ReadTempLines("NAME");

This will return a string with the contents of the temp file called NAME.

Read lines

Usage:

OctoEngine.TempStorage.ReadTempLines("NAME");

This will return a list of strings containing each line of the temp file called NAME.

Deleting values

OctoEngine.TempStorage.DeleteTempValue("<NAME>");

This will delete the temp file called NAME.

Clone this wiki locally