"Fetch Libraries" not working with some of them (SOLVED)

Hi everyone!

Some libraries work fine while some others don’t, but I can’t figure out why.

I followed these instructions…

…to install this library (debug-draw by ross.grams) - and it works like a charm! (so useful)

Then I found this topic containing tons of amazing Lua resources:

And picked the following ones (that look really convenient too):
Lume => https://github.com/rxi/lume/
Vivid => https://github.com/WetDesertRock/vivid

I added both URL to the game.project, just like I did with debug-draw:
image (this is where I got the URL)
bug-libraries001

But when fetching the libraries… nothing happened:
image (should be displayed here, right?)

I desperately decided to close & open Defold, just in case, but…
image I’m asked to Fetch Libraries, but I already did it…

Questions:
1/ Is there something specific I missed in the process?
2/ Is there a “manual” way to add libraries? (if the method mentioned above -which is great though- doesn’t work) I mean, directly in Defold’s directory or something…

Thanks!
(and Merry Christmas :santa:)

Rag’

These are not the Defold libs. You can only use fetch method for Defold Native Extensions/Assets.

You can use Lume & Vivid(.lua files) by just putting them in a folder and require it. Paths are relative to the project folder. If you put those files in project_path/modules/lume.lua then you can require it by lume = require "modules.lume"

3 Likes

Oh ok, thank you for the explanation! Before your message, there was no clear difference in my mind between Defold and non-Defold extensions, but it’s clear now.

Just installed and required both libraries, it works fine :+1:

Thanks for the link too!

3 Likes