Transport Fever 2

Transport Fever 2

Town Building Filter (Era) / Mixed Buildings
54 Comments
HgLampe Aug 14 @ 1:20am 
oh I just opened it by a careless mistake...and found some codes with similar functions in it, but it didnt have any impact on the function after the change, the mod running well
VacuumTube  [author] Aug 11 @ 4:44am 
It's not dead, it is finally stable, since there wont be game updates. https://www.transportfever.net/filebase/entry/4806-commonapi2/
Why would you change the mod.lua?
HgLampe Aug 8 @ 1:42am 
seems the CommonAPI2 is dead, at least for me
Excuse me,there is another 'mod.lua' file in the folder,should I change it the same way?
upcimii Oct 7, 2024 @ 12:39pm 
thanks
VacuumTube  [author] Oct 6, 2024 @ 1:07am 
locate the settings.lua file in the folder of this mod and change it manually
upcimii Oct 5, 2024 @ 10:32am 
like to switch to A and B era
upcimii Oct 5, 2024 @ 9:54am 
Hey, is there any way to do this without commonapi?
VacuumTube  [author] Mar 13, 2023 @ 9:22am 
There is a working version on the website with manual install. I know this is not the most convenient way. However you can still edit in the settings.lua yourself or play with the default setting.
I am not sure if this mod will get an update - I gave up playing with the insane automatic town development. Btw: contributions welcome at any time.
macluk Mar 12, 2023 @ 3:55pm 
I don't find it working at the moment... and referring back to CommonAPI2 doesn't help as that one doesn't work either.
VacuumTube  [author] Mar 12, 2023 @ 3:08pm 
Is anything not working?
810-venca Mar 12, 2023 @ 6:02am 
Please update the mod to a newer version of the game. Thank you
VacuumTube  [author] Feb 20, 2023 @ 12:16pm 
nur die settings.lua ändern. Keine anderen Dateien. Andere Mods aktiv die irgendwas mit Stadtentwicklung machen? Oder es könnten Hochhäuser einer Mod sein.
paul.wesemann Feb 20, 2023 @ 3:00am 
meine mod.lua bei der Townbuilding Ära. bei B u. C auf false gesetzt. Auch in der Settings.lua Ära B und C auf false gesetzt. Trotzdem baut die KI immer wieder Hochhäuser aus Ära B in meinen Städten, auch wenn ich sie abreisse. Auch in der Townbuilding Level alles auf false gesetzt. Ich möchte gern nur in der Ära A spielen. Habe die Zeit bei 1918 angehalten. Die Common.API geht nicht, da ich auf meinem IMac spiele. Kann mir jemand helfen. ??
me0w Jun 25, 2022 @ 4:16am 
wie stellt man das ein? bekomme das nicht hin :/
VacuumTube  [author] May 25, 2022 @ 2:44pm 
From a user that is the convenient view. But dont forget the modder side, where every mod is a lot of work. Historically, at the release of this mod TPF2 did not even have official mod settings. We had to rely on CommonAPI which had/has huge additional tools to the base game but because of its invasive behavior it has to be updated every game update. Due to bad communication from the developers this caused many problems, so he disabled it for steam. Anyway, this mod works fine alone, with the depicted default settings.
cygnusx1 May 25, 2022 @ 12:01pm 
I did, but as it turns out that is the link for the "dummy" mod. I had to download the full version directly. And, after a lot of aggravation finally have it working.

Apologies for the frustrated grumbling, but unless it's my computer causing the problem, I just expect to apply a mod and have it work on its own without a bunch of tweaking from me.
VacuumTube  [author] May 25, 2022 @ 6:05am 
I think "BuildingsEraA = false," is pretty self-explaining. The Mod Settings Guide is general - the content of settings file is just an example. Anyway, in the comments of the guide you find the link to the manual CommonAPI download.
cygnusx1 May 24, 2022 @ 2:42pm 
I am now trying to edit the settings.lua file as you suggest as a last resort, and it does not contain the code as you described...

Here is the contents of the settings.lua file:

return {
BuildingsEraA = false,
BuildingsEraB = true,
BuildingsEraC = true,

}

Where are these lines:

return {
capacityFactor = 2,
townDevelopInterval = 60,
logging = true,
}

At this point, when a mod causes this much aggravation, it almost seems not worth it!!!
cygnusx1 May 24, 2022 @ 2:20pm 
VacuumeTube, I'm trying to use you 2 building filter mods with the API2 dummy mod that you suggested and recommended. I subscribed to the mod and it doesn't work... I just spent 1 1/2 hours researching and changing settings files in the API2 mod and it is just a dead mod.

Now I realize that you are not responsible for someone else's mod being broken and not working, but you recommend it.

