Skip to content

Commit

Permalink
Merge pull request godotengine#7637 from Calinou/update-command-line-…
Browse files Browse the repository at this point in the history
…tutorial
  • Loading branch information
mhilbrunner authored and Luke committed Oct 21, 2023
1 parent 7a8d437 commit 195d577
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions tutorials/export/exporting_for_dedicated_servers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,9 @@ See :ref:`doc_exporting_projects` for more information.

.. _doc_exporting_for_dedicated_servers_exporting_project:

Exporting a project for a dedicated server
------------------------------------------

If you export a project as usual when targeting a server, you will notice that
the PCK file is just as large as for the client. This is because it includes all
resources, including those the server doesn't need (such as texture data).
Additionally, headless mode won't be automatically used; the user will have to
specify ``--headless`` to make sure no window spawns.

Many resources such as textures can be stripped from the PCK file to greatly
reduce its size. Godot offers a way to do this for textures and materials in a way
that preserves references in scene or resource files (built-in or external).

To begin doing so, make sure you have a dedicated export preset for your server,
then select it, go to its **Resources** tab and change its export mode:

.. figure:: img/exporting_for_dedicated_servers_export_mode.webp
:align: center
:alt: Choosing the **Export as dedicated server** export mode in the export preset

Choosing the **Export as dedicated server** export mode in the export preset

When this export mode is chosen, the ``dedicated_server`` feature tag is
automatically added to the exported project.
If you're exporting the project from a headless editor, call the headless
editor with the ``--export-pack`` option while in the project folder to export
only a PCK file.

.. note::

Expand Down

0 comments on commit 195d577

Please sign in to comment.