Does anyone know if it's possible to reference a user made module in a gamemode script? The method in mind is Hud_Load(Text ModuleName). Since the current official gamemodes use modules, I'd figure to use them as well. The current workaround is to set up the scoretable manually in the script like it was done before.
An example of how the constant is used in TimeAttack.Script.txt:
Code: Select all
#Const C_HudModulePath "Nadeo/TrackMania/TimeAttack/Hud.Module.Gbx" ///< Path to the hud module
I've tried the following paths without any success:
Code: Select all
"MyGameMode/Hud.Module.Gbx"
"Modules/MyGameMode/Hud.Module.Gbx"
"D:/Documents/ManiaPlanet/Modules/MyGameMode/Hud.Module.Gbx"
Code: Select all
"file://MyGameMode/Hud.Module.Gbx"
"file://Modules/MyGameMode/Hud.Module.Gbx"
"file://D:/Documents/ManiaPlanet4/Modules/MyGameMode/Hud.Module.Gbx"
