Replies: 4 comments 9 replies
-
I think your work is great for the community and would be appreciated by anyone that wants to support other platforms! If it seems the changes are hard to read or maintain then I'd suggest just adding a link to your Repo in the official Unreal Plugin Read Me. There also might be other solutions that someone else has to suggest. For example maybe a new folder in this repo with just the plugin/files needed? Anyways great work! |
Beta Was this translation helpful? Give feedback.
-
JSBSim is currently built for Mac OSX and Linux so excluding Android it's not a JSBSim issue per se right? It's an issue more specifically in terms of the Unreal plugin? |
Beta Was this translation helpful? Give feedback.
-
Yep, just double-checking if there really were any JSBSim specific issues at the moment given your first sentence that "But JSBSim is not yet compatible..." |
Beta Was this translation helpful? Give feedback.
-
bool bSupported = Target.Platform == UnrealTargetPlatform.Win64 ||
Target.Platform == UnrealTargetPlatform.Mac;
PublicDefinitions.Add($"JSBSIM_SUPPORTED={(bSupported ? 1 : 0)}");
Wait, now I'm confused. Why add all these checks to allow the plugin to compile for platforms that don't even work with the plugin? I don't understand the goal. What's wrong with just using #if platform check where it's needed to make some function work for that platform, like you originally were doing? Unless a lot of the functions need to be changed for linux and android to work? In which case, it will be interesting to see when you're finished your work! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm working on a multiplatform game made with Unreal which uses JSBSim. Today the plugin is only compatible with Windows, I'm working on a PR which will add support for Macos and then later Android and Linux. But JSBSim is not yet compatible with other platforms supported by Unreal. The problem is that it's impossible to compile the plugin on those platform. The best trick to do is to add define blocs and spawn the actor component on supported platform only.
I would like to submit a PR that addresses that problem adding a new
JSBSIM_SUPPORTED
symbol in the Unreal Plugin. That way the plugin can be compiled on every platforms without any hacks. The downside of the this solution is that it adds many#if JSBSIM_SUPPORTED
lines in the plugin.What do you think? Are you interested by this PR? I already did it in my project. Or is it too specific?
Beta Was this translation helpful? Give feedback.
All reactions