How to point your modded unit to vanilla ressource path ?

Everything about mods can be found here.

Moderator: Morax

How to point your modded unit to vanilla ressource path ?

Postby Franck83 » 08 Jul 2018, 13:03

Hi,

I'm modding a unit weapon in bp but i want to use vanilla graphical ressources (i don't want to duplicate ressources).
When i modded only a bpunit, engine is looking in the modded rep and send error if no ressource is found. So how can i point it to vanilla path ?

Code: Select all
        Mesh = {
            IconFadeInZoom = 130,
            LODs = {
                {
                    LODCutoff = 175,
                    Scrolling = true,
                    ShaderName = 'Aeon',
                },
            },
        },



WARNING: Failed to load mesh for blueprint /mods/alliance_of_heroes/hook/units/ual0001/ual0001_mesh

Ty for your help
Alliance of Heroes Mod is out ! Try it ! It's in the Mod Vault !
User avatar
Franck83
Evaluator
 
Posts: 538
Joined: 30 Dec 2016, 11:59
Location: France
Has liked: 114 times
Been liked: 122 times
FAF User Name: Franck83

Re: How to point your modded unit to vanilla ressource path

Postby Franck83 » 08 Jul 2018, 13:10

This seems to work if i specify path

Code: Select all
Mesh = {
            IconFadeInZoom = 130,
             LODs = {
                {
                    AlbedoName = '/units/UAL0001/UAL0001_Albedo.dds',
                    LODCutoff = 500,
                    MeshName = '/units/UAL0001/UAL0001_LOD0.scm',
                    NormalsName = '/units/UAL0001/UAL0001_normalsTS.dds',
                    Scrolling = true,
                    ShaderName = 'Aeon',
                    SpecularName = '/units/UAL0001/UAL0001_SpecTeam.dds',
                },
            },
        },
Alliance of Heroes Mod is out ! Try it ! It's in the Mod Vault !
User avatar
Franck83
Evaluator
 
Posts: 538
Joined: 30 Dec 2016, 11:59
Location: France
Has liked: 114 times
Been liked: 122 times
FAF User Name: Franck83

Re: How to point your modded unit to vanilla ressource path

Postby Uveso » 08 Jul 2018, 18:41

This is a full Mesh array for LOD0 and LOD1 for the vanilla file path:
Code: Select all
        Mesh = {
            IconFadeInZoom = 130,
            LODs = {
                {
                    MeshName = '/units/uab4301/uab4301_lod0.scm',
                    AlbedoName = '/units/uab4301/uab4301_albedo.dds',
                    SpecularName = '/units/uab4301/uab4301_specteam.dds',
                    NormalsName = '/units/uab4301/uab4301_normalsTS.dds',
                    LODCutoff = 200,
                    ShaderName = 'Aeon',
                },
                {
                    MeshName = '/units/uab4301/uab4301_lod1.scm',
                    AlbedoName = '/units/uab4301/uab4301_lod1_albedo.dds',
                    SpecularName = '/units/uab4301/uab4301_lod1_specteam.dds',
                    NormalsName = '/units/uab4301/uab4301_lod1_normalsTS.dds',
                    LODCutoff = 300,
                    ShaderName = 'Aeon',
                },
            },
        },
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso

Re: How to point your modded unit to vanilla ressource path

Postby Resin_Smoker » 08 Jul 2018, 23:19

I have see scripts that run on the game start up that search for and provide links for resources without specified pathing. (Domino made this) Only issue I saw is that two resources with the same name can often get entangled thus pointing to the wrong object.
Resin_Smoker
Evaluator
 
Posts: 858
Joined: 14 Mar 2012, 17:58
Has liked: 54 times
Been liked: 106 times

Re: How to point your modded unit to vanilla ressource path

Postby Franck83 » 09 Jul 2018, 14:19

Hey, Resin, nice to see you here.

Ty for your answers.
Alliance of Heroes Mod is out ! Try it ! It's in the Mod Vault !
User avatar
Franck83
Evaluator
 
Posts: 538
Joined: 30 Dec 2016, 11:59
Location: France
Has liked: 114 times
Been liked: 122 times
FAF User Name: Franck83


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest