Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: BP2709 on November 29, 2018, 08:26:29 PM

Title: Registry vs env variables
Post by: BP2709 on November 29, 2018, 08:26:29 PM
I noticed that starting in FP6, some aspects of FPP can be configured with environment variables (https://docs.itoosoft.com/forestpack/installation-and-customisation). Thank you for that.

However, it appears that registry entries are still required for the plugin to function. When first using the plugin it will complain about MainDir not being set in the registry even if its env var is set properly. But if you try to use the plugin again in the same max session it will actually create the registry entries for you.

Can all FPP paths be made available via env vars? For example, I tried setting ITOO_SOFTWARE_FOREST_PACK_PRO_LIBRARYDIR_FOREST_LIBRARY but that didn't seem to do anything.


Thanks!
Rob
Title: Re: Registry vs env variables
Post by: BP2709 on November 30, 2018, 01:47:22 AM
Also, what is the HKCU\Software\Itoo Software\Forest Pack Pro\WriteLibrary registry key used for?
Title: Re: Registry vs env variables
Post by: Michal KarmazĂ­n on November 30, 2018, 09:15:23 AM
Hi Rob,

Big thanks for reporting this problem with Environment Variables. With your help, we've been able to reproduce this unwanted behaviour here too and we'll see what can be done to fix it - it'll need to be investigated more in deep by our main developers.

Best regards,
Title: Re: Registry vs env variables
Post by: memento on December 07, 2018, 02:25:29 AM
Is it possible to get environment variables for LibraryDir, EffectsDir, MatlibDir, and TexturePaths? I'd like to have a completely portable install that doesn't require registry keys.

Also, what is the HKCU\Software\Itoo Software\Forest Pack Pro\WriteLibrary registry key used for? It's being created when the plugin is called but I don't know what it controls.