Search found 512 matches

by MrFariator
Tue Dec 12, 2023 8:08 pm
Forum: Support and Development
Topic: Question about the license.txt file
Replies: 2
Views: 10404

Re: Question about the license.txt file

Yeah, you should include the license.txt that comes with love2d with your distribution. For clarity to end-users, you could indeed rename it to license_love2d.txt, and put your own game's license (eg. any licensing involving your game assets) in its own file. You could even consider making a third f...
by MrFariator
Sun Dec 10, 2023 12:20 am
Forum: Support and Development
Topic: LÖVE 11.5 — is Windows 7 no longer supported?
Replies: 5
Views: 10156

Re: LÖVE 11.5 — is Windows 7 no longer supported?

While it sucks that some older versions of Windows have been dropped from support (not due to any fault on LÖVE itself, of course, just PhysFS), it's also perhaps worth noting that Steam itself is dropping support for Win7, starting on January 1st 2024 . According to Steam's hardware & software ...
by MrFariator
Sat Dec 09, 2023 11:48 am
Forum: Support and Development
Topic: [SOLVED]One variable references two different objects simultaneously
Replies: 6
Views: 3830

Re: One variable references two different objects simultaneously

Well, when you launch the project, manager.open is run once in scene.lua. This is presumably the place that you are having your issues in. I added the following modifications to check what each value was: function manager.open(n) if not scene[n] then manager.load(n) end list:setBack(scene[n]) -- in ...
by MrFariator
Sat Dec 09, 2023 6:06 am
Forum: Support and Development
Topic: [SOLVED]One variable references two different objects simultaneously
Replies: 6
Views: 3830

Re: One variable references two different objects simultaneously

Can you provide a runnable example? Specifically, what are the values of "a" and "b"?
by MrFariator
Sat Dec 02, 2023 5:08 am
Forum: Support and Development
Topic: Love 2D 11.4 crashes after exactly 2234 frames
Replies: 6
Views: 11908

Re: Love 2D 11.4 crashes after exactly 2234 frames

Similarly see no issues on Windows 11, or my Ubuntu box. RAM usage and CPU usage don't seem to be going up either, so don't think there's any errant (heavy) memory leak or such.
by MrFariator
Fri Dec 01, 2023 3:24 am
Forum: Support and Development
Topic: [SOLVED] I'm confused, Is a bug of 'repeat until'?
Replies: 8
Views: 3772

Re: [solved] I'm confused, Is a bug of 'repeat until'?

What is the remaining bug? The text not rendering? You might want to take a a look what the the code between lines 55 and 61 is doing. Edit: Actually, reading the code, you're setting the index 1 in the bananas table to empty, but yet to you continue to run the code because it's defined inside love....
by MrFariator
Fri Dec 01, 2023 2:03 am
Forum: Support and Development
Topic: [SOLVED] I'm confused, Is a bug of 'repeat until'?
Replies: 8
Views: 3772

Re: I'm confused, Is a bug of 'repeat until'?

I explained what the issue in your code is, and how to address it. However, I'd recommend taking a step back, and trying to understand your table accesses. That's the root of your issues.
by MrFariator
Fri Dec 01, 2023 1:51 am
Forum: Support and Development
Topic: [SOLVED] I'm confused, Is a bug of 'repeat until'?
Replies: 8
Views: 3772

Re: I'm confused, Is a bug of 'repeat until'?

The contents of your uploaded main.lua do not match the code in your opening post, since you replaced the repeat-until with a goto, but... local queue = { { 1 } } local bananas = { 'got nil?' } function func(o) love.graphics.print(o[1]) end -- inside the loop for _, o in pairs(queue) do func(bananas...
by MrFariator
Fri Dec 01, 2023 1:31 am
Forum: Support and Development
Topic: [SOLVED] I'm confused, Is a bug of 'repeat until'?
Replies: 8
Views: 3772

Re: I'm confused, Is a bug of 'repeat until'?

Okay, I'll take just this snippet, and step you through it: local i = 1 repeat if queue[i] then for _, o in pairs(queue[i]) do o:func(bananas[i]) end end i = i + 1 if i < (999 + 1) then bananas[i * i / i] = nil end until(i > 5) 1. The code starts a repeat-until loop, ok. 2. If queue table at index i...
by MrFariator
Tue Nov 28, 2023 10:44 pm
Forum: Support and Development
Topic: table in love.event.push will lose metatable
Replies: 3
Views: 1810

Re: table in love.event.push will lose metatable

Can you share some code, to illustrate the problem you are having? The part about losing the metatable in the process sounds odd. Do remember that the colon(:) syntax is just syntactical sugar: myObject:myFunction(arg1) -- is the same as myObject.myFunction(myObject,arg1) function myObject:myFunctio...