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"

After changing module name all parent classes are missing

After changing module name and MODULE_API tag and recompile all my blueprints in project parent classes are missing. I think unreal can handle finding old classes in new modules.

Product Version: UE 4.12
Tags:
more ▼

asked Jun 28 '16 at 03:19 AM in Bug Reports

avatar image

Yata
544 38 50 68

avatar image Doug E ♦♦ STAFF Jun 28 '16 at 02:53 PM

Hey Yata-

Are you changing the name of engine/plugin/custom modules? If you're using a custom module (ex: for your own game code) can you explain how you're creating the new module? Additionally, can you let me know if you're able to use the reparent option to re-associate the blueprints with their parent classes?

avatar image Yata Jun 29 '16 at 05:31 AM

Hi Doug, I renamed main module of the project and changed _API macros, and all blueprint classes where broken. Reparenting by hand is not an option for me, we have too many classes.

avatar image Yata Jun 29 '16 at 09:47 AM

Actually is it possible to reparent blueprint from content browser? I don't see any option there.

avatar image Doug E ♦♦ STAFF Jun 29 '16 at 06:24 PM

I want to ensure that I am doing the same things you are in my attempt to reproduce this locally. With a project named MyProjectA - I've changed the reference of MyProjectA in the Build.cs file to NewProj. In addition, I've also changed MyProjectA_API to NewProj_API in all of the classes of my project. Are there any other places where you are doing any renaming?

avatar image Yata Jun 30 '16 at 04:39 AM

Doug, in general i change module name in uproject, change name of .cs files and change _api macros. No classes renaming. But i'll try to recheck everything on weekend, and will drop you exact steps.

avatar image Doug E ♦♦ STAFF Jul 06 '16 at 03:17 PM

Hey Yata-

I tried to change the name inside the .uproject as well as rename the .Target.cs/Editor.Target.cs/Build.cs files. I then changed the _API for the files in the project. After doing so I was unable to Generate the Visual Studio project files. Can you explain exactly what you're changing in your project?

avatar image Yata Jul 07 '16 at 03:37 AM
  • In .uproject change module names.

  • Rename source folders

  • rename *.Target.cs and classes inside them, also rename ExtraModuleNames

  • In source folders rename *.Build.cs files and module name references if any.

after that .sln should generate.

After that you can change _API macros.

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

2 answers: sort voted first

I noticed this thread, I'm working on some improvements to redirects that will make this easier in the 4.16 timeframe, but it's still in progress.

But you can do this now, with a redirect that has a confusing name:

+ActiveGameNameRedirects=(OldGameName="/Script/MovieSceneCore",NewGameName="/Script/MovieScene")

That redirects all classes inside /Script/MovieSceneCore, even though it isn't actually a game. There are some bugs with this but it may do what you want.

more ▼

answered Jan 03 '17 at 11:37 PM

avatar image

Ben Zeigler
341 3 4 23

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

Hey Yata-

Thank you for the detailed steps. I was able to reproduce the issue and have entered UE-32892 for investigation.

Cheers

Doug Wilson

more ▼

answered Jul 07 '16 at 01:27 PM

avatar image Yata Oct 12 '16 at 03:46 PM

Hi, Doug.

Looks like ticked was marked Won't Fix. With proposal to use class redirects. Ok it may work, but maybe Epics can add module redirects, which will redirect all classes of one module to another module. Listing all the classes by hand can be not easy task. Or there is already some similar feature?

avatar image Doug E ♦♦ STAFF Oct 12 '16 at 07:08 PM

I have entered a feature request for the ability to redirect all classes of a module. You can follow the report here (https://issues.unrealengine.com/issue/UE-37232 ) as it is reviewed by developers.

avatar image Hevedy Nov 17 '17 at 07:11 PM

Same problem here on 4.15 But the Ben solution worked for now.

(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