Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Hot Reloading Game Modules

Hi there

Recently I wanted to rename my UE project (which has C++ sources). As a lot of people seem to be having trouble renaming their projects, I chose a differen approach, in where I declared my previous PrimaryGameModule to be a normal GameModule and introduced a new PrimaryGameModule with the new name of my project. This way packaging the project correctly gerenates a .EXE with the new name.

However, I noticed, that hot reloading my now secondary game module does not work anymore. Since pretty much all of my code is in the secondary game module, it is really painful to restart the editor each time. When I check the list of modules currently loaded in the editor, I can find my new primary game module, as well as the secondary module. However, the "Unload" and "Reload" buttons are missing for the secondary module.alt text

Is this a known issue/limitation of the Editor, or am I just doing something wrong? Apart from the hot reloading everything works perfectly with the new setup of using the previous primary module as a secondary module.

Cheers, Elewyth

Edit: When I press the "Recompile" button, I get the following error in the console, if this is of any help:

 Recompiling Arena...
 Launching UnrealBuildTool... [C:/Program Files/Epic Games/4.9/Engine/Binaries/DotNET/UnrealBuildTool.exe UE4Editor -ModuleWithSuffix Arena 4689 Win64 Development -editorrecompile -canskiplink "C:/dev/Supremity/Supremity.uproject" -rocket  -rocket]
 CompilerResultsLog: New page: Compilation - Oct 21, 2015, 4:58:44 PM
 CompilerResultsLog: Info Performing full C++ include scan (hot reloading a new target)
 CompilerResultsLog: Info Creating makefile for hot reloading UE4Editor (no existing makefile)
 CompilerResultsLog: Info Compiling game modules for hot reload
 CompilerResultsLog: Info ERROR: One or more of the modules specified using the '-module' argument could not be found.
 LogMainFrame: MainFrame: Module compiling took 2.266 seconds
 Warning: HotReload failed, recompile failed
 Warning: RebindPackages failed because the compiler could not be started.

Product Version: UE 4.9
modulelist.png (3.8 kB)
more ▼

asked Oct 21 '15 at 12:53 PM in C++ Programming

avatar image

412 24 19 34

avatar image Shadowriver Oct 21 '15 at 04:40 PM

You have also "module" command in console to load and unload modules. Fact that Unload and Reload is missing most likely means module is not loaded at all, but check "module list" command

avatar image Elewyth Oct 21 '15 at 07:26 PM

The module is loaded, otherwise the entire game wouldn't work, as all of my game logic is inside that module. Just to verify, the "module list" command contains the following line:

Arena [File: ../../../../../../dev/Supremity/Binaries/Win64/UE4Editor-Arena-8631.dll] [Loaded: Yes]

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question