By the end of this journey, you'll have a development environment that lets you get into your mod with a simple hotkey.
In my opinion, having minimal time between making a change and seeing results is the secret sauce of an enjoyable software project. By putting in a little bit of effort upfront, you'll be able to iterate on your mod quickly and avoid wasting time. It may seem like it only takes a little bit of time to package and run your project manually, but it adds up!
If you get stuck anywhere along the way, here is how my project folder looks after completing this journey.
Note that you'll need to change DRGModdingAutomationScripts\Configs\LocalConfig.ini
to match the UE4 and DRG install paths on your system.
These repositories will do all of the heavy-lifting of setting up a project and getting it packaged and running quickly. Follow the instructions on the FSD-Template GitHub page to get started.
I think most of my audience is probably comfortable navigating GitHub and checking out projects. If that's not the case, let me know and I'll expand this section.
This is really easy. First, navigate to your project folder and then open DRGModdingAutomationScripts\UtilityBats
and then run MakeDefaultConfigFiles.bat
.
Next, go up one folder and open Configs\LocalConfig.ini
in your favorite text editor.
Change the first line to ProjectFile=..\FSD.uproject
. Change the next two lines as needed. On my system, the file ends up looking like this:
Now, go back to the DRGModdingAutomationScripts
directory and run QuickTestMod.bat
. When you see (F = file, D = directory)?
press "f". You should now see your mod launched!
Download and install AutoHotkey version 1.1. Then, download and save this file to your project directory.
For reference, here's the contents of this script:When this script is running and the Unreal Editor is open, you can hold the windows key and press p and your mod will immediately be packed and launched!
A final note about Autohotkey - It's really cool and I encourage you to learn how to use it to automate your other tasks. However, with its functionality comes some downsides. It's a popular choice among cheaters, so I should let you know that if you find you can't launch some of your favorite games, check to make sure this script isn't running and exit it by right-clicking on the "H" icon in the taskbar.