pcfantasy / MoreEffectiveTransfer

Cities: Skylines Mod: Optimize transfer manager in vanilla game. match the shortest transfer bettween offers
https://steamcommunity.com/sharedfiles/filedetails/?id=1680840913
MIT License
14 stars 11 forks source link

Info request: disable export per transport and category #6

Closed gab closed 4 years ago

gab commented 5 years ago

Hi!

I'm looking into ways to disable export by truck, and/or completely disable export of certain categories of industrial products (helpful for Industries DLC production chains).

Have you identified where in the code this could be achieved? It seems it would be a matter of preventing external connections that have a road from generating export offers (are those called incoming or outgoing in the code?), or preventing all external connections from generating offers of a certain type e.g. livestock.

I intend to implement it myself if I have sufficient pointers.

Thank you.

pcfantasy commented 4 years ago

@gab

patch OutsideConnectionAI.AddConnectionOffers

if a outside building is itemClass type Road and it is incoming or incomingoutgoing, do not let this building send industrial products incoming offer.

gab commented 4 years ago

Thanks a lot for the info!