v0.4.3 fixed load/unload bugs. empty cars must be staged prior to loading. rolling stock is now conserved.

This commit is contained in:
Jesse
2026-08-14 08:33:32 -04:00
parent 393a669418
commit d1314066bd
13 changed files with 2258 additions and 3822 deletions
+309 -333
View File
@@ -1,7 +1,7 @@
{
"seed": 1022551,
"title": "27 Revenue · seed 1022551",
"note": "27 Revenue over 5 Days · 2 train(s) on the timetable · 21 cards down · no collisions · played by developer",
"note": "27 Revenue over 5 Days · 2 train(s) on the timetable · 19 cards down · no collisions · played by developer",
"history": [
{
"type": "localOps.choose",
@@ -864,12 +864,7 @@
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1026,12 +1021,7 @@
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1147,6 +1137,205 @@
},
"index": 0
},
{
"type": "laborer.beginUnload",
"at": {
"row": -1,
"col": -2
},
"carIndex": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": -1,
"col": -2
},
"index": 0
},
{
"type": "porter.detrain",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "porter.board",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "laborer.startLoad",
"at": {
"row": -1,
"col": -2
}
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": 0,
"col": 0
},
"index": 0
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": 0,
"col": 0
},
"carType": "coach"
},
{
"type": "laborer.beginUnload",
"at": {
"row": -1,
"col": -2
},
"carIndex": 0
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": -1,
"col": -2
},
"index": 0
},
{
"type": "laborer.startLoad",
"at": {
@@ -1184,216 +1373,6 @@
{
"type": "draw.end"
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromHomeOffice"
},
{
"type": "card.discard",
"cardId": "c48",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "porter.detrain",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "porter.board",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "laborer.beginUnload",
"at": {
"row": -1,
"col": -2
},
"carIndex": 0
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": 0,
"col": 0
},
"index": 0
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": -1,
"col": -2
},
"index": 0
},
{
"type": "laborer.startLoad",
"at": {
"row": -1,
"col": -2
}
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": 0,
"col": 0
},
"carType": "coach"
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 1
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c61",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "laborer.beginUnload",
"at": {
"row": -1,
"col": -2
},
"carIndex": 0
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c163",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "newTrain.placeCar",
"trayId": "tray2",
@@ -1432,22 +1411,25 @@
"row": -1,
"col": -2
},
"box": 0
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
"option": "draw"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": -1,
"col": -2
},
"index": 0
"type": "draw.fromHomeOffice"
},
{
"type": "card.discard",
"cardId": "c48",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "newTrain.placeCar",
@@ -1468,6 +1450,54 @@
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c61",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c163",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "switch"
},
{
"type": "switch.end"
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromHomeOffice"
},
@@ -1503,16 +1533,6 @@
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "switch"
},
{
"type": "switch.end"
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
@@ -1528,6 +1548,42 @@
{
"type": "draw.end"
},
{
"type": "porter.detrain",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "porter.board",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "porter.detrain",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": 0,
"col": 0
},
"index": 0
},
{
"type": "loadUnload.end"
},
@@ -1572,42 +1628,6 @@
{
"type": "draw.end"
},
{
"type": "porter.detrain",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "porter.board",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "porter.detrain",
"at": {
"row": 0,
"col": 0
}
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "freightAgent"
},
{
"type": "freightAgent.clearInbound",
"at": {
"row": 0,
"col": 0
},
"index": 0
},
{
"type": "loadUnload.end"
},
@@ -1648,44 +1668,6 @@
{
"type": "draw.end"
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 1
},
{
"type": "card.discard",
"cardId": "c61",
"toSlot": 1
},
{
"type": "draw.end"
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 1
},
{
"type": "card.discard",
"cardId": "c150",
"toSlot": 1
},
{
"type": "draw.end"
},
{
"type": "newTrain.placeCar",
"trayId": "tray3",
@@ -1718,16 +1700,13 @@
"option": "draw"
},
{
"type": "draw.fromHomeOffice"
"type": "draw.fromDepartment",
"slot": 1
},
{
"type": "card.play",
"cardId": "c205",
"placement": {
"row": 0,
"col": -5
},
"variant": 0
"type": "card.discard",
"cardId": "c61",
"toSlot": 1
},
{
"type": "draw.end"
@@ -1752,16 +1731,13 @@
"option": "draw"
},
{
"type": "draw.fromHomeOffice"
"type": "draw.fromDepartment",
"slot": 1
},
{
"type": "card.play",
"cardId": "c126",
"placement": {
"row": 0,
"col": -6
},
"variant": 0
"type": "card.discard",
"cardId": "c150",
"toSlot": 1
},
{
"type": "draw.end"
@@ -1778,10 +1754,10 @@
},
{
"type": "card.play",
"cardId": "c136",
"cardId": "c205",
"placement": {
"row": 0,
"col": 6
"col": -5
},
"variant": 0
},
File diff suppressed because it is too large Load Diff
+126 -216
View File
@@ -524,12 +524,7 @@
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -544,22 +539,10 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromHomeOffice"
},
{
"type": "card.play",
"cardId": "c76",
"placement": {
"row": 0,
"col": -3
},
"variant": 0
},
{
"type": "draw.end"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -574,22 +557,10 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromHomeOffice"
},
{
"type": "card.play",
"cardId": "c181",
"placement": {
"row": 0,
"col": -2
},
"variant": 0
},
{
"type": "draw.end"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -610,9 +581,13 @@
"type": "draw.fromHomeOffice"
},
{
"type": "card.discard",
"cardId": "c41",
"toSlot": 2
"type": "card.play",
"cardId": "c76",
"placement": {
"row": 0,
"col": -3
},
"variant": 0
},
{
"type": "draw.end"
@@ -687,19 +662,15 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c36",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
},
{
"type": "laborer.advanceLoad",
@@ -717,13 +688,16 @@
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
"type": "draw.fromHomeOffice"
},
{
"type": "card.discard",
"cardId": "c40",
"toSlot": 2
"type": "card.play",
"cardId": "c181",
"placement": {
"row": 0,
"col": -2
},
"variant": 0
},
{
"type": "draw.end"
@@ -778,12 +752,7 @@
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
"type": "freightAgent.end"
},
{
"type": "porter.detrain",
@@ -879,12 +848,11 @@
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
"type": "draw.fromHomeOffice"
},
{
"type": "card.discard",
"cardId": "c53",
"cardId": "c41",
"toSlot": 2
},
{
@@ -903,19 +871,15 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c41",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
},
{
"type": "laborer.advanceLoad",
@@ -1041,12 +1005,7 @@
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1061,19 +1020,10 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c40",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1088,19 +1038,10 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c53",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.end"
},
{
"type": "newTrain.placeCar",
@@ -1135,7 +1076,7 @@
},
{
"type": "card.discard",
"cardId": "c41",
"cardId": "c40",
"toSlot": 2
},
{
@@ -1154,19 +1095,15 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c36",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
},
{
"type": "porter.board",
@@ -1203,7 +1140,7 @@
},
{
"type": "card.discard",
"cardId": "c40",
"cardId": "c53",
"toSlot": 2
},
{
@@ -1248,7 +1185,7 @@
},
{
"type": "card.discard",
"cardId": "c53",
"cardId": "c41",
"toSlot": 2
},
{
@@ -1292,12 +1229,7 @@
"option": "freightAgent"
},
{
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1312,19 +1244,10 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c41",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1339,19 +1262,10 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c36",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.end"
},
{
"type": "laborer.advanceLoad",
@@ -1374,7 +1288,7 @@
},
{
"type": "card.discard",
"cardId": "c40",
"cardId": "c36",
"toSlot": 2
},
{
@@ -1405,19 +1319,15 @@
},
{
"type": "localOps.choose",
"option": "draw"
"option": "freightAgent"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c53",
"toSlot": 2
},
{
"type": "draw.end"
"type": "freightAgent.stockOutbound",
"at": {
"row": -1,
"col": -2
},
"carType": "boxcar"
},
{
"type": "laborer.advanceLoad",
@@ -1440,7 +1350,7 @@
},
{
"type": "card.discard",
"cardId": "c41",
"cardId": "c40",
"toSlot": 2
},
{
@@ -1467,7 +1377,7 @@
},
{
"type": "card.discard",
"cardId": "c36",
"cardId": "c53",
"toSlot": 2
},
{
@@ -1528,7 +1438,7 @@
},
{
"type": "card.discard",
"cardId": "c40",
"cardId": "c41",
"toSlot": 2
},
{
@@ -1555,7 +1465,7 @@
},
{
"type": "card.discard",
"cardId": "c53",
"cardId": "c36",
"toSlot": 2
},
{
@@ -1598,6 +1508,60 @@
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c40",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c53",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "laborer.beginUnload",
"at": {
"row": -1,
"col": -2
},
"carIndex": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c41",
@@ -1633,60 +1597,6 @@
{
"type": "draw.end"
},
{
"type": "laborer.beginUnload",
"at": {
"row": -1,
"col": -2
},
"carIndex": 0
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c40",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "laborer.advanceLoad",
"at": {
"row": -1,
"col": -2
},
"box": 2
},
{
"type": "loadUnload.end"
},
{
"type": "localOps.choose",
"option": "draw"
},
{
"type": "draw.fromDepartment",
"slot": 2
},
{
"type": "card.discard",
"cardId": "c53",
"toSlot": 2
},
{
"type": "draw.end"
},
{
"type": "laborer.advanceLoad",
"at": {
@@ -1708,7 +1618,7 @@
},
{
"type": "card.discard",
"cardId": "c41",
"cardId": "c40",
"toSlot": 2
},
{
@@ -1762,7 +1672,7 @@
},
{
"type": "card.discard",
"cardId": "c36",
"cardId": "c53",
"toSlot": 2
},
{
@@ -1781,7 +1691,7 @@
},
{
"type": "card.discard",
"cardId": "c40",
"cardId": "c41",
"toSlot": 2
},
{
File diff suppressed because it is too large Load Diff