Giter Site home page Giter Site logo

cs2-storagefix's Introduction

Storage Fix

Temporary fix for negative resources in cargo stations. Temporary meaning until CO will fix that properly.

Description

  • Cargo stations may show 0 resources despite being heavily stocked, or some small number that doesn't match the actual number of resources. It happens because the game creates negative resources in the storages. Another issue this situation creates is that the game tries to deliver those missing goods and trains are loaded with 1200t of a single resource. In the end, it breaks all resource logistics in the city.
  • The root cause is that the game creates transfer requests that are impossible to execute e.g. 400t and there is only 100t in the storage. Then this request is processed, the train is loaded with 400t of goods and leaves -300t of negative resources.
  • This mod fixes the loading/unloading process, so at least they don't create those situations.
  • I have not yet tracked where the erroneous transfer request come from, so I've implemented a workaround - the mod simply removes such requests from the system. There will still be such requests (new ones) but they should not break the game.
  • You may check yourself how the mod works when you enable the logging in the config file. It will tell you what is fixed and what is removed.
  • You should observe the results each time a train comes to the station. After some time, the trains will start transporting reasonable amounts of various goods too.

Technical

Requirements and Compatibility

  • Cities Skylines II version 1.0.15f1
  • BepInEx 5
  • Modifies TransportTrainAISystem and TransportBoardingHelpers

Installation

  1. Place the StorageFix.dll file in your BepInEx Plugins folder.
  2. The config file is automatically created when the game is run once.

Known Issues

  • Nothing atm.

Changelog

  • v0.1.0 (2023-12-05)
    • Initial build.

Support

  • Please report bugs and issues on GitHub.
  • You may also leave comments on Discord.

Disclaimers and Notes

[!IMPORTANT]

  • Please make sure you have a savefile before installing the mod.

cs2-storagefix's People

Contributors

infixo avatar

Watchers

 avatar

cs2-storagefix's Issues

Negative value in the warehouse of the international airport cargo.

I still have a negative value in the warehouse in the international airport cargo air route.

I select Air Cargo Route and point over the international airport on the cargo route and i have almost -4k t. Can you check it please? My cargo transport is still broke becouse of it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.