Pathing of new Lua files

Okay I'm redoing my mod of creating extra achievement shop tabs. The only problem I'm having is Pathing. Here is the code snipet. What should the bold line say if I want to load that file from the mod folder in this case. 

Demigod\bindata\mods\NewFavorItems\UGBShop08_General2_ShopLayout.lua

 

LifeBarRender = false,

    Name = 'Gzkit's Achievement shop',

    ScriptedAction = '/lua/user/ShopAction.lua',

    SelectionSizeX = 5,

    Shop = {

        Layout = '/UGBShop08_General2_ShopLayout.lua',

        Tree = {

            # Charred Totem of War

            AchievementMinionDamage = {

                Cost = 675,

                ItemBP = 'AchievementMinionDamage',

            },

},

    },

 

 

 

 

 

1,060 views 3 replies
Reply #1 Top

huh?? any progress yet?

Can i use this to improve it and maybe add new favor items?

Reply #2 Top

Had the same problem once in SupCom. I think you have to add the whole path or the engine won't find it. It's been a long time but try:

/mods/NewFavorItems/UGBShop08_General2_ShopLayout.lua

or /bindata/mods/NewFavorItems/UGBShop08_General2_ShopLayout.lua

Something like that. Hope it helps, good luck!

Reply #3 Top

Sorry I tried both of those. I'm wondering if it's possible to access them in that way.