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

Add support for finding lua resources of the form "__base__/..." #35

Merged
merged 1 commit into from Dec 12, 2020

Conversation

koepket
Copy link
Contributor

@koepket koepket commented Dec 2, 2020

Hi there,
in Factorio 1.1.3, the lua uses alternate require paths like require("__base__/prototypes/entity/spidertron-light-positions").
This pull request adds support for finding such lua resources.

Cheers

@Bilka2 Bilka2 merged commit 69a19ea into demodude4u:master Dec 12, 2020
Bilka2 added a commit that referenced this pull request Dec 12, 2020
Don't take precedence over the other patterns(__MOD__, __RESOURCE__); error when mod does not exist; work with paths separated with "\\" (and ".", which is converted to "\\" by LuaJ)
@Bilka2
Copy link
Collaborator

Bilka2 commented Dec 12, 2020

Thank you for the PR. I made some minor changes to your code in 89899e7, see the commit message for what the changes do.

@koepket
Copy link
Contributor Author

koepket commented Dec 12, 2020

Great, thanks!

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.

None yet

2 participants