# C++

**URL:** https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=74

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 75

---

## [Import Valley of the ancient](https://forums.unrealengine.com/t/import-valley-of-the-ancient/2082775)

<div class="topic-metadata">

**Author:** [@Rarissso](https://forums.unrealengine.com/u/Rarissso)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 1:14pm UTC](https://forums.unrealengine.com/t/import-valley-of-the-ancient/2082775 "2024-10-23T13:14:39Z")

</div>

Hi, I’m trying to import “Echo” from “Valley of the ancient”. I’m migrating entire folder “Character” but unfortunetly I can’t open files inside the “Hair” folder with poping error “can’t edit”. I did try to add Stri…

---

## [Unable to download anything from Quixel in Unreal Engine ](https://forums.unrealengine.com/t/unable-to-download-anything-from-quixel-in-unreal-engine/2081527)

<div class="topic-metadata">

**Author:** [@Khanology101](https://forums.unrealengine.com/u/Khanology101)\
**Replies:** 2\
**Last updated:** [October 23, 2024, 8:48am UTC](https://forums.unrealengine.com/t/unable-to-download-anything-from-quixel-in-unreal-engine/2081527 "2024-10-23T08:48:55Z")

</div>

I’ve been racking my brain around this for hours but just can’t get around it. I can’t download anything from Quixel, the built in plugin in the UE editor doesn’t een show a download icon, I downloaded the Quixel app sep…

---

## [Server location interpolation for client](https://forums.unrealengine.com/t/server-location-interpolation-for-client/2082004)

<div class="topic-metadata">

**Author:** [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Replies:** 0\
**Last updated:** [October 23, 2024, 6:19am UTC](https://forums.unrealengine.com/t/server-location-interpolation-for-client/2082004 "2024-10-23T06:19:26Z")

</div>

Does anyone have a pseudo code for server location interpolation and extrapolation on the client? I am replicating vehicle location, and will simulate the same movement on the client, but want to perform corrections base…

---

## [winnt.h(620): warning C4005: 'TEXT': macro redefinition and HAL/Platform.h(1085): note: see previous definition of 'TEXT'](https://forums.unrealengine.com/t/winnt-h-620-warning-c4005-text-macro-redefinition-and-hal-platform-h-1085-note-see-previous-definition-of-text/738630)

<div class="topic-metadata">

**Author:** [@TecDevStudio](https://forums.unrealengine.com/u/TecDevStudio)\
**Replies:** 3\
**Last updated:** [October 23, 2024, 4:02am UTC](https://forums.unrealengine.com/t/winnt-h-620-warning-c4005-text-macro-redefinition-and-hal-platform-h-1085-note-see-previous-definition-of-text/738630 "2024-10-23T04:02:05Z")

</div>

C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.22621.0\\um\\winnt.h(620): warning C4005: ‘TEXT’: macro redefinition UATHelper: Package Plugin Task (Windows): d:\\ue\_4.27\\engine\\source\\runtime\\core\\public\\HAL/Platf…

---

## [Declare delegate in one header file and use it in other headers](https://forums.unrealengine.com/t/declare-delegate-in-one-header-file-and-use-it-in-other-headers/483914)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_da48ad62](https://forums.unrealengine.com/u/anonymous_user_da48ad62)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 9:38pm UTC](https://forums.unrealengine.com/t/declare-delegate-in-one-header-file-and-use-it-in-other-headers/483914 "2024-10-22T21:38:24Z")

</div>

Hello, I have a very simple query to which I was not able to find an answer from a quick google search. Maybe because its too obvious or its a silly question. Lets say I have a two classes A and B having their own head…

---

## [How do I mount a .pak file?](https://forums.unrealengine.com/t/how-do-i-mount-a-pak-file/2080854)

<div class="topic-metadata">

**Author:** [@moitajhonsons](https://forums.unrealengine.com/u/moitajhonsons)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 7:47pm UTC](https://forums.unrealengine.com/t/how-do-i-mount-a-pak-file/2080854 "2024-10-22T19:47:53Z")

</div>

I’ve read Unreal’s documentation, but I’d like to know if anyone can explain in detail how to mount an external .pak file in my game. I’ve tried a lot of things, but nothing has worked so far. To give more context, I’m …

---

## [How can I create a TArray\<const struct\> ? (It won't compile)](https://forums.unrealengine.com/t/how-can-i-create-a-tarray-const-struct-it-wont-compile/2071890)

<div class="topic-metadata">

**Author:** [@andyvyking](https://forums.unrealengine.com/u/andyvyking)\
**Replies:** 5\
**Last updated:** [October 22, 2024, 6:39pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-tarray-const-struct-it-wont-compile/2071890 "2024-10-22T18:39:47Z")

</div>

I want to create a TArray of const structs, but the compiler is failing on my Add() calls. Sample code: USTRUCT(BlueprintType) struct MULTIPLAYERSESSIONS\_API FMultiplayerSessionsSearchResult { GENERATED\_BODY() FMult…

---

## [Unreal Engine Searching for MSVC in the wrong location causing live coding to always fail](https://forums.unrealengine.com/t/unreal-engine-searching-for-msvc-in-the-wrong-location-causing-live-coding-to-always-fail/2080342)

<div class="topic-metadata">

**Author:** [@Valery-AA](https://forums.unrealengine.com/u/Valery-AA)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 2:53pm UTC](https://forums.unrealengine.com/t/unreal-engine-searching-for-msvc-in-the-wrong-location-causing-live-coding-to-always-fail/2080342 "2024-10-22T14:53:53Z")

</div>

Since installing 5.4.4 whenever trying to run livecoding i get this error LINK : fatal error LNK1181: cannot open input file 'D:\\Programs\\Microsoft Visual Studio\\2022\\VC\\Tools\\MSVC\\14.38.33130\\lib\\x64\\legacy\_stdio\_wide\_…

---

## [Play Mode seemingly crashes with an empty stack trace](https://forums.unrealengine.com/t/play-mode-seemingly-crashes-with-an-empty-stack-trace/2080149)

<div class="topic-metadata">

**Author:** [@Ajapai](https://forums.unrealengine.com/u/Ajapai)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 1:19pm UTC](https://forums.unrealengine.com/t/play-mode-seemingly-crashes-with-an-empty-stack-trace/2080149 "2024-10-22T13:19:23Z")

</div>

Hey I’m quite new to unreal and have encountered varoious crashes, but all were very telling with the stack trace in where the error was happening. Now tho I have a random crash that cannot be reproduced but sometimes h…

---

## [\[4.25\] How to Fix Animation Compression Crashes \[SOLVED\]](https://forums.unrealengine.com/t/4-25-how-to-fix-animation-compression-crashes-solved/143162)

<div class="topic-metadata">

**Author:** [@unit23](https://forums.unrealengine.com/u/unit23)\
**Replies:** 38\
**Last updated:** [October 22, 2024, 1:24pm UTC](https://forums.unrealengine.com/t/4-25-how-to-fix-animation-compression-crashes-solved/143162 "2024-10-22T13:24:10Z")

</div>

If you disable the Event Driven Loading, the debug log will include the path to the animation. Somehow many animations have problems with loading properly, and this subsequently results in a crash. Can this new compressi…

---

## [xcode 打包](https://forums.unrealengine.com/t/xcode/2079533)

<div class="topic-metadata">

**Author:** [@lin\_binglie](https://forums.unrealengine.com/u/lin_binglie)\
**Replies:** 2\
**Last updated:** [October 22, 2024, 10:12am UTC](https://forums.unrealengine.com/t/xcode/2079533 "2024-10-22T10:12:11Z")

</div>

在使用xcode编译时如何将C++文件编译出二级制的可执行文件？ 以及编译完成的 XX.target 文件有何作用？有人能为我解答一下吗？

---

## [C++ unreal resources](https://forums.unrealengine.com/t/c-unreal-resources/2079374)

<div class="topic-metadata">

**Author:** [@Alexsalgado2134](https://forums.unrealengine.com/u/Alexsalgado2134)\
**Replies:** 1\
**Last updated:** [October 22, 2024, 3:34am UTC](https://forums.unrealengine.com/t/c-unreal-resources/2079374 "2024-10-22T03:34:31Z")

</div>

Hi everyone, what’s the best links and resources to starting using c++ in my unreal projects?

---

## [Steam SendInvite always fails](https://forums.unrealengine.com/t/steam-sendinvite-always-fails/783823)

<div class="topic-metadata">

**Author:** [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Replies:** 3\
**Last updated:** [October 22, 2024, 1:28am UTC](https://forums.unrealengine.com/t/steam-sendinvite-always-fails/783823 "2024-10-22T01:28:56Z")

</div>

I’m trying to use the SendInvite function to send a game invitation to friends via Steam. But whenever I try to call it, the FOnSendInviteComplete delegate always returns “false” for bWasSuccessful. This is the source co…

---

## [Arrays with enum named items](https://forums.unrealengine.com/t/arrays-with-enum-named-items/48413)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_239d423c](https://forums.unrealengine.com/u/anonymous_user_239d423c)\
**Replies:** 9\
**Last updated:** [October 22, 2024, 12:19am UTC](https://forums.unrealengine.com/t/arrays-with-enum-named-items/48413 "2024-10-22T00:19:47Z")

</div>

Hi, I’m using this syntax to get property editing on a fixed size array with the elements of the array displaying enum item names: UENUM() enum class EMyEnum : uint8 { A, B, C, D, Max }; UPROPERTY() bool MyArray\[…

---

## [Is there anyway to not use \`GameMode\` Class?](https://forums.unrealengine.com/t/is-there-anyway-to-not-use-gamemode-class/2079304)

<div class="topic-metadata">

**Author:** [@ZenPyroo](https://forums.unrealengine.com/u/ZenPyroo)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 11:49pm UTC](https://forums.unrealengine.com/t/is-there-anyway-to-not-use-gamemode-class/2079304 "2024-10-21T23:49:49Z")

</div>

Hello all! I am primarily using C++ in my singleplayer project, and I have many managers for taking care of loading up the game and properly loading in a Player instance. Because of this, I don’t really need to use a Gam…

---

## [Actor OnClicked is not triggered C++](https://forums.unrealengine.com/t/actor-onclicked-is-not-triggered-c/498232)

<div class="topic-metadata">

**Author:** [@anon47586833](https://forums.unrealengine.com/u/anon47586833)\
**Replies:** 7\
**Last updated:** [October 21, 2024, 10:55pm UTC](https://forums.unrealengine.com/t/actor-onclicked-is-not-triggered-c/498232 "2024-10-21T22:55:08Z")

</div>

I Have an actor like this UFUNCTION() void AMyClass::OnClick(AActor\* TouchedActor, FKey ButtonPressed){} and the constructor has MeshComponent = CreateDefaultSubobject\<UStaticMeshComponent\>(TEXT("MeshComponent")); My…

---

## [Capsule isn't generating Overlap Eventes](https://forums.unrealengine.com/t/capsule-isnt-generating-overlap-eventes/2077098)

<div class="topic-metadata">

**Author:** [@stefanomusilli1](https://forums.unrealengine.com/u/stefanomusilli1)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/capsule-isnt-generating-overlap-eventes/2077098 "2024-10-21T14:52:46Z")

</div>

A moving projectile with a Capsule should be generating Overlap Events when colliding with a wall, but that isn’t happening. I tried debugging using both C++ and blueprints, there should be a print string or a console me…

---

## [Different project can't open](https://forums.unrealengine.com/t/different-project-cant-open/2078703)

<div class="topic-metadata">

**Author:** [@Origins](https://forums.unrealengine.com/u/Origins)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 1:57pm UTC](https://forums.unrealengine.com/t/different-project-cant-open/2078703 "2024-10-21T13:57:22Z")

</div>

I can’t open project B if I build Project A from source. Vice versa. I can open only any one project from source build one.If I need to open another project based on source I need to build it again. How can I fix it. An…

---

## [Changing ini Settings or OnlineSubsystem in Packaged builds](https://forums.unrealengine.com/t/changing-ini-settings-or-onlinesubsystem-in-packaged-builds/140146)

<div class="topic-metadata">

**Author:** [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Replies:** 1\
**Last updated:** [October 21, 2024, 11:27am UTC](https://forums.unrealengine.com/t/changing-ini-settings-or-onlinesubsystem-in-packaged-builds/140146 "2024-10-21T11:27:54Z")

</div>

Hey folks, I’m looking for a way to edit DefaultEngine.ini in a packaged build, so that I could change the OnlineSubsystem settings for different distributors (Steam and GoG). Our game is on Steam and GoG, both of them …

---

## [Accessing properties of TSubclassOf](https://forums.unrealengine.com/t/accessing-properties-of-tsubclassof/2077210)

<div class="topic-metadata">

**Author:** [@Sebbbbbbbbbb21](https://forums.unrealengine.com/u/Sebbbbbbbbbb21)\
**Replies:** 4\
**Last updated:** [October 21, 2024, 10:05am UTC](https://forums.unrealengine.com/t/accessing-properties-of-tsubclassof/2077210 "2024-10-21T10:05:18Z")

</div>

Hi, I’m new to programming and I am really struggling with TSubclassOf. I have a main C++ class called Gun and whenever I need to add a new gun I just create a blueprint child of said class and then add the mesh and eve…

---

## [How to use SetTimer function with some arguments?](https://forums.unrealengine.com/t/how-to-use-settimer-function-with-some-arguments/653415)

<div class="topic-metadata">

**Author:** [@Miumi\_Yumesaki](https://forums.unrealengine.com/u/Miumi_Yumesaki)\
**Replies:** 5\
**Last updated:** [September 23, 2022, 12:34pm UTC](https://forums.unrealengine.com/t/how-to-use-settimer-function-with-some-arguments/653415 "2022-09-23T12:34:17Z")

</div>

I’m searching the way to call a function that have some arguments by SetTImer function in C++ but I couldn’t. I need to satisfy below conditions Loop function with interval and duration Send arguments to function whe…

---

## [Cannot build Unreal Engine 4 from source in Linux.](https://forums.unrealengine.com/t/cannot-build-unreal-engine-4-from-source-in-linux/2078252)

<div class="topic-metadata">

**Author:** [@Neongho](https://forums.unrealengine.com/u/Neongho)\
**Replies:** 0\
**Last updated:** [October 21, 2024, 7:52am UTC](https://forums.unrealengine.com/t/cannot-build-unreal-engine-4-from-source-in-linux/2078252 "2024-10-21T07:52:30Z")

</div>

Overview: I have been trying to build Linux from source the last months and all I had were errors and others. Why would I want to get UE4.27 on Linux?There are no pre-compiled already build to, make UE4.27 projects on L…

---

## [Excessive Overlap/EndOverlap Calls within a short span of time](https://forums.unrealengine.com/t/excessive-overlap-endoverlap-calls-within-a-short-span-of-time/2077696)

<div class="topic-metadata">

**Author:** [@PunchABilly](https://forums.unrealengine.com/u/PunchABilly)\
**Replies:** 0\
**Last updated:** [October 20, 2024, 8:21pm UTC](https://forums.unrealengine.com/t/excessive-overlap-endoverlap-calls-within-a-short-span-of-time/2077696 "2024-10-20T20:21:10Z")

</div>

I have an issue where an enemy is overlapping with my player in a certain situation multiple times within a short span of time. Basically, I have an enemy with the default cylinder collider, and I added a capsule to it,…

---

## [Getting physics asset shape name from collision](https://forums.unrealengine.com/t/getting-physics-asset-shape-name-from-collision/115089)

<div class="topic-metadata">

**Author:** [@Acds](https://forums.unrealengine.com/u/Acds)\
**Replies:** 3\
**Last updated:** [October 20, 2024, 8:03pm UTC](https://forums.unrealengine.com/t/getting-physics-asset-shape-name-from-collision/115089 "2024-10-20T20:03:21Z")

</div>

Keeping it short, I need to find the name of the PhAT asset’s shape that registered the collision for locational damage purposes. I can get the bone name easily from a FHitResult of course, but I seem to not be able to f…

---

## [FSobol RNG strange behaviour](https://forums.unrealengine.com/t/fsobol-rng-strange-behaviour/2077616)

<div class="topic-metadata">

**Author:** [@HellFireHE](https://forums.unrealengine.com/u/HellFireHE)\
**Replies:** 1\
**Last updated:** [October 20, 2024, 7:35pm UTC](https://forums.unrealengine.com/t/fsobol-rng-strange-behaviour/2077616 "2024-10-20T19:35:10Z")

</div>

I found there is implmenetation of Sobol RNG in UE\_5.4\\Engine\\Source\\Runtime\\Core\\Public\\Math\\Sobol.h I tried to use it, but simple code returns strange results (copied below post): int sobolSeed = 123234; int sobolI…

---

## [FString Text Data Getting Corrupted](https://forums.unrealengine.com/t/fstring-text-data-getting-corrupted/2074537)

<div class="topic-metadata">

**Author:** [@Nonye96](https://forums.unrealengine.com/u/Nonye96)\
**Replies:** 1\
**Last updated:** [October 19, 2024, 6:39pm UTC](https://forums.unrealengine.com/t/fstring-text-data-getting-corrupted/2074537 "2024-10-19T18:39:50Z")

</div>

I have a USTRUCT object named FHitboxCollisionMessage that is being passed between two objects the CapsuleHitbox.cpp and the HitboxController.cpp by using a TQueue object. The FHitboxCollisionMessage contains an FString …

---

## [How to Retrieve the Changed Value of FSoftObjectPath in FNotifyHook's NotifyPostChange?](https://forums.unrealengine.com/t/how-to-retrieve-the-changed-value-of-fsoftobjectpath-in-fnotifyhooks-notifypostchange/2075669)

<div class="topic-metadata">

**Author:** [@DipiLee](https://forums.unrealengine.com/u/DipiLee)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 1:42pm UTC](https://forums.unrealengine.com/t/how-to-retrieve-the-changed-value-of-fsoftobjectpath-in-fnotifyhooks-notifypostchange/2075669 "2024-10-19T13:42:29Z")

</div>

I’m working with the FNotifyHook class in Unreal Engine and overriding the NotifyPostChange function: USTRUCT(BlueprintType) struct FActionBaseShowData : public FTableRowBase { GENERATED\_BODY() public: UPROPERTY(Edit…

---

## [I want to make Guide UI.](https://forums.unrealengine.com/t/i-want-to-make-guide-ui/2075617)

<div class="topic-metadata">

**Author:** [@677283](https://forums.unrealengine.com/u/677283)\
**Replies:** 1\
**Last updated:** [October 19, 2024, 2:02pm UTC](https://forums.unrealengine.com/t/i-want-to-make-guide-ui/2075617 "2024-10-19T14:02:41Z")

</div>

I want to make a UI that explains the UI of the game like the image above. Blur & Movable Square… Can you tell me the functions I need to implement this? Or tips. Video recommendations are also good. I want to make Gu…

---

## [Who can get Mover 2.0 implementation documentation for a c++ only project?](https://forums.unrealengine.com/t/who-can-get-mover-2-0-implementation-documentation-for-a-c-only-project/2075089)

<div class="topic-metadata">

**Author:** [@sivxgamer](https://forums.unrealengine.com/u/sivxgamer)\
**Replies:** 0\
**Last updated:** [October 19, 2024, 1:48am UTC](https://forums.unrealengine.com/t/who-can-get-mover-2-0-implementation-documentation-for-a-c-only-project/2075089 "2024-10-19T01:48:18Z")

</div>

How to implement this

---

## [How to use Lerp Rotator in C++?](https://forums.unrealengine.com/t/how-to-use-lerp-rotator-in-c/547921)

<div class="topic-metadata">

**Author:** [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Replies:** 5\
**Last updated:** [October 18, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/how-to-use-lerp-rotator-in-c/547921 "2024-10-18T16:26:41Z")

</div>

I would like to learn how to implement Lerp Rotator using C++? and how to set the Shortest Path to true in it. Thank You. blueprint:

[Previous page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=73)

[Next page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=75)
