Search found 3070 matches

by slime
Sun Nov 05, 2023 9:01 pm
Forum: Support and Development
Topic: [solved] why does love.filesystem.getInfo return nil on a file that is definitely there?
Replies: 6
Views: 2216

Re: why does love.filesystem.getInfo return nil on a file that is definitely there?

The reason it returned nil in your code is getInfo (and almost every other love.filesystem API) doesn't take full paths, only relative ones. All relative paths in love.filesystem are relative to both the game's source and save directories. Another way to achieve what you want could be to check what ...
by slime
Sun Nov 05, 2023 6:45 pm
Forum: General
Topic: love.graphics.setDepthMode("lequal", true) does not work on Windows
Replies: 1
Views: 1167

Re: love.graphics.setDepthMode("lequal", true) does not work on Windows

If you're rendering to the main screen, are you making sure to set t.window.depth = 24 in love.conf? Or if you're rendering to a canvas, are you making sure to tell love to use a depth buffer in love.graphics.setCanvas?
by slime
Sun Oct 29, 2023 5:09 pm
Forum: Support and Development
Topic: UTF-8 encoding error when erasing accent characters
Replies: 5
Views: 21764

Re: UTF-8 encoding error when erasing accent characters

What's your code that uses it? Or maybe you have other code modifying the string's bytes that's not using it but should? Proper use of the utf-8 module should work without issues.
by slime
Wed Oct 25, 2023 11:06 pm
Forum: Support and Development
Topic: Copying a file from a local directory to the LOVE save directory
Replies: 2
Views: 8857

Re: Copying a file from a local directory to the LOVE save directory

Something like this will copy a file without doing any decoding or encoding, only reading and writing: local data = love.filesystem.read(readpath) love.filesystem.write(writepath, data) It will load the whole file into memory at once, but you can avoid that if you want by using a File object and cop...
by slime
Tue Oct 24, 2023 8:25 pm
Forum: Support and Development
Topic: Cam11 bug when zoom = 0.6 (specifically)
Replies: 4
Views: 2950

Re: Cam11 bug when zoom = 0.6 (specifically)

But what about the circle? It's using a line width that's smaller than 1, which is rarely going to give you a fully visible line. The technical details for why it's entirely invisible have to do with the smooth line style's implementation reducing the core line width in order for the surrounding ou...
by slime
Mon Oct 23, 2023 6:44 pm
Forum: Support and Development
Topic: Cam11 bug when zoom = 0.6 (specifically)
Replies: 4
Views: 2950

Re: Cam11 bug when zoom = 0.6 (specifically)

What do you expect a line with less than 1 pixel width that's not centered at the middle of pixels to look like in a pixel grid?

If you offset the line's position by (0.5, 0.5), then the centers of each end will be at the center of a pixel instead of in between 4 pixels.
by slime
Wed Oct 04, 2023 1:40 am
Forum: Support and Development
Topic: [SOLVED] love.filesystem.read only reads Text?
Replies: 2
Views: 5675

Re: love.filesystem.read only reads Text?

Can you share the file you're using? I don't think that's expected behaviour.
by slime
Wed Sep 27, 2023 10:05 pm
Forum: General
Topic: Shame I'm leaving the Love2D Reddit
Replies: 7
Views: 32064

Re: Shame I'm leaving the Love2D Reddit

The IRC channel is no longer maintained.

The discord server is quite active though. There's a link on the love home page.