Transport Fever

Transport Fever

Post Mod BETA von nown
mairondil 26 Jan, 2018 @ 7:15pm
So here's how I fixed this thing
***Mail Add-on for Cargo looks like it just updated to fix this problem***

I was tootling around my mods tonight and found this in mod.lua for this mod, lines 113-114...
table.insert(game.config.cargotypes, { id = "MAIL", name = _("mail"), weight = 600 } ) table.insert(game.config.cargotypes, { id = "UNSORTED_MAIL", name = _("unsorted_mail"), weight = 600 } )

2 different cargo types, right? Let's check Russian Mail Transport Pack and Mail Add-on for Cargo which are the only 2 mods I've seen that add Mail to vehicles

First Russian Mail Transport Pack. From C:\Program Files (x86)\Steam\steamapps\workshop\content\446800\1165795515\res\models\model\vehicle\truck\post_carriage.mdl line 117
capacities = { { type = "MAIL", capacity = 24 } },

Just MAIL

Now Mail Add-on for Cargo. From C:\Program Files (x86)\Steam\steamapps\workshop\content\446800\1203309345\mod.lua line 10-16
addonCargoType = { order = 2, type = "string", default = "MAIL", name = _("name_addonCargoType"), description = _("desc_addonCargoType"), },

Just MAIL again.
Perhaps these 2 mods needs to be updated to match with Post mod BETA? So here's what I did:

  1. In C:\Program Files (x86)\Steam\steamapps\workshop\content\446800\1165795515\res\models\model\vehicle\truck\post_carriage.mdl I changed line 117 to:
    capacities = { { type = "MAIL", capacity = 24 }, { type = "UNSORTED_MAIL", capacity = 24 } },
  2. In C:\Program Files (x86)\Steam\steamapps\workshop\content\446800\1203309345\mod.lua, I changed line 16 to:
    }, addonCargoType = { order = 3, type = "string", default = "UNSORTED_MAIL", name = _("name_addonCargoType"), description = _("desc_addonCargoType"), },
    [/olist]

    Yes, I replaced 1 line with multiple lines. I didn't overwrite the other lines of code, just those lines. I loaded up a new game and testes it out and I can finally get the mail to work.

Last edited by mairondil; 26 Jan, 2018 @ 7:46pm
< >
Showing 1-1 of 1 comments
mairondil 26 Jan, 2018 @ 7:18pm 
And it looks like the author of Mail Add-on for Cargo updated his mod to do exactly this AS I WAS TYPING THIS OUT!

So anyway. I haven't checked to see if my fix for the Russian Mail Transport Pack and the new as of a few minutes ago Mail Add-on for Cargo works with the most recent New Industry yet. I'll keep you updated
< >
Showing 1-1 of 1 comments
Per page: 1530 50