Neighbours from Hell

Neighbours from Hell

Not enough ratings
How to fix "Error opening file" error in Windows 10
By Kazumi
Ever getting errors like "Error opening file..." when launching the game? And you are using Windows 10? Well here's a solution!

   
Award
Favorite
Favorited
Unfavorite
Symptoms
Skip to Fix section if you don't want any lectures :(
  • You are running Windows 10
  • You have OneDrive enabled or have used it in the past
  • You are using a non-English system language or have used it in the past (even on a different computer with OneDrive enabled!)
  • The game will not launch, and the following message pop up:
    Error opening file "C:\Users\(username)\OneDrive\??\JoWooD\NFH1\gameoptions.xml"! The programm will be terminated. Press OK to copy this Message to the clipboard.
Causes
OneDrive somehow changed the default path for your Documents folder from
C:\Users\(username)\Documents
to
C:\Users\(username)\OneDrive\Documents
This can be done automatically if you have set up OneDrive sync in the past.

Now, while it does not matter at all if you are an English user, if you used (or is using) a foreign language the "Documents" folder will be in respective translation in your language. Even if you switched to English later on, the translation will remain. For example, if you used Chinese in the past, the actual folder would reside in "C:\Users\(username)\OneDrive\文档".

The real tricky part is, if you switched to English after OneDrive was set up, the name of the folder you see will be "Documents", but the actual folder is still named in whatever it used to be. So when I launch the game, the following happens:
  1. game.exe asks the system where to find the Documents folder so it can store configuration files on your system
  2. System looks up the Documents path that was messed up by OneDrive, and responds "C:\Users\(username)\OneDrive\文档"
  3. game.exe doesn't understand Chinese because it is too old to attend UTF-8 lectures. There's no way it can figure out what the heck "文档" actually is
  4. Instead of trying harder, game.exe quits in rage and throw me errors like the one above
Fix
Alright, enough lectures. At this time you should be getting an idea on the fix: rename the Documents folder back to "Documents"!

But wait. Isn't it already named Documents (if you happened to switch language)? Do you have to switch back to your language so that you can do the change? Luckily you don't.

Here comes the juicy part!
  1. Navigate to
    C:\Users\(username)\OneDrive\
  2. Right click "Documents", or whatever it appears in your language, then select "Properties"[1].
  3. Select Location tab
  4. Hit Move...[2]
  5. On the popup, navigate to
    C:\Users\(username)\OneDrive\
  6. Create a new folder named "Documents" (w/o quotation marks)[3], by right clicking blank space on the popup and select New > Folder
  7. Select the newly created "Documents" folder. You can distinguish the new one and the existing one by modification time (the new one is more recent), or their icons (the new one should be plain)
  8. Answer Yes to the dialog so the system will move all existing files to their new home
  9. That's it! Enjoy the game![4]


**NOTES**

[1] Simply renaming the folder WILL NOT work! It would change what it appears only, but not the actual folder name!!
[2] You can also opt out OneDrive sync completely, however "Restore Default" did not work on my system because some kind of redirection (link) existed in my system. You can, however, try out this guide[answers.microsoft.com] on MS Community then manually move all files back. The guide was NOT tested by me.
[3] Yes, identical to what you have if you switched to English. No "Duplicate Name" error thrown this time, which further confirmed my idea explained in Causes section.
[4] Tests shown that some other applications, which were having troubles locating the Documents folder, have been fixed with this trick. Not bad for the little work you've done huh?
3 Comments
Капустыч Feb 27 @ 6:05am 
+rep
HannaH Dec 2, 2024 @ 1:25am 
thank you so much :)
DoctorDinh Sep 27, 2019 @ 5:36pm 
Where is location in document properties???