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
Hovering over road segments will cause a "get_transform can only be called from the main thread" exception.
Moving OnBeforeSimulationTick code to OnUpdate solves the issue, since it belongs to the main thread. Is separating those two parts crucial in any way? I wonder why this problem doesn't manifest itself on Windows.
Running on Ubuntu Gnome. The tool "does nothing" if I hower my mouse over a one a road using a one way upgrade. What works is the report that "This road is already two way." when tying to use a two way upgrade on a two way road, otherwise nothing.
Ok, will try to hold my breadth for the update, please please, nicely please :D
This is very useful information. Moving all of the code to OnUpdate is likely to cause other issues, because it needs to run in sync with the simulation. However, it is probably possible to move just the parts that reference Unity's transforms and such to OnUpdate.
As for why the bug appears in linux, that's one of the issues with api's on different platforms, without rigirous testing, the littlest difference between the two can mean the same input can give a different output. However it's strange something as important as the threading isn't abstracted enough so that these differences shouldn't be an issue.
Crossing fingers for a fix :-)
Moving the code around does indeed cause some weird issues like roads not always connecting to each other properly. However, I think I managed to create a workaround. I've made a pull request:
https://github.com/viakmaky/Skylines-ExtendedRoadUpgrade/pull/1
People with a bit of spare time are welcome to build and test it.
Proper way would be to clone the repository, run xbuild/use your IDE of choice, then replace the original workshop mod with the built DLL.
If you aren't that savvy, here's a prebuilt assembly on Dropbox:
https://www.dropbox.com/s/00uzokekcgho1xo/ExtendedRoadUpgrade.dll?dl=0
Either plop it into ~/.local/share/Colossal Order/Cities_Skylines/Addons/Mods and disable the workshop subscription (to avoid conflict with the workshop download),
or replace the corresponding DLL that should be somewhere in the ~/.steam/steam/steamapps/workshop/content/255710 directory.
I could probably set it up as a workshop item to allow easier install, but that won't be quite fair to Wiliz, so I'd wait until he accepts the pull request and/or updates the mod.
Thank you very, very much! :)
His suggested fix is very helpful in figuring out the exact issue though.
You can get the update from Steam or download the dll directly from https://github.com/viakmaky/Skylines-ExtendedRoadUpgrade/raw/master/dll/ExtendedRoadUpgrade.dll
Doesn't work for me. Tried unsubscribing and resubscribing (making sure the mod didn't exist in-between) and also downloading your DLL and replacing it directly (to triple check that I wasn;'t using the old version). I still face the same issue on Ubuntu 14.04.
Downloading Dr. Nya's DDL and overwriting /home/me/.steam/steam/steamapps/workshop/content/255710/408209297/ExtendedRoadUpgrade.dll did fix the issue though.
Thanks for being so retroactive in fixing this.