Page 1 of 1

New Ps2Menu done but strange problems

Posted: Fri May 28, 2004 3:13 am
by KaylaKaze
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?

Posted: Fri May 28, 2004 3:27 am
by KaylaKaze
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.

Posted: Fri May 28, 2004 5:11 am
by 2BeyondTheGrave
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.

Posted: Fri May 28, 2004 3:08 pm
by KaylaKaze
Well, I'll go with your explanation until I feel like testing some more :-) Makes things easier.

Posted: Sat May 29, 2004 2:25 am
by Drakonite
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.

Posted: Sat May 29, 2004 3:07 am
by mrbrown
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.

Posted: Sat May 29, 2004 3:22 am
by KaylaKaze
how would I go about using mcserv? would that be the mcOpen and such commands from libmc?

Posted: Sat May 29, 2004 3:55 am
by mrbrown
Yep.

Posted: Sat May 29, 2004 4:35 am
by KaylaKaze
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.

Posted: Sat May 29, 2004 4:38 am
by mrbrown
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.

Posted: Sun May 30, 2004 9:25 pm
by KaylaKaze
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?

Posted: Sun May 30, 2004 11:14 pm
by KaylaKaze
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.

Posted: Mon May 31, 2004 6:37 am
by KaylaKaze
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!