1
Modification Help / (Resource) extraResources
« on: June 16, 2017, 06:30:12 AM »
This lets you add files to the download manifest without having to associate them with a datablock.
It is intended to replace cases where you would create an unnecessary ParticleData datablock just to have people download a bitmap.
Note: This does not let you force people to download files. The client-sided download filters are still respected, this just lets you save datablocks.
addExtraResource(string fileName)
Add a new file for clients to download. Not all extensions are allowed by the engine.
You should call this before the mission is created (inside add-on execution is fine).
If you do need to add files after that, you'll need to call the following to update:
EnvGuiServer::PopulateEnvResourceList();
snapshotGameAssets();
Example:
addExtraResource("Add-Ons/A_B/assets/textures/c.png");
https://github.com/qoh/bl-lib/blob/master/extraResources.cs
It is intended to replace cases where you would create an unnecessary ParticleData datablock just to have people download a bitmap.
Note: This does not let you force people to download files. The client-sided download filters are still respected, this just lets you save datablocks.
addExtraResource(string fileName)
Add a new file for clients to download. Not all extensions are allowed by the engine.
You should call this before the mission is created (inside add-on execution is fine).
If you do need to add files after that, you'll need to call the following to update:
EnvGuiServer::PopulateEnvResourceList();
snapshotGameAssets();
Example:
addExtraResource("Add-Ons/A_B/assets/textures/c.png");
https://github.com/qoh/bl-lib/blob/master/extraResources.cs