It seems that that is still empty when a plugin is loaded. Thus returns ".\". It seems to me that this is unintentional since in later stages (i. e. when the world is connected to and running) these function calls return different and correct values in the same plugin.
So I think this could be a minor bug. I would love to have clarification on that one, maybe I am just using the wrong number for what I tried to do.
I stumbled over this when just wanting to load a background picture for different worlds from a plugin they each could use. I tried to define the automagical path for this as which should then yield something similar to However, I got instead, as described, and thus failed to load the image.
I patched this using for now, but it seems quite wrong to have to do this and I guess things would break if I moved the world with its image subfolder to a different location...
GetInfo(54)GetInfo(67)So I think this could be a minor bug. I would love to have clarification on that one, maybe I am just using the wrong number for what I tried to do.
I stumbled over this when just wanting to load a background picture for different worlds from a plugin they each could use. I tried to define the automagical path for this as
GetInfo(67) + GetInfo(2) + "\Background.png""C:\Programme\MUSHclient\worlds\<world_name>\Background.png"".\<world_name>\Background.png"I patched this using
GetInfo(66) + GetInfo(57) + GetInfo(2) + "\Background.png"