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
Error message: error: mods/linemanager_1/res/scripts/cartok/api_helper.lua:191: stack index 4, expected string, received sol.CmdData::SetLine
stack traceback:
=[C](-1): ?
=[C](-1): sendCommand
@mods/linemanager_1/res/scripts/cartok/api_helper.lua(191): buyVehicle
mods/linemanager_1/res/config/game_script/linemanager.lua(173): addVehicleToLine
mods/linemanager_1/res/config/game_script/linemanager.lua(236): updateLines
mods/linemanager_1/res/config/game_script/linemanager.lua(372): everyTickUpdate
mods/linemanager_1/res/config/game_script/linemanager.lua(783): ?
And I enabled the debugging and the log before crash looks like this:
complete stdout.txt and crash dumps:
https://www.dropbox.com/s/9l8rs2fjrobdb9p/log%20and%20dump%202022-06-05-2.7z?dl=1
...
Unfortunately the extra debugging does not tell me if line 38624 is the line in which I switched the vehicle type. But I think so.
The easiest way (outside of console commands) to check line info is to open the corresponding <save_game_name>.sav.lua file and search for the line_id number there - in the LineManager section you should find a lot of information. If you have time, please copy the contents for the problem-line in here.
I don't really play with any mods, except LineManager, so there's no guarantee it will work with all possible combinations. In particular mods that add combinations that don't exist in the base-game, such as cargo trams (I've never used them at least).
The problem line from .sav.lua after vehicle switch and 4 minutes before the crash:
I've not played with cargo trams myself, is it possible to continue using the same line for a different type i.e. TRAM to ROAD (truck)?
If so, then my guess is that trying to use a cached tram depot to create a new truck, which will lead to this error. I have an idea for another item I can add to address this, and similar scenarios.
It says
carrier = "TRAM",
so still believes it's still a tram.
complete stdout.txt and crash dumps:
https://www.dropbox.com/s/hb0a4gej8vd6k11/log%20and%20dump%202022-06-05-3.7z?dl=1
What's a simple mod that adds cargo trams?
Any further testing you can do is appreciated. I've switched off computer for today, but will try to take a look tomorrow.
A possible fix is to simply create a new line with the same stops, but only for trucks.
The mod for cargo trams is:
https://www.transportfever.net/filebase/index.php?entry/5046-güterstraßenbahnen/
complete stdout.txt and crash dumps:
https://www.dropbox.com/s/7z74sgg4mm0n0tc/log%20and%20dump%202022-06-05-4.7z?dl=1