Transport Fever 2

Transport Fever 2

Better Finance Overview
GordonDry 2 Jun, 2023 @ 6:09am
Could you implement the taxes from "Progressive Income Tax" mod?
As that mod just uses the "other" category, your mod could perhaps dig into that mod's code - if possible - and recognize the tax amount and put it into its own category.
You could ask the dev of that mod if a global variable could be used to make it easier.
Last edited by GordonDry; 2 Jun, 2023 @ 6:09am
< >
Showing 1-11 of 11 comments
GordonDry 2 Jun, 2023 @ 6:13am 
progressive_income_tax_1\res\config\game_script\income_tax.lua
Line 35:
if tax.total > 0 then journal_util.bookEntry(-tax.total, Type.OTHER, Carrier.OTHER, Construction.OTHER, Maintenance.OTHER) end
bezousek  [developer] 2 Jun, 2023 @ 11:48pm 
I will check this mod and see what I can do.

From the code you shared it looks like its the same category as the landscaping, so it might be tricky.

Alternatively I can implement income tax on my own, but let me first study their mod :-)
GordonDry 3 Jun, 2023 @ 4:01am 
Yesterday I tried your mod but it gave me a weird crash. As I was working on other stuff as well I scrapped it for the time being - but imho it does not like to coexist with one of those or all those other mods, namely:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2802501762
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2805165537

perhaps even those could be a trigger for the crash, but not likely:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2909025414
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1977538184

As I got a heavily modded game I prefer that you try to reproduce with those kind of mods, as a quick view into the stdout.txt - which does not exist anymore - did not show a hint what could be the triggger, just a based c++ error. No .lua script file was mentioned at all.
bezousek  [developer] 5 Jun, 2023 @ 6:50am 
Interesting. I will check the mods.
bezousek  [developer] 5 Jun, 2023 @ 7:42am 
Hm I tried all the mentioned mods with my save game where I have additional cca 200mods and it works fine.
bezousek  [developer] 5 Jun, 2023 @ 2:36pm 
I redesigned the code to avoid global variables, can you please try it again. It should not be in conflict anymore.
GordonDry 5 Jun, 2023 @ 3:15pm 
I will test tomorrow, I just ended my session.
GordonDry 6 Jun, 2023 @ 8:40am 
Loading my modded game with this mod at the last position I get a fatal error.
urban_games/train_fever/src/Game/Game.cpp:324: void __cdecl CGame::StartGameSim(void): Assertion `m_data->gameStates[1]->ScriptSave() == m_data->gameStates[0]->ScriptSave()' failed. Exception during init GC Called Destroying failback ui done End of redirect Buffer to StdOutBuffer Restoring as we are still responsible for stdout End of redirect Buffer to StdOutBuffer: done Exception type: Fatal error Details: Assertion Failure: Assertion `m_data->gameStates[1]->ScriptSave() == m_data->gameStates[0]->ScriptSave()' failed. Minidump: C:/Users/Admin/AppData/Roaming/Transport Fever 2/crash_dump/62457368-2397-4a72-9b67-3225bb7f5ce0.dmp In file: urban_games/train_fever/src/Game/Game.cpp:324 In function: void __cdecl CGame::StartGameSim(void) __CRASHDB_CRASH__ struct AssertException: urban_games/train_fever/src/Game/Game.cpp:324: void __cdecl CGame::StartGameSim(void): Assertion `m_data->gameStates[1]->ScriptSave() == m_data->gameStates[0]->ScriptSave()' failed. Exception type: Fatal error Details: Assertion Failure: Assertion `m_data->gameStates[1]->ScriptSave() == m_data->gameStates[0]->ScriptSave()' failed. Minidump: C:/Users/Admin/AppData/Roaming/Transport Fever 2/crash_dump/62457368-2397-4a72-9b67-3225bb7f5ce0.dmp In file: urban_games/train_fever/src/Game/Game.cpp:324 In function: void __cdecl CGame::StartGameSim(void) Goodbye. ======================================== Shutdown at Tue Jun 6 17:34:54 2023 ========================================
The complete stdout.txt:
https://www.dropbox.com/s/cmqc4fkr7x7r8aq/crash%20dump%2023060601.7z?dl=1
bezousek  [developer] 7 Jun, 2023 @ 7:58am 
Can you share a save game?

If you create new game just with my mod, does it work?

Thanks for cooperation.
bezousek  [developer] 7 Jun, 2023 @ 9:55am 
I updated the UI ids, might help as well
GordonDry 12 Jul, 2023 @ 10:25am 
So, the v1.3 fixed that issue for me as well, but I have to remove the mod whatsoever as the numbers don't make any sense when the time progress is halted for a long time.
I played over 100 hours on a map with the same date. Yes, I did. And the information derived from this mod doesn't help me in any way.
Last edited by GordonDry; 7 Apr, 2024 @ 7:03am
< >
Showing 1-11 of 11 comments
Per page: 1530 50