Search found 204 matches

by ReFreezed
Thu Dec 17, 2020 11:00 am
Forum: Support and Development
Topic: Love2d stops running after awhile
Replies: 43
Views: 6474

Re: Love2d stops running after awhile

No, but if you call collectgarbage() right before collectgarbage("count") you'll get a more accurate memory usage number (because no "garbage" has had any time to build up) and it's easier to see exactly how much the memory usage increases over time. If you don't collect garbage manually then Lua do...
by ReFreezed
Thu Dec 17, 2020 9:14 am
Forum: Support and Development
Topic: Love2d stops running after awhile
Replies: 43
Views: 6474

Re: Love2d stops running after awhile

Yes, using too much memory will crash the program. Get Lua's memory usage with kbytes=collectgarbage("count"). Note that it doesn't include VRAM usage and some other things. You can get more info with love.graphics.getStats.
by ReFreezed
Wed Dec 16, 2020 4:19 pm
Forum: General
Topic: [Solved] Super dumb question about uploading links to a .gif on these forums
Replies: 6
Views: 3645

Re: [Solved] Super dumb question about uploading links to a .gif on these forums

The browsers maybe have different security policies regarding showing http content on https pages (and settings and add-ons may affect this as well). The only "real" solution is probably to either fix the certificate or to simply use another host for the images.
by ReFreezed
Wed Dec 16, 2020 7:01 am
Forum: General
Topic: I think it would be neat to have a Love2d equivalent to gamemaker gml wiki
Replies: 6
Views: 3804

Re: I think it would be neat to have a Love2d equivalent to gamemaker gml wiki

Sounds similar to what Rosetta Code does for programming languages, but for APIs.
by ReFreezed
Tue Dec 15, 2020 2:01 pm
Forum: General
Topic: What do you think of my signature?
Replies: 4
Views: 3551

Re: What do you think of my signature?

I had a tiny chuckle when reading it. Can't quite explain why. :brows:

Edit: Actually, I'll say that the signature is pretty long. It's a bit hard to differentiate it from the actual post.
by ReFreezed
Tue Dec 15, 2020 6:21 am
Forum: Support and Development
Topic: External files
Replies: 2
Views: 759

Re: External files

Basically, you use require() when you want to execute a .lua file, and love.filesystem for reading and writing other types of files. For example, if you want to save a highscore to a text file you'd do something like this: local highscore = 0 local function saveHighscore() love.filesystem.write("hig...
by ReFreezed
Sun Dec 13, 2020 6:48 pm
Forum: Support and Development
Topic: Worried about continuing my relationship with LÖVE :(
Replies: 9
Views: 1862

Re: Worried about continuing my relationship with LÖVE :(

Note that this thread is 7 years old...
by ReFreezed
Sun Dec 13, 2020 6:39 pm
Forum: Support and Development
Topic: [solved] How to get Texture from Quad
Replies: 16
Views: 1837

Re: How to get Texture from Quad

To render a part of a texture you give love.graphics.draw both the texture and the quad. No shaders are required to do that. If you only give love.graphics.draw a texture then LÖVE automatically uses a quad that spans the whole texture.
by ReFreezed
Sat Dec 12, 2020 1:29 am
Forum: Support and Development
Topic: Problem with offline wiki package.
Replies: 3
Views: 621

Re: Problem with offline wiki package.

Oh, yeah, some extra pages/missing pages are for deprecated stuff. Scripts are not working on the downloaded pages, and thus the LÖVE version picker that the online wiki has doesn't work.
by ReFreezed
Fri Dec 11, 2020 11:50 pm
Forum: Support and Development
Topic: Problem with offline wiki package.
Replies: 3
Views: 621

Re: Problem with offline wiki package.

Yeah, the wiki download is broken. I did make a crawler of sorts myself a little while back. This download should contain the whole API from the wiki (with fixed links): https://www.dropbox.com/sh/i2x4poejlh6nspl/AACZbjpEDl0Tu3Q0Dbq__Mmwa?dl=0 There is also this: https://github.com/love2d-community/...