LovelyBigPlanet

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

Re: LovelyBigPlanet

Post by bartbes »

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!
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LovelyBigPlanet

Post by Jasoco »

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

I don't have a JoyStick.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LovelyBigPlanet

Post by Robin »

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?
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LovelyBigPlanet

Post by Jasoco »

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"
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LovelyBigPlanet

Post by Robin »

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.
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LovelyBigPlanet

Post by Jasoco »

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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LovelyBigPlanet

Post by Robin »

For me it works fine without a joystick. Have you seen my edit in the post above?
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: LovelyBigPlanet

Post by Jasoco »

I already removed all the code. When you post a new version I will download again.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LovelyBigPlanet

Post by bartbes »

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
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LovelyBigPlanet

Post by Robin »

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.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests