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

Fix for Factorio 2.0 direction enum change #21

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

Shados
Copy link
Contributor

@Shados Shados commented Nov 11, 2024

The 2.0 release includes eight new directions, which has shifted up the BP string enum values for the E/S/W directions that verifactory cares about. This PR adjusts for that, plus a Nix dev-shell fix I ran into.

Also, having to locate these magic number calcs in order to correct the image rotation was slightly annoying -- might be better not to rely on external implementation details like that?

Not sure if any other 2.0 changes impact verifactory, that's the only one I've noticed thus far.

@alegnani
Copy link
Owner

Thank you for the work!
Your suggestion about the image rotation makes sense; adding something like a to_radians function to Direction would definitely be a good addition.
After that I would be happy to merge.

@alegnani alegnani merged commit c1b537b into alegnani:main Dec 17, 2024
2 checks passed
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.

2 participants