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"

4.14 UProperty Enforcing Capslock

4.14 is forcing me to create REP properties in full capslock; I'd like to understand why is that?!

I.e:

 UPROPERTY(Replicated)
 int32 HitPoints;
 
 UPROPERTY(Replicated)
 int32 Mana;


That will generate errors inside .generated files unless I rename ALL my UProperties to match generated code now:

 UPROPERTY(Replicated)
 int32 HITPOINTS;
 
 UPROPERTY(Replicated)
 int32 MANA;


Why the hell on earth is this happening in 4.14 and who is responsible for this such "great idea" ??

Product Version: UE 4.14
Tags:
more ▼

asked Dec 06 '16 at 02:27 AM in Bug Reports

avatar image

BrUnO XaVIeR
991 31 17 36

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

1 answer: sort voted first

Hello,

I've tested this, but I'm not seeing the same results. I have a few things to try:

Ensure that your project's header file includes Engine.h and UnrealNetwork.h

Here's the test code I used:

MyActor.h:

 UPROPERTY(Replicated)
 float TestProperty;
 
 UPROPERTY(Replicated)
 int32 TestInt;

MyActor.cpp:

 void AMyActor::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const
 {
     DOREPLIFETIME(AMyActor, TestProperty);
     DOREPLIFETIME(AMyActor, TestInt);
 }

I'm not sure why you're getting those errors, but let me know if you are able to reproduce them in a clean project, and if so, please provide a detailed list of repro steps.

Thanks

more ▼

answered Dec 06 '16 at 02:54 PM

avatar image

Sean L ♦♦ STAFF
43.9k 485 150 439

avatar image BrUnO XaVIeR Apr 08 '17 at 07:39 PM

This was caused by "config = XXX" metadata when using UProperty with INI files.

(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