Have you heard of any new fixes to make this mod work for your mods. For now, I guess I'll just fiddle with editing the .lua file in your mod... which is very dissapointing to say the least!
VacuumTube  [author] Apr 10, 2022 @ 2:26am 
You need town development on and the town needs higher numbers, either base values (sandbox editor) or the factors in the town window
Papupi Apr 9, 2022 @ 11:53pm 
hey sorry to bother you but i have a question, is there a way to make the town builder lay down more higher level buildings instead of level 1s? im running both town filter mods(era+level) and the no ai upgrade mod
VacuumTube  [author] Jul 26, 2021 @ 8:48am 
See Mod Settings Guide
OkapiJohn Jul 23, 2021 @ 12:40am 
I need some help! I want to play with only buildings from era A and I don't know how to activate this mod. CommonAPI2 seems to do not be working so I don't know what to do. Thanks
elgreco Jun 13, 2021 @ 3:13pm 
Where do you find this mod? I loaded it onto a saved game but do not see it anywhere.
VacuumTube  [author] Apr 8, 2021 @ 5:36am 
It's not compatible with that mod, it doesn't make any sense to activate both.
With this mod, you chose what is available, independent of game year.
Aksorn Apr 7, 2021 @ 3:31pm 
Finally I found the reason of the problem: this building era filter will not apply if the mod "Town buildings: no end year" is also enabled (whatever the mod order)
Benouyt Feb 22, 2021 @ 1:32am 
Thank you :o)
VacuumTube  [author] Feb 21, 2021 @ 11:35am 
yes like i said
Benouyt Feb 21, 2021 @ 9:33am 
Thanks for your answer, but so it mean that for example, if i start game in 1850 with your default mod setting there will be only era b + c building who spawn ?
VacuumTube  [author] Feb 21, 2021 @ 3:01am 
With the mod, buildings are "timeless". You decide which buildings are available
Benouyt Feb 21, 2021 @ 2:23am 
I don't understand this : "The default setting is Era B+C, so that modern and conventional buildings appear together."

It mean that if we start in 1850 we won't have stone buildings ?
A Guy Called Pi Jan 17, 2021 @ 11:12pm 
Changed everything to default values. Finally seems to have done the trick. Thanks for letting me know what was going wrong
VacuumTube  [author] Jan 16, 2021 @ 2:49pm 
You can also set 1990 in my code to 2020 if you changed them all to that
A Guy Called Pi Jan 16, 2021 @ 10:35am 
Could not find any reference to that in the scripts but I can always try changing them back.
VacuumTube  [author] Jan 16, 2021 @ 12:39am 
Did you really change the availibility of the files? Because that's how the mod determines the era und if it is filtered.
A Guy Called Pi Jan 15, 2021 @ 10:38pm 
Still having this problem, only now the level filter is broken as well. Ugly skyscrapers everywhere...
VacuumTube  [author] Sep 30, 2020 @ 1:24pm 
wait you changed the dates of all buildings?
A Guy Called Pi Sep 30, 2020 @ 12:30pm 
That's why I'm confused - I can't think of any possible conflicts. The rest, I've already checked. Era C buildings spawn after 1990 but I can't find any reference to that date in the files I've looked at, as I've changed all values to 2020.
VacuumTube  [author] Sep 30, 2020 @ 11:24am 
Any mods active that change the availability of town buildings? I don't know of any conflicts yet
A Guy Called Pi Sep 30, 2020 @ 3:53am 
I only happen te use the vanilla buildings....I've triple checked the mod settings. I suspect mod loading order is the problem due to some mod conflict.
VacuumTube  [author] Sep 30, 2020 @ 1:20am 
Sure those are vanilla buildings?
Eventually start a new discussion and post a screenshot
A Guy Called Pi Sep 29, 2020 @ 3:43pm 
Also having issues with this, the game keeps spawning Era C buildings after 1990 though this is explicitly disabled.
VacuumTube  [author] Sep 22, 2020 @ 1:25am 
any town building mods installed?
Aksorn Sep 20, 2020 @ 5:11am 
I have the following configuration in the file settings.lua
BuildingsEraA = true,
BuildingsEraB = false,
BuildingsEraC = false,
However, the AI started as usual to replace all old buildings with "Era B" ones around 1930.
I'm not sure why this mod does not work for me
stevesteel Sep 10, 2020 @ 7:50am 
Ich kann es nicht deaktivieren. Kann jemand helfen?
mongolteiko Jul 12, 2020 @ 5:09am 
Hi VacuumTube. Are you able to put the filters [of both mods] into the Enabled Mods description [now ingame] rather than use Common API2 as this mod crashes my game so have gotten rid of it. Thanks.
hannebambel002 Jun 20, 2020 @ 4:26am 
@VacuumTube: Bei mir funktioniert es jetzt auch mit bereits existierenden Städten wieder.
VacuumTube  [author] Jun 19, 2020 @ 3:59am 
Mit Build 29331 sollte es wieder gehen
hannebambel002 Jun 11, 2020 @ 12:29pm 
Seit dem heutigen Update auf die Version 29189 funktioniert offenbar der Filter nicht mehr. Die Städte bauen jetzt auch wieder Era C, obwohl ich nur Era B freigegeben habe. Auch der Level-Mod scheint "unwirksam" zu sein.
Er.nie Apr 17, 2020 @ 8:14am 
Vielen dank für den Mod. Da ich so um 1930 spiele aber gern die alten Gebäude behalte ist das super für mich.