This is the thread where you can post all your questions and solutions as you upgrade your project to 4.21!
**error C2039: 'GetPhysXScene': is not a member of 'FPhysScene_PhysX'**
```
PxScene* PScene = PhysScene->GetPhysXScene(PST_Sync);
```
becomes
```
PxScene* PScene = PhysScene->GetPxScene(PST_Sync);
```
**‘GetPxRigidActor_AssumesLocked’: is not a member of ‘FBodyInstance’ error.
After switching to 4.21, git status always give this:
Untracked files:
(use "git add <file>..." to include in what will be committed)
IOS/IOSTargetPlatform/Private/IOSTargetDeviceOutput.h
IOS/IOSTargetPlatform/Private/IOSTargetDeviceOutput.inl
But if I delete the files manually it gives:
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory) deleted:
iOS/IOSTargetPlatform/Private/IOSTargetDeviceOutput.h deleted:
iOS/IOSTargetPlatform/Private/IOSTargetDeviceOutput.inl
it seems they are both tracked and not tracked?
Looking at 4.21 git log of the files, it seems those two files were deleted and re-added due to some kind of case sensitivity issue, and you can see the folder goes from IOS to iOS in the status messages. On my system it is IOS, but on github it is listed as IOS too. If I change it to iOS I instead start getting:
Untracked files:
(use "git add <file>..." to include in what will be committed)
iOS/IOSPlatformEditor/
iOS/IOSTargetPlatform/IOSTargetPlatform.Build.cs
iOS/IOSTargetPlatform/Private/IOSDeviceHelper.h
iOS/IOSTargetPlatform/Private/IOSTargetDevice.cpp
iOS/IOSTargetPlatform/Private/IOSTargetDevice.h
iOS/IOSTargetPlatform/Private/IOSTargetPlatform.cpp
iOS/IOSTargetPlatform/Private/IOSTargetPlatform.h
iOS/IOSTargetPlatform/Private/IOSTargetPlatformModule.cpp
iOS/IOSTargetPlatform/Private/Mac/
iOS/IOSTargetPlatform/Private/Windows/
iOS/TVOSTargetPlatform/
Trying to upgrade my toolkit for the market place and everything plays fine in the editor and standalone but now when I publish the example game it creates then i try to load a level pass the title screen and it just crashed with no real path as to what is wrong:
Access violation - code c0000005 (first/second chance not available)
So far I’ve tried using the command line to compile just the plugin and its giving me errors about including object.h not being found. So far I’ve tried to change my build.cs from:
So I’m experiencing something rather odd, I transitioned a test project for 4.20 to 4.21 with no issues at all, So I went ahead and did the same thing with my main project. Now, all of my includes for anything to do with UE4 cannot be opened. Took some screenies of the problem at hand (I’ve used CoreMinimal as a focus point).
It appears as if it no longer has the right path to any of the engine headers (2nd screenshot does not include the Public folder of Runtime/Core), all of these worked fine on 4.20, and continues to work fine if I change the engine type back. It also appears to change from using Community 2015 to Community 2017, not sure if this has something to do with it?
Any help would be appreciated, I’d like to keep our project on the latest engine while it is still viable to do so.
If anyone else gets this problem (even though it was a really dumb error on my move), you may have to remove some plugins that do not work with 4.21 from your target.cs files.
I’ve been having serious troubles to make UE4.21 work.
Had to modify most of my build.cs files because all the relative paths were resolved using the engine’s directory. I modified these .cs files replacing things like [FONT=courier new]moduleName/public with [FONT=courier new]Path.Combine(ModuleDirectory, “Public”)
Various properties became private and had to replace them with the new Getters (this is ok and pretty sensible thing to have regardless)
Maybe it’s just me but this whole private PCH thing is quite confusing. I know what a PCH is and what it does but the way unreal uses them and how it affects the compilation… it’s confusing. Why do I have to specify a PrivatePCHHeaderFile if I set PCHUsageMode.NoSharedPCHs?
Now in my playerController::BeginPlay if I pass to some of my objects a pointer to the player controller it becomes STALE !
I’ve been updating the engine’s source every release since 4.11 and this time I skipped 4.20 and went directly from 4.19 to 4.21.
I updated to 4.21.1 and now all my destructible assets have gone crazy. There is a brick wall and when it breaks apart the bricks bounce all around like rubber balls. I have a monster trucks that fly’s like a kit in a storm. How am i supposed to fix all of this
Hi i have problem with updating project from 4.20.3 to 4.21.2. With this error:
Was only expecting C++ files to have CachedCPPEnvironments!
Do u know anyone what is wrong???
didnt’ their used to be more pages to this thread? how do i set build settings = v.2 in my target.cs ? it seems like all the info about how to do this stuff is now gone