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 

New Ps2Menu done but strange problems

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Fri May 28, 2004 3:13 am    Post subject: New Ps2Menu done but strange problems Reply with quote

I got a working version of Ps2Menu with a good memcard backup capability using the recursive copy function to copy stuff to the HD and back. The strange thing is, after being on the HD, GTA Vice City won't work. The files are all fine, so the only thing I could think could be the problem is the modification time not coinciding with an internal variable of the GTA save file that has the time. Anyone have any other ideas as to what could be causing this? I suppose I could use some Getstat and chstat commands in the recursive copy function to fix that problem, but how common of a problem would that even be?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Fri May 28, 2004 3:27 am    Post subject: Reply with quote

Time can't be the issue because if you use a browser copy from one MC to the other, it screws up the time of the files. So if anyone can figure out why GTA: VC won't work, let me know.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
2BeyondTheGrave



Joined: 12 Feb 2004
Posts: 11
Location: MaryLand

PostPosted: Fri May 28, 2004 5:11 am    Post subject: Reply with quote

Actually the problem might not have anything to do with Ps2Menu it might actually have to do with the game GTA:VC because i have this game and the same problem happened to me one day my save just wouldnt work and i have no idea whats wrong with it. But then again it could have something to do with PS2 Menu.
_________________
I Finally Started makeing a Game..it took forever to get started stupid school
Back to top
View user's profile Send private message Send e-mail
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Fri May 28, 2004 3:08 pm    Post subject: Reply with quote

Well, I'll go with your explanation until I feel like testing some more :-) Makes things easier.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Sat May 29, 2004 2:25 am    Post subject: Reply with quote

There are some games that appear to do something to their save files that prevents them from being copied correctly by things such as an Xport. GTA3 was one of these games, and I would assume GTA:VC is also.
To make another assumption, ps2menu is probably having the identical problem with the same cause.

I'd test that theory, but I don't have time today, but I'd say it's far far more likely to be the case than GTA:VC having problems.
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat May 29, 2004 3:07 am    Post subject: Reply with quote

Perhaps the difference is fileio vs. the mcserv API. IIRC, I've backed up GTA saves using PS2/Linux, and they've worked fine afterwards. PS2/Linux memcard driver goes through mcserv. All games use mcserv to read/write files to the memory card, as the fileio method is "undocumented". PS2MENU would probably be better off if it used mcserv instead of fileio.
Back to top
View user's profile Send private message
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Sat May 29, 2004 3:22 am    Post subject: Reply with quote

how would I go about using mcserv? would that be the mcOpen and such commands from libmc?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat May 29, 2004 3:55 am    Post subject: Reply with quote

Yep.
Back to top
View user's profile Send private message
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Sat May 29, 2004 4:35 am    Post subject: Reply with quote

I'll try it. And since you seem to know about MC stuff, how would I set (if it's possible) the file creation or modification dates on an MC file? I can read them in with mcGetDir, but mcSetFileInfo doesn't use the mcTable structure, nor are the flags needed for what data is valid shown in the docs.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sat May 29, 2004 4:38 am    Post subject: Reply with quote

Sorry, but since I'm a licensed developer I can't talk about anything that's not already out in the open. The PS2/Linux kernel sources might have the answer you're looking for however.
Back to top
View user's profile Send private message
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Sun May 30, 2004 9:25 pm    Post subject: Reply with quote

Well, it turns out GTA: VC won't work no matter what. It's not the fileio stuff that's the problem as far as I can tell because nport uses libmc and it can't be backed up and restored with nport either (wish I had done that test 4 hours ago before I wrote a libmc based copy routine). As far as I can see, the only difference between a copied file and the one written by the game is the MC_ATTR_CLOSED attribute is on the one written by the game. The only way I can see to be able to set that flag is with the mcSetFileInfo command. So where can I find the PS2/Linux kernel sources? Are they only on the disc that linux comes on?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Sun May 30, 2004 11:14 pm    Post subject: Reply with quote

I've got another even weirder problem. My current version uses the exact same RecursiveCopy and copytodest as the original PS2Menu but for some reason, when I copy from the MC, the end of the files aren't right (variable amount of corruption, even with the same file). It uploads to the MC okay (the game loads the save fine) so the only explanation I have is that it just screws up somewhere when it reads from the MC which doesn't make sense when the functions that do it haven't been changed. Any ideas anyone?

-------------------
I think I solved that problem. Either my PC that I was compiling it on didn't have enough memory to compile it properly (something was sinking it and it finally did give me a memory error during compile) or the couple of unused variables I had laying around were taking too much overall memory and causing things to act weird. Either way, I think it's fixed. I just copied a 1 meg file and it came through perfectly.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
KaylaKaze



Joined: 05 May 2004
Posts: 75
Location: NC, USA

PostPosted: Mon May 31, 2004 6:37 am    Post subject: Reply with quote

I finally figured out a trial and error method to find out how to set that attribute. And now, GTA: VC is able to be backed up. (this is when all the villagers rejoice). This should mean everything is backup-able now!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    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