New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom play launch commands #2605
Conversation
Awesome! I tested your changes and it works again :) Is it intended that #2476 is automatically closed by this PR (since you wrote that it's only partly resolved)? Otherwise I can remove the auto-closing link. |
I think it's ok to close the issue. What's not working is the handling of bool values since the template modules doesn't support it. Things like:
.. have to be hardcoded by the variable by simply adding |
Hi, there seems to be another problem with |
Is a null check enough? |
I don't think so, there is a valid browser object returned. Instead that particular browser class doesn't seem to have a name attribute for some reason (instead it has |
main...tong:armory:fix-open-browser-call hopefully works. objections? |
Looks good! Thanks :) |
Adds the possiblity to use a custom player launch command by setting environment variables.
ARMORY_PLAY_HTML5
ARMORY_PLAY_KROM
The given string gets transformed with python templates using platform specific params:
host, port, width, height, url, path, dir, browser
pid, audio, location, krom_path, path, resources, width, height
If not set the default launch commands are used.
Html5 example:
The default launch commands:
The default launch command on krom:
This partly resolves #2476 but without any hacks.
Also resolves the issue introduced with the custom command if the browser can't get determined (#2602) by fallback to
webbrowser.open()
.