Just messing around with Unreal Engine and C++ to create a Mario-like game.
NOTE: 95% of the documentation in the classes was done with JetBrains AI Assistant.
- Download Epic Games Launcher from the inter-webs
- Will have to sign up for an Epic Games account
- download and install Unreal Engine via the Epic Games Launcher (for this project, UE 5.2.1 was used)
- Clone the repo
- Download IDE (Rider or VSCode)
- Open the repo in the IDE
- test build
- Add changes to a branch other than
main(good practice to add a task number in the branch title) - once tested and working, make a pull request to main (see flowchart above)
Each time you want to test a change, the code must be compiled.
a. Compile the code (ctrl+alt+F11)
b. Use the little tetris-icon button at the bottom-right in unreal editor
Testing can be done one of three ways:
- crank up UE5 and direct it to the project
- Hit the little
playbutton to run the game
using the packaging selections (development for quick packing) in UE (Unreal Editor), choose the proper platform for your dev machine.
without compile
F:\UE_5.2\Engine\Build\BatchFiles\RunUAT.bat BuildCookRun -project="C:\Users\A-A-Ron\git\SideScroller\SideScroller.uproject" -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -cook -allmaps -NoCompile -stage -pak -archive -archivedirectory="C:\Users\A-A-Ron\Desktop\Games\sidescroller"with compile
F:\UE_5.2\Engine\Build\BatchFiles\RunUAT.bat BuildCookRun -project="C:\Users\A-A-Ron\git\SideScroller\SideScroller.uproject" -noP4 -platform=Win64 -clientconfig=Development -serverconfig=Development -cook -allmaps -build -stage -pak -archive -archivedirectory="C:\Users\A-A-Ron\Desktop\Games\sidescroller"copy package to 2 more locations (may have to create the sidescroller1 and sidescroller2 locations)
cp -R C:\Users\A-A-Ron\Desktop\Games\sidescroller\Windows C:\Users\A-A-Ron\Desktop\Games\sidescroller1\;
cp -R C:\Users\A-A-Ron\Desktop\Games\sidescroller\Windows C:\Users\A-A-Ron\Desktop\Games\sidescroller2\;run all three executables
C:\Users\A-A-Ron\Desktop\Games\sidescroller\Windows\SideScroller.exe;
C:\Users\A-A-Ron\Desktop\Games\sidescroller1\Windows\SideScroller.exe;
C:\Users\A-A-Ron\Desktop\Games\sidescroller2\Windows\SideScroller.exe;remove the packaged game files from all three locations
rmdir C:\Users\A-A-Ron\Desktop\Games\sidescroller\Windows;
rmdir C:\Users\A-A-Ron\Desktop\Games\sidescroller1\Windows;
rmdir C:\Users\A-A-Ron\Desktop\Games\sidescroller2\Windows;& F:\UE_5.2\Engine\Binaries\Win64\UnrealEditor.exe C:\Users\A-A-Ron\git\SideScroller\SideScroller.uproject /Game/Maps/Map_MainMenu -game -log -v -windowed resx=1280 resy=720"/Users/Shared/Epic Games/UE_5.2/Engine/Binaries/Mac/UnrealEditor.app/Contents/MacOS/UnrealEditor" $HOME/git/SideScroller/SideScroller.uproject /Game/Maps/Map_MainMenu -game -log -v -windowed resx=1280 resy=720 &useful when trying to rename a BP and unreal tells you "there is already a BP with that name", but you know there isn't anymore
See the following link: https://docs.unrealengine.com/4.26/en-US/ProductionPipelines/Redirectors/
& F:\UE_5.2\Engine\Binaries\Win64\UnrealEditor.exe C:\Users\A-A-Ron\git\SideScroller\SideScroller.uproject -run=ResavePackages -fixupredirects -autocheckout -projectonly -unattendedIf unreal crashes and it isn't apparent as to why, the quickest way to troubleshoot is...
- go to the following directory (or similar)
%LocalAppData%\UnrealEngine\5.2\Saved\Crashes - sort by date
- look for the folder with a date nearest the crash time
- read the last entries in the
*.logfile
flowchart TD;
A[Start] --> B[Make change in your non-main branch]
B --> Z[Test the change]
Z --> C{Does it work?}
C -->|No| B
C -->|Yes| D[Check it in]
D --> E[Create Pull Request]
E --> F[End]
https://drive.google.com/file/d/1YFvWsiDKBotM7sMRIEvBJmszVkTc90zK/view
