Author Topic: My entry: AFKIM - Universal (almost) Instant messaging client for psp  (Read 11612 times)

0 Members and 1 Guest are viewing this topic.

Offline Phantom

  • Neo-Newbie
  • Full Member
  • *
  • Posts: 171
  • 1010011010
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #15 on: March 25, 2006, 04:52:18 PM »
I can't get it work, it freeze at the NeoCompo Screen.

Offline danzel

  • Jr. Member
  • **
  • Posts: 72
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #16 on: March 26, 2006, 03:13:29 AM »
Make sure your wifi switch is on and that you have atleast one wifi connection set up in network settings, infrastructure before you start it.
(There is a stupid bug that makes this cause afkim to lockup, slipped in when I was coding at 2am just before the entry time was up!)

Offline Phantom

  • Neo-Newbie
  • Full Member
  • *
  • Posts: 171
  • 1010011010
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #17 on: March 26, 2006, 06:31:40 AM »
Make sure your wifi switch is on and that you have atleast one wifi connection set up in network settings, infrastructure before you start it.

I do (perfectly work on other net apps), but it still freeze... (I have a 1.5 PSP)

Offline danzel

  • Jr. Member
  • **
  • Posts: 72
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #18 on: March 26, 2006, 10:09:03 PM »
I have had a report from someone else who had it lock up at the splash screen, but they never responded.

I've had a mess with the wifi menu, I will PM you a link to a modified version which hopefully now works.


Edit: Also try completely powering off your psp before running it. (remove the battery or hold the power switch untill the screen goes black)
« Last Edit: March 26, 2006, 10:59:54 PM by danzel »

Offline Phantom

  • Neo-Newbie
  • Full Member
  • *
  • Posts: 171
  • 1010011010
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #19 on: March 27, 2006, 03:52:13 PM »
I've reply to your PM. Hurry up to solve that problem, else it will be out of the compo (for me at least, I don't know what about others)

Offline danzel

  • Jr. Member
  • **
  • Posts: 72
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #20 on: March 27, 2006, 07:05:18 PM »
After playing with me psp a bit I managed to get the same error that you were getting!
I've fixed it and PM'd you the new version.
If that doesn't fix it then I really am stumped.
 :(  ::sm-04:: ???
(these are the best emoticons I've even seen on a forum! hahaha)

Offline Phantom

  • Neo-Newbie
  • Full Member
  • *
  • Posts: 171
  • 1010011010
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #21 on: March 27, 2006, 08:00:59 PM »
it work ... now... ???

Offline danzel

  • Jr. Member
  • **
  • Posts: 72
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #22 on: March 27, 2006, 08:28:07 PM »
Yay finally, I think that this bug is actually in all of my wifi programs :| (and probably in some other peoples wifi programs too)

For all those devs who are using wifi, if you enumerate all the connections as follows:
Code: [Select]
        for (iNetIndex = 1; iNetIndex < 100; iNetIndex++) // skip the 0th connection
        {
            if (sceUtilityCheckNetParam(iNetIndex) != 0)
                break;  // no more
            .......... // <- at this point you have a good connection, add it to your picks list
        }
You are actually doing it wrong :o
If a user has added 2 wifi connections and then deleted the first one, then when you call sceUtilityCheckNetParam(1); it will return a non zero value, but calling sceUtilityCheckNetParam(2); will return zero as there is a connection there.
Alter the code to do continue; instead of break; when sceUtilityCheckNetParam(iNetIndex) returns a non-zero value, giving:

Code: [Select]
        for (iNetIndex = 1; iNetIndex < 100; iNetIndex++) // skip the 0th connection
        {
            if (sceUtilityCheckNetParam(iNetIndex) != 0)
                continue;  // no connection here
            .......... // <- at this point you have a good connection, add it to your picks list
        }
So we check the first 100 network connections to see if there is a connection set up in any instead of stopping when we hit an index where there is no network connection.

This error was in PSPPets original wifi examples, as these are the only examples I've seen that enumerate the connections then I think it is likely that many other wifi apps will have this trouble too.

Offline dagrom

  • Newbie
  • *
  • Posts: 2
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #23 on: April 04, 2006, 03:29:40 PM »
I'm getting the same erroe as Phantom, If you could help me out as well, it would be greatly appreciated

Offline danzel

  • Jr. Member
  • **
  • Posts: 72
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #24 on: April 04, 2006, 06:36:15 PM »
Grab this semi-official version:
http://localhost.geek.nz/afkim/afkim_wifi2.zip
It should fix it for you. (please tell me if it does or doesn't)

Watch my blog for further updates http://localhost.geek.nz :)

Offline dagrom

  • Newbie
  • *
  • Posts: 2
Re: My entry: AFKIM - Universal (almost) Instant messaging client for psp
« Reply #25 on: April 05, 2006, 05:35:34 AM »
wow this is really cool, it works! thanks a lot! :)