EDIT: So I think after having done things manually, I've got it working! Thank you nonetheless for all of your time!
The file should be created for you when you add a trigger to the map, using the awt.add (or aw.addtrigger) command. Triggers are all created in-game, so there would be nothing for you to find in that file anyway, until you have created some triggers.
The main reason the documentation states where that data file is, is that if you change the map name, you'll have to rename the data file as well, though I think renaming maps is less necessary as of a recent Rust update since I saw a commit which said that clients will now redownload maps if the checksum differs (people used to rename a map any time it was changed or clients wouldn't connect).
Thanks for getting back to me so quickly.
So my biggest issue is that I'm using a custom made map, and this map comes with a pre-made data file. It says that if the name isn't the same as the map it won't work. I've tried using just the premade file, with the filename of AutomatedWorkcarts, but I'm getting error after error. I have no clue how to put my map name into the file because I can't use the AutomatedWorkcarts/MapName. I'm thinking that if this data file is anything by AutomatedWorkcarts then it won't work?
The errors that I've been getting are:
ExType: JsonSerializationException
Failed to initialize plugin 'AutomatedWorkcarts v0.29.0' (FormatException: Input string was not in a correct format.)
at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in :0
at System.Number.ParseUInt32 (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) [0x00013] in :0
at System.UInt32.Parse (System.String s, System.Globalization.NumberStyles style, System.IFormatProvider provider) [0x0000e] in :0
at System.Convert.ToUInt32 (System.String value, System.IFormatProvider provider) [0x00005] in :0
at System.String.System.IConvertible.ToUInt32 (System.IFormatProvider provider) [0x00000] in :0
at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x00137] in :0
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0007c] in <271c58b7a8684db5a2c92be17a81f252>:0
I've added here the file that was made by the map maker just in-case, but I'm assuming that it's me that's done something wrong here.
Thanks again.
{
"AutomatedWorkcarts": {
"MapTriggers": [
{
"Id": 2,
"Position": {
"x": 1261.585,
"y": 3.13250017,
"z": -1685.488
},
"Direction": "Fwd",
"Speed": "Hi"
},
{
"Id": 4,
"Position": {
"x": 294.6718,
"y": 6.24126625,
"z": 515.964966
},
"Direction": "Fwd",
"Speed": "Hi"
},
{
"Id": 5,
"Position": {
"x": 304.8331,
"y": 6.241272,
"z": 629.24585
},
"Direction": "Fwd",
"Speed": "Lo"
},
{
"Id": 6,
"Position": {
"x": 294.6713,
"y": 6.398769,
"z": 593.416931
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Lo"
},
{
"Id": 7,
"Position": {
"x": 294.6714,
"y": 6.24126863,
"z": 576.7151
},
"AddConductor": true,
"Direction": "Fwd",
"Speed": "Hi"
},
{
"Id": 8,
"Position": {
"x": 1246.335,
"y": 3.13250017,
"z": -1685.488
},
"AddConductor": true,
"Direction": "Fwd",
"Speed": "Hi"
},
{
"Id": 9,
"Position": {
"x": -736.4316,
"y": 5.32328224,
"z": -904.1713
},
"AddConductor": true,
"Direction": "Fwd",
"Speed": "Hi"
},
{
"Id": 10,
"Position": {
"x": -736.425964,
"y": 5.31544542,
"z": -962.0551
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 11,
"Position": {
"x": -736.434753,
"y": 8.457061,
"z": -129.592529
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 12,
"Position": {
"x": -1366.78577,
"y": 11.6903267,
"z": -194.971
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 13,
"Position": {
"x": -1674.801,
"y": 5.42483854,
"z": -829.6132
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 14,
"Position": {
"x": -1541.55493,
"y": 5.424919,
"z": -1336.75879
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 15,
"Position": {
"x": 1476.20862,
"y": 3.291001,
"z": -1338.86169
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 16,
"Position": {
"x": 581.470459,
"y": 9.557315,
"z": -966.487061
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 17,
"Position": {
"x": 930.156,
"y": 3.26549363,
"z": 139.1178
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 18,
"Position": {
"x": 402.107758,
"y": 3.28988385,
"z": -589.815857
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
},
{
"Id": 20,
"Position": {
"x": 294.6714,
"y": 6.39876842,
"z": 576.3116
},
"RotationAngle": 179.981674,
"TrainCars": [
"Workcart"
]
},
{
"Id": 21,
"Position": {
"x": 402.107758,
"y": 3.28986764,
"z": -645.7984
},
"AddConductor": true,
"Direction": "Fwd",
"Speed": "Hi",
"TrackSelection": "Left",
"RotationAngle": 180.495255,
"TrainCars": [
"Workcart"
]
},
{
"Id": 22,
"Position": {
"x": 1211.9519,
"y": 18.9502,
"z": -553.652039
},
"AddConductor": true,
"Direction": "Fwd",
"Speed": "Hi",
"TrackSelection": "Left",
"RotationAngle": 359.836334,
"TrainCars": [
"Workcart"
]
},
{
"Id": 23,
"Position": {
"x": 1247.4801,
"y": 3.2900002,
"z": -1685.488
},
"RotationAngle": 85.5063248,
"TrainCars": [
"Workcart",
"WagonA"
]
},
{
"Id": 24,
"Position": {
"x": 1229.1123,
"y": 3.2900002,
"z": -1685.488
},
"Brake": true,
"Speed": "Zero",
"StopDuration": 10,
"DepartureSpeed": "Hi"
}
]
}
}
Merged postI'm going to work on the data file myself, adding in the positions myself. Perhaps I may be able to fix this.