love2d and lua installation on windows 10

General discussion about LÖVE, Lua, game development, puns, and unicorns.
deb75
Prole
Posts: 38
Joined: Sun Apr 18, 2021 1:11 pm

love2d and lua installation on windows 10

Post by deb75 »

Hello,

I retrieved love2d 11.3 on windows 10 and it runs well.

On windows 10, I also have the full msys2 / mingw64 system which brings lua 5.4 (native windows build - mingw64) and luaJIT.

I do not understand well yet how love2d interacts with the mingw64 lua installation :
- does love2d needs either lua5.4 or luaJIT executables at run time ? but it seems love2d only supports lua 5.1
- how to do when I need a special lua package ? I configured luarocks to install for lua 5.4

Regards
User avatar
GVovkiv
Party member
Posts: 686
Joined: Fri Jan 15, 2021 7:29 am

Re: love2d and lua installation on windows 10

Post by GVovkiv »

Love already have anything you need inside it's folder
it don't need external dependencies
User avatar
Suttebun
Prole
Posts: 10
Joined: Fri May 21, 2021 5:25 pm

Re: love2d and lua installation on windows 10

Post by Suttebun »

@GVovkiv He's probably trying to do something special.

"Love already has everything you need inside it's folder.
It doesn't need external dependencies." ☆
(If you want help with english, I'm really into teaching! I'm trying to make games for it.)

@Deb75 are you wanting to use Luarocks to manage LUA MODULES for your LOVE project?
Theres a chance that LOVE2D doesn't interact with your mingw64 lua installation, and instead uses an embedded version of LUA like GVovkiv said.
American, Japanese learner. Games development from Tigsource circa 2011.
よろしくお願いします (yoroshiku-onegaishimasu) Nice to meet you. ☽♡☆
♫ sing with me ♫ SUTTEBUN NETWORK ✝
User avatar
GVovkiv
Party member
Posts: 686
Joined: Fri Jan 15, 2021 7:29 am

Re: love2d and lua installation on windows 10

Post by GVovkiv »

Suttebun wrote: Sun May 23, 2021 4:22 pm @GVovkiv He's probably trying to do something special.

"Love already has everything you need inside it's folder.
It doesn't need external dependencies." ☆
(If you want help with english, I'm really into teaching! I'm trying to make games for it.)

@Deb75 are you wanting to use Luarocks to manage LUA MODULES for your LOVE project?
Theres a chance that LOVE2D doesn't interact with your mingw64 lua installation, and instead uses an embedded version of LUA like GVovkiv said.
bro...
ok
deb75
Prole
Posts: 38
Joined: Sun Apr 18, 2021 1:11 pm

Re: love2d and lua installation on windows 10

Post by deb75 »

Thanks all for your kind answeers.

It seems indeed lua embeds lua 5.1. In the zip archive of lua 11.3 there is the lua51.dll file.

I was wondering how to use an external package, e.g. luasocket (but this one seems already available within love2d), with love2d.

Regards
User avatar
Suttebun
Prole
Posts: 10
Joined: Fri May 21, 2021 5:25 pm

Re: love2d and lua installation on windows 10

Post by Suttebun »

@GVovkiv Because if you don't talk right, you mess other people up.

Good thing Deb75, have fun.
American, Japanese learner. Games development from Tigsource circa 2011.
よろしくお願いします (yoroshiku-onegaishimasu) Nice to meet you. ☽♡☆
♫ sing with me ♫ SUTTEBUN NETWORK ✝
User avatar
togFox
Party member
Posts: 828
Joined: Sat Jan 30, 2021 9:46 am
Location: Brisbane, Oztralia

Re: love2d and lua installation on windows 10

Post by togFox »

Love 2D has lua socket already but you need to REQUIRE it like you would for any external module.
Last project:
https://togfox.itch.io/hwarang
A card game that brings sword fighting to life.
Current project:
Idle gridiron. Set team orders then idle and watch: https://togfox.itch.io/idle-gridiron
User avatar
AuahDark
Party member
Posts: 107
Joined: Mon Oct 23, 2017 2:34 pm
Location: Indonesia
Contact:

Re: love2d and lua installation on windows 10

Post by AuahDark »

It's often discouraged to use LuaRocks module in LOVE due to portability reasons. If you can find LuaJIT FFI binding equivalent of certain libraries then you can use that instead.

Or if it's something trivial then it's easy to write your own.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
User avatar
GVovkiv
Party member
Posts: 686
Joined: Fri Jan 15, 2021 7:29 am

Re: love2d and lua installation on windows 10

Post by GVovkiv »

Suttebun wrote: Sun May 23, 2021 7:53 pm @GVovkiv Because if you don't talk right, you mess other people up.

Good thing Deb75, have fun.
OK BROOO
User avatar
tomxp411
Prole
Posts: 29
Joined: Thu Apr 08, 2021 5:41 pm

Re: love2d and lua installation on windows 10

Post by tomxp411 »

GVovkiv wrote: Fri May 28, 2021 3:38 pm
Suttebun wrote: Sun May 23, 2021 7:53 pm @GVovkiv Because if you don't talk right, you mess other people up.

Good thing Deb75, have fun.
OK BROOO
Yeah, we all get he was being rude, but responding to his off-topic comments with more off-topic commends doesn't help the conversation. :)
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], slime and 15 guests