Jump to content

[SOLVED] adding extern_plugin (s) to launcher script


photo

Recommended Posts

Hello, Danni

Is it correct that the problem is in the console script launcher?

You can simply add plugins to console script launcher by using "-extern_plugin" command as an argument.

As an example:

start bin\main_%arch%d.exe -extern_plugin "C:\Users\<Username>\my_project\bin\AppOculus"


If the path is relative, it is relative to the Unigine executable.

Link to comment
  • 2 weeks later...

Danni,

 

In <your_project>/data/launcher/interface.html file you need to change on line 106

UIMess.EngineLauncher.cleanLaunch(UIMess.FormManager.getCommandLine([
    UIMess.CommandLine('sound_app', Browser.getArgument('soundapp'))
]), 1, '', '"' + UIMess.Storage.storage()['dir'] + '/' + app + '"');

to

UIMess.EngineLauncher.cleanLaunch(UIMess.FormManager.getCommandLine([
    UIMess.CommandLine('sound_app', Browser.getArgument('soundapp')),
    UIMess.ExternPlugin('internal_plugin_name', 'PluginFileName')
]), 1, '', '"' + UIMess.Storage.storage()['dir'] + '/' + app + '"');

 

This will generate -extern_plugin ",PluginFileName" in command line

Link to comment
×
×
  • Create New...