x

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"

Module modifying editor causing compile C++ button to disappear

As the title states, I am working on a module that adds to the editor, but for whatever reason, without any sort of errors in the output, my compile C++ button is gone. I don't know if this is intended, but I'd like to understand what is happening, regardless.

I've looked at other similar questions, but nothing that encompasses my scenario and the given solutions did not fix my situation. Even creating a new project it disappeared immediately upon the module being recognized. My uproject file modules looks like "Modules": [ { "Name": "PlaytestingPlugin", "Type": "Editor", "LoadingPhase": "PostEngineInit", "AdditionalDependencies": [ "Engine", "Slate", "SlateCore" ] ]

but it stopped working even when the type was Runtime and LoadingPhase default. It first began in the new project when I changed IMPLEMENT_PRIMARY_GAME_MODULE(FPlaytestingPluginModule, ToolPlugin, "ToolPlugin") to IMPLEMENT_MODULE(FPlaytestingPluginModule, PlaytestingPlugin). Before the change, the module was not being detected in the new project. I now can switch it back and it detects the module, yet still no compile c++ button. Any help would be much appreciated.

Product Version: UE 4.21
Tags:
more ▼

asked Feb 11 '19 at 06:35 AM in C++ Programming

avatar image

alsanoja
1 2 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I had the same problem recently, when switching to Linux from Windows. By commenting-out all possible offending code and then un-commenting piece-by-piece, I was able to trace the origin of the problem. It turned out to be the use of memcpy() in a class constructor. Replacing the mempcy() with a loop eliminated the problem:

float a[6], b[6];

memcpy(a, b, 6*sizeof(float)); // BAD

for (uint8_t k=0; k<6; ++k) { a[k] = b[k]; } // GOOD

Although your problem may not be coming from the same usage as mine, I would look for any low-level memory operations like this, and see whether you can solve the problem by replacing them with something equivalent.

more ▼

answered Feb 16 '19 at 10:03 AM

avatar image

Simon D. Levy
1 1 1

avatar image alsanoja Feb 26 '19 at 10:27 PM

I don't seem to be doing any low level memory operations, but I'll keep that in mind. Thanks.

(comments are locked)
10|2000 characters needed characters left
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