Launching Project

    ENG

    Install Visual Studio

    If you are installing on a non-working machine (we do not support and condemn this decision in any way), then first you need to add the folder with the repository to the exclusion list of your antivirus

    Run script

    <repository>\Scripts\InstallVS.bat

    This will take a few minutes depending on the performance of your computer and the speed of your Internet connection. Some possible problems and solutions are described here.

    Install/Update Unreal Engine

    If you want to keep the old engine when updating, use the variable `UE_KEEP_OLD_ENGINES=1` when running the script

    UE_KEEP_OLD_ENGINES=1 <repository>\Game\UpdateEditor.sh
    1. Connect My.Games VPN
    2. Close running IDEs and Unreal Engine if you have them
    3. Run the script depending on the required engine build

    If you are a Linux user, the default setting is `ENGINE_PRESET=Developer` (i.e., just run the script).

    Скрипт Тип сборки Размер
    <repository>\Game\UpdateEditor.sh A standard engine without PDB and console binaries. Recommended for all non-programmers 20 GB
    ENGINE_PRESET=Developer <repository>\Game\UpdateEditor.sh An engine with PDB. This is needed for programmers who do not work with consoles. If you have console SDKs installed, you should either remove them or use the `Full` preset 120 GB
    ENGINE_PRESET=Full <repository>\Game\UpdateEditor.sh An engine with PDB and console binaries. Needed for programmers who work with consoles 200 GB

    This script removes the old project engine and installs a new one (if the engine version has been changed).

    Under Windows, it can be launched via Git Bash, previously installed, or Notepad++


    Start the editor

    <repository>\Game\Editor.sh

    If it starts crashing on startup in `renderdoc.dll`, update RenderDoc to version >= 1.11 (assuming you have it installed and need it)

    If an error window appears stating "Sparrow could not be compiled," please write in Mattermost to #sprw-tech and attach the logs located in `Saved/Logs`. Do not attempt to troubleshoot it on your own; we want to understand exactly what went wrong and how to update the instructions or what to add to `InstallVS.bat` to prevent others from encountering the same issue.

    If there is not enough disk space

    HDD

    Do not download the project and/or the editor to the HDD, as otherwise the compilation and launch of the editor will be measured not in seconds/minutes, but in hours.

    SSD

    If you have an SSD for the project (non-system) that is less than 1TB, request a 1TB drive from the admins. If you are working with art repositories, compiling the engine from source, or have multiple repositories, request a 2TB drive

    Method What it solves What inconveniences it adds

    Clear DDC and/or move it to another drive

    1. In the editor settings, select another folder on another drive for Editor Preference→ General→ Global→ Derived Data Cache→ Project Local DDC Path

    2. Delete the folder with the following command

      cmd
      RD /S /Q %LOCALAPPDATA%\UnrealEngine\Common\Zen\
    Frees up a significant amount of space (measured in tens of gigabytes), since all shaders and cache are deleted After cleaning or changing the folder, the shaders in the engine will be recompiled at startup

    Clear LFS by the command

    cmd
    git lfs prune
    Removes unused LFS

    Transfer LFS to HDD with command

    If you had a stash or unpushed commits with binary files, they will be lost. Do this only after applying your stash and pushing all commits

    cmd
    git config --global lfs.storage D:/lfs-objects

    where D - your HDD drive letter

    After this you will need to delete the /.git/lfs folder in the repository

    LFS no longer takes up disk space with the project

    Completely clear the repository of non-indexed files with the command

    cmd
    git clean -fdx
    Significantly frees up disk space After cleaning, the project will be recompiled. All saved settings for the project will be deleted. All assets will be rebuilt

    Delete folder /.git/unreal

    This folder contains old engines if they were poorly removed when running the script /Game/UpdateEditor.sh


    RUS

    Установить Visual Studio

    Если вы устанавливаете на не рабочую машину (всячески не поддерживаем и осуждаем это решение), то сперва необходимо папку с репозиторием добавить в список исключений вашего антивируса

    Запустить скрипт

    <репозиторий>\Scripts\InstallVS.bat

    Это займёт несколько минут в зависимости от производительности компьютера и скорости интернет-подключения. Некоторые возможные проблемы и пути их решения описаны здесь.

    Установить/обновить Unreal Engine

    Если при обновлении движка вы хотите не удалять старый движок, то воспользуйтесь переменной UE_KEEP_OLD_ENGINES=1 при запуске скрипта

    UE_KEEP_OLD_ENGINES=1 <репозиторий>\Game\UpdateEditor.sh
    1. Подключить My.Games VPN
    2. Закрыть запущенные IDE и Unreal Engine, если они у вас есть
    3. Запустить скрипт в зависимости от нужной сборки движка

    Если вы пользователь Linux, то по умолчанию используется ENGINE_PRESET=Developer (то есть, просто запускаем скрипт)

    Скрипт Тип сборки Размер
    <репозиторий>\Game\UpdateEditor.sh Обычный движок без pdb и консольных бинарей. Рекомендуется для всех не-программистов 20 GB
    ENGINE_PRESET=Developer <репозиторий>\Game\UpdateEditor.sh Движок с pdb. Нужен программистам, которые не работают с консолями. Если у вас стоят консольные SDK, то нужно их либо удалить, либо использовать пресет Full 120 GB
    ENGINE_PRESET=Full <репозиторий>\Game\UpdateEditor.sh Движок с pdb и консольными бинарями. Нужен программистам, которые работают с консолями 200 GB

    Данный скрипт удаляет старый проектный движок и устанавливает новый (если версия движка была изменена).

    Под Windows запустить можно через Git Bash, установленный ранее или Notepad++


    Запустить редактор

    <репозиторий>\Game\Editor.sh

    Если начнет крашить на старте в renderdoc.dll - обновите RenderDoc до версии >=1.11 (в том случае если он у вас стоит, и он вам нужен)

    Если появится окно с ошибкой Sparrow could not be compiled то напиши в маттермост #sprw-tech и приложи логи с Saved/Logs. Не надо пытаться самому разобраться, хочется понять что точно пошло не так и как поправить инструкцию / что добавить в InstallVS.bat, чтобы у других не возникало проблем.

    Если не хватает места на диске

    HDD

    Не скачивайте проект и/или редактор на HDD, так как иначе, компиляция и запуск редактора будут измеряться не в секундах/минутах, а в часах.

    SSD

    Если у вас SSD для проекта (не системный) менее 1TB, то закажите у админов диск на 1TB. Если вы работаете с арт-репо, сами компилирует движок из исходников или имеете несколько репозиториев, то заказывайте 2TB

    Метод Что решает Какие неудобности добавляет

    Очистить DDC и/или перенести его на другой диск

    1. В настройках редактора выбрать другую папку на другом диске для Editor Preference→ General→ Global→ Derived Data Cache→ Project Local DDC Path

    2. Удалить папку следующей командой

      cmd
      RD /S /Q %LOCALAPPDATA%\UnrealEngine\Common\Zen\
    Освобождает значительно много места (измеряется десятками гигабайт), так как удаляются все шейдера и кэш После очистки или смены папки шейдера в движке будут заново перекомпилены при запуске

    Очистить LFS командой

    cmd
    git lfs prune
    Удаляет неиспользуемый LFS

    Перенести LFS на HDD-диск командой

    Если у вас был stash или незапушенные коммиты с бинарными файлами, то они потеряются. Делайте это только после возврата stash'а и всех запушенных коммитов

    cmd
    git config --global lfs.storage D:/lfs-objects

    где D - ваша буква для HDD-диска

    После этого нужно будет удалить папку /.git/lfs в репозитории

    LFS теперь не занимает место на диске с проектом

    Полностью очистить репозиторий от неиндексируемых файлов командой

    cmd
    git clean -fdx
    Значительно освобождает место на диске После очистки проект будет заново скомпилирован. Все сохранённые настройки для проекта будут удалены. Все ассеты будут по новой сбилжены

    Удалить папку /.git/unreal

    В данной папке находятся старые движки, если они были плохо удалены при запуске скрипта /Game/UpdateEditor.sh