Since this application seems to be abandoned, to anyone that has this application crash on launch and not be able to use it at all because of this error:
"Filter string you provided is not valid. The filter string must contain a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options must also be separated by the vertical bar. Example: "Text files (*.txt)|*.txt|All files (*,*)|*,*" It's because of a missing registry key with the Steam/Origin versions of the game. I ran the program through a .NET decompiler to see what's going on, and on startup it's trying to read the following (string) registry key to determine the install location of the game:
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Red Dead Redemption 2\InstallLocation
If that registry key doesn't exist, it returns null to the calling function which is trying to feed that variable to the file picker dialog, and that's what causes the filter error and crash. To resolve, run cmd as Administrator and run this command:
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Red Dead Redemption 2" /v "InstallLocation" /d "C:\Program Files (x86)\Steam\steamapps\common\Red Dead Redemption 2"
The above command is applicable for the Steam version of the game. If you have Origin, I don't know what the path to the install location is, but you can adjust the above command by replacing what's after the /d in the command with Origin's RDR2 install location. Make sure to put that path in quotes like in the example above.
That's the only thing that will fix this short of the the mod's author fixing the problem himself. Bilago, if you're reading this, adjust the "InstallRegPath" variable assignment in GetSettings.cs., it's what's causing this.
I followed these steps but I have the epic games version so my install path was different, I added the correct path and on the cmd it said it was sucessful but I am still getting the same error.
Thanks for your post. I have a tiny improvement for adding reg item. 1, Create a batch file in your rdr2 root directory, make sure the extension name is .bat. 2, Edit it with your favourite editor 3, Add the code as follows:?reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Red Dead Redemption 2" /v "InstallLocation" /d %~dp0 4, Then run it as administrator. It will read the current path and add the reg "InstallLocation". 5, That's all, the mod manager should work.
The code in the original post is working fine for me in Windows 11. Make sure you're running Command Prompt as an admin and be sure to change the path to where your copy of Red Dead 2 is installed. to.
I couldn't really make sense of this. if you could make like a youtube video or link one that explains it a little bit better than maybe but right now i can't really figure it out i moved the mods into their own folders in the mods category but when i run the mod manager it crashes with the issue "filter string" and i don't know how to fix it, like i know you are telling us how but i can't figure it out, i don't know where to go or what any thing is.
I have RDR2 on Epic and I'm getting this error. I can't seem to make this "patch" work for the Epic Games version. Can someone help if they have been able to figure it out? Thanks in advance.
Oh my god ! All of the asi files and ini files in the red dead redmption folder are deleted when I execute the mod manager. That's terrible ! Besides, dinput8.dll and log files are deleted too. There might be more files which is deleted without my knowledge. I'm going crazy !!!!!!!
This is a bad mod. After installing the mod manager, I can't use my mod Installed before. Besides, I don't know to uninstall the mod manager which is annoyed. Don't install the mod manager is my advice.
When I try and open this, it says: Access to the path 'D:\red dead 2\Red Dead Redemption 2\RDR2Mods' is denied. I have it on my D drive as there's more memory there. Does anyone have any clue what to do?
181 comments
"Filter string you provided is not valid. The filter string must contain a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options must also be separated by the vertical bar. Example: "Text files (*.txt)|*.txt|All files (*,*)|*,*"
It's because of a missing registry key with the Steam/Origin versions of the game. I ran the program through a .NET decompiler to see what's going on, and on startup it's trying to read the following (string) registry key to determine the install location of the game:
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Red Dead Redemption 2\InstallLocation
If that registry key doesn't exist, it returns null to the calling function which is trying to feed that variable to the file picker dialog, and that's what causes the filter error and crash. To resolve, run cmd as Administrator and run this command:
reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Red Dead Redemption 2" /v "InstallLocation" /d "C:\Program Files (x86)\Steam\steamapps\common\Red Dead Redemption 2"
The above command is applicable for the Steam version of the game. If you have Origin, I don't know what the path to the install location is, but you can adjust the above command by replacing what's after the /d in the command with Origin's RDR2 install location. Make sure to put that path in quotes like in the example above.
That's the only thing that will fix this short of the the mod's author fixing the problem himself. Bilago, if you're reading this, adjust the "InstallRegPath" variable assignment in GetSettings.cs., it's what's causing this.
this fix worked smoother than that blackwater heist.
1, Create a batch file in your rdr2 root directory, make sure the extension name is .bat.
2, Edit it with your favourite editor
3, Add the code as follows:
?reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Red Dead Redemption 2" /v "InstallLocation" /d %~dp0
4, Then run it as administrator. It will read the current path and add the reg "InstallLocation".5, That's all, the mod manager should work.