1. Worldwide Rush - Modding Update
  2.  
  3. Hi everyone!
  4.  
  5.  
  6. The second major update for Worldwide Rush is out now!
  7.  
  8.  
  9. It took us way too long for this update, but we wanted it to be as accessible as possible. The amount of already available mods proves it was worth it. Now everyone should be able to enjoy and create mods.
  10.  
  11.  
  12. Here are the main features:
  13. In-game modding with UI
  14.  
  15. In-game support for Steam Workshop
  16.  
  17. Improved passengers pathfinding, making them much smarter in large saves
  18.  
  19.  
  20. Modding
  21.  
  22.  
  23. Modding is here for everyone to enjoy. Explore the workshop, add new cities, vehicles or change the game rules. The first step is done. Modding will be further improved in the upcoming major updates. Like always, there is so much to add.
  24.  
  25.  
  26. Check out the modding guide if you want to make your own mod:
  27.  
  28. Modding Basics
  29. Worldwide Rush 的一篇指南
  30. 作者:Cocoseinius
  31. Instructions on how to use the Worldwide Rush modding systems.
  32.  
  33. Passengers Pathfinding
  34.  
  35.  
  36. I also wanted to mention the pathfinding improvements. There were many complaints from players that passengers fail to find paths with multiple transfers in large save files. From the feedback save files, it was mostly long-distance paths. There were multiple attempts where I tried to solve this issue in the past and they always came up short. Mostly because I tried to improve the existing A* pathfinding solution, which in itself was flawed.
  37.  
  38. The main problem was that A* looks through too many combinations to find the correct path. For a smaller game, that would not be an issue, because when I increase max search time, the path is always found. But making pathfinding expensive is not a solution when you literally need to transfer thousands of passengers per frame.
  39.  
  40. In some cases, you could save calculations, but that would use too much memory. Secondly, cities that stop accepting travelers would require constant recalculations. Playing with dynamic weights, like cities with large hubs getting more attention, improved the situation a bit.
  41.  
  42.  
  43. Basically, for a long time, all improvements would postpone the problem. But then I figured out a solution. It is obvious now, but it took a lot of time for my brain, poor thing. Cities store all possible connections that are made by vehicles that stop in that city. So I made a second layer that calculates all possible connections for 6 stops. Now this on its own is expensive in both calculations and memory, but I figured if used sparingly, it could be the solution. Because if cities have a list of all possible cities that can reach it with saved information on how many stops, I can feed that into the A* pathfinding and ignore paths that lead to nothing.
  44.  
  45.  
  46. That alone was not enough. My benchmark save went from 120 fps to 10 fps or so. The next thing I added was a distance requirement so that only long trips would use this system. On top of that, I made the city connection calculation multithreaded, on demand, in between updates, and only ever so often. This, together with further A* integration, allowed me to reach the old 120 fps, but this time all paths are found.
  47.  
  48.  
  49. I celebrated inside, pushed the solution, and did not make a big deal out of it, because there was always someone 1 day later to prove me wrong. Players are talented like that. But it seems complaints were over, and it works? Passengers can travel around the world, transferring through multiple stations in 10k+ vehicles saves without any performance impact. I hope it stays that way.
  50.  
  51.  
  52.  
  53. We hope you will enjoy the update!
  54.  
  55.  
  56. Here is the full changelog:
  57.  
  58.  
  59. Bugfixes:
  60.  
  61. Fixed some crashes
  62.  
  63. Fixed some AI vehicle selection bugs thanks to Infixo
  64.  
  65. Fixed path calculations being asymmetrical thanks to Infixo
  66.  
  67. Fixed first share not being correctly owned on the game start
  68.  
  69. Fixed AI being able to take more loans than allowed in some cases
  70.  
  71. Fixed world names not being translated when pressing on Continue in the main menu
  72.  
  73. Fixed text box last word selection
  74.  
  75. Changes:
  76.  
  77. Improved passengers pathfinding
  78.  
  79. Updated localization
  80.  
  81. Additions:
  82.  
  83. Added modding systems
  84.  
  85. Added modding browse UI
  86.  
  87. Added modding editing UI
  88.  
  89. Added Steam Workshop integration
  90.  
  91. Added Steam Workshop modding browse support
  92.  
  93. Added in-game modding reload systems
  94.  
  95. Added mod header and description editing
  96.  
  97. Added defaults modding to change in-game rules
  98.  
  99. Added currency modding
  100.  
  101. Added sprite modding for UI
  102.  
  103. Added texture modding
  104.  
  105. Added vehicle company modding
  106.  
  107. Added all vehicle types modding
  108.  
  109. Added vehicle graphics modding
  110.  
  111. Added play region modding
  112.  
  113. Added city modding
  114.  
  115. Added prebuilt roads modding
  116.  
  117. Added prebuilt rails modding
  118.  
  119. Added sea paths modding
  120.  
  121. Added vehicles visibility slider
  122.