Page 1 of 2

I am new and I have a question around love libraries

Posted: Thu May 27, 2021 8:41 pm
by coussini
Hi everybody,

I am new in your love world, and I have a question.

I just want to know if it's possible to just use love library without the apps LOVE. I'm explain that:
  • I use X-Plane 11 and lua in X-Plane 11 development
  • I saw that love pgm has several library for it's usage and particullary the graphic and drawing stuff
  • If I download and install only some LOVE folder and use it in lua with X-Plane... do you know if it's possible
Thanks. God save you away from the COVID-19.

Re: I am new and I have a question around love libraries

Posted: Fri May 28, 2021 2:55 am
by togFox
Hello.

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.

Edit: not without writing DLL's etc.

Re: I am new and I have a question around love libraries

Posted: Fri May 28, 2021 3:23 am
by togFox
Further:

I have considered using FWL to output text files that can then be consumed by Love2D as a separate Windows program (for an economy game or whatever).

Re: I am new and I have a question around love libraries

Posted: Fri May 28, 2021 3:51 am
by tomxp411
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.

Re: I am new and I have a question around love libraries

Posted: Fri May 28, 2021 10:39 am
by coussini
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.

Re: I am new and I have a question around love libraries

Posted: Fri May 28, 2021 11:13 am
by togFox
Why don't you use Fly With Lua?

Re: I am new and I have a question around love libraries

Posted: Fri May 28, 2021 5:38 pm
by tomxp411
coussini wrote: Fri May 28, 2021 10:39 am
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.

Re: I am new and I have a question around love libraries

Posted: Sat May 29, 2021 12:48 pm
by coussini
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.

Re: I am new and I have a question around love libraries

Posted: Sun May 30, 2021 1:43 am
by togFox
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).

Re: I am new and I have a question around love libraries

Posted: Sun May 30, 2021 1:35 pm
by coussini
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).
Ok... thanks.