Memory Cards Now Working On the PlayStation Core

Xbytez
Site Admin
Posts: 479
Joined: Wed May 20, 2020 3:36 pm
Has thanked: 227 times
Been thanked: 805 times

Memory Cards Now Working On the PlayStation Core

Unread post by Xbytez »

Another brilliant update from Robert, memory cards are now working on the PlayStation core!


MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by MostroW »

That's awesome!
For the people who had memory card backup utilities is the file format compatible or does it need conversion?
FoxbatStargazer
Top Contributor
Posts: 1019
Joined: Thu Dec 10, 2020 5:44 pm
Has thanked: 315 times
Been thanked: 238 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by FoxbatStargazer »

I don't see anything in the menus? How do you use this feature?
blacklistedcard
Posts: 91
Joined: Mon Jun 08, 2020 1:54 am
Has thanked: 3 times
Been thanked: 11 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by blacklistedcard »

FoxbatStargazer wrote: Sun Dec 19, 2021 12:42 am I don't see anything in the menus? How do you use this feature?
Grab the latest nightly build...
Akuma
Posts: 138
Joined: Sat Dec 11, 2021 9:50 pm
Has thanked: 24 times
Been thanked: 46 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by Akuma »

Do we have to use this empty memory card or can we just create one like this?

Code: Select all

dd if=/dev/zero bs=8192 count=16 of=memcard.mcd
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by pgimeno »

You can create one like that, but it needs to be formatted. In my experience some games allow you to format it, e.g. Sentinel Returns.
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by pgimeno »

Are there plans to support writing to memory cards on the fly, as if they were hard or floppy disks, rather than using autosave or the like? (if that's possible at all)
MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by MostroW »

Would be nice if there's a possibility to automatically write memorycards if you're using a hdd or ssd instead of the sd card?
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by FPGAzumSpass »

The problem is that writing memory card to sdcard will interrupt CD transfer with HPS. It is just too slow to do both at the same time, so i have to pause the core to make it work.
MostroW
Posts: 344
Joined: Tue Aug 18, 2020 3:32 pm
Has thanked: 150 times
Been thanked: 57 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by MostroW »

ahhhh ok that explains a lot ofcourse, is it the same for USB interaction on an external drive?
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by pgimeno »

Thanks for the explanation. What a paradox, that writing 16 KB (8 KB directory + 8 KB data) at such a slow speed as a memory card write doesn't fit on the bus.
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by FPGAzumSpass »

Oh, it's even less, just 128bytes per block.

The problem is, that a real memcard is written on the fly: every byte that comes in is written directly to memcard.
The time it requires to write onto the flash is within the transfer time (~450 clock cycles), so it can do that.

On mister i can only send the whole block at once, when the whole block was written by the game.
However, the game may already write the next block shortly after.

So i only have time to send all 128bytes while the next header bytes are received. So I only have less than 5000 clock cycles to tranfer all 128bytes to HPS.

Now, if the CD has requested a block(2352bytes) from the HPS at the same time, this does not work and the memory card cannot take the next data and must stall.
However, the games know that the memcard never needs to stall and assume the card is broken.


This is nothing theoretical, i really tried it, even with implementing a double buffer in the memcard interface, but CD read, e.g. when doing a seek before, can take so long on the HPS, that memcard WILL fail randomly.
yoshi41
Posts: 14
Joined: Sun May 24, 2020 9:12 pm
Has thanked: 2 times
Been thanked: 6 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by yoshi41 »

Now since sound works, time to play the 1st PSX game, Ridge Racer JAP.

If you want to try the black car, here's my memory card save from the 90s.

ridge_racer_jap.zip
(1.33 KiB) Downloaded 296 times

ridge_racer_jap_black_car.png
ridge_racer_jap_black_car.png (477.47 KiB) Viewed 13265 times
thorr
Top Contributor
Posts: 1311
Joined: Mon Jul 06, 2020 9:37 pm
Has thanked: 634 times
Been thanked: 308 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by thorr »

Is this working for people? I have played several games, saved along the way, and I think I can restore during that day. I come back the next day and there are no games to restore from the memory card. Also, do I need a different memory card for each game? I would prefer not to use save states because it is too tempting to save a lot more and restore anytime I make a mistake and it takes the fun out of the game. Thanks!
Lightwave
Posts: 262
Joined: Sun May 24, 2020 10:06 pm
Has thanked: 137 times
Been thanked: 78 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by Lightwave »

thorr wrote: Sat Mar 26, 2022 8:39 pm Is this working for people? I have played several games, saved along the way, and I think I can restore during that day. I come back the next day and there are no games to restore from the memory card. Also, do I need a different memory card for each game? I would prefer not to use save states because it is too tempting to save a lot more and restore anytime I make a mistake and it takes the fun out of the game. Thanks!


The core will save to a different memory card per game by default (though it is possible to select a specific memory card if you wish).

If you want to keep the saves, you need to open the MiSTer OSD and select “save memory cards” after saving in-game. You can also choose autosave, which just requires opening the OSD.
McNutts
Posts: 18
Joined: Sat Mar 26, 2022 9:49 pm
Has thanked: 2 times
Been thanked: 4 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by McNutts »

yoshi41 wrote: Sun Jan 23, 2022 3:00 pm Now since sound works, time to play the 1st PSX game, Ridge Racer JAP.

If you want to try the black car, here's my memory card save from the 90s.
Thanks for this. I'm going to try this out tomorrow.
User avatar
pgimeno
Top Contributor
Posts: 710
Joined: Thu Jun 11, 2020 9:44 am
Has thanked: 277 times
Been thanked: 226 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by pgimeno »

I also had trouble when mixing regions. When you run the same game with a disc from a different region, the icon looks right in the MC but it won't load.
User avatar
Jason X
Posts: 10
Joined: Sun Mar 28, 2021 6:08 pm
Been thanked: 1 time

Re: Memory Cards Now Working On the PlayStation Core

Unread post by Jason X »

Just started experimenting with this core today and so far it's great, but I'm running into two issues with memory cards:

1. How do you import saves? I'd really hate to have to redo all of the unlocks for games like Resident Evil. Is it possible to take a Dex Drive save from GameFAQs and convert it to work on MiSTer?

2. Since each game gets its own memory card, how would you import a Suikoden save into Suikoden II?
FPGAzumSpass
Core Developer
Posts: 385
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 42 times
Been thanked: 414 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by FPGAzumSpass »

You can just copy and rename files. The supported ending are sav and mcd, but any raw 128kbyte card will work when renamed.

To keep saves across games, either have them in the same directory or load the card in slot 2 by hand (and maybe copy to card 1 with the BIOS copy tool if you want)
User avatar
Jason X
Posts: 10
Joined: Sun Mar 28, 2021 6:08 pm
Been thanked: 1 time

Re: Memory Cards Now Working On the PlayStation Core

Unread post by Jason X »

Think I've figured it out, thanks!
throAU
Posts: 181
Joined: Fri Sep 11, 2020 1:06 am
Has thanked: 233 times
Been thanked: 27 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by throAU »

FPGAzumSpass wrote: Mon Apr 25, 2022 4:29 pm You can just copy and rename files. The supported ending are sav and mcd, but any raw 128kbyte card will work when renamed.

To keep saves across games, either have them in the same directory or load the card in slot 2 by hand (and maybe copy to card 1 with the BIOS copy tool if you want)
So what should the filnames for the cards be called?

I've called one of them the same name as the game files and it seems to work for slot 1, when i try to mount in the OSD i can't select anything though. But i've only tried slot 1?

Complication is that i'm running everything from a NAS, but AFAIK looks like if you mount a CIFS share it just replaces the games folder that's normally on the SD card...
johhenrik
Posts: 34
Joined: Mon Aug 10, 2020 8:49 pm
Has thanked: 43 times
Been thanked: 15 times

Re: Memory Cards Now Working On the PlayStation Core

Unread post by johhenrik »

Here's a tip for anyone that want to play with save games.

https://github.com/Pezz82/MemCard-Pro-P ... laystation

Pezz82 has done a great job here, collecting save game files for a ton of games. Just get the MemCard Pro Pack Mister zip.
Post Reply