Search found 38 matches
- Wed Jul 14, 2021 2:02 pm
- Forum: Support and Development
- Topic: Catch log console messages
- Replies: 4
- Views: 5148
Catch log console messages
Hello, On my project, I want to log some messages with the lualogging library using the console appender. However, when I start the project like "love /path/to/project", the log messages do not appear anywhere. How can i get the console messages, like those that would be printed with print...
- Sun Jun 06, 2021 12:25 pm
- Forum: Support and Development
- Topic: Read files outside of love or project directory
- Replies: 14
- Views: 14674
Re: Read files outside of love or project directory
Thanks very much for all theses clarifications
I think I will give nativefs a try
Newbie question : what is "ffi" ?
Regards
I think I will give nativefs a try
Newbie question : what is "ffi" ?
Regards
- Sat Jun 05, 2021 9:09 pm
- Forum: Support and Development
- Topic: Read files outside of love or project directory
- Replies: 14
- Views: 14674
Re: Read files outside of love or project directory
Thanks for letting me know all this. My issue is that my game uses some slippy maps, like google map. Slippy maps are made of hundreds of tiles for each zoom level. The whole of them weights approximately 5Go. So, I hardly can distribute my game with the slippy map. This one has to stay outside. Thi...
- Sat Jun 05, 2021 2:10 pm
- Forum: Support and Development
- Topic: Read files outside of love or project directory
- Replies: 14
- Views: 14674
Re: Read files outside of love or project directory
Thanks for your answeer. I tried to put some data in %appData\LOVE (windows 10) but still trying to load an image from there : img = love.graphics.newImage("tiles/12/2061/1436.png") fails although I can access %appData\LOVE\tiles\12\2061\1436.png How can I use an image from the game direct...
- Sat Jun 05, 2021 1:31 pm
- Forum: Support and Development
- Topic: Read files outside of love or project directory
- Replies: 14
- Views: 14674
Read files outside of love or project directory
Hello, I am trying to run this : img = love.graphics.newImage("d:/xxxx/Documents/tiles/12/2061/1436.png") The path is outside of the love directory (in which is love.exe) and outside of the project directory (in which is the main.lua) Love fails to find the file, although I did check the f...
- Fri Jun 04, 2021 9:13 pm
- Forum: Libraries and Tools
- Topic: Slab - An Immediate Mode GUI Library In Lua
- Replies: 98
- Views: 279532
Re: Slab - An Immediate Mode GUI Library In Lua
Thanks for your answeer. I got transparency working with : local Slab = require("lib.ext.Slab") function love.load(args) love.graphics.setBackgroundColor(0.4, 0.88, 1.0) Slab.Initialize(args) end function love.update(dt) Slab.Update(dt) Slab.BeginWindow("MyFirstWindow", { BgColor...
- Fri Jun 04, 2021 9:22 am
- Forum: Libraries and Tools
- Topic: Slab - An Immediate Mode GUI Library In Lua
- Replies: 98
- Views: 279532
Re: Slab - An Immediate Mode GUI Library In Lua
Thanks for your answeers. By the way, what is the best practice with external libraries. I used to putting them within the root project directory. However, I noticed that love2d also searches in /path/to/lovedir/ (for dlls) and /path/to/lovedir/lua/ for lua files. On the one hand, it seems better to...
- Thu Jun 03, 2021 9:33 pm
- Forum: Libraries and Tools
- Topic: Slab - An Immediate Mode GUI Library In Lua
- Replies: 98
- Views: 279532
Re: Slab - An Immediate Mode GUI Library In Lua
Hello, Is it possible to make the gui semi-transparent ? I retrieved Slab from github, but it is unclear for me how to install it. In my project directory, I have ./lib/ext directory where I put all external libraires. What should I put in there from Slab ? There is "Slab.lua", but also &q...
- Wed Jun 02, 2021 9:46 pm
- Forum: Support and Development
- Topic: Library to write a table
- Replies: 1
- Views: 4260
Library to write a table
Hello, I would like to draw a table, that is to say a rectangle with cells inside and some text within each cell. It seems doable by drawing first a rectangle, then some lines and finally some text within each cell. However, it is a bit hard, especially if I want the rectangle to adapt its width / h...
- Wed Jun 02, 2021 9:26 pm
- Forum: Support and Development
- Topic: Detect when mouse hover on image
- Replies: 3
- Views: 5335
Re: Detect when mouse hover on image
Thanks for your answeers
Following your piece of advices, I modified the approach given here
and it works very nicely.
Regards
Following your piece of advices, I modified the approach given here
and it works very nicely.
Regards