{% extends "packages/package_base.html" %} {% block title %} {{ _("Supported Games") }} {% endblock %} {% block content %} {{ _("Documentation") }}

{{ self.title() }}

{{ _("Game support is configured using the package's .conf file. See the documentation for more info") }}

{{ _("Package") }} {{ _("Source") }} {{ _("Supported?") }}
{% if package.supports_all_games %}
{{ _("Supports all games (unless excluded by unsupported_games)") }}
{% endif %} {% for support in package.get_sorted_game_support() %}
{{ _("%(title)s by %(display_name)s", title=support.game.title, display_name=support.game.author.display_name) }} {% if support.confidence == 1 %} {{ _("Detected from dependencies") }} {% elif support.confidence == 11 %} {{ _("Overridden on ContentDB") }} {% elif support.confidence == 10 %} {{ package.get_conf_file_name() }} {% else %} {{ support.confidence }} {% endif %} {% if support.supports %} Yes {% else %} No {% endif %}
{% else %} {% if not package.supports_all_games %}
{{ _("Unknown. Please either add supported games or check 'Supports all games'") }}
{% endif %} {% endfor %}
{% if mod_conf_lines %}

{{ _("Generated %(conf)s lines", conf=package.get_conf_file_name()) }}

{{ mod_conf_lines }}
{% endif %} {% if form %}

Options

{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
{{ form.hidden_tag() }} {{ render_checkbox_field(form.enable_support_detection, disabled=force_game_detection) }} {% if force_game_detection %}

{{ _("You need to manually define at least one supported game before you can turn this off.") }}

{% endif %} {{ render_checkbox_field(form.supports_all_games, disabled=not can_support_all_games) }} {% if can_support_all_games %}

{{ _("When checked, this indicates that this package should support all games, unless excluded by unsupported_games.") }} {{ _("You can check this and still specify games in supported_games that you've tested.") }}

{% elif package.type.name == "TXP" %}

{{ _("It's not possible for texture packs to support all games.") }}

{% elif package.type.name == "MOD" %}

{{ _("The package depends on a game-specific mod, and so cannot support all games.") }}

{% endif %} {% if form.supported and form.unsupported %}

{{ _("Overrides") }}

{{ _("It's best to add supported/unsupported games to %(conf)s, but in the meantime you can add them here.", conf=package.get_conf_file_name()) }} {{ _("Adding to %(conf)s allows users who install outside ContentDB to benefit as well.", conf=package.get_conf_file_name()) }}

{{ render_field(form.supported, hint=_("Comma-separated game names, ex: minetest_game, nodecore")) }} {{ render_field(form.unsupported, hint=_("Comma-separated game names, ex: minetest_game, nodecore")) }} {% endif %} {{ render_submit_field(form.submit, class_="mt-4 btn btn-primary") }}
{% endif %} {% endblock %}