I am new and I have a question around love libraries

General discussion about LÖVE, Lua, game development, puns, and unicorns.
coussini
Prole
Posts: 4
Joined: Thu May 27, 2021 8:28 pm

I am new and I have a question around love libraries

Post 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.
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

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

Post 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.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

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

Post 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).
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
User avatar
tomxp411
Prole
Posts: 29
Joined: Thu Apr 08, 2021 5:41 pm

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

Post 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.
coussini
Prole
Posts: 4
Joined: Thu May 27, 2021 8:28 pm

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

Post 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.
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

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

Post by togFox »

Why don't you use Fly With Lua?
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
User avatar
tomxp411
Prole
Posts: 29
Joined: Thu Apr 08, 2021 5:41 pm

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

Post 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.
coussini
Prole
Posts: 4
Joined: Thu May 27, 2021 8:28 pm

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

Post 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.
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

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

Post 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).
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Turn-based PBEM horse stable (racing) management sim: https://togfox.itch.io/horse-stable-manager
https://discord.gg/HeHgwE5nsZ
coussini
Prole
Posts: 4
Joined: Thu May 27, 2021 8:28 pm

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests