Comments on: Hello World (SDK 3) https:/code-sample/hello-world-sdk-3/ Developer resources for the X-Plane flight simulator Wed, 24 Jul 2024 17:24:21 +0000 hourly 1 https://wordpress.org/?v=6.6.1 By: Ben Supnik https:/code-sample/hello-world-sdk-3/#comment-42790 Wed, 24 Jul 2024 17:24:21 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-42790 In reply to Fabio Maselli.

OpenGL is still the way plugins do graphics in X-Plane 12, and xp12 is largely compatible for plugin graphics with xp11 running under Vulkan. You do not use Vulkan in your plugin; we use it in our engine.

]]>
By: Fabio Maselli https:/code-sample/hello-world-sdk-3/#comment-42512 Thu, 14 Sep 2023 22:01:05 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-42512 Sorry, but I see that all the XP Developer documentation seems to be a bit outdated…
The last comment here has been left on 2021 and we are talking about XP11/OpenGL.
I realize that on average beginners experienced since then a lot of trouble only to run a “very very basic” example code…
I’m saying that because with “the other sim” I had a relatively straightforward and successful experience trying to use its SDK and putting together some simple code.
If I wanted to do the same here, in the age of XP12/Vulkan, would all this stuff be working as well? I saw that the classical “must have” plugins are working also with XP12, but I guess their code must have been adapted, at least partially.
On which new resources and documentation – if already existing – should I rely, as a beginner?
Thank you

]]>
By: Amadeus https:/code-sample/hello-world-sdk-3/#comment-40709 Thu, 14 Oct 2021 01:11:53 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-40709 I know that some as publish with the same problem but it stay unanswered.
I do have the same problem.

I can’t get this to work. I downloaded the project Hello-World-SDK-3 with the latest SDK version. I’m using Visual Studio 2019.

It builds fine, but when I try to load it in XPlane it doesn’t show up. The log file shows this error:

C:\Games/X Plane 11/Resources/plugins/Hello-World-SDK-3/64/win.xpl : Error Code = 127 : The specified procedure could not be found.

I tried another plugin that i know it working on my old computer and i’m getting the same error code.

Is anybody as found a solution for that issue?

]]>
By: Amadeus https:/code-sample/hello-world-sdk-3/#comment-40707 Thu, 14 Oct 2021 01:00:55 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-40707 In reply to Andrew.

I know that post it from 2 years ago, but i also have the same problem.

I tried also the 3.0 SDK Hello-World and another plugin that i know that is working great on my old computer (without finding the difference in the files) and also have the same issue.

Is anybody as found a solution on that?

]]>
By: raherbst https:/code-sample/hello-world-sdk-3/#comment-40457 Fri, 27 Aug 2021 13:42:55 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-40457 I have been using xplane since version 9, but have only now tried to use plugins.
I am using xplane 11.5, Hello-World-SDK-3, and visual studio 2019. Hello-world-sdk-3.cpp and .vcxproj are there as well as the directory SDK with all subdirectories. Each of these directories are specified in the path variable, as well as in visual studio. When I try to build, I get six C1083 “cannot open include file” errors. I have verified these include files are in the Hello-World-SDK-3/SDK directories, with the following syntax:
#include “XXXxxxxx.h”. I tried changing the syntax to #include but the include files were still not found.
Any suggestions would be appreciated. Thanks.

]]>
By: Ben Supnik https:/code-sample/hello-world-sdk-3/#comment-39719 Sun, 21 Mar 2021 13:48:49 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-39719 In reply to Николай Плешков.

Yes!

]]>
By: Николай Плешков https:/code-sample/hello-world-sdk-3/#comment-39716 Sun, 21 Mar 2021 03:52:36 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-39716 Good day! I understand correctly, after I compiled the dll, its extension needs to be changed to “xpl”?

]]>
By: Ramon Pankow https:/code-sample/hello-world-sdk-3/#comment-37216 Wed, 27 May 2020 09:34:42 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-37216 Hi, I’m trying to compile this on Linux with gcc version 9.3.0 and I get:

Hello-World-SDK-3.cpp: In function ‘void draw_hello_world(XPLMWindowID, void*)’:
Hello-World-SDK-3.cpp:108:44: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
108 | XPLMDrawString(col_white, l + 10, t – 20, “Hello world!”, NULL, xplmFont_Proportional);
| ^~~~~~~~~~~~~~

]]>
By: Ivan Turrado https:/code-sample/hello-world-sdk-3/#comment-36131 Fri, 10 Apr 2020 22:07:23 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-36131 Hello,
I am compiling the plugin in VS 2019, and I have all the options as described here and on https:/article/building-and-installing-plugins/#Compiling_Plugins
The plugin does compile without errors and the .xpl file does get generated. However, when I launch X-Plane I get this:
C:\X-Plane 11/Resources/plugins/Hello-World-SDK-3/64/win.xpl : Error Code = 193 : %1 no es una aplicación Win32 válida.
(Not a valid Win32 application)

Any hint?

]]>
By: Karl Nietsch https:/code-sample/hello-world-sdk-3/#comment-35276 Sun, 08 Mar 2020 16:42:14 +0000 http://developer.x-plane.com/?post_type=code-sample&p=7941#comment-35276 Hello,
XPLMDrawString: input character string is not const. Seems likely an oversight… (Wasn’t sure if this would qualify for the bug reporter.)
Thanks,
Karl

]]>