Search found 197 matches

by AnonymousTipster
Sun Oct 15, 2006 1:23 am
Forum: PSP Development
Topic: Question regarding directory grabbing..
Replies: 2
Views: 3313

Ok, this is a code snippet from my .zip extractor. It reads PSP/GAME and reads every entry into a string: Code: struct GameEntry { char *name; //char ratio[16]; }; int gameEntriesTotal = 0; int gameDirSelected = 0; #define MAX_ENTRIES 1000 struct GameEntry gameEntry[MAX_ENTRIES]; void recacheGameDir...
by AnonymousTipster
Thu Oct 05, 2006 4:55 am
Forum: General Discussion
Topic: Unzip/Unrar utility source
Replies: 0
Views: 2514

Unzip/Unrar utility source

I meant to do this earlier, but nonetheless, here is the source code to my .zip and .rar extraction application I released a few months ago.

www.anonymoustipster.com/TipsterUnzipUnrar03source.zip
by AnonymousTipster
Mon Aug 28, 2006 7:10 pm
Forum: PSP Development
Topic: AT3 replay via Audiocodec.prx on 1.5
Replies: 13
Views: 10998

Works fine on my 1.5 PSP.

I was just looking for some At3 playback code, and this looks perfect, thanks.
by AnonymousTipster
Wed Aug 23, 2006 5:53 am
Forum: PSP Development
Topic: Hanging in libcurl
Replies: 0
Views: 1190

Hanging in libcurl

I'm currently using libcurl to do some form submitting to a .php script periodically. This is done every minute in the game to keep the serverlist up to date. Usually this works fine, and there's a slight pause (0.5seconds) when uploading the data. Sometimes however, it hangs indefinitely. This happ...
by AnonymousTipster
Thu Aug 17, 2006 11:16 pm
Forum: PSP Development
Topic: Using Wi-Fi
Replies: 4
Views: 2547

Look into libcurl. I think it's in subversion.
by AnonymousTipster
Tue Aug 15, 2006 7:40 am
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

I've decided to drop TCP in favour of UDP, which should suit my needs better. Problem is that sceNetInetRecvfrom() always returns -1 with an errno of 11, which is supposed to be Resource Temporarily Unavailable. EDIT: I've found elsewhere that errno 11 is EAGAIN, saying that it would block if it was...
by AnonymousTipster
Sat Aug 12, 2006 11:56 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Ok, I've got all my communication calls (like recv) to be non-blocking by calling int setSockNoBlock(SOCKET s, u32 val) { return sceNetInetSetsockopt(s, SOL_SOCKET, 0x1009, (const char*)&val, sizeof(u32)); } EDIT: ...
by AnonymousTipster
Tue Aug 08, 2006 9:13 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Ok. I've fixed up my router settings (I think), and my PSP can now act as the server and recieve data from the client. For some reason, when connecting to another PSP, the code: u32 timeout = 1000000; // in microseconds == 1 sec err = sceNetInetSetsockopt(sockClient, SOL_SOCKET, SO_RCVTIMEO,...
by AnonymousTipster
Sat Aug 05, 2006 7:26 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Ok, good news is that I've managed to get the above code fragment to work with port 55555 (I realised it was invalid, so changed it). Your collective responses were correct, my Wifi setup wasn't working correctly as a server. I used LordSturm's PSP as the server which connected to me perfectly and h...
by AnonymousTipster
Sat Aug 05, 2006 4:22 am
Forum: PSP Development
Topic: Free memory available functions
Replies: 19
Views: 11552

Actually, iRShell resides almost entirely in kernel memory space and only breaks into user space with wifi and image viewing functions. I think a better way to detect if running from a shell is to look at the psplink source to find what modules are running, and see if there are any more than usual. ...
by AnonymousTipster
Sat Aug 05, 2006 1:58 am
Forum: PSP Development
Topic: how do you determine how much ram is left?
Replies: 12
Views: 4220

Seems fine for me in both C and C++. Maybe you should try the other method in my link above. His is a larger function, but may work better for you, Art.
by AnonymousTipster
Sat Aug 05, 2006 12:03 am
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

The way I have the network set up is as follows: The modem is connected to a switch, and the PCs are connected to this switch. The wifi router/AP is then connected to this switch. When my PSP connects to my wifi AP, it goes through the AP, through the switch and through the modem. I know that the sw...
by AnonymousTipster
Fri Aug 04, 2006 10:10 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Ok, I tried to find out my 'real' IP address by calling this script: www.anonymoustipster.com/myip.php then getting the client to connect to that IP. The client appeared to pass the connect(), so it should send a little hello message, but my server didn't receive it. After connecting to the hotspot,...
by AnonymousTipster
Fri Aug 04, 2006 6:01 am
Forum: PSP Development
Topic: how do you determine how much ram is left?
Replies: 12
Views: 4220

Thanks, for anyone else using that version, change the line:
#include <new>
to
#include <new.h>
Then comment out #include "stdafx" and add -fexceptions to the makefile.
by AnonymousTipster
Fri Aug 04, 2006 3:06 am
Forum: PSP Development
Topic: how do you determine how much ram is left?
Replies: 12
Views: 4220

That looks like an awesome tool Raphael, thanks for the link. I tried to compile mmgr.cpp (with a makefile used for a c++ app) but it fails around new_handler. The docs say to replace std::set_new_handler with set_new_handler, but that doesn't help because new_handler is still not found. Where is ne...
by AnonymousTipster
Fri Aug 04, 2006 2:04 am
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Right, so (if I understand correctly) I need to code a script in ASP (would PHP work?) that will get the reply IP+port of a PSP when it queries the script. This IP/port would be stored by the server and could be retrieved by another PSP wishing to connect to the first PSP. A question: PSPA queries s...
by AnonymousTipster
Thu Aug 03, 2006 8:06 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Well it would at least be worth replicating the more useful communication features of netlib, as C developers are definitely going to want to add online multiplayer to their games sometime, and I think it's better if this gets started sooner than later. As far as I can tell, netlib 1.3 (TCP) communi...
by AnonymousTipster
Thu Aug 03, 2006 7:26 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

That's pretty much what I want to do SG57, except I plan to have some scripts on the server keep track of IP addresses of the 'server psps'. The client grabs this from the server, and picks the server it wants to connect to, and does so. The remainder of the communication is PSP->PSP. After looking ...
by AnonymousTipster
Thu Aug 03, 2006 5:49 am
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Found this in LUAPlayer: // resolve host const char *host = luaL_checkstring&#40;L, 1&#41;; int port = luaL_checkint&#40;L, 2&#41;; socket->addrTo.sin_family = AF_INET; socket->addrTo.sin_port = htons&#40;port&#41;; int err = sceNetInetInetAton&#40;host, &socket->addr...
by AnonymousTipster
Wed Aug 02, 2006 11:30 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Thanks for the response, Psppet. What I did was modify the simple wifi sample to add a client mode, so either you choose server, which runs the telnetD code, or client, which allows input of an IP, which it then connects to and sends a message. The problem is that if the client tries to connect to 1...
by AnonymousTipster
Tue Aug 01, 2006 7:36 pm
Forum: PSP Development
Topic: Infrastructure PSP->PSP communication
Replies: 23
Views: 12179

Infrastructure PSP->PSP communication

I've been trying to modify PSPet's Simple Wifi sample to allow basic communication between two PSPs via a stream socket, but upon connection, sceNetApctlGetInfo(8, szMyIPAddr) gives me 192.168.1.100, and upon testing with another persons PSP on a different router, it gave him a local IP too. How can...
by AnonymousTipster
Wed Jul 26, 2006 8:07 am
Forum: PSP Development
Topic: Video Playback Help...
Replies: 16
Views: 4278

If you're using the GU, you'll need to break it down into 512x512 max chunks - the GU won't render above 512 dimensions. That won't cause the crash, but you might as well cut it down sooner than later.
Don't put that texture in VRAM either, it won't fit.
by AnonymousTipster
Tue Jul 25, 2006 1:04 am
Forum: PSP Development
Topic: 3D question max vertex/poly count
Replies: 7
Views: 3136

Pnglib will work fine for textures, but you don't get any dither scaling or quantization functions with it. I'm working on porting some that will work with pnglib though. Using the quantization with jpegs means they take fractionally longer to load, but render-wise, T8 textures are usually faster th...
by AnonymousTipster
Mon Jul 24, 2006 7:56 pm
Forum: PSP Development
Topic: 3D question max vertex/poly count
Replies: 7
Views: 3136

If you're wanting to reduce the V/RAM usage and want to keep the texture size up, I'd suggest using the libjpeg's quantization function, as that can scale to 256 colours easily, and gives good results at a quarter of the RAM usage. You can encode lossless jpegs too, so the format itself isn't a prob...
by AnonymousTipster
Mon Jul 24, 2006 7:49 pm
Forum: PSP Development
Topic: fpu exception?
Replies: 7
Views: 3328

I call snap :)
by AnonymousTipster
Mon Jul 24, 2006 5:06 pm
Forum: PSP Development
Topic: fpu exception?
Replies: 7
Views: 3328

Nope. Some of the registers are set to DEADBEEF so you know if they've been changed.
http://forums.ps2dev.org/viewtopic.php?t=6013
by AnonymousTipster
Mon Jul 24, 2006 4:46 pm
Forum: PSP Development
Topic: fpu exception?
Replies: 7
Views: 3328

Could this line:
float t = D.Dot(C-O)/D.Dot(D);
Ever be divide by 0? If so, that might be the problem.

Else, type in psp-addr2line myapp.elf 0x089014CC which should give you the line of the problem.
by AnonymousTipster
Wed Jul 19, 2006 4:46 pm
Forum: PSP Development
Topic: New file standard for PSP homebrew?
Replies: 13
Views: 7040

I agree with dot_blank. It's already possible to extract both .zip and .rar files to the memory stick, straight from downloading via a browser. All you need then is a file management program to move the folders into the right place, if not already. Or you could just download from somewhere like pspb...
by AnonymousTipster
Sun Jul 16, 2006 9:30 pm
Forum: PSP Development
Topic: PSPLINK
Replies: 313
Views: 305371

Hi Tyranid,
I was wondering if there was a way with PSPLink to detect where addresses are leaking? E.g, I call array[11] = 0; on an array[10].
Is there a way to do something like this?
Thanks.
by AnonymousTipster
Wed Jul 05, 2006 3:11 am
Forum: PSP Development
Topic: sceAudiocodec anyone ?
Replies: 33
Views: 17746

Any news on this?
I assume hitchhikr is very busy, what with the kernel hack, but hardware decoding of mp3 streams would be very useful to a lot of developers (myself included), I don't think there is any way to do it currently, and software mp3 decoding takes quite a chunk of processor cycles.