I use XPlane and FlyWithLUA and I've released about 10 LUA scripts for FlyWithLUA. After loving FWL so much I discovered LOVE2D - which of course is also LUA.
I'm not sure what your question is but if you're trying to integrate Love2D into XPlane the same way then that won't work.
No, I don't think you can do what you're asking. If you want to use the LOVE graphics libraries, you'd have to instead build a script in X-Plane that pushes the data you want out through a TCP or UDP connection. Then read that data in LOVE and display it there separately.
I do something similar, myself - I have an app that needs two windows (it's a broadcast graphics and title generator), and I have a separate control window and display window. So I send UDP packets from the control window to the display window to control the active titles and set text in the window.
tomxp411 wrote: ↑Fri May 28, 2021 3:51 am
No, I don't think you can do what you're asking. If you want to use the LOVE graphics libraries, you'd have to instead build a script in X-Plane that pushes the data you want out through a TCP or UDP connection. Then read that data in LOVE and display it there separately.
I do something similar, myself - I have an app that needs two windows (it's a broadcast graphics and title generator), and I have a separate control window and display window. So I send UDP packets from the control window to the display window to control the active titles and set text in the window.
Thanks for all reply’s...
Ok... do you have to use LOVE Pgm in this case. My goal is to use something that is standalone (library, file or folder) that contain a function that I can use directly in flywithlua. I say that, beacause I probably put my Lua program as an utility for x-plane 11. I don’t want to force the user to download LOVE or install it. In my case, I use Mac OS.
tomxp411 wrote: ↑Fri May 28, 2021 3:51 am
No, I don't think you can do what you're asking. If you want to use the LOVE graphics libraries, you'd have to instead build a script in X-Plane that pushes the data you want out through a TCP or UDP connection. Then read that data in LOVE and display it there separately.
I do something similar, myself - I have an app that needs two windows (it's a broadcast graphics and title generator), and I have a separate control window and display window. So I send UDP packets from the control window to the display window to control the active titles and set text in the window.
Thanks for all reply’s...
Ok... do you have to use LOVE Pgm in this case. My goal is to use something that is standalone (library, file or folder) that contain a function that I can use directly in flywithlua. I say that, beacause I probably put my Lua program as an utility for x-plane 11. I don’t want to force the user to download LOVE or install it. In my case, I use Mac OS.
Thanks for your help... everyone.
Then I'm not sure why you're trying to use LOVE at all. LOVE is a Lua interpreter, and FlyWithLua is also a Lua interpreter. They do basically the same thing, so you do not need one to use the other.
togFox wrote: ↑Fri May 28, 2021 11:13 am
Why don't you use Fly With Lua?
Thanks for reply.
Flywithlua is very limiting. I would like to draw buttons with rounded corners, pictures and of course a better possibility in terms of writing and font. We only have the possibility of using a font 10, 12 and 18 (why we have not 14 and 16 font ?)
I saw some example of graphics possibilities of LOVE... and that’s better than flywithlua.
Love2d won't integrate with xplane. Xplane knows nothing about love2d.
You can draw simple buttons and interfaces in FWL with lines and rectangles and circles. Google FSEHud on xplane.org. That uses FWL and has a window that fades in and out. Has live text updates and I think 2 buttons.
Frankly, Love 2D would force you to draw those things in exactly the same way.
I think if you get creative with FWL you'll be able to so many things - even images (I think).
togFox wrote: ↑Sun May 30, 2021 1:43 am
Love2d won't integrate with xplane. Xplane knows nothing about love2d.
You can draw simple buttons and interfaces in FWL with lines and rectangles and circles. Google FSEHud on xplane.org. That uses FWL and has a window that fades in and out. Has live text updates and I think 2 buttons.
Frankly, Love 2D would force you to draw those things in exactly the same way.
I think if you get creative with FWL you'll be able to so many things - even images (I think).