Search found 1738 matches

by pgimeno
Fri Aug 09, 2019 10:26 am
Forum: Support and Development
Topic: "Attempt to compare number with nil" error with collision
Replies: 9
Views: 554

Re: "Attempt to compare number with nil" error with collision

Okay, I see what's wrong now. Nothing beats having the whole code for debugging :) It should have been obvious, but it seems we all missed it. In main.lua, you have if Player:collide(asteroid1) then But that's not the right way to call it. The object is called player, the class is called Player. You...
by pgimeno
Thu Aug 08, 2019 10:16 pm
Forum: Support and Development
Topic: "Attempt to compare number with nil" error with collision
Replies: 9
Views: 554

Re: "Attempt to compare number with nil" error with collision

Please post the whole project as a .love file.

If you don't want to share the graphics, replace them with blank images.
by pgimeno
Thu Aug 08, 2019 12:14 pm
Forum: General
Topic: What collision detection are you using ?
Replies: 1
Views: 221

Re: What collision detection are you using ?

Hello everybody, I am curious to know what collision detection algorithm you are using. Is it simply AABB ? Or maybe you are using SAT ? Or even JGK ? Another one maybe ? And if you are using a library, could you tell me (if you know it) what collision detection algorithm it uses ? It would also be...
by pgimeno
Thu Aug 08, 2019 9:47 am
Forum: Support and Development
Topic: "Attempt to compare number with nil" error with collision
Replies: 9
Views: 554

Re: "Attempt to compare number with nil" error with collision

The error is not "attempting to index a nil value". The error is "attempting to compare number with nil". One of the objects doesn't have an x or an y field. The problem is most likely in Asteroid.lua, but rather than guessing. it would be nice if you post the whole project instead of the snippets w...
by pgimeno
Wed Aug 07, 2019 9:58 am
Forum: Support and Development
Topic: Cannot prevent audio from aliasing when LÖVE has to resample
Replies: 13
Views: 1195

Re:

I should've attached the results of my tests in the beginning to show what the problem was. I attached some .ogg files to this post in case you want to hear them. Now that I know where you expected the aliasing to appear, yes I notice it. Those high pitched notes hurt my ears, I didn't expect you t...
by pgimeno
Tue Aug 06, 2019 8:40 pm
Forum: Support and Development
Topic: A fixture has escaped Memoizer!
Replies: 8
Views: 699

Re: A fixture has escaped Memoizer!

I'd assume you already have a full list(s) of all of these, because otherwise the bodies get garbage collected? This makes me wonder if the problem is precisely the fact that you get the same object after GC on it is run (the "double GC" issue recently discussed). I bet that can confuse a memoizer....
by pgimeno
Mon Aug 05, 2019 3:02 pm
Forum: Support and Development
Topic: selfmade collision system doesn't work well
Replies: 2
Views: 853

Re: selfmade collision system doesn't work well

Sorry I missed this post. Due to a bug in the forum software, posts from new users are sometimes not displayed as unread. For my collision system to work, the collisions must be calculated pixel per pixel. So I calculate the new position, check the coordinate and if the new position is colliding wit...
by pgimeno
Mon Aug 05, 2019 1:32 pm
Forum: Support and Development
Topic: Cannot prevent audio from aliasing when LÖVE has to resample
Replies: 13
Views: 1195

Re: Cannot prevent audio from aliasing when LÖVE has to resample

I don't notice any aliasing with PulseAudio. The latency is awful though but I think that's expected with that driver.
by pgimeno
Sun Aug 04, 2019 9:59 pm
Forum: Support and Development
Topic: Command line parameters not working
Replies: 3
Views: 859

Re: Command line parameters not working

My guess: that calling the file, so that the executable to run is determined by extension, is not passing the additional parameters to said executable.

Try checking if there is any mechanism in your OS to solve that, or call the executable yourself as Konikoko suggests.
by pgimeno
Sat Aug 03, 2019 5:03 pm
Forum: Support and Development
Topic: Applying stencil test while setting stencil + elusive 3d bug
Replies: 5
Views: 1624

Re: Applying stencil test while setting stencil + elusive 3d bug

I doubt that OpenGL and LÖVE are so badly designed that you would be able to use the stencil before it has finished being drawn; Well, it definitely happens happened with canvases; see the thread I linked (and I was not the first nor the last one having the issue). I don't see why it can't happen w...