Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: sickle on May 16, 2020, 02:09:21 PM
-
I want to include a module with a layout, but don't want to put users through the trouble of adding it to their modules folder, how do you direct the fe.load_module command to a directory relative to the layout. I tried fe.load_module("[...]/[...]"), but it didn't work, same for fe.do_nut
-
examples
in same folder as layout
fe.do_nut("sidebar.nut");
in script folder inside of layout folder
fe.do_nut("scripts/sidebar.nut");
in module folder inside layout folder
fe.do_nut("module/sidebar.nut");
-
haha, thanks. I forgot to add .nut when I tried it that way :P