## LovelyBigPlanet

Show off your games, demos and other (playable) creations.
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: LovelyBigPlanet

I forgot to mention... but Public Alpha time has started, you can find all releases here. (I'll add the url to the first post)
Everyone enjoy playing!

Jasoco
Inner party member
Posts: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

### Re: LovelyBigPlanet

I get an error that the Joystick can't be found.

I don't have a JoyStick.

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: LovelyBigPlanet

Jasoco wrote:I get an error that the Joystick can't be found.

I don't have a JoyStick.
I don't get an error without a joystick. When does this error occur exactly? At game startup?

Does anybody else have this problem?

Jasoco
Inner party member
Posts: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

### Re: LovelyBigPlanet

As soon as I press Enter. You know, the level shows, the dialog box is up. When I press Enter to do what it says it goes blue.

The EXACT error is:

"Invalid Joystick Index: 0"

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: LovelyBigPlanet

Does it give you any line number?

EDIT: What happens if you comment out line 45 in main.lua (it says: activejoystick = 0)?
Last edited by Robin on Fri Sep 11, 2009 9:49 pm, edited 1 time in total.

Jasoco
Inner party member
Posts: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

### Re: LovelyBigPlanet

Nope. Just says the Joystick index is invalid. Which is ZERO.

Do you have a Joystick? Do you make sure to check if one exists first before trying to retrieve values?

I will have to look at the code.

Edit: By removing all the JoyStick code it works and runs fine.

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: LovelyBigPlanet

For me it works fine without a joystick. Have you seen my edit in the post above?

Jasoco
Inner party member
Posts: 3650
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

### Re: LovelyBigPlanet

bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

### Re: LovelyBigPlanet

IIRC I accidentally left a debug in that uses the joystick regardless of it existing.
As to why it works for robin: I fixed it in the porting branch

Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

### Re: LovelyBigPlanet

bartbes wrote:IIRC I accidentally left a debug in that uses the joystick regardless of it existing.
As to why it works for robin: I fixed it in the porting branch
I think not:

Code: Select all

    local njoysticks = love.joystick.getNumJoysticks()
if njoysticks == 0 then
activejoystick = 0
elseif njoysticks > 0 then
--this needs to be replaced, this doesn't work
--you need to be able to choose the joystick here
activejoystick = 0
end
That is in the latest version of the porting branch -- if no joysticks are found, activejoystick=0 == true, which means the joystick code is still run. But it still works for me.