Jump to content
lawman_actual

Correct way to reference RVmat file in addon

Recommended Posts

Can't seem to figure out the correct way to reference the RV mat file in my P: drive and have it work in game once packed up.

My file structure is:

 

Quote

P:\law\modName\addons\law_addon\data\myObject.rvmat

 

In object builder it works if I assign the following:

 

Quote

law\modName\addons\law_addon\data\myObject.rvmat

 

However in game I am told the material file cannot be found.

I've tried a few iterations now and can't seem to figure the correct way to work.

Advice would be much appreciated!

 

 

Cheers,

Law

Share this post


Link to post
Share on other sites
2 hours ago, lawman_actual said:

However in game I am told the material file cannot be found.

Did you set the correct pboprefix when packing your pbo?

Share this post


Link to post
Share on other sites
On 3/12/2020 at 1:34 PM, Dedmen said:

Did you set the correct pboprefix when packing your pbo?

 

Well...I have a prefix. How correct it is I'm not sure.

 

prefix=law_addon

 

Do I then subtract anything prior to this path when referencing in the object builder?

 

\data\material1.rvmat

 

If I do, I am then not able to see it's effects in preview and must pack and load the mod to see it?

Share this post


Link to post
Share on other sites
22 hours ago, lawman_actual said:

prefix=law_addon

where is that? inside your pbo?

If that is your prefix, that means your stuff should be in

P:\law_addon\data\myObject.rvmat 

but thats not the path you posted above.

Share this post


Link to post
Share on other sites
On 3/16/2020 at 9:08 AM, Dedmen said:

where is that? inside your pbo?

If that is your prefix, that means your stuff should be in


P:\law_addon\data\myObject.rvmat 

but thats not the path you posted above.

 

This was generated by the BIS addon builder (yes I know everyone says don't use it...I'm having issues getting pboProject to run at the moment).

I just tried to force the addon prefix to the following:

 

law\modName\addons\law_addon

law\modName\addons\law_addon

 

However when I do this it fails to even load the .p3d, which was working before.

Seems like it's one rule set for the model and another for the rvmat?

 

 

 

Thanks,

Law

Share this post


Link to post
Share on other sites
20 hours ago, lawman_actual said:

Seems like it's one rule set for the model and another for the rvmat?

No.

Not quite sure what you're doing wrong now, when the prefix is really fixed.

Share this post


Link to post
Share on other sites

Ok, well I managed to fix it I think.

 

Not exactly sure what did it in the end...I removed a parent 'law' folder and then in the process of updating everything else the error seems to no longer be an issue.

This was my new file structure: 

 

Quote

P:\modName\addons\addonName\data\< files here>

 

 

For reference, to get this working with the above structure I had to set:

 

- Addon prefix in BIS Addon Builder:

 

modName\addons\addonName

 

- Material file path in Object Builder:

modName\addons\addonName\data\yourFile.rvmat

 

 

Thanks for trying Dedmen!
 

Cheers,

Law

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×