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"

How can I get a Gameplay Module to load?

It might be extremely early, but I'm trying to figure out how modding is going to work by trying to write an extremely simple and purely scientific Unreal Tournament module.

I have cloned and successfully compiled both the UnrealEngine (4.1) and UnrealTournament. I then tried to follow this article: https://docs.unrealengine.com/latest/INT/Programming/Modules/Gameplay/index.html (many things are left unclear in here, a lot of hunting and pecking through existing code and files followed).

So, in UnrealTournament's Source directory, I created a directory for my module, called MyModule. I added MyModule to the OutExtraModuleNames in the Target.cs scripts and created a basic blueprintable (and abstract) class called BlueprintMe, deriving UObject. Well, here's all my C++ code (I used the UnrealTournament module itself as an example):


 #ifndef __MOD_H__
 #define __MOD_H__
 #include "Engine.h"
 #include "BlueprintMe.h"


 #include "MyModule.h"
 #include "MyModule.generated.inl"
 IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, MyModule, "My Module");


 #pragma once
 #include "BlueprintMe.generated.h"
 UCLASS(Abstract, Blueprintable)
 class UBlueprintMe : public UObject
     UPROPERTY(BlueprintReadWrite, Category = "MyModule")
     int SomeValue;


 #include "MyModule.h"
 UBlueprintMe::UBlueprintMe(const FPostConstructInitializeProperties& PCIP)
     : Super(PCIP)

I got it to compile and ended up with a DLL file UE4Editor-MyModule.dll in the Binaries directory, accompanied by its debug pdb. All good and well.

Now I'd like to be able to load up this module in the editor when I load the UnrealTournament uproject. However, I have not the slightest idea how to do that. I tried following the article mentioned above and added those INI entries to DefaultEngine.ini. I also added them to DefaultEditor.ini since I am running an editor build.

However, there is no way to see if MyModule has been loaded. All I know is that my BlueprintMe class does not appear in the list of blueprint bases when I create a new blueprint.

What do I need to do to have my module loaded with the UnrealTournament project and my blueprintable class to be recognized as a blueprint base?

Product Version: Not Selected
more ▼

asked May 24 '14 at 12:06 PM in C++ Programming

avatar image

123 6 8 12

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

1 answer: sort voted first

Responding to an old post as I just spend an hour on this.

I am not sure what the correct method is, but I ended up editing the module list in the [project].uproject file. Everything seem to work after that. I suggest that https://docs.unrealengine.com/latest/INT/Programming/Modules/Gameplay/index.html be updated to either include that or give the correct mechanism.

Something I'll add is that in editor Window>Developer Tools>Modules will show you a list of all of the modules loaded. It is also a great way to recompile specific modules without restarting the editor.

more ▼

answered Sep 01 '14 at 02:03 PM

avatar image

86 3 19 20

avatar image pdinklag Sep 03 '14 at 07:30 PM

I'll accept this as this works and seems to be the only way at the time. That module screen is very convenient indeed. They should just add an add button there.

avatar image rhm Dec 24 '14 at 03:08 AM

Thanks for posting this! It's crazy that none of the ini settings on the Gameplay modules documentation work. Why are they there? Why hasn't the documentation been fixed? Epic?

avatar image TheBunyip Feb 18 '16 at 10:52 AM

Agreed, this is unnecessarily painful to set up.

avatar image zerophase Jan 17 '17 at 05:16 AM

I was able to get singleton modules to load themselves. Still having a hard time figuring out the proper way to load a regular module correctly, so it will work across projects.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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