Jump to content
Sign in to follow this  
travhimself

Referencing an addon file from a mission file

Recommended Posts

So let's say I have description.ext that contains the line:

loadScreen =  "myfancyimage.paa";

It seems as though, if that image is contained in the mission files, it won't be available to connecting users, since the files gets pulled down when the user connects. (It's a cart-before-the-horse issue, as far as I can tell.)

 

However, my mission requires an addon, which all users will have. If I bundle that image with my addon, can I then reference it from the description.ext? And if so, what is the proper path? Eg, something like:

loadScreen =  "@awesomeaddon\addons\myfancyimage.paa";

Share this post


Link to post
Share on other sites

Yes, you can by referencing it with the pbo/addonname and the pbo prefix. For example:

loadscreen = "\mytag\myaddon\myfancyimage.paa"

Note that the path to the pbo content is pure virtual. For configuring the virtual path see Addon Builder or pboProject manuals.

  • Like 1

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
Sign in to follow this  

×