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"

Can't use hot reload for plugin and Actor class UE4

First, I created a C++ class interhited none to create maze generator. Then I saw, that hot reload need at least 1 gameplay object(Actor, Gamemode etc.). I created an Actor class(there was some problems from this topic), but hot reload also gives me a

Warning: RebindPackages not possible for specified packages (or application was compiled in monolithic mode.)

Product Version: UE 4.18
more ▼

asked Apr 15 '18 at 08:26 AM in C++ Programming

avatar image

10 3 4 10

avatar image Poseydon42 Apr 15 '18 at 08:27 AM

A maze generator class hasn't UCLASS() mark, but Actor class has it.

avatar image MrMcKvarz Apr 15 '18 at 06:17 PM

You can't hot reload plugins, you need to restart the editor or do it from modules window.

avatar image Poseydon42 Apr 16 '18 at 04:01 PM

What you want to say me in "restart the editor". How can it help me? In modules window I can't find any my class

avatar image MrMcKvarz Apr 16 '18 at 07:35 PM

Do you have your code inside a plugin?

avatar image Poseydon42 Apr 17 '18 at 04:37 PM

No, becasuse when I add an UCLASS() and GENERATED_BODY(), VS2017 returns error, because I can't find and inlcude .generated.h file.

avatar image Poseydon42 Apr 18 '18 at 04:44 PM

Help, please!

avatar image MrMcKvarz Apr 18 '18 at 07:57 PM

When running a project from IDE, in the output log you should see smth like enabling unity mode because of the "file name", you should then check all includes in that file.

avatar image Poseydon42 Apr 21 '18 at 12:21 PM

Where can I see it? In VS or in UE4.

avatar image MrMcKvarz Apr 21 '18 at 01:28 PM

In VS, when unreal header tool is running, first thing when you press start.

avatar image Poseydon42 Apr 21 '18 at 03:42 PM

It's my build log in VS:

1>------ Build started: Project: TestingSomething, Configuration: Development_Editor x64 ------

1>Creating makefile for TestingSomethingEditor (no existing makefile)

1>Parsing headers for TestingSomethingEditor

1> Running UnrealHeaderTool "D:\Home\Volodya\Projects\Games\UE4\TestingSomething\TestingSomething\TestingSomething.uproject" "D:\Home\Volodya\Projects\Games\UE4\TestingSomething\TestingSomething\Intermediate\Build\Win64\TestingSomethingEditor\Development\TestingSomethingEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed

1>D:/Home/Volodya/Projects/Games/UE4/TestingSomething/TestingSomething/Source/TestingSomething/MazeGen.h(1): error : Invalid class name 'MazeGen'. The class name must have an appropriate prefix added (A for Actors, U for other classes).

1>EXEC : error : UnrealHeaderTool failed for target 'TestingSomethingEditor' (platform: Win64, module info: D:\Home\Volodya\Projects\Games\UE4\TestingSomething\TestingSomething\Intermediate\Build\Win64\TestingSomethingEditor\Development\TestingSomethingEditor.uhtmanifest, exit code: OtherCompilationError (5)).

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""C:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" TestingSomethingEditor Win64 Development "D:\Home\Volodya\Projects\Games\UE4\TestingSomething\TestingSomething\TestingSomething.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.

1>Done building project "TestingSomething.vcxproj" -- FAILED.

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

When I renamed class to UMazeGen, it sad that class must extend UObject.

avatar image MrMcKvarz Apr 21 '18 at 03:57 PM

It says that your class cannot be simply MazeGen, it should be AMazeGen if derived from AActor, and UMazeGen if derived from UObject.

avatar image Poseydon42 Apr 22 '18 at 08:15 AM

So I have to derive this class for UObject and name it UMazeGen? But if all classes must derive UObject or AActor, why UE4 has ability to create classes interhited "None"?

avatar image MrMcKvarz Apr 22 '18 at 01:03 PM

You can use a class with no prefixes, but it has not to be derived from unreal classes. Do you still have that problem?

avatar image Poseydon42 Apr 22 '18 at 05:47 PM

Thanks, but I solved this problem. I created Blueprint C++ Library. Than you.

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

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