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

Feature: set base path for INCLUDEs #501

Open
t-schreibs opened this issue Jan 20, 2024 · 0 comments
Open

Feature: set base path for INCLUDEs #501

t-schreibs opened this issue Jan 20, 2024 · 0 comments

Comments

@t-schreibs
Copy link

t-schreibs commented Jan 20, 2024

In the Unity integration for Ink, our current project is taking advantage of runtime compilation to expose content for modding in the StreamingAssets folder. This means that content will live dynamically in a series of folders under our StreamingAssets/Mods directory.
We also use a bunch of external functions to interact with game state, which currently are housed in a Globals.ink file that lives in StreamingAssets/Content. Anyways, in order to make INCLUDEs work from a mod folder to the Globals.ink file, we've set the base folder path in the Ink compiler in the Unity integration to the StreamingAssets/Content folder, and now any Ink file in our project can access Globals.ink or whatever else lives in that folder.
The problem is: there is no way to set the base folder path in Inky. So as mod content is generated, nothing can be tested in the editor, because Inky assumes a relative file path. I think the simplest solution to this problem would be to expose a setting allowing a user the option to arbitrarily set the base folder path for INCLUDEs.

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

1 participant