"Questions that don't deserve their own thread" thread

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Locked
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Jasoco »

I always figured the function being passed through the table.sort call simply returned true or false. So as long as the value being returned is a boolean I'd think it worked. Therefore when it's stepping through the table deciding whether to move a row into a new position, having it randomly tell it yes or no seems like it would work for a simple shuffle function.

I just ended up using code I found on StackExchange that's similar to Robin's code since it accepted the RNG fine.
User avatar
Jack Dandy
Prole
Posts: 49
Joined: Mon Sep 08, 2014 4:26 pm

Re: "Questions that don't deserve their own thread" thread

Post by Jack Dandy »

Hey there, I was wondering, where did all the tutorials in https://www.love2d.org/wiki/Category:Tutorials disappear to? I remember there were a lot more there some time ago. :crazy:
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: "Questions that don't deserve their own thread" thread

Post by Ranguna259 »

What do you mean ?
I belive they are still there but you can check the tutorial's wiki history.
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Jack Dandy
Prole
Posts: 49
Joined: Mon Sep 08, 2014 4:26 pm

Re: "Questions that don't deserve their own thread" thread

Post by Jack Dandy »

Both the TutorialTest and Example pages only lead to the example pages- the code (and tutorial) themselves can't be seen anywhere.
User avatar
kbmonkey
Party member
Posts: 139
Joined: Tue Sep 01, 2015 12:19 pm
Location: Sydney
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by kbmonkey »

Jack Dandy wrote:Both the TutorialTest and Example pages only lead to the example pages- the code (and tutorial) themselves can't be seen anywhere.
The examples.love link takes you to the code. Unzip the love file to see it.
User avatar
Jack Dandy
Prole
Posts: 49
Joined: Mon Sep 08, 2014 4:26 pm

Re: "Questions that don't deserve their own thread" thread

Post by Jack Dandy »

I see, thanks.
User avatar
5 Inch House
Prole
Posts: 4
Joined: Thu Sep 24, 2015 10:33 pm

Re: "Questions that don't deserve their own thread" thread

Post by 5 Inch House »

I've been copy and pasting function lines from the LOVE wiki's Callback Function tutorial trying to see what each did, since it's a tutorial. I even figured out simpler things like adding color to the loaded images and general color on my own, but love.mousereleased crashes the experimental project and everything past that just doesn't seem to work. :? What am I doing wrong?
Attachments
What's going on.png
What's going on.png (89.13 KiB) Viewed 4332 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Robin »

You know, it would be much more helpful if you uploaded a .love of that instead of a screenshot.
Help us help you: attach a .love.
User avatar
5 Inch House
Prole
Posts: 4
Joined: Thu Sep 24, 2015 10:33 pm

Re: "Questions that don't deserve their own thread" thread

Post by 5 Inch House »

Robin wrote:You know, it would be much more helpful if you uploaded a .love of that instead of a screenshot.
The folder labelled "basics" is me trying to learn things, so the experimental program. Also, the folder labelled "reference images" is for a project idea I have for when I can actually do things, so don't pay that too much mind. Don't even have a .love of the experimental yet, so I apologize if that's a nuisance. If you drag the "basics" folder onto love.exe it should function. :P
Attachments
LOVE 2D.zip
(4.49 MiB) Downloaded 128 times
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: "Questions that don't deserve their own thread" thread

Post by Robin »

If you had zipped the contents of the folder "basics", then you could rename that to .love, but anyway.

I can't reproduce your error, it all works fine.
Help us help you: attach a .love.
Locked

Who is online

Users browsing this forum: Bing [Bot] and 3 guests