Forums » Bugs

RmlUi - Context:LoadDocument() not using relative directory

Sep 14, 2026 draugath link
The RmlUi `Context:LoadDocument()` method does not appear to be using the plugin relative directory during plugin loading, necessitating that the full plugin path be used at this time.

Normally, during plugin loading, calling another Lua file with `dofile()` can be accomplished without having to specify a path to the file.

I am running the latest Linux client (vendetta-1.8.774).
Fri 05:32PM raybondo link
This should be resolved in the 1.8.775 update.
It uses the plugin's local directory as the root and you cannot use .. in the filename.
Fri 08:06PM Luxen link
It uses the plugin's local directory as the root and you cannot use .. in the filename.

Does it use the local directory at ALL times? As in, even after the PLUGINS_LOADED event has occured, or during loading of a replacement interface via ini [Vendetta]if=?

Also, is the part about preventing up-folder navigation going to be rolled out to other parts of the sandbox, because that will probably break parts of Neoloader and the plugins using it for potentially out-of-load-order execution (Neoloader allows plugins to declare (in whole or in part) that they depend on another plugin to have finished loading before they can load, among many other things)
Fri 10:02PM raybondo link
It is during load time only. I believe that is similar to how the plugins' dofile() works as well?

The '..' restriction may be lifted if it is found to be too restricting. It currently only applies to RmlUi LoadDocument() function. No plans to change how lua works is currently planned.