Help im a complete noob

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
REGFly
Prole
Posts: 1
Joined: Thu Jan 15, 2015 7:12 pm

Help im a complete noob

Post by REGFly »

This is basically my first day using LOVE and i heard you can install native lua libraries in LOVE. The problem is i dont know know how and searching for the solution on google with the keyword love dosent really help. What library i want to install? I want to install a librs-232-master library because i heard that its a serial port library wich i can use with arduino. Thanks in advance
Germanunkol
Party member
Posts: 712
Joined: Fri Jun 22, 2012 4:54 pm
Contact:

Re: Help im a complete noob

Post by Germanunkol »

I've never used those libraries, but someone on the Lua mailing list wrote, that you can simply download the prebuilt binaries from the github repo. Assuming you're on windoze: http://lua-users.org/lists/lua-l/2014-01/msg00311.html (follow the first link under "Windows")
There's also an example file in that directory. Try running that from within the same directory where the .dll is? Or you need to use the Lua function "package.loadlib" to load the library.
Alternativly, you can install the library with luarocks: http://luarocks.org/en/Download
(Use it to install the package luars232).
Then I assume you can just call

Code: Select all

local rs232 = require("luars232")
at the beginning of your file and it should get loaded (this is how to do it in Linux, anyways - I assume with LuaRocks it works the same on Windows, though).

Also, welcome to the forums!
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests