Transport Fever 2

Transport Fever 2

Yeol's Senseless Industries
GordonDry 13 Mar, 2021 @ 2:35pm
Solved: Food factory suddenly stopped demanding "cans" - so the whole fish chain broke
Only bauxite was still delivered, but no aluminium was delivered to the fish canning factory.
Some crops were delivered to the fishery and some fish to the canning factory, though.
Last edited by GordonDry; 14 Mar, 2021 @ 7:24am
< >
Showing 1-15 of 15 comments
Yeol  [developer] 13 Mar, 2021 @ 3:43pm 
I will check it.
GordonDry 13 Mar, 2021 @ 6:22pm 
Oopsie - it's not your fault. It's not even mine.
For some reason these waggons are not patched and can just carry logs, planks and steel:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2246013758
The small ones are patched, the large ones are not.
Weird is, that all waggons are in the subfolder "train".
Not standard-conform I would say.
...
Well, a lot of "these british vehicle packs" miss stuff, like boundingBoxes etc.
Yeol  [developer] 14 Mar, 2021 @ 12:07am 
I've had a quick look at the code, but it goes far beyond what I am able to. I do not see a way to patch my Senseless to make these waggons work. I'm sorry. They are beautiful though.
GordonDry 14 Mar, 2021 @ 6:23am 
I did a quick look to your code, it checks for foundBMCapacity which patches aluminium (and others) as a cargo to a vehicle when it can carry construction materials.
I guess this is the culprit.
If it would check for logs the patch would work.

Was it intended to check for conmats only?
GordonDry 14 Mar, 2021 @ 6:26am 
I suggest to change line 213 in senselessCB.lua to

elseif (string.upper(data.metadata.transportVehicle.compartments[j][k].type) == "CONSTRUCTION_MATERIALS") or (string.upper(data.metadata.transportVehicle.compartments[j][k].type) == "LOGS") then

testing...
GordonDry 14 Mar, 2021 @ 7:24am 
That works.
But it doesn't show the cargo mesh... (of aluminium in this case)
This is because those wagons define own cargo meshes for steel (and others), even with different types of shapes on different wagons of the same type.
Last edited by GordonDry; 14 Mar, 2021 @ 8:03am
GordonDry 14 Mar, 2021 @ 7:42am 
Addition:
line 336
elseif (string.upper(data.metadata.transportVehicle.compartmentsList[h].loadConfigs.cargoEntries[j].type) == "CONSTRUCTION_MATERIALS") or (string.upper(data.metadata.transportVehicle.compartmentsList[h].loadConfigs.cargoEntries[j].type) == "LOGS") then
GordonDry 14 Mar, 2021 @ 7:58am 
Darn, this is too much of a hassle:
- either you get the cargo type, but have no mesh
- or you fiddle with those wagon files
- or you ask the dev of the wagons to even produce more of a hassle to make it compatible (his fault, that he even made it so "vanilla-strict" with those custom meshes)
- or you go back a step and just use those large bolster wagons for logs, planks and steel only

I checked those files and still don't understand why the small bolster wagons are patched, but the large are not.
They use the same logic and the custom meshes.

Edit:
I got it. The small ones carry conmats, the large ones do not.
Last edited by GordonDry; 14 Mar, 2021 @ 8:03am
Yeol  [developer] 15 Mar, 2021 @ 2:24am 
I'm sorry you have to dig in other man's code. I did not check 'LOGS', because in vanilla, flatbed cars transport CM and LOGS. No need to check both. But indeed, if modders would bring out waggons that are specialized in transporting LOGS, and not CM, then I need to add a LOG section in my code.

But that does not seem the cause of the problem, because all these British waggons seem to be able to transports also CM, or are they?

And I have to admit, that JK's code is beyond me. I don't understand what he is doing.
GordonDry 15 Mar, 2021 @ 5:18am 
In short words:
Custom meshes for steel, with random appearance on the same kind of wagon.
GordonDry 21 Mar, 2021 @ 6:06am 
I guess I stumbled upon two facts, first that I used wrong cargo wagons, but also the fact that was mentioned by @Dourbracken / Allen T. in the spreadsheet had kinda flavour in it ;)

Which of his mentioned corrections do you prefer, the "1" or the "1a"?
GordonDry 21 Mar, 2021 @ 6:31am 
I added two comments to the spreadsheet, I repeat them here for clarification:

comment 1:
I guess that was a typo and you meant "increase Crop Farm output to 3 grain from 2"

comment 2:
My suggestion for the pre 1900 farm.con, fitting to the 1a alternative:
increase grain output to 150% and decrease wool output to 50%, so I changed the line 457 in farm.con to this:
rule = { input = { { } }, output = { GRAIN=3,WOOL=1,MILK=2,LIVESTOCK=2 }, capacity = 25 },
Last edited by GordonDry; 21 Mar, 2021 @ 6:31am
GordonDry 4 Jun, 2021 @ 10:53am 
crop_farm.con line 425:
rule = { input = { { } }, output = { GRAIN=3,FODDER=1 }, capacity = 100 },
Yeol  [developer] 4 Jun, 2021 @ 11:32am 
Your suggestion of farm output modifications seemed indeed lost. I've integrated them now with the latest patch of this evening.
GordonDry 4 Jun, 2021 @ 2:02pm 
Thank you.
< >
Showing 1-15 of 15 comments
Per page: 1530 50