LSD - Little Sticky Destroyer [Crowdfunding started]

Show off your games, demos and other (playable) creations.
Post Reply
User avatar
paranoiax
Prole
Posts: 40
Joined: Thu Aug 16, 2012 10:27 am

Re: LSD - Little Sticky Destroyer

Post by paranoiax »

josefnpat wrote:The game doesn't run for me :(

Code: Select all

seppi@seppi7:~/Downloads/love$ love --version
LOVE 0.8.0 (Rubber Piggy)
seppi@seppi7:~/Downloads/love$ love lsd.love 
Error: main.lua:284: bad argument #3 to 'newFixture' (number expected, got no value)
stack traceback:
	[C]: in function 'newFixture'
	main.lua:284: in function 'addSensor'
	levels/level1.lua:4: in main chunk
	main.lua:153: in function 'load'
	[string "boot.lua"]:375: in function <[string "boot.lua"]:373>
	[C]: in function 'xpcall'
edit: I cloned from your repo, and I get the same error.
I'm not exactly sure, but for some reason it seems to miss the density value for the fixtures instead of falling back to the default values. Please clone again and tell me if it got fixed (what OS btw?)
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: LSD - Little Sticky Destroyer

Post by qaisjp »

He uses linux - the problem with the mpg starts at the [C] which denotes that it is a problem with your operating system -- I'll try to fix this problem by converting the .mp3 to .ogg
Lua is not an acronym.
User avatar
paranoiax
Prole
Posts: 40
Joined: Thu Aug 16, 2012 10:27 am

Re: LSD - Little Sticky Destroyer

Post by paranoiax »

qaisjp wrote:He uses linux - the problem with the mpg starts at the [C] which denotes that it is a problem with your operating system -- I'll try to fix this problem by converting the .mp3 to .ogg
That seems to be the problem for osa1, not for josefnpat. or am i wrong? :?
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: LSD - Little Sticky Destroyer

Post by qaisjp »

Paranoiax can you implement a map pack selector? I already implemented the directory structure and game support, all you need to do is currentPack = "packname"
paranoiax wrote:
qaisjp wrote:He uses linux - the problem with the mpg starts at the [C] which denotes that it is a problem with your operating system -- I'll try to fix this problem by converting the .mp3 to .ogg
That seems to be the problem for osa1, not for josefnpat. or am i wrong? :?
they both use linux anyway (terminal output gives it away)
Lua is not an acronym.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: LSD - Little Sticky Destroyer

Post by Boolsheet »

qaisjp wrote:the [C] which denotes that it is a problem with your operating system
The [C] in the traceback means that the function was given to Lua as a C function, it was not written in Lua. It doesn't really tell you what the problem is. ;)
Shallow indentations.
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: LSD - Little Sticky Destroyer

Post by qaisjp »

Boolsheet wrote:
qaisjp wrote:the [C] which denotes that it is a problem with your operating system
The [C] in the traceback means that the function was given to Lua as a C function, it was not written in Lua. It doesn't really tell you what the problem is. ;)
I know what it means but I said it wrong, the [C] code of love tries to find the mp3 module for playing the .mp3, but love can't find it. The fact that there is no mp3 module is dependent on your operating system.
Lua is not an acronym.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LSD - Little Sticky Destroyer

Post by Robin »

Except that josefnpat's error has nothing to do with mp3, but instead seems to indicate there was a bug in LÖVE 0.8.0 that didn't use a default value for the third argument of love.physics.newFixture.
Help us help you: attach a .love.
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: LSD - Little Sticky Destroyer

Post by qaisjp »

It seems that I broke Box2D Love
WXPoH.png
WXPoH.png (41.51 KiB) Viewed 536 times
Lua is not an acronym.
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: LSD - Little Sticky Destroyer

Post by Boolsheet »

Ah, Box2D error messages. Luckily, the assert is commented:

Code: Select all

// You tried to remove a shape that is not attached to this body.
b2Assert(found);
Hm, hm. Looks like my destruction-queue code didn't work out as planned after all. If my code really broke, then you should move your object destruction after the callbacks. You're actually not supposed to destroy stuff in plain Box2D during the callbacks. LÖVE throws them in a queue for convenience, but (it looks like) it's better if you just take care of that yourself. At least I think that is the problem.
Shallow indentations.
User avatar
qaisjp
Party member
Posts: 490
Joined: Tue Sep 04, 2012 10:49 am
Location: United Kingdom
Contact:

Re: LSD - Little Sticky Destroyer

Post by qaisjp »

Anyone wants to help make this super hard epic editor? ._.
Lua is not an acronym.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests