Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Public roads don't connect to town roads from a different GRF #797

Open
bigyihsuan opened this issue Dec 31, 2024 · 6 comments
Open

Comments

@bigyihsuan
Copy link
Contributor

bigyihsuan commented Dec 31, 2024

Version of OpenTTD

jgrpp-0.63.3, U&RaTT 1.1, Polroad 55

Expected result

Public roads from one GRF should connect to town roads of a different GRF, especially on the sides.

Actual result

Public roads do not connect to straight town roads if their ends do not meet.

image
image

Steps to reproduce

  1. Load two GRFs that each add roadtypes.
  2. Enter the scenario editor.
  3. Generate a world with towns. They should be of one GRF's roadtypes (check using the sprite aligner)
  4. Open the public road generation menu.
  5. Select a roadtype from the other GRF. Generate public roads.
  6. Look around the towns, there will be at least one town whose public roads are disconnected from the town roads.

The above screenshot uses U&RaTT 1.1 and Polroad 55. Town roads are "Improved Asphalt Road" from U&R, and public roads are "Highway" from Polroad.

@JGRennison
Copy link
Owner

I can't reproduce this and there does not seem to be a "Improved Asphalt Road" road type in U&RaTT 1.1.

Can you be more specific about what configuration you're using to get this problem?

@bigyihsuan
Copy link
Contributor Author

bigyihsuan commented Jan 1, 2025

This appears to be an interaction between two road GRFs: U&RaTT and Polroads. The town road is set to a U&R road type, and with a Poldroads public roads, if the two roads are not end-to-end they don't connect.

image

I have updated the original post.

@bigyihsuan bigyihsuan changed the title [Bug]: Public roads that forbid houses don't connect to town roads from the sides [Bug]: Public roads don't connect to town roads from a different GRF Jan 1, 2025
@bigyihsuan
Copy link
Contributor Author

I will also note, if you have a roadtype from GRF A selected, and attempt to edit a road tile from GRF B, the game will give a "Can't build road here..." message:

image

@JGRennison
Copy link
Owner

Using two incompatible road sets like this fundamentally seems like not a good idea. Given that the two sets are functionally overlapping, could I suggest that you just pick one to use.

@bigyihsuan
Copy link
Contributor Author

Using two incompatible road sets like this fundamentally seems like not a good idea.

Not a good idea, yes. But I expected this use case to work.

@auge8472
Copy link
Contributor

auge8472 commented Jan 2, 2025

In general, you must either use the road type for the connection that already exists on the tile or one that is marked as compatible on the code side. As the two road types originate from different GRFs, it is not very likely that they are inherently compatible.

You can use the town road type from U&Ratt to connect to the PolRoad road on the adjacent tile but I don't know if the town in itself sees the "external" road to connect with it.

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

No branches or pull requests

3 participants