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've learned that the main thing happening here is that your mod uses the RunFn in mod.lua to do its thing, which is run *before* any track mods are loaded, so it only "sees" the 4 vanilla tracks. The above change makes it accept mod tracks, but it doesn't fully support them. I think the mod would need to be changed to use postRunFn instead, so its running *after* all track mods are loaded.
The challenge there is that several mods are all using that method at the same time and there can be conflicts. In my mod that I just released, I included support for your mod (and Early Cargo Shed) plus some others to avoid breaking things. But making your mod fully capable with track mods would require integrating them somehow I think. I have been thinking about producing a "patch/fix" mod that uses yours as a dependency, makes it fully support track mods, and still works with mine and the others.
I'll keep chipping away at it and if I get some more code that actually works I can send it your way... 🤞
Your mod only checks for tracks with .module files ("static track types"). It doesn't check for tracks created by trackmodule.script ("dynamically created track types"), which are like 99% of the track mods. So your platforms only works with vanilla tracks and a tiny number of mod tracks.
Then your custom yard_station.con file has some out-of-date code from early versions of the game that prevents it from working with other track types, and also breaks the pooled storage capacity.
I updated the mod, .zip file available here:
https://drive.google.com/file/d/1-Ssyyclt6Lr2C8G-NYFD2kDo5b_1t8Qa/view?usp=sharing
Changes:
mod.lua - see comments inside it
yardstationutil.lua - added "closureParams"
yard_station.con - fixed code for "cumsum" and "pool"
(I left backup copies of the original files, "RKBAK" in the filenames.)
Now your station template works with any track type and with pooled storage. And your platforms also work in other modular stations with any track type.
Feel free to review the changes or if you want you can just delete the backup copies and upload the updated version to Steam.
Hope that helps, cheers!