# How do I combine Lyra & The Matrix City Sample?

**URL:** <https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848>\
**Category:** Getting Started & Setup\
**Tags:** project, unreal-engine, UE5-0\
**Created:** [April 22, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848 "2022-04-22T16:00:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AstralByte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astralbyte/32/88715_2.png) [@AstralByte](https://forums.unrealengine.com/u/AstralByte)\
**Post date:** [April 22, 2022, 4:00pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/1 "2022-04-22T16:00:48Z")

</div>

Hi All,  
I recently setup the lyra starter game and the matrix city sample projects individually, but I would like to be able to combine the 2 somehow so that I can use the matrix city map with lyra. I know it’s doable because someone has already made a video of doing it (the result not the process) [Unreal Engine 5 Matrix City Lyra bots Multiplayer test with Day/Night Cycle - YouTube](https://www.youtube.com/watch?v=XVN320FOSQA) but the method for actually setting this up is not immediately obvious to me and I can’t quite seem to work it out. I did try copying the files from the city sample to the lyra project content folder as one of the YouTube comments suggested, but that did not work as I couldn’t load any of the city maps properly. I tried the migration option as well but no dice. What is the actual official process for us to merge 2 projects together? A step by step tutorial for this would be awesome. Also wondering why asset packs only have the option to either create a project off it or add to an existing one? Why don’t all assets have both, why can’t I add ‘create new project’ assets to an existing project and why cant I create a project containing only a ‘add to project’ asset (in the one step)? That being said I am mainly interested in the former in my case. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Leroyyyy231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leroyyyy231](https://forums.unrealengine.com/u/Leroyyyy231)\
**Post date:** [June 3, 2022, 6:41am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/2 "2022-06-03T06:41:45Z")

</div>

I don’t have an answer here but I’m curious about this too. I might give it a stab soon and will report back if I figure it out. BTW the YouTube video you linked doesn’t work, but I found another: [99 Bots in LYRA Matrix Hybrid UE5 Demo - YouTube](https://youtu.be/R_fmKOHiu1k)

---

<div class="post-metadata">

**Author:** ![stemlearn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@stemlearn](https://forums.unrealengine.com/u/stemlearn)\
**Post date:** [June 6, 2022, 9:08am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/3 "2022-06-06T09:08:07Z")

</div>

I too am looking for it desparately! Please share any video tutorial if you people come across it

---

<div class="post-metadata">

**Author:** ![Leroyyyy231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leroyyyy231](https://forums.unrealengine.com/u/Leroyyyy231)\
**Post date:** [June 8, 2022, 12:50am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/4 "2022-06-08T00:50:09Z")

</div>

It’s not a video, but here are the steps I took to get Lyra + City Sample working. **I’m not sure if all of these steps are actually required.**

- Assume you have projects called CitySample and LyraStarterGame created
- Copy CitySample\Content to LyraStarterGame\Content, skipping duplicates
  - I made note of the duplicates and copied them to LyraStarterGame\Content\CitySampleContent

- Copy CitySample\Source to LyraStarterGame\Source
- Copy CitySample\Plugins to LyraStarterGame\Plugins
- Move “InputCore” from PrivateDependencyModuleNames to PublicDependencyModuleNames in LyraStarterGame\Source\LyraGame\LyraGame.Build.cs
- Update LyraStarterGame.uproject to merge Plugins and Modules from CitySample.uproject
  - If you don’t want to do this yourself, replace LyraStarteGame.uproject with this file:  
[LyraStarterGame.uproject](https://forums.unrealengine.com/uploads/short-url/uitSYKM3LkAg1b4yrNeLZl9j3W0.uproject) (7.6 KB)

- In File Explorer, right click LyraStarterGame.uproject \> Generate Visual Studio project files
- Open and build the generated Visual Studio solution
- Open the Lyra project in UE5
- Open Big\_City\_LVL.umap or Small\_City\_LVL.umap under Map folder
- In Content/Vehicle/Blueprint/BP\_VehicleBase\_Drivable.uasset I had some compilation errors. To fix, I clicked on link to node in the error message and right clicked the node \> Refresh Nodes, then compile and save
- There will be a lot of warnings like the following which I just ignored for now:
  - LogGameplayTags: Warning: [AssetLog] D:\UE5\LyraStarterGame\Content\UI\Blueprints\OptionsMenu\BP\_CitySampleOptions\_World.uasset: Invalid GameplayTag Soundscape.Mass.Crowds found in object K2Node\_CallFunction\_18.

- At this point if you try to play in editor, it will crash with the error below. The back trace includes UnrealEditor\_MassEntity so that gave me the idea to just delete all items related to the MassEntity framework from the map. I list them below.
  - Assertion failed: PerInstanceSMCustomData.Num() == (NumCustomDataFloats \* PerInstanceSMData.Num()) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\InstancedStaticMesh.cpp] [Line: 3652]
  - Items to delete:
    - BP\_MassCrowdSpawner
    - BP\_MassTrafficIntersectionSpawner
    - BP\_MassTrafficParkedVehicleSpawner
    - BP\_MassTrafficTrailerSpawner
    - BP\_MassTrafficVehicleSpawner
    - MassDebugVisualizer
    - MassVisualizer
    - MassVisualizer1

- In World Settings
  - Change Default Gameplay Experience to B\_ShooterGame\_Elimination
  - Change GameMode Override to None

- The remaining steps are outlined in [this video](https://youtu.be/Fj1zCsYydD8?t=1678) from Epic on how to create a new map for Lyra, but the summary is:
  - Add LyraPlayerStart items to the map
  - If you want Bots:
    - Add a NavMeshBoundsVolume (for AI to move around the level)
    - In Editor Preferences \> Lyra Developer Settings, make sure Override Num Player Bots to Spawn is either not checked or greater than 0

Note there’s a bunch of other warnings and validation failures you’ll get during development and play which don’t seem to break the game. If I have time I’ll try to fix those and report back.

---

<div class="post-metadata">

**Author:** ![TechLord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techlord/32/1040563_2.png) [@TechLord](https://forums.unrealengine.com/u/TechLord)\
**Post date:** [June 22, 2022, 5:45pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/5 "2022-06-22T17:45:13Z")

</div>

@Leroyyyy231 Thank you for Steps and Project File. I desire to retain Mass Crowd & Traffic so Ill post an amendment when I get them to work.

The goal is to randomly possess any Pedestrian, transforming them into a [Lyra Bot Combatant](https://www.youtube.com/watch?v=Jr9W1NDsZLY) when the player is near, similar to how the Agents possessed Citizens in the Matrix Resurrections. The Player will have [Super Hero Powers](https://www.youtube.com/watch?v=15GMR0bKPe8&list=PLRj_wus6cNtII7NMwXsi-KCoC0jfvTbjs) like Neo in a n-vs-1 combat mode for my super hero demo, DEITY.

---

<div class="post-metadata">

**Author:** ![TechLord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techlord/32/1040563_2.png) [@TechLord](https://forums.unrealengine.com/u/TechLord)\
**Post date:** [July 20, 2022, 9:19pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/6 "2022-07-20T21:19:58Z")

</div>

After a couple of weeks of struggle, i failed to get LYRA and MATRIX City to play nice together ☹ However, with [Leroyyyy231’s](https://forums.unrealengine.com/u/Leroyyyy231) Tutorial above, I was able to load up Big\_City Level using LYRA Experience, but no Crowd or Vehicles. So I’m refactoring the Super Hero Demo to omit LYRA Framework and move forward.

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [July 21, 2022, 12:46am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/7 "2022-07-21T00:46:57Z")

</div>

Hi there, good luck in your project.

---

<div class="post-metadata">

**Author:** ![G-TOX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/g-tox/32/739799_2.png) [@G-TOX](https://forums.unrealengine.com/u/G-TOX)\
**Post date:** [August 14, 2023, 7:38am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/8 "2023-08-14T07:38:59Z")

</div>

If anyone is still interested in whether it is possible? Yes, it can be done. I am currently working on a framework based on the best practices from LyraStarterGame, CitySample and Valley of The Ancient.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/3/6d3eb6d1144d5fe18baf479b986f190f10e56bdf.jpeg "Night City Testing") ](https://www.youtube.com/watch?v=8u0Sfay-Duc)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/b/dbbde37076006e5dda86cc58a04ec6a5e2c20552.jpeg "Lyra in CitySample with Vehicles and Crowds") ](https://www.youtube.com/watch?v=db-TSreXdYQ&t=2s)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/4/0a431e9fe394835d0d626d18a253899bfe84e96a.jpeg "GGF v0.5 New Features Dev Testing 2023 07 04") ](https://www.youtube.com/watch?v=ywp9SmqkREc&t=87s)

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [August 14, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/9 "2023-08-14T15:58:36Z")

</div>

i was using City and Lyra but decided to move to ue5main and keep updating Lyra from githuib too with latest fixes. Managed to get cars working but not crowd so not that much bothered be honest

good luck with your project

---

<div class="post-metadata">

**Author:** ![TechLord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techlord/32/1040563_2.png) [@TechLord](https://forums.unrealengine.com/u/TechLord)\
**Post date:** [August 16, 2023, 3:34am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/10 "2023-08-16T03:34:21Z")

</div>

Looking really Awesome G-TOX. But its difficulty to integrate together has suppressed my interest. I use UE intensively and many different assets from various developers. I found the Lyra & City Sample the most difficult to integrate together. I’m not sure why this is so as merging the two awesome projects together would be an obvious consideration.

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [April 8, 2024, 2:24pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/11 "2024-04-08T14:24:30Z")

</div>

I combined Lyra with City Sample for 5.3 also CitySample modules converted to plugins. You can now package game just fine. Instructions in Readme

[for UE 5.3](https://drive.google.com/file/d/1PnWuRi7V0MUMP9EONUYLPeliQzdV9JfJ/view?usp=drive_link)

Any questions, just ask

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [April 28, 2024, 8:26am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/12 "2024-04-28T08:26:41Z")

</div>

Combined Lyra and City Sample for UE 5.4. Just follow instructions in readme file

[for UE5.4](https://drive.google.com/file/d/1nMBfRxKi0qdS8IfCS93FgFA9neXD2zdO/view?usp=drive_link)

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [May 11, 2024, 6:50pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/13 "2024-05-11T18:50:47Z")

</div>

Nanite test enabled on vehicles and Crowd in 5.5 (ue5main branch) combined City and Lyra

> **[Screenshot](https://prnt.sc/DnIrshZtLTLs)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [August 1, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/14 "2024-08-01T20:21:55Z")

</div>

Hi there,  
How did you fix the HLOD issue in the packaged build?  
Thank you for sharing this project.

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [August 1, 2024, 8:48pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/15 "2024-08-01T20:48:30Z")

</div>

If i remember i think i changed it in WorldSettings, let me check and confirm

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [August 1, 2024, 9:11pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/16 "2024-08-01T21:11:39Z")

</div>

Thank you for taking the time, I deleted and rebuilt HLOD but it didn’t work. I recall someone mentioned in this forum, but I can’t find the thread.

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [August 1, 2024, 9:47pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/17 "2024-08-01T21:47:32Z")

</div>

Ok try this, check which HLOD you have in worldsettings

> **[Screenshot](https://prnt.sc/DYwWF06Q0Geq)**
>
> Captured with Lightshot

Then open that file and disable Is Spatially Loaded and test

> **[Screenshot](https://prnt.sc/W0LRO0FG3VPH)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [August 1, 2024, 10:36pm UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/18 "2024-08-01T22:36:23Z")

</div>

Much appreciated. I’ll give a try later tonight and let you know if that works.

---

<div class="post-metadata">

**Author:** ![L.F.A](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l.f.a/32/1194525_2.png) [@L.F.A](https://forums.unrealengine.com/u/L.F.A)\
**Post date:** [August 2, 2024, 3:07am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/19 "2024-08-02T03:07:30Z")

</div>

something is still missing in the HLOD settings. Any advice?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/6/b76fbb580655cff2d1a4ff53a4ef9e34ff56f3d8.jpeg)

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [August 2, 2024, 7:10am UTC](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848/20 "2024-08-02T07:10:56Z")

</div>

This is how i have it. WorldSettings set HLOD to CitySample\_HLOD0

CitySample\_HLOD0 compared with orig CitySample

> **[Screenshot](https://prnt.sc/pd9_keZPo6TW)**
>
> Captured with Lightshot

Project settings HLOD settings compared with orig CitySample

> **[Screenshot](https://prnt.sc/xc6XcEJB9kW2)**
>
> Captured with Lightshot

Im sure we will sort this out, could you please check these and test?

[Next page](https://forums.unrealengine.com/t/how-do-i-combine-lyra-the-matrix-city-sample/536848.md?page=2)
