> For the complete documentation index, see [llms.txt](https://docs.edgegap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgegap.com/ru/docs/sample-projects/unreal-engine/primer-lyra.md).

# Пример Lyra

Узнайте, как размещать проекты Unreal Engine на Edgegap, используя методы из [Lyra Sample](https://dev.epicgames.com/documentation/en-us/unreal-engine/lyra-sample-game-in-unreal-engine).

## ✔️ Подготовка

Прежде чем начать, вам потребуется:

* Unreal Engine 5.5 - [скачать через Epic Games Launcher](https://www.unrealengine.com/en-US/download),
* Lyra Starter Game - [скачать с Fab](https://www.fab.com/listings/93faede1-4434-47c0-85f1-bf27c0820ad0).

Откройте Epic Games Launcher и перейдите в Unreal Engine / Library / Fab Library.

Поиск по «lyra», затем Create Project. Рекомендуем использовать SSD для более быстрого сборки.

## ⚡ Развертывание и подключение

### 1. Разверните сервер на Edgegap

☑️ Чтобы начать, вам нужно [создать бесплатную учетную запись на Edgegap](https://app.edgegap.com/auth/register). Кредитная карта не требуется.

☑️ [Создайте новую версию приложения для вашего приложения](https://app.edgegap.com/application-management/applications/lyra-sample/versions/create), выберите Lyra Sample.

☑️ [Разверните сервер с вашей версией приложения Lyra Sample](https://app.edgegap.com/deployment-management/deployments/list).

☑️ [Откройте сведения о новом развертывании](https://app.edgegap.com/deployment-management/deployments/list).

☑️ Найдите уникальные одноразовые данные для подключения к вашему развертыванию:

* **URL хоста** в формате `780aa4260e83.pr.edgegap.net` ,
* **Внешний порт** в формате `30854`  (5 цифр).

✅ Теперь вы можете перейти к следующему шагу.

### 2. Play In Editor (PIE)

☑️ Перейдите в корневую папку вашего нового проекта Lyra Starter Game на диске.

☑️ Отредактируйте файл Config / DefaultEngine.ini текстовым редактором (например, блокнотом).

☑️ Для каждого `[section]`  ниже добавьте следующее содержимое, если он существует, или создайте секцию.

```
[ConsoleVariables]
net.IgnoreNetworkChecksumMismatch=1
net.CurrentHandshakeVersion=2
net.MinHandshakeVersion=2
net.VerifyNetSessionID=0
net.VerifyNetClientID=0

[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions(DefName="GameNetDriver",DriverClassName="OnlineSubsystemUtils.IpNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[/Script/OnlineSubsystemUtils.IpNetDriver]
MaxClientRate=1000000000 
MaxInternetClientRate=1000000000
InitialConnectTimeout=120.0

[/Script/BuildSettings.BuildSettings]
DefaultServerTarget=LyraServer
```

☑️ Откройте ваш новый проект в Unreal Engine.

☑️ Нажмите кнопку ▶️ Play, чтобы запустить клиент игры.

☑️ Нажмите тильду `~`  и введите `open {host}:{port}`  с данными подключения из предыдущего шага.&#x20;

🙌 Поздравляем с вашим первым развертыванием на Edgegap!

## ✏️ Настроить сборку сервера

{% hint style="success" %}
См. [Unreal Engine](/ru/unreal-engine.md) для Unreal Engine, чтобы **узнать, как собирать и настраивать серверы**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.edgegap.com/ru/docs/sample-projects/unreal-engine/primer-lyra.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
