Having a machanism to rewrite res:// paths when mounting pck #11021
Closed
TML233
started this conversation in
Engine Core
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To implement mounting pcks under a specific resource path, we need to find a way of rewriting
res://
path references when mounting pck. This makes theres://
path references in the exported pck still being valid when they are mounted under a specific resource path in a running game.Say you have a base game, and it mounts a
mod_foo.pck
file under itsres://mods/foo/
folder. The fileres://image.png
of the modpack are now placed underres://mods/foo/image.png
in the base game. So when a scene in the modpack accessesres://image.png
, the access path needs to be rewritten tores://mods/foo/image.png
to ensure the resource dependencies of the modpack still integrated. And the scripts in the modpack can also hard-coderes://
paths in the code.Beta Was this translation helpful? Give feedback.
All reactions