Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I'll write down the points that I didn't quite understand at first, so that others can take it as reference.
・Bus lane: If there is an alternative road, AI vehicles will not use it. In other words, it will be exclusive to your trucks and buses.
・ There are two places where locking is mentioned: Locking prevents the AI from automatically creating roads that connect to the locked road.
・On roads with multiple lanes in each direction: trams only run on the outermost lane.
・This mod exists to connect one road to many other roads.
・I tried to write it simply. It might be wrong.
Finally, I'd like to thank the creator for the MOD.
La stazione dei camion la copi dal gioco (è un file *.mdl), la apri con VS Code, togli il contenuto di "lods", salvala come parte di un nuovo mod. Per far prima copia da qualche altro mod perché devi rispettare certe regole, tipo avere una directory "res" e un file "mod.lua". Poi salva il tutto dentro la directory "staging_area".
Anyway, here is another question not related to your mod (i hope you can respond): Is there a way to make a truck station cargo completely invisible for customization? I want to create an industry with an invisible cargo station inside.
setPriorityModifier = function (fileName, data)
if data and data.name then -- THIS IS WHAT I ADDED
for prefix, priority in pairs(streetPriorityLookupTable) do
if string.find(data.name , prefix) == 1 then
data.priority = priority
end
end
end -- AND THIS OF COURSE
return data
end
Try fixing it (instead of deactivating) and see if your game starts.
Are you using https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2563512381 ?
Can you reproduce your error in a test game with only this mod installed?
Lua exception
Exception type: Lua exception
This error is usually caused by modding. Some game resources contain incorrect data.
Details:
Error message: error: F:/SteamLibrary/steamapps/workshop/content/1066780/2563512381/mod.lua:52: bad argument #1 to 'find' (string expected, got nil)
stack traceback:
=[C](-1) :?
=[C](-1): find
@F:/SteamLibrary/steamapps/workshop/content/1066780/2563512381/mod.lua(52): v
@res/scripts/mod.lua(102): origApplyModifiers
@F:/SteamLibrary/steamapps/workshop/content/1066780/2267827829/res/scripts/eatglobal/mod.lua(163): ?
File name: F:/SteamLibrary/steamapps/workshop/content/1066780/2021038808/res/config/street/lollo_ultrathin_street.lua
Minidump: D:/STEAM/userdata/467138915/1066780/local/crash_dump/5d02357c-a794-4a3e-9296-1dbc347e76df.dmp
Mod: "Street fine tuning" (*2021038808, 1) (consider removing this mod and contacting the mod author)
And I just realized I'm blind, because there is a dedicated thread for this in Popular Discussions... Anyway, thanks again!
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3362495984
Not crashes with this mod but some weird glitches where in some places passenger busses/trams stops at bus stop but then never leave. However with his modular lorry station mod I do have crashes and had to remove that mod.
- verify the game files once again
- disconnect the PC from the internet
- move all the other mods to a temporary directory. Later, you can restore them in batches, until you have found the culprit.
- start a fresh game with this mod only
I know that something is not right, because usually it should not crash... Well, i guess I have to save my savegames and reinstall the game, while hoping that it works. Checking my game files with Steam did not help. Let's see what the support says
stack traceback:
=[C](-1): get
D:/Steam/steamapps/workshop/content/1066780/2021038808/res/models/material/street/new_medium_bus (2021_03_22 16_37_21 UTC).mtl(3): ?
Now, the required files will be there and you will be able to see them with Windows Explorer at /steamapps/workshop/content/1066780/2021038808/res/config/street (or something like that).
If the game fails anyway, there is bound to be some other mod that tampers with them. To fix this, disable your other street mods and the common api. This might cause more crashes if you are unlucky.
I am wary of that website and street mods in general. Hopefully, you keep an orderly collection of savegames and you can revert to a previous one with fewer mods installed.
Error message: 1 resource file(s) are missing:
res/config/street/lollo_large_4_lane_4_tram_tracks_country_road.lua
Minidump: D:/Steam/userdata/243878057/1066780/local/crash_dump/3d821c0a-726b-4dd2-a689-d2dfb4866aea.dmp
In file: urban_games/train_fever/src/Game/GameStateLegacyHandler.cpp:2051
In function: void __cdecl GameStateLegacyHandler::MakeCheckFn::<lambda_bf736033d0919dea2f66d7b605f00f46>::operator ()(const class ecs::Engine *) const
res/config/street/lollo_large_4_lane_4_tram_tracks_country_road.lua
Exception type: Resource mismatch error
This error is usually caused by modding. In some cases, existing save games cannot be loaded with a modified game version, since resources have been deleted or modified.
Requires CommonAPI2 [www.transportfever.net] along with NewLineEvents enabled in the API menu.
res/config/street/standard/parkslots_side_45.lua
res/config/street/standard/parkslots_side_45_90.lua
res/config/street/standard/parkslots_side_90
(find it with Windows Explorer) and see if the crash persists.
In file: urban_games/train_fever/src/Game/GameStateLegacyHandler.cpp:2051
In function: void __cdecl GameStateLegacyHandler::MakeCheckFn::<lambda_bf736033d0919dea2f66d7b605f00f46>::operator ()(const class ecs::Engine *) const
__CRASHDB_CRASH__ struct ResourceMismatchException: urban_games/train_fluaever/src/Game/GameStateLegacyHandler.cpp:2051: void __cdecl GameStateLegacyHandler::MakeCheckFn::<lambda_bf736033d0919dea2f66d7b605f00f46>::operator ()(const class ecs::Engine *) const: 4 resource file(s) are missing:
res/config/street/lollo_large_4_lane_4_tram_tracks_country_road.lua
res/config/street/standard/parkslots_side_45.lua
res/config/street/standard/parkslots_side_45_90.lua
res/config/street/standard/parkslots_side_90.
Error message: 4 resource file(s) are missing:
res/config/street/lollo_large_4_lane_4_tram_tracks_country_road.lua
res/config/street/standard/parkslots_side_45.lua
res/config/street/standard/parkslots_side_45_90.lua
res/config/street/standard/parkslots_side_90.lua
Assertion Failure: Assertion `AreIdsUnique(legacyLoad)' failed.
Minidump: D:/Steam/userdata/243878057/1066780/local/crash_dump/dc0d3e10-822c-4081-8a5a-01a442f5c6b5.dmp
In file: urban_games/train_fever/src/Game/transport/CargoTypeRep.cpp:74
In function: __cdecl transport::CargoTypeRep::CargoTypeRep(const class FileSystem *,const class lua::Loader *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)
Use it to open the folder where you keep your mods (right click the folder + open with Visual Studio Code).
Now find "api.res" in all files (Ctrl + Shift + F).
This will probably find a handful of mods, so you can narrow it down.
/Steam/userdata/243878057/1066780/local/crash_dump/6f4b5347-8ce0-4640-829f-234565536a56.dmp In file: urban_games/train_fever/src/Game/transport/CargoTypeRep.cpp:74
In function: __cdecl transport::CargoTypeRep::CargoTypeRep(const class FileSystem *,const class lua::Loader *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >) MinidumpCallback: dumpPath "D:/Steam/userdata/243878057/1066780/local/crash_dump/", minidumpId "5cb2e33a-015b-485a-b7e0-793142958b62"
stack traceback:
=[C](-1): get
*2021038808_1::res/models/material/street/new_medium_bus (2021_03_22 16_37_21 UTC).mtl(3): ?
Exception type: Lua exception
This error is usually caused by modding. Some game resources contain incorrect data.
Details:
Error message: error: [string "D:/Steam/steamapps/workshop/content/1066780/2021038808/res/models/material/street/new_medium_bus (2021_03_22 16_37_21 UTC).mtl"]:3: attempt to call field 'get' (a nil value) stack traceback:
=[C](-1): get D:/Steam/steamapps/workshop/content/1066780/2021038808/res/models/material/street/new_medium_bus (2021_03_22 16_37_21 UTC).mtl(3): ?
ModelRep: 872641 ms
Exception during init
Exception type: Lua exception
This error is usually caused by modding. Some game resources contain incorrect data.
Details:
Error message: error: [string "D:/Steam/steamapps/workshop/content/1066780/2021038808/res/models/material/street/new_medium_bus (2021_03_22 16_37_21 UTC).mtl"]:3: attempt to call field 'get' (a nil value)
stack traceback:
=[C](-1): get
D:/Steam/steamapps/workshop/content/1066780/2021038808/res/models/material/street/new_medium_bus (2021_03_22 16_37_21 UTC).mtl(3): ?
Minidump: D:/Steam/userdata/243878057/1066780/local/crash_dump/21434a0e-ea64-4101-977e-a735e02aeaba.dmp
In file: urban_games/train_fever/src/Lib/lua/State.cpp:646
In function: void __cdecl lua::State::Call(int,int)
If the problem persists, write a detailed error description.
Error message: error: [string "res/models/material/backup/street/new_medium_bus.mtl"]:3: attempt to call field 'get' (a nil value)
stack traceback:
=[C](-1): get
res/models/material/backup/street/new_medium_bus.mtl(3): ?