forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sce_fileio: unrecognized code ff

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
jhirst



Joined: 03 Jun 2004
Posts: 4
Location: Wales, UK

PostPosted: Thu Jun 03, 2004 7:53 pm    Post subject: sce_fileio: unrecognized code ff Reply with quote

Help. I am the sole programmer for a company in the UK. We used to have a T10K but it is the other side of the country at the moment. I have all of the Sony files and a renderer made by our sister company. I know that the code that I have works on a T10K. We have a demo that is PC and PS2. I want to burn a demo disk to send out. I have Naplink working (the 3stars demo works). I need to use the code that we already have, and the Sony libraries.

Now the problem:

I am trying to use the Sony function "sceOpen" to open a file (to test that things are working). As soon as I get to the sceOpen call -
sceOpen("d:\Text.txt, SCE_RDONLY); it fails and I get sce_fileio: unrecognized code ff error.

I have tried host0 instead of d but no luck. It obviously does not like the sceOpen but why not?

Sorry if I sound a bit clueless, I am quite new to the PS2 stuff. Any help would be greatly appreciated.
_________________
"Video games don't affect kids, I mean if Pac Man affected us as kids, we'd all run around in a darkened room munching pills and listening to repetitive music."
Back to top
View user's profile Send private message Visit poster's website
nicp067



Joined: 20 Jan 2004
Posts: 15
Location: Quebec,Canada

PostPosted: Thu Jun 03, 2004 11:18 pm    Post subject: Reply with quote

If your code is build with the T10k library, chance are that it will not work properly on a normal PS2. Maybe this is what you are experiencing.
Back to top
View user's profile Send private message
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Thu Jun 03, 2004 11:41 pm    Post subject: Re: sce_fileio: unrecognized code ff Reply with quote

jhirst wrote:
I am trying to use the Sony function "sceOpen" to open a file (to test that things are working). As soon as I get to the sceOpen call -
sceOpen("d:\Text.txt, SCE_RDONLY); it fails and I get sce_fileio: unrecognized code ff error.
Obviously you're missing a quotation mark in your post, or it wouldn't compile, but are you using \ instead of / ? If you insist on using backslash, make sure you double it (\\) otherwise C will interpret it as \T which may or may not be the tab character ("\t" is tab).

Using backslashes as directory separators is evil, evil, evil. Get out of that habit, or you'll run into this over and over. Even the MS libraries will accept slashes as directory separators in their libraries so there's absolutely no reason to ever use backslashes.
Back to top
View user's profile Send private message AIM Address
jhirst



Joined: 03 Jun 2004
Posts: 4
Location: Wales, UK

PostPosted: Thu Jun 03, 2004 11:55 pm    Post subject: Reply with quote

*Edit* You are correct mharris, but that was only one of the many ways that I have tried. As described below, the sceSifSyncIop function will not exit, even though the Reboot function seems to run. The missing quotation mark was just a typo *


The thing is, at the start of the code I only do a couple of lines to test, namely
sceSifRebootIop("d:\\usr\\local\\sce\\iop\\modules\\ioprp255.img")
and then
sceSifSyncIop()

the sceSifSyncIop function checks to see if the IOP was rebooted (i.e. with sceSifRebootIop

It will not come out of the sceSifSyncIop function, so the IOP is not rebooted.

These two functions should definitely work with a PS2 though.
_________________
"Video games don't affect kids, I mean if Pac Man affected us as kids, we'd all run around in a darkened room munching pills and listening to repetitive music."
Back to top
View user's profile Send private message Visit poster's website
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 04, 2004 12:05 am    Post subject: Reply with quote

Unless you have a driver of some sort registered to provide file access with a device name of 'd', the PS2 isn't going to know where to find that file. If its located on the host, you'll have to use 'host' as the device name.

Try putting the ioprp255.img file into the same directory you're running the program from and accessing it with:

sceSifRebootIop("host:ioprp255.img");

You should see a message from your client that its trying to access that file.
Back to top
View user's profile Send private message Visit poster's website
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Jun 04, 2004 2:31 am    Post subject: Reply with quote

Of course can you reboot the IOP using an IMG from host on a normal PS2 ? I would have thought the image was loaded after reset, i.e. after you have just nuked your ps2link host driver.

Not that I have ever bothered to try so...
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Fri Jun 04, 2004 3:30 am    Post subject: Reply with quote

Good point. Who knows? :)
Back to top
View user's profile Send private message Visit poster's website
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Fri Jun 04, 2004 4:09 am    Post subject: Reply with quote

ooPo wrote:
Good point. Who knows? :)

Oh! Oh! I do! I know! I know!
*waves hand impatiently*
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
jhirst



Joined: 03 Jun 2004
Posts: 4
Location: Wales, UK

PostPosted: Fri Jun 04, 2004 5:52 pm    Post subject: Still no luck Reply with quote

Good morning helpful peoples! I think you are all US or Canada so you haven't got up yet (or is it that you are about to go to bed?). Anyway, I am still not getting a return from sceSifSyncIop();

I tried the following (ioprp255.img is in the same directory as the .ELF file, which is the shared directory in NetClient):

sceSifRebootIop("host:ioprp255.img");

Ahhh! So close but yet so far.

Do you really know Drakonite?
_________________
"Video games don't affect kids, I mean if Pac Man affected us as kids, we'd all run around in a darkened room munching pills and listening to repetitive music."
Back to top
View user's profile Send private message Visit poster's website
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Sat Jun 05, 2004 11:40 am    Post subject: Re: Still no luck Reply with quote

jhirst wrote:

Do you really know Drakonite?

Yup. I do.

.

.

.

Oh, you wanted me to tell you? ;)

At least with the homebrew setup, host is destroyed when you reboot the IOP.
The order of RebootIOP is to reboot the IOP before opening and loading the IMG file. So no, you can't load an img file from host on a homebrew setup like that ;)
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
jhirst



Joined: 03 Jun 2004
Posts: 4
Location: Wales, UK

PostPosted: Mon Jun 07, 2004 6:24 pm    Post subject: Reply with quote

Of course you are correct.

I have go passed that point now, thanks. Bigboss great help! I shouldn't have put Sony code on the forum so I will refrain from doing that any more! One step closer!
_________________
"Video games don't affect kids, I mean if Pac Man affected us as kids, we'd all run around in a darkened room munching pills and listening to repetitive music."
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group