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"

Random actor lost location

I've noticed strange and quite serious problem. Almost any actor which I drop on map in editor can lost location and change it to World zero location. It's totaly random and concerns diferent actors (also c++ and Blueprints). Also this location change is happening not when I use PIE but just in editor (not runtime). This happens sometimes after hot reaload and I can't notice any dependency realeted with this. I found this problem on 4.13 for the first time.

I'm not sure that I discribed it clear. So for exemple: 1) I drop couple diferent actors on map with editor (c++/BP nevermind) 2) Make some compiles 3) Every actor in level is in correct location 4) Make couple next compiles 5) Some actors have moved to World zero location

This is constructor from one of my "disappearing" classes. It`s realy noting complicated, so I don`t understand... why?

 ASwitchController::ASwitchController()
 {
     // Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.
     PrimaryActorTick.bCanEverTick = true;
 
     struct FConstructorStatics
     {
         ConstructorHelpers::FObjectFinderOptional<UTexture2D>MarkerTextureObject;
 
         FName ID_CatagoryName;
         FText NAME_DisplayName;
 
         FConstructorStatics() : MarkerTextureObject(TEXT("Texture2D'/Game/2DSideScroller/Sprites/S_Trigger.S_Trigger'"))
             , ID_CatagoryName(TEXT("Marker"))
             , NAME_DisplayName(NSLOCTEXT("SpriteCategory", "TokenMarker", "TokenMarker"))
         {
         }
     };
     static FConstructorStatics ConstructorStatics;
 
     BillboardComponent = CreateDefaultSubobject<UBillboardComponent>(TEXT("SpriteName"));
     SpriteTexture = ConstructorStatics.MarkerTextureObject.Get();
     BillboardComponent->Sprite = SpriteTexture;
     BillboardComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision);
     
     UCapsuleComponent* CapsuleComponent = CreateDefaultSubobject<UCapsuleComponent>(TEXT("RootComponent"));
     CapsuleComponent->InitCapsuleSize(100, 120);
     CapsuleComponent->SetCollisionProfileName(TEXT("OverlapAll"));
 
     SetRootComponent(CapsuleComponent);
 
     BillboardComponent->SetupAttachment(RootComponent);
     CapsuleComponent->bGenerateOverlapEvents = true;
     CapsuleComponent->SetHiddenInGame(false);
 }

Product Version: UE 4.13
Tags:
more ▼

asked Sep 30 '16 at 08:22 PM in Bug Reports

avatar image

Waw K.
70 14 24 33

avatar image Doug E ♦♦ STAFF Oct 03 '16 at 01:54 PM

Hey Waw K-

Are you using an instance of the class placed in the level or a blueprint of the class that is being added to the level? I have not been able to reproduce the behavior you mention on my end. If possible, could you provide a sample project with this issue occurring for additional information?

avatar image Waw K. Oct 03 '16 at 11:27 PM

Hey Doug! Thank you for your interesting. I've described my problem more precisely on progrming c++ section. But it is just a proove that I'm not crazy realy.

https://answers.unrealengine.com/questions/499479/actors-losing-map-location-after-compile-realy-ama.html

This problem concerns also c++ instance and blueprints (no difference). I will try to cut out rest of my project to send you just the problematic sample. I will let you know in a couple days. This happend after migrate from 4.10 to 4.13 btw.

I've been working with Unreal since four years and this problem is the realy most strange thing in my programmer carrer :) It's realy interesting why this is happening.

avatar image Doug E ♦♦ STAFF Oct 04 '16 at 12:56 PM

There have been a number of changes and updates to the engine since 4.10. I would try upgrading your project through each engine version (4.11, 4.12, 4.13) separately rather than jumping from 4.10 to 4.13. If the issue still occurs after this please send the sample project when you have the chance.

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

1 answer: sort voted first

Hey Waw K-

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will follow up.

Cheers

Doug Wilson

more ▼

answered Oct 27 '16 at 07:38 PM

(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