Linux set up
This guide will show you how to install unreal engine, compile required extension and get you up and running with the project
Getting unreal engine
We have to compile unreal engine from source-code in order to use necessary plugins
- Visit unreal engine site and request their source code from this link they have a guide there how to do that
- Once you have the source code you can fork the repo and clone it directly to the desired directory on your compute, i suggest that you do it under
~/Software/
git clone <repo url>.git
- When this is done go to the directory of the cloned game engine
cd ~/Software/UnrealEngine
- Execute the following command to setup unreal engine for compilation
./Setup.sh
This should take couple of minutes
- Now execute another bash script to generate the project files
./GenerateProjectFiles.sh
- Now run the make file to compile the engine
make
This takes around 2 hours so, you only have to wait
- After this is done you can execute Unreal Editor and select any template to see if everything works
cd ~/Software/UnrealEngine/Engine/Binaries/Linux
./UnrealEditor
Getting Jet Brains Rider
- Download Jet Brains rider from this link now go the the directory where
.tar.gz
file downloaded and execute following command
sudo tar -xzf Rider.tar.gz -C /opt
NOTE: the
Rider.tar.gz
can have various letters and strings after each, just change the file name to match the one you downloaded
- Navigate to
opt
directory and execute the following commands
cd ./opt/JetBrains Rider-2024.2.3 #can be different version
./Rider.sh
This will open your The jet brains rider, feel free to create desktop shortcut if you want from Tools -> Create Desktop Entry
Compiling plugins
- Download the epic assets manager from the Flat hub
flatpak run io.github.achetagemes.epic_asset_manager
- Open the epic assets manager and enter your epic login info.
- Open the market place in bottom left corner of the application
- Search for the
VaRest
plugin and Download it, it should be included in~/Document/Epic Vault/VaRestPlugin_5.4
- Go to the
VaRestPlugin_5.4/data/Engine/Plugins/Marketplace/VaRestPlugin
- Open file
VaRest.uplugin
in any text editor and add"Linux"
to thePlatformAllowList
, if in the future plugins there is no modules add it there, this one should have it though
"Modules": [
{
"Name": "VaRest",
"Type": "Runtime",
"LoadingPhase": "PreDefault",
"PlatformAllowList":[
"Linux"
]
},
{
"Name": "VaRestEditor",
"Type": "UncookedOnly",
"LoadingPhase": "Default",
"PlatformAllowList":[
"Linux"
]
}
- Make a copy of your Unreal Engine folder as it can broke to the point you would have to rebuild entire engine if we use it for the compilation of the plugin.
cd ~/Software
cp UnrealEngin ./UnrealEngine-cpy -rrm
- Navigate to the batch files of the copied engine and compile the plugin
cd ~/Software/UnrealEngine-cpy/Engine/Build/BatchFiles
./RunUAT.sh BuildPlugin -Plugin="/home/name/Documents/EpicVault/VaRestPlugin_5.4/data/Engine/Plugins/Marke
tplace/VaRestPlugin/VaRest.uplugin" -Package="/home/name/Documents/EpicVault/VaRestPlugin_5-build" -TargetPlatforms=Linux
# package is the directory where you want the compiled plugin to be in
This will again take around 1 hour to compile
Once it is done move the plugin from its compiled directory to the ~/Software/UnrealEngine/Engine/Plugins/Markteplace
if there is no market place directory create it
In case of any issues of compiling the plugin refer to this video.
If you can not start your unreal engine after you have done this or getting error that the some library is missing, you unfortunately must remove the engine and recompile it from scratch.
Running the project
Now we can finally get to the project we are supposed to be running. Clone the project from the organisation's repository.
Now open the rider use it to open the file called ThreeDAnatomy.uproject
if you get errors that there is no engine associated with this project or that the project could not be loaded navigate to the ~/.config/EpicGames/UnrealEngine
and use open Install.ini
, there you should see something like this
[Installations]
{61290131-F9C9-4A40-9CB3-202F4B612D47}=/home/name/Software/UnrealEngine
Add another line with following content
UE_5.4=/home/wpsimon09/Software/UnrealEngine
Now open the ThreeDAnatomy.uproject
and change the "EngineAssociation"
key to have the value of 5.4
{
"FileVersion": 3,
"EngineAssociation": "5.4",
"Category": "",
"Description": "",
//other stuff
}
Now close the rider and reopen the ThreeDAnatomy.uproject
with it, it might still display that it was not loaded but eventually after quite some time it should load it, the loading is signalised by the progress bars on the bottom left of Rider interface
Note that it loaded both the project and engine.
![[Rider-interface-loaded-project-and-engine.png]]
Now you have to build the project by right clicking on the ThreeDAnatomy
and selecting BuildSelectedProjects
IMPORTANT: Never select the option to build the solution as it will rebuild entire Unreal Engine together with it
Once everything is build you can press play in top right corner (or debug) it will open the unreal editor where you can start working