Moving from 0.10 to 0.11: What do I do without LUAU_PATH env var?
#731
|
The bevy_mod_scripting crate which adds Lua and Luau scripting to Bevy games used I notice that in Is there something I can do as a user of This file is where Sorry if it's a dumb question I'm not very good at this stuff :3 |
Replies: 1 comment 3 replies
|
There is no replacement env var, because 0.11 swapped the whole mechanism rather than renaming it. The changelog entry is "New What replaced it is a trait the host application implements or picks: pub fn create_require_function<R: Require + MaybeSend + 'static>(&self, require: R) -> Result<Function>with So the shape of the answer for you depends on something in If it uses the stock one, you are not blocked. Put a If it supplies a custom requirer — quite likely for an engine that loads scripts through its own asset system rather than straight off disk — then no file you write will change the resolution, because that implementation decides. In that case it is a change in their code, and the useful thing to open on their tracker is not "please restore Worth grepping their source for |
So if someone else gets this issue: just use a
.luaurcfile with an alias pointing towards whatever path you originally had the env variable set to.