安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
Loading with different savegames and disabling mods until it works are the standard procedures.
Notice that many mods do not support reloading from the in-game menu (different city) or the main menu (any city). So those kind of problems are expected.
Sorry for the very late reply.
I thought it was mod conflict issue, and then when I disabled the "81 Tiles" mod, the exception doesn't appear anymore. So I think maybe the assets/mod reloading (or sharing?) part is somewhat uncompatible with the 81 Tiles mod.(maybe applied twice or sth)
Forgive my poor English (as I'm non-native speaker at all), and hope my issue can be useful for you. Thanks a lot :)
1. ..at RoadBaseAI.CanEnableTrafficLights (UInt16 nodeID, .NetNode& data) [0x00000] in <filename unknown>:0
2. [LSM] PoliciesPanel not initialized yet. Initializing at 1065917
3. at RadioPanel.AssignStationToButton (ColossalFramework.UI
4. Cannot set relative position without a parent Transform. (repeated)
5. LOD has no base:(repeated)
Maybe the problem is Transport Lines Manager or Procedural Objects.. ?
Thanks you again !
PS: My game is not upgraded, only mandatory patches.
Maybe you already googled RoadBaseAI.CanEnableTrafficLights. It is a tough one. I'll take a look at game codes later today but don't expect too much.
Unfortunately the null check and try-catch is missing in that method. Obviously a dev oversight.
I was thinking I could write a small mod that adds the null check. I cannot guarantee it will solve all problems. Maybe the save is too badly damaged.
Your question about book or pdf: I suppose such short cuts are not possible. It's all about knowing the game codes (and some mod codes, too). Luckily the game is very accessible for mod activities: Visual Studio Community is free, .NET disassemblers are free and good, C# is nice to work with.
The problem here is the road segment(s) that have null NetInfo. The mod I was thinking about could either:
1. just avoid the null pointer crash, or
2. avoid the crash AND remove the faulty segment.
The problem with 1. is that the faulty segment may crash some later method during city setup.
The problem with 2. is that segment removal may confuse some later method.
As I cannot test the behavior here, I'll probably create a small mod that does 1.
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1620588636
If you try the mod, let me know what is in your output_log.txt.
cout << "I've started my C++ lessons"; ;)