How do I save data files for each file?
Save separate data files?Solved
Interface.Oxide.DataFileSystem.WriteObject(filename, thingtowrite);Pretty sure you can do this.
filename being what the file is/will be called.
thingtowrite being whatever data you are writing to the file.
0x89A
Interface.Oxide.DataFileSystem.WriteObject(filename, thingtowrite);Pretty sure you can do this.
filename being what the file is/will be called.
thingtowrite being whatever data you are writing to the file.
The text saved in the previous data is copied as it is when the next data is saved.
ex)
{
"164.1_6.1_414.7": {
"Creator": "agasdfwegqwer(76561198995708094)",
"AuthList": [
"agasdfwegqwer(76561198995708094) - 설치자 | 09/27/2020 20:56:29"
],
"DestoryCupStatus": true,
"WhoDestoryCup": "agasdfwegqwer | 09/27/2020 20:56:36"
}
}
{
"164.1_6.1_414.7": {
"Creator": "1(2)",
"AuthList": [
"1(2) - | 09/27/2020 20:56:29"
],
"DestoryCupStatus": true,
"WhoDestoryCup": "1 | 09/27/2020 20:56:36"
},
"194.4_5.8_424.9": {
"Creator": "1(2)",
"AuthList": [
"1(2) - | 09/27/2020 20:57:26"
],
"DestoryCupStatus": true,
"WhoDestoryCup": "1| 09/27/2020 20:57:54"
}
}
My Save Data Code
private void DataSave(string xyz)
{
Interface.Oxide.DataFileSystem.WriteObject($"CupboardLog\\CupboardLog_{xyz}", CupboardPos);
} So it's not writing new data, it is just writing the data already in the data file?
0x89A
So it's not writing new data, it is just writing the data already in the data file?
New data, modification
Locked automatically