triEngine problem(?)
triEngine problem(?)
I'm working on a multiplayer pong game. Everything works fine but now I'm on the part that I should connect to the server, retrieve player2's x and y cords etc etc.
Before I was going to do this I thought "Hey, lets do a few tests". I created a page to fetch and to display it on the PSP screen. I'm using the triEngine, I gotta love the net part!
So this is what happens: everything compiles fine and runs fine but somehow the screen stays at "Please wait. Connecting to access point...". Just see for yourself;
http://pastebin.com/m743ee907 (if you got any comments on the code etc, do tell)
http://www.producted.net/POPong/POPong.rar (eboot)
Thanks in advance
Before I was going to do this I thought "Hey, lets do a few tests". I created a page to fetch and to display it on the PSP screen. I'm using the triEngine, I gotta love the net part!
So this is what happens: everything compiles fine and runs fine but somehow the screen stays at "Please wait. Connecting to access point...". Just see for yourself;
http://pastebin.com/m743ee907 (if you got any comments on the code etc, do tell)
http://www.producted.net/POPong/POPong.rar (eboot)
Thanks in advance
Are you 100% positive that you want to use the first config?
Because, if you are not using the first connection point to access, then this will never work.
Also here
Message was never allocated and you never allocated room for the response. I may be wrong though, maybe triNetGetUrl allocates the space for you, but I don't know. I haven't used triNet. Either way you should look into that and confirm it.
Those are some problems I see from a quick scan.
Code: Select all
triNetConnect(&netConfigs[0]);
Also here
Code: Select all
if(triNetIsConnected())
{
message = "Connected!";
triNetGetUrl(url, response);
}
Those are some problems I see from a quick scan.
Code: Select all
.øOº'ºOø.
'ºOo.oOº'
I thought that 0 is the connection last used, so most likely the working on? Anyway, 1 doesn't works either. :(sakya wrote:Hi! :)
As far as I know the first config (index=0) is a "special" one used to store the configurations before saving it or something like this.
The first configuration saved in your psp is the one with index=1
Ciaooo
Sakya
Hi! :)
Probably you're right: the last used connection is stored in config[0].
I had a look to triEngine source code here:
http://trac2.assembla.com/openTRI/brows ... c/triNet.c
Can you try to connect to an access point without security or with WEP?
I think the problem is this:
Ciaooo
Sakya
Probably you're right: the last used connection is stored in config[0].
I had a look to triEngine source code here:
http://trac2.assembla.com/openTRI/brows ... c/triNet.c
Can you try to connect to an access point without security or with WEP?
I think the problem is this:
Code: Select all
err = pspSdkInetInit();
http://forums.ps2dev.org/viewtopic.php? ... dkinetinitImportant point: you can't use pspSdkInetInit() to initialize the Network modules since it calls sceNetApctlInit() with a stack size of 0x1000 by default. Just make your own and call sceNetApctlInit() with a stack size of at least 0x1400.
Ciaooo
Sakya
After some tests etc, I came up with this;
http://pastebin.com/m7f921be2
http://www.producted.net/POPong/POPong.rar (eboot)
It seems to be that the function triNetGetUrl needs a fix. Anyone who could help me with that?
Btw, thanks sayka for your research, too bad it wasn't really the solution.
http://pastebin.com/m7f921be2
http://www.producted.net/POPong/POPong.rar (eboot)
It seems to be that the function triNetGetUrl needs a fix. Anyone who could help me with that?
Btw, thanks sayka for your research, too bad it wasn't really the solution.
Why not make a small update to triNet* and have it use sony's networks dialog $PSPSDK/samples/utility/netdialog
Code: Select all
.øOº'ºOø.
'ºOo.oOº'