Jump to content

[SOLVED] adding extern_plugin (s) to launcher script


photo

Recommended Posts

Posted

Trying to figure out how to do this, I am very stuck

 

PS I don't know how this ended up in the wrong forum, it should be moved... :)

Posted

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.

  • 2 weeks later...
Posted

I mean the launcher script that gets created as created with the create new project button. The html one with the UIMess.js file.

Posted

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

×
×
  • Create New...