Skip to content

Conversation

duncanspumpkin
Copy link
Contributor

Not tested

Copy link
Member

@AaronVanGeffen AaronVanGeffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise, I'm fine with this, but the OP says it hasn't been tested yet. Could we test this for replays to match at least?

@duncanspumpkin
Copy link
Contributor Author

Code-wise, I'm fine with this, but the OP says it hasn't been tested yet. Could we test this for replays to match at least?

looks to have some issues so not ready yet

Copy link
Contributor

@LeftofZen LeftofZen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure if I fully playtested all the new code here, but the AI on this branch does indeed form roads and tracks between producer and consumer industries:

image

This AI built from an oil well to a refinery further away than necessary (but maybe this is legit, maybe it wants higher income or something):
image

Bus routes generated:
image

I saw the AI generate docks and a ship, but they deleted it before I could find it (I think this is already existing behaviour)

@duncanspumpkin
Copy link
Contributor Author

I have confirmed that the only issue (replay wise) is due to a bug in vanilla. Do we want to do a divergence in this release (#3043 will also diverge replays) ?

duncanspumpkin added a commit to OpenLoco/TestData that referenced this pull request Mar 28, 2025
@duncanspumpkin
Copy link
Contributor Author

Replays match (after updating the test data confirmed it was a vanilla mistake causing the divergence) OpenLoco/TestData@c787563

@duncanspumpkin duncanspumpkin merged commit 982f33f into OpenLoco:master Mar 28, 2025
19 checks passed
@duncanspumpkin duncanspumpkin deleted the companyAi5 branch March 28, 2025 22:11
@duncanspumpkin duncanspumpkin added this to the v25.02+ milestone Mar 28, 2025
duncanspumpkin added a commit to duncanspumpkin/OpenLoco that referenced this pull request Mar 29, 2025
duncanspumpkin added a commit that referenced this pull request Mar 29, 2025
* Add missing changelog for #3013

* Don't pass by ref when value not used again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants