C++ Questions

10

Hello! I am creating module for working with IFC files using IfcPlusPlus according to this documentation and I have some questions. What does this mean? You'll need to install the external library o...
Funnel asked 1/10, 2023 at 8:2

3

print_stack and print_debug live in @GDScript, which leads me to think I can't and shouldn't use those from my C++ code. If I'm wrong please show me how, or if you know another way to print a stack tr...
Bercy asked 21/9, 2023 at 7:4

2

Solved

hello!! i was wondering if it would be possible to export for the web if i were to use C++ via GDExtension for a project. i understand that exporting C# to the web is currently not possible in godot 4...
Breen asked 2/10, 2023 at 1:25

1

v4.1.1.stable.official [bd6af8e0e] I made a simple GDExtension module to increase performance for a key node. When I change_type of the node in question to the new node type written in c++, the edit...
Scathing asked 30/9, 2023 at 21:41

6

Solved

hey i am a new dev that wants to learn C++ to also work on other engines, does godot supports C++??
Ashraf asked 27/9, 2023 at 23:16

1

I've been interested in C++ for a while, ever since I've discovered Unreal... but, say I learn C++ and all, where does one even start understanding C++ in Godot? I don't recall ever seeing anything on...
Replicate asked 23/9, 2023 at 19:24

1

I want to experiment with custom implementations of Noise, but it appears there's no way to override any of its methods. GDScript doesn't work: extends Noise func get_noise_2d(x: float, y: float) -&...
Absorbefacient asked 13/8, 2023 at 11:55

4

I am looking through the engine code, and I'm trying to get a grasp of the functional reasons and the philosophy behind the distinction between Core components and Module components. I'm having a very...
Illdisposed asked 29/8, 2023 at 5:19

2

Hello, I am new to Godot and at a point where I would like to see how things are done under the hood. Is there a simple way to jump directly into the (local) C++ source code from the editor? For exam...
Ki asked 19/8, 2023 at 9:37

2

Solved

I've been working out how to build a GDExtension and going through the tutorial. I saw the include line: #include <godot_cpp/classes/sprite2d.hpp> I eventually figured out that it is possibly i...
Hypogastrium asked 21/8, 2023 at 13:48

2

I been following the official tutorial but can not call even a simple C++ function from GDScript. I can not figure out what the problem is. I had this code working for Godot 3.5, what I am doing now ...
Misdeed asked 1/8, 2023 at 10:5

4

How did you achieve optimization of such a large number of autonomous agents, over 500 units? I am trying to create a large number of rival cars, but the FPS drops already occur at 60 units. This is ...
Issacissachar asked 12/7, 2023 at 16:19

5

Hi everyone! I wonder if using c++ as "scripting" or however you might call it as gameplay language is viable? I'm super interested in this engine but i\m not sure if there any decent workflow for it...
Heredia asked 21/6, 2023 at 14:7

10

Solved

I'm struggling to get a usable string from a Variant to either char* or std::string reference to post 8: https://godotforums.org/d/33672-gd4-gdextension-return-variant-of-stdvector/7 Variant GDX...
Cowboy asked 21/5, 2023 at 19:59

6

Solved

Hi! I'm copying rd texture with RenderingDeviceVulkan::texture_copy and then saving it to png after RenderingDeviceVulkan::texture_get_data For some reason it doesn't have background, but when I save ...
Noach asked 13/5, 2023 at 2:25

5

Hi everyone, I am writing an XRInterfaceExtension to support various types of 3D displays. With Godot3, I was able to retrieve the texture Id from a render_target in the function "godot_arvr_commit_...
Zimbabwe asked 4/5, 2023 at 17:27

3

I was able to compile Godot from source successfully but now I'm trying to create a visual studio solution for compiling godot from source, but it's not working. I've tried with multiple versions of G...
Melany asked 29/4, 2023 at 19:9

3

I did notice there is no interpolate_baked function in Godot4, there is any way to workarround this or I had to manually implement something ? Source code on Godot3: https://github.com/godotengine/g...
Paling asked 26/4, 2023 at 19:42

7

Solved

Hi, how do I convert a std::vector<std::string> to a Variant for returning from a c++ GDExtension? Variant GDSerialPort::tester() { UtilityFunctions::print("testerrrrrr"); Variant v; std...
Embosser asked 17/4, 2023 at 20:14

3

Solved

How to loop a Dictionary in Godot C++ GDExtension?
Nonet asked 25/4, 2023 at 16:42

4

Hello! Godot3 used to have Debug/Release targets and in order to debug it is necessary to switch to Debug configuration and only build the files which are changed. Godot4 instead has editor/template_...
Bentley asked 7/4, 2023 at 5:50

1

Hello! In Godot 3.x it was possible to override C++ methods introduced by ClassDB::bind_method(....). And it worked perfectly fine. I've just ported my project to Godot 4.0.1. And it says "The meth...
Favouritism asked 2/4, 2023 at 4:53

4

Solved

Hello! I'm using several functions I'd like to have implemented in C++. But I'm not sure how to bind a function (or a static method) such that I don't need to create a dummy object every time I need ...
Desolation asked 31/3, 2023 at 4:58

15

Hi, I set up the GDExtension to work with Godot 4, I also set up VS Code and everything runs ok. I just have a problem when I want to debug the c++ code of my GDExtension. If I set breakpoints in VS C...
Dialogism asked 4/12, 2022 at 19:17

11

Hi, I want to use C++ instead of GDscript because I need very high performance. I just want to know if it's possible to use C++ exactly the same way we use GDscript: Coding C++ inside Godot code edit...
Primine asked 26/3, 2023 at 20:47

© 2022 - 2024 — McMap. All rights reserved.