Search found 3079 matches

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: 1217

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: 21969

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: 8993

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: 3125

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: 3125

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: 5707

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: 32406

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.
by slime
Sat Sep 23, 2023 2:51 pm
Forum: General
Topic: I just accidentally found a literal zip bomb for the ram in love
Replies: 3
Views: 6406

Re: I just accidentally found a literal zip bomb for the ram in love

There's at least one third party audio source wrapper library (SLAM) which overwrites Source:play to create a new Source each time it's called. If you're using that it'd cause huge memory increases when you call Source:play every frame.

Otherwise zorg is correct.