Hello all!
Don't know if anyone is still struggling with this, but I recently tried to use the suggested DOS batch commands from this post
viewtopic.php?f=3&t=11152
in Windows 10. As a reminder, those commands were provided as a solution to the RPS status save bug that left all SVQ files with RPS off by default. Since it doesn't work in modern Windows, I made a corresponding script using PowerShell that does the same thing. It goes through all .SVQ files in the folder it is stored in, and changes the RPS byte (hex address 0x097 in the file) form 00 to 01. I have attached the script as a .ps1 file, but you can also copy and paste the code below in a text editor and save it as a .ps1 file yourself. In order to run it, place the .ps1 file in the same folder as your SVQ files, right click on it and choose "Run with PowerShell.
------------------------------------------------------------------------------------------------------------------------------------------
$directory = Get-Location
$extension = "*.SVQ" # Sets SVQ as the chosen file extension
$address = 0x97 # Address to replace the byte
$newByte = [byte]0x01 # New byte
Get-ChildItem -Path $directory -Filter $extension | ForEach-Object {
$filePath = $_.FullName
$file = [System.IO.File]::Open($filePath, [System.IO.FileMode]::Open, [System.IO.FileAccess]::ReadWrite)
$file.Seek($address, [System.IO.SeekOrigin]::Begin) | Out-Null
$file.WriteByte($newByte)
$file.Close()
}
-------------------------------------------------------------------------------------------------------------------------------------------
Of course, this still does not solve the issue of RPS reverting to off if you save your SVQ file again in the Fantom, but at least you can still have a solution like the previous one for modern Windows.
Sorting the specific files that need patching is also a pain, since you also cannot have a separate folder for RPS songs in the SNG folder but you could do one of the following to separate them:
1) Store RPS songs only in either the internal user space or the card
2) Always save RPS songs by adding the same indicator at the start of the filename (e.g. "R_" or "RPS_")
Option 2) does use some of the already limited characters available, but in any case these are two ways you can easily locate and copy only the RPS songs on your PC to patch them.
In the old post, it was also mentioned at some point that you can probably use the script straight on the internal Fantom storage or the card while connected through USB. I have not tested that with this script and I would not suggest it. It's safer to do it on a folder on your PC.
New "RPS ON" script for Windows 10/11
-
- Posts: 24
- Joined: 22:45, 1 November 2008
- Location: Athens, Greece
New "RPS ON" script for Windows 10/11
- Attachments
-
- RPS_ON.zip
- (454 Bytes) Downloaded 29 times
Re: New "RPS ON" script for Windows 10/11
Great!!!!
THANKS!
rob
THANKS!
rob