Transport Fever 2

Transport Fever 2

Yeol's Senseless Industries
GordonDry 13. mar. 2021 kl. 14:35
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.
Sidst redigeret af GordonDry; 14. mar. 2021 kl. 7:24
< >
Viser 1-15 af 15 kommentarer
Yeol  [udvikler] 13. mar. 2021 kl. 15:43 
I will check it.
GordonDry 13. mar. 2021 kl. 18:22 
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://psteamcommunity.yuanyoumao.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  [udvikler] 14. mar. 2021 kl. 0:07 
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 kl. 6:23 
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 kl. 6:26 
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 kl. 7:24 
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.
Sidst redigeret af GordonDry; 14. mar. 2021 kl. 8:03
GordonDry 14. mar. 2021 kl. 7:42 
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 kl. 7:58 
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.
Sidst redigeret af GordonDry; 14. mar. 2021 kl. 8:03
Yeol  [udvikler] 15. mar. 2021 kl. 2:24 
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 kl. 5:18 
In short words:
Custom meshes for steel, with random appearance on the same kind of wagon.
GordonDry 21. mar. 2021 kl. 6:06 
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 kl. 6:31 
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 },
Sidst redigeret af GordonDry; 21. mar. 2021 kl. 6:31
GordonDry 4. juni 2021 kl. 10:53 
crop_farm.con line 425:
rule = { input = { { } }, output = { GRAIN=3,FODDER=1 }, capacity = 100 },
Yeol  [udvikler] 4. juni 2021 kl. 11:32 
Your suggestion of farm output modifications seemed indeed lost. I've integrated them now with the latest patch of this evening.
GordonDry 4. juni 2021 kl. 14:02 
Thank you.
< >
Viser 1-15 af 15 kommentarer
Per side: 1530 50