Class Sims4StudioBatchImport
- Namespace
- LlamaLogic.TuningArchive
- Assembly
- LlamaLogic.TuningArchive.dll
Names files the way Sims 4 Studio's batch import reads them
public static class Sims4StudioBatchImport
- Inheritance
-
Sims4StudioBatchImport
- Inherited Members
Remarks
Batch import reads a resource's key from the start of its file name, up to the first period: the type, group and instance in hexadecimal, separated by exclamation points.
Sims 4 Studio's batch export follows the key with the resource's name and type, for people, as in 6017E896!00000000!0000000000012345.buff_Example.BuffTuning.xml, and so do these names.
Characters Windows doesn't allow in file names become underscores, as they do in Sims 4 Studio's export.
Methods
GetFileName(ResourceKey, string?)
Gets the name of a file of XML for the resource with the specified key and name
public static string GetFileName(ResourceKey key, string? name)
Parameters
keyResourceKeynamestring
Returns
GetFileName(string)
Gets the name of a file of the specified tuning document text, whose key comes from its root element: the type from its i attribute, the instance from its s attribute, and the group 0
public static string GetFileName(string text)
Parameters
textstring
Returns
Exceptions
- ArgumentException
The root element does not have both attributes, or its instance is not a number