- This feature is experimental +
+ {{ _("Game support is configured using the package's .conf file. See the documentation for more info") }}
+ {{ _("Unless otherwise stated, this package should work with all games.") }} + {{ _("You can check this and still specify games in supported_games that you've tested.") }} +
+ + {% if form.supported and form.unsupported %}
+ {{ _("Should support most games.") }}
+ {% if supported_games %}
+
+ {{ _("Tested with:") }}
+ {% endif %}
+
+ {{ _("No specific game required") }} +
+ {% if package.checkPerm(current_user, "EDIT_PACKAGE") %} ++ {{ _("Is the above correct?") }} + {{ _("You need to either confirm this or tell ContentDB about supported games") }} +
+ + + Update + ++ {{ _("Except for:") }} +
+ + {% endif %} + + {% if package.type == package.type.MOD and (supported_games or unsupported_games) and + not package.has_game_support_confirmed() %}{{ _("This is an experimental feature.") }} {{ _("Supported games are determined by an algorithm, and may not be correct.") }} diff --git a/app/templates/todo/game_support.html b/app/templates/todo/game_support.html index f49710f8..6d5a454c 100644 --- a/app/templates/todo/game_support.html +++ b/app/templates/todo/game_support.html @@ -10,6 +10,7 @@
{{ _("You should specify the games supported by your mods and texture packs.") }} {{ _("Specifying game support makes it easier for players to find your content.") }} + {{ _("If your package supports all games unless otherwise stated, confirm this using 'Supports all games'") }}
@@ -28,7 +29,15 @@{{ _("Nothing to do :)") }}
{% endfor %} + ++ {{ _("Click the button below to confirm that all games without listed supported_games (red text above) do support all games, except for any games listed in unsupported_games.") }} +
+ {% endblock %} diff --git a/migrations/versions/2ecff2f9972d_.py b/migrations/versions/2ecff2f9972d_.py new file mode 100644 index 00000000..b0f4d79a --- /dev/null +++ b/migrations/versions/2ecff2f9972d_.py @@ -0,0 +1,26 @@ +"""empty message + +Revision ID: 2ecff2f9972d +Revises: 23afcf580aae +Create Date: 2023-06-18 07:51:42.581955 + +""" + +from alembic import op +import sqlalchemy as sa + +# revision identifiers, used by Alembic. +revision = '2ecff2f9972d' +down_revision = '23afcf580aae' +branch_labels = None +depends_on = None + + +def upgrade(): + with op.batch_alter_table('package', schema=None) as batch_op: + batch_op.add_column(sa.Column('supports_all_games', sa.Boolean(), nullable=False, server_default="false")) + + +def downgrade(): + with op.batch_alter_table('package', schema=None) as batch_op: + batch_op.drop_column('supports_all_games')