# C++

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

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

**Page:** 46

---

## [How could i use "libzip" Module?](https://forums.unrealengine.com/t/how-could-i-use-libzip-module/2405130)

<div class="topic-metadata">

**Author:** [@LGDExplorer](https://forums.unrealengine.com/u/LGDExplorer)\
**Replies:** 1\
**Last updated:** [March 22, 2025, 4:06pm UTC](https://forums.unrealengine.com/t/how-could-i-use-libzip-module/2405130 "2025-03-22T16:06:48Z")

</div>

I’ve added this module in build.cs, PublicDependencyModuleNames.AddRange(new string\[\] { "Core", "CoreUObject", "Engine","libzip"}); and referenced it in cpp, #include "libzip/zip.h" but when I compile, I get this err…

---

## [I'm having a really frustrating issue with Unreal Engine 5.4 and Visual Studio 2022 when trying to build my project ](https://forums.unrealengine.com/t/im-having-a-really-frustrating-issue-with-unreal-engine-5-4-and-visual-studio-2022-when-trying-to-build-my-project/2407877)

<div class="topic-metadata">

**Author:** [@kimduckbae0000](https://forums.unrealengine.com/u/kimduckbae0000)\
**Replies:** 1\
**Last updated:** [March 22, 2025, 1:18pm UTC](https://forums.unrealengine.com/t/im-having-a-really-frustrating-issue-with-unreal-engine-5-4-and-visual-studio-2022-when-trying-to-build-my-project/2407877 "2025-03-22T13:18:03Z")

</div>

Hi everyone, I’m having a really frustrating issue with Unreal Engine 5.4 and Visual Studio 2022 when trying to build my project. I’ve been trying to solve it for days, but nothing seems to work. Running C:/Program Fil…

---

## [Could not execution pins on my cust omK2Node](https://forums.unrealengine.com/t/could-not-execution-pins-on-my-cust-omk2node/2405007)

<div class="topic-metadata">

**Author:** [@VanFraecker](https://forums.unrealengine.com/u/VanFraecker)\
**Replies:** 2\
**Last updated:** [March 22, 2025, 8:37am UTC](https://forums.unrealengine.com/t/could-not-execution-pins-on-my-cust-omk2node/2405007 "2025-03-22T08:37:10Z")

</div>

I create an “empty” (do nothing) k2node, that only has an exec input and output. When i connect the input exec pin i got the error when i press compile: Unexpected node type K2Node\_MyNode encountered at YYY My Node …

---

## [Is there a good way to modify CustomTimeDilation without affecting all components in the actor?](https://forums.unrealengine.com/t/is-there-a-good-way-to-modify-customtimedilation-without-affecting-all-components-in-the-actor/2404009)

<div class="topic-metadata">

**Author:** [@FFCMY](https://forums.unrealengine.com/u/FFCMY)\
**Replies:** 2\
**Last updated:** [March 22, 2025, 12:12am UTC](https://forums.unrealengine.com/t/is-there-a-good-way-to-modify-customtimedilation-without-affecting-all-components-in-the-actor/2404009 "2025-03-22T00:12:18Z")

</div>

I try to add a hit stop effect to my game, the design is simple, when the player hits the enemy, I will set my player and the enemy’s CustomTimeDilation to 0, and after a duration, set them back to 1. This works fine but…

---

## [Interface Error](https://forums.unrealengine.com/t/interface-error/2404563)

<div class="topic-metadata">

**Author:** [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Replies:** 6\
**Last updated:** [March 21, 2025, 8:24pm UTC](https://forums.unrealengine.com/t/interface-error/2404563 "2025-03-21T20:24:38Z")

</div>

Hi! When trying to build the project the following error pops up: PlayerInterface.gen.cpp(106): Error C2511 : void IPlayerInterface::Equip(USkeletalMesh \*,EEquipmentID,const TArray\<UMaterialInterface \*,FDefaultAllocato…

---

## [Member function declared with 'override' does not override a base class member](https://forums.unrealengine.com/t/member-function-declared-with-override-does-not-override-a-base-class-member/1947501)

<div class="topic-metadata">

**Author:** [@craig391999](https://forums.unrealengine.com/u/craig391999)\
**Replies:** 13\
**Last updated:** [March 21, 2025, 6:45pm UTC](https://forums.unrealengine.com/t/member-function-declared-with-override-does-not-override-a-base-class-member/1947501 "2025-03-21T18:45:20Z")

</div>

So I know my way around unreal but with C++ I’m out of my element a bit so I have no clue what exactly is wrong with the code (Converted blueprints to C++ and this happened) //~ Begin FArchi…

---

## [Issues with setting up Delegate input for a custom K2 Node](https://forums.unrealengine.com/t/issues-with-setting-up-delegate-input-for-a-custom-k2-node/2403561)

<div class="topic-metadata">

**Author:** [@jzwesolowski](https://forums.unrealengine.com/u/jzwesolowski)\
**Replies:** 3\
**Last updated:** [March 21, 2025, 5:10pm UTC](https://forums.unrealengine.com/t/issues-with-setting-up-delegate-input-for-a-custom-k2-node/2403561 "2025-03-21T17:10:42Z")

</div>

Hello, I’m having trouble setting up my custom K2 Node correctly and it seems like I might be missing something extremely obvious. In the node’s header, I have a function that’s supposed to provide a signature: public:…

---

## [Error C4668: 'NDIS\_MINIPORT\_MAJOR\_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'](https://forums.unrealengine.com/t/error-c4668-ndis-miniport-major-version-is-not-defined-as-a-preprocessor-macro-replacing-with-0-for-if-elif/454584)

<div class="topic-metadata">

**Author:** [@Xaymar](https://forums.unrealengine.com/u/Xaymar)\
**Replies:** 5\
**Last updated:** [March 21, 2025, 2:24pm UTC](https://forums.unrealengine.com/t/error-c4668-ndis-miniport-major-version-is-not-defined-as-a-preprocessor-macro-replacing-with-0-for-if-elif/454584 "2025-03-21T14:24:29Z")

</div>

When Windows SDK 10.0.18362.0 is installed, the build tools for Unreal Engine 4 automatically pick it, even though the actual code does not seem to be fully compatible with the SDK version. Even if other Windows SDKs are…

---

## [Terminating a body instance in skeletal mesh crashesh physics ](https://forums.unrealengine.com/t/terminating-a-body-instance-in-skeletal-mesh-crashesh-physics/2404815)

<div class="topic-metadata">

**Author:** [@AurochFilip](https://forums.unrealengine.com/u/AurochFilip)\
**Replies:** 0\
**Last updated:** [March 21, 2025, 1:59pm UTC](https://forums.unrealengine.com/t/terminating-a-body-instance-in-skeletal-mesh-crashesh-physics/2404815 "2025-03-21T13:59:27Z")

</div>

Hello, There is a crash happening if we try to hide a bone in skeletal mesh with EPhysBodyOp::PBO\_Term. What happens is that bone (and below bones), their body instances will be terminated. When we call terminateBody on…

---

## [ Casted Object not recognized in TMap until GetClass()/GetName() is called? ](https://forums.unrealengine.com/t/casted-object-not-recognized-in-tmap-until-getclass-getname-is-called/2402952)

<div class="topic-metadata">

**Author:** [@Chickenrikke](https://forums.unrealengine.com/u/Chickenrikke)\
**Replies:** 3\
**Last updated:** [March 20, 2025, 10:05pm UTC](https://forums.unrealengine.com/t/casted-object-not-recognized-in-tmap-until-getclass-getname-is-called/2402952 "2025-03-20T22:05:09Z")

</div>

I ran into a strange situation where casting to UBoxComponent requires additional steps before the object is properly recognized in a TMap: UBoxComponent\* HitBox1 = Cast\<UBoxComponent\>(HitResult.GetComponent()); if (H…

---

## [Project doesn't build](https://forums.unrealengine.com/t/project-doesnt-build/2395818)

<div class="topic-metadata">

**Author:** [@MrJoz](https://forums.unrealengine.com/u/MrJoz)\
**Replies:** 4\
**Last updated:** [March 20, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/project-doesnt-build/2395818 "2025-03-20T14:07:36Z")

</div>

When building either from visual studio or editor result is just “target is up to date”, then when i try to cook content it displays errors from outdated solution ignoring latest compilations.

---

## [How to handle mouse clicks and draw in the actor's viewport?](https://forums.unrealengine.com/t/how-to-handle-mouse-clicks-and-draw-in-the-actors-viewport/2402980)

<div class="topic-metadata">

**Author:** [@Tolfel001](https://forums.unrealengine.com/u/Tolfel001)\
**Replies:** 0\
**Last updated:** [March 20, 2025, 1:53pm UTC](https://forums.unrealengine.com/t/how-to-handle-mouse-clicks-and-draw-in-the-actors-viewport/2402980 "2025-03-20T13:53:06Z")

</div>

Hi. Maybe someone can help me. I need to handle mouse clicks and draw in the actor’s viewport. Ideally, this should be done using the on/off button on the top panel. My task is to select triangles or vertices of a Stat…

---

## [Downloading file from URL works in editor but when I run it as a packaged game it doesn't work](https://forums.unrealengine.com/t/downloading-file-from-url-works-in-editor-but-when-i-run-it-as-a-packaged-game-it-doesnt-work/2402080)

<div class="topic-metadata">

**Author:** [@Attila039](https://forums.unrealengine.com/u/Attila039)\
**Replies:** 0\
**Last updated:** [March 20, 2025, 1:17am UTC](https://forums.unrealengine.com/t/downloading-file-from-url-works-in-editor-but-when-i-run-it-as-a-packaged-game-it-doesnt-work/2402080 "2025-03-20T01:17:48Z")

</div>

I am using this code to recieve a save file from a server and write it into the SaveGames directory. It works in my editor but when I package the game it no longer is able to write the file. I have also tried using" URLD…

---

## [Create my own CharacterMovement that can be attached into my own Pawn](https://forums.unrealengine.com/t/create-my-own-charactermovement-that-can-be-attached-into-my-own-pawn/2371592)

<div class="topic-metadata">

**Author:** [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Replies:** 2\
**Last updated:** [March 19, 2025, 9:11pm UTC](https://forums.unrealengine.com/t/create-my-own-charactermovement-that-can-be-attached-into-my-own-pawn/2371592 "2025-03-19T21:11:54Z")

</div>

How to do this? I very badly know C++ so can you provide minimal amount of code that I have to change in the default CharacterMovementComponent.h to attach it into “MyCharacter” that inherits from Pawn and does not have …

---

## [How to get and set NiagaraSystem LoopDuration variable?](https://forums.unrealengine.com/t/how-to-get-and-set-niagarasystem-loopduration-variable/2401233)

<div class="topic-metadata">

**Author:** [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Replies:** 1\
**Last updated:** [March 19, 2025, 5:46pm UTC](https://forums.unrealengine.com/t/how-to-get-and-set-niagarasystem-loopduration-variable/2401233 "2025-03-19T17:46:54Z")

</div>

Is it possible to set and get the duration, since i want to extend Niagara visual effect duration with an upgrade, but i cant access this value whatever i try:

---

## [I want to Rotate my Obj, but it does not work](https://forums.unrealengine.com/t/i-want-to-rotate-my-obj-but-it-does-not-work/2399142)

<div class="topic-metadata">

**Author:** [@Ayloy\_05](https://forums.unrealengine.com/u/Ayloy_05)\
**Replies:** 6\
**Last updated:** [March 19, 2025, 4:13pm UTC](https://forums.unrealengine.com/t/i-want-to-rotate-my-obj-but-it-does-not-work/2399142 "2025-03-19T16:13:48Z")

</div>

I want to program an animator and I wrote following code for that, the Location is working but the Rotation isnt, does someone know why? Here my code void AU\_MainController::MoveToLocation(FVector TargetVector, FRotator…

---

## [I get memory access violation crash and i can't figure out where](https://forums.unrealengine.com/t/i-get-memory-access-violation-crash-and-i-cant-figure-out-where/2400369)

<div class="topic-metadata">

**Author:** [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Replies:** 4\
**Last updated:** [March 19, 2025, 1:20pm UTC](https://forums.unrealengine.com/t/i-get-memory-access-violation-crash-and-i-cant-figure-out-where/2400369 "2025-03-19T13:20:13Z")

</div>

The crash happens pretty unpredictable, and debug mode gives 0 information: And if not debug mode i get this: thread #1, name = ‘GameThread’, stop reason = Exception 0xc0000005 encountered at address 0x7fffbb12c969…

---

## [\[GAS System\] Effect of temporary buffs on dynamic attributes.](https://forums.unrealengine.com/t/gas-system-effect-of-temporary-buffs-on-dynamic-attributes/136862)

<div class="topic-metadata">

**Author:** [@Navhkrin](https://forums.unrealengine.com/u/Navhkrin)\
**Replies:** 1\
**Last updated:** [March 19, 2025, 11:31am UTC](https://forums.unrealengine.com/t/gas-system-effect-of-temporary-buffs-on-dynamic-attributes/136862 "2025-03-19T11:31:07Z")

</div>

Lets assume that I have a weapon actor, which holds attribute set that contains weapons stats such as RPM, Damage etc. When my character equips this weapon, i add its attributes to characters ASC, I remove these attribu…

---

## [Static mesh doesn't have complex collision, no matter what I do. WTF?](https://forums.unrealengine.com/t/static-mesh-doesnt-have-complex-collision-no-matter-what-i-do-wtf/101705)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_dd151c9c](https://forums.unrealengine.com/u/anonymous_user_dd151c9c)\
**Replies:** 6\
**Last updated:** [March 19, 2025, 2:01am UTC](https://forums.unrealengine.com/t/static-mesh-doesnt-have-complex-collision-no-matter-what-i-do-wtf/101705 "2025-03-19T02:01:04Z")

</div>

I’m doing a line trace with bTraceComplex=true (it’s for a bullet) so I want to hit complex collision, i.e. the visual mesh. I’ve got a static mesh with collision set to BlockAll and the trace channel I’m using is also s…

---

## [How to use custom compiler options?](https://forums.unrealengine.com/t/how-to-use-custom-compiler-options/409262)

<div class="topic-metadata">

**Author:** [@broly](https://forums.unrealengine.com/u/broly)\
**Replies:** 7\
**Last updated:** [March 19, 2025, 1:01am UTC](https://forums.unrealengine.com/t/how-to-use-custom-compiler-options/409262 "2025-03-19T01:01:49Z")

</div>

I need specify some options for C++ compiler, such as /std:c++latest. But can’t get access to this via .build.cs. Are there ways to specify this?

---

## [Problems with Drag and Drop Operation (Visual Widget)](https://forums.unrealengine.com/t/problems-with-drag-and-drop-operation-visual-widget/2399192)

<div class="topic-metadata">

**Author:** [@Raxwell00](https://forums.unrealengine.com/u/Raxwell00)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 8:47pm UTC](https://forums.unrealengine.com/t/problems-with-drag-and-drop-operation-visual-widget/2399192 "2025-03-18T20:47:35Z")

</div>

Hi! I have an inventory system and im working on a drag & drop system. So the problem is im making a system where if you drag the slot with “Right Mouse Button” you are able to split items and using mouse wheel you incre…

---

## [GAS Attribute Capture in Calculation Class Not working In packaged build in lyra project 5.5](https://forums.unrealengine.com/t/gas-attribute-capture-in-calculation-class-not-working-in-packaged-build-in-lyra-project-5-5/2381413)

<div class="topic-metadata">

**Author:** [@LarryTheLadd](https://forums.unrealengine.com/u/LarryTheLadd)\
**Replies:** 3\
**Last updated:** [March 18, 2025, 8:25pm UTC](https://forums.unrealengine.com/t/gas-attribute-capture-in-calculation-class-not-working-in-packaged-build-in-lyra-project-5-5/2381413 "2025-03-18T20:25:35Z")

</div>

So I am making a game using Lyra Starter, mostly building off the shootercore but adding my own stuff. I’ve made my own Lyra Attribute Sets and my own custom calculation execution class. I have attributes like shield, bo…

---

## [Lyra BUILD FAILED Missing precompiled manifest for 'CQTest'](https://forums.unrealengine.com/t/lyra-build-failed-missing-precompiled-manifest-for-cqtest/2374401)

<div class="topic-metadata">

**Author:** [@Flatcher19881](https://forums.unrealengine.com/u/Flatcher19881)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 8:01pm UTC](https://forums.unrealengine.com/t/lyra-build-failed-missing-precompiled-manifest-for-cqtest/2374401 "2025-03-18T20:01:13Z")

</div>

Default Lyra Project. I can’t make a build Shipping configuration LogPlayLevel: UAT: Creating makefile for LyraGame (no existing makefile) LogPlayLevel: UAT: LyraGameEOS and dynamic target options are disabled when p…

---

## [Ask for CommonButtonBase Delegate AddDynamic, AddUniqueDynamic](https://forums.unrealengine.com/t/ask-for-commonbuttonbase-delegate-adddynamic-adduniquedynamic/1906643)

<div class="topic-metadata">

**Author:** [@606014](https://forums.unrealengine.com/u/606014)\
**Replies:** 1\
**Last updated:** [March 18, 2025, 6:40pm UTC](https://forums.unrealengine.com/t/ask-for-commonbuttonbase-delegate-adddynamic-adduniquedynamic/1906643 "2025-03-18T18:40:36Z")

</div>

Hi. I’m producing a game with a lot of skills. Players can choose what they want from many skills. For this, I created a button in the shape of many skill icons in one widget. I found a solution to avoid creating terri…

---

## [C++ changes in Plugin are not applied](https://forums.unrealengine.com/t/c-changes-in-plugin-are-not-applied/2398094)

<div class="topic-metadata">

**Author:** [@UMConti](https://forums.unrealengine.com/u/UMConti)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 11:28am UTC](https://forums.unrealengine.com/t/c-changes-in-plugin-are-not-applied/2398094 "2025-03-18T11:28:14Z")

</div>

Hi everyone, I use UE 5.3.2 on Linux machine (Ubuntu 20.04) for plugin development. If the C++ code is changed in the plugin, the code modifications are not applied by running game ( Play level Alt+P). The only way is …

---

## [Reading Runtime Virtual Texture from C++](https://forums.unrealengine.com/t/reading-runtime-virtual-texture-from-c/2397518)

<div class="topic-metadata">

**Author:** [@amir\_hm](https://forums.unrealengine.com/u/amir_hm)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 4:30am UTC](https://forums.unrealengine.com/t/reading-runtime-virtual-texture-from-c/2397518 "2025-03-18T04:30:11Z")

</div>

I can’t find any example about how to read Color data from RVT in C++. Anybody knows how? I can read pixel data from Texture2D but RVT is represented as a class than object witch is very different

---

## [2D platformer visual bug when flipping character](https://forums.unrealengine.com/t/2d-platformer-visual-bug-when-flipping-character/1237606)

<div class="topic-metadata">

**Author:** [@plessico](https://forums.unrealengine.com/u/plessico)\
**Replies:** 1\
**Last updated:** [March 17, 2025, 1:32pm UTC](https://forums.unrealengine.com/t/2d-platformer-visual-bug-when-flipping-character/1237606 "2025-03-17T13:32:30Z")

</div>

Hey, during development of my 2D platformer character prototype I met strange bug, which I couldn’t find solution for. When character is flipping (changing direction of the movement) I see strange flickering around the c…

---

## [How to replicate the variable declared in under the struct?](https://forums.unrealengine.com/t/how-to-replicate-the-variable-declared-in-under-the-struct/560526)

<div class="topic-metadata">

**Author:** [@Alexa.Ki](https://forums.unrealengine.com/u/Alexa.Ki)\
**Replies:** 13\
**Last updated:** [March 17, 2025, 10:32am UTC](https://forums.unrealengine.com/t/how-to-replicate-the-variable-declared-in-under-the-struct/560526 "2025-03-17T10:32:36Z")

</div>

I have this in the USTRUCT under AItemBase: AItemBase.h USTRUCT(BlueprintType) struct FMyTestStruct { GENERATED\_USTRUCT\_BODY() UPROPERTY(Replicated, EditDefaultsOnly, BlueprintReadOnly, Category = Fashion Items Relat…

---

## [How to generate a new UTexture2D asset from only pixel data? ](https://forums.unrealengine.com/t/how-to-generate-a-new-utexture2d-asset-from-only-pixel-data/2389100)

<div class="topic-metadata">

**Author:** [@CC\_Berry](https://forums.unrealengine.com/u/CC_Berry)\
**Replies:** 1\
**Last updated:** [March 17, 2025, 6:43am UTC](https://forums.unrealengine.com/t/how-to-generate-a-new-utexture2d-asset-from-only-pixel-data/2389100 "2025-03-17T06:43:58Z")

</div>

I have been knocking my head around at this problem for a couple days now. I have no source texture, I want to generate a new Texture2D asset (not at runtime) from generated pixel data. The object shows up in editor and…

---

## [Error:There may be an operating system error or the module may not be properly set up](https://forums.unrealengine.com/t/error-there-may-be-an-operating-system-error-or-the-module-may-not-be-properly-set-up/375914)

<div class="topic-metadata">

**Author:** [@pcjjdy](https://forums.unrealengine.com/u/pcjjdy)\
**Replies:** 11\
**Last updated:** [March 17, 2025, 6:20am UTC](https://forums.unrealengine.com/t/error-there-may-be-an-operating-system-error-or-the-module-may-not-be-properly-set-up/375914 "2025-03-17T06:20:37Z")

</div>

I am doing a team work with my mates with a version controller. Some mates did some C++ work and when i got latest version, i cannot open it and it said: The game module ‘Biclcle’ could not be loaded. There may be an ope…

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

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