Page 1 of 1
[RESOLVED] Unable to open scenario
Posted: Wed Sep 20, 2023 7:35 pm
by Lace
Hi, I created a custom scenario, quit and then tried to open it for testing and received this message:
ERROR - Unable to load scenario! Please copy this entire text and submit it to the dev team for investigation. Exception: The process cannot access the file 'C:\Program Files (x86)\Steam\steamapps\common\Command - Modern Operations\Scenarios\RS1.scen' because it is being used by another process. Exception source: mscorlib Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at Command_Core.ScenContainer.LoadFromFile(String theFileName) at Command.LoadScenario.eWJW6o9u0ZETpRR8MjQV(Object ) at Command.LoadScenario.LoadFromPath(String thePath, String selFilename)
Is there anything I can do here? Or is there a better place to raise this with the dev team?
- RS1.zip
- (22.72 KiB) Downloaded 15 times
Re: Unable to open scenario
Posted: Wed Sep 20, 2023 8:27 pm
by Nikel
Perhaps CMO was not closed properly? AV interfering?
Zip and attach the scenario so that the devs may take a look at it.
Re: Unable to open scenario
Posted: Thu Sep 21, 2023 5:19 am
by Lace
Nikel wrote: Wed Sep 20, 2023 8:27 pm
Perhaps CMO was not closed properly? AV interfering?
Zip and attach the scenario so that the devs may take a look at it.
I did reboot, so that shouldn't have been the case. I've attached the zipped .scen file as suggested.
Re: Unable to open scenario
Posted: Wed Sep 27, 2023 10:20 am
by Lace
Any comment from the devs please, or did any of those who downloaded manage to open the scenario?
Re: Unable to open scenario
Posted: Wed Sep 27, 2023 10:54 am
by blu3s
The scenario seems to have been corrupted in some way. It will be investigated. Thanks for the report
Logged 0015331
Re: Unable to open scenario
Posted: Wed Sep 27, 2023 12:32 pm
by Dimitris
Sorry, we've been away (literally). We'll take a look.
Re: Unable to open scenario
Posted: Thu Sep 28, 2023 7:00 am
by Dimitris
I cannot open the scenario, but for a different reason than the OP: there is an invalid character (0x02) which interferes with the process.
This will be an "interesting" one to solve...
Re: Unable to open scenario
Posted: Thu Sep 28, 2023 2:05 pm
by Lace
Dimitris wrote: Thu Sep 28, 2023 7:00 am
This will be an "interesting" one to solve...
You're welcome

Re: Unable to open scenario
Posted: Thu Sep 28, 2023 8:35 pm
by FifthDomain
I had this and you guys fixed it for me it was related to `&' symbol in a boat name if i remember correctly. Have you named anything in the scenario recently that contained a symbol probably not '&' as that was fixed.
Re: Unable to open scenario
Posted: Fri Sep 29, 2023 11:08 pm
by michaelm75au
Open up the RS1.scen file with a text editor like Notepad++.
<?xml version="1.0"?>
<ScenContainer xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<ScenTitle>RS1: Morning Recon</ScenTitle>
<ScenDescription><BODY><P>After months of increasing tension along the inner-German border, Warsaw Pact commanders expect to receive the word to start combat operations at any time. WP air commanders authorize high speed reconnaissance flights across the border. Pilots are ordered to get in quickly, gather the required intel
ligence, and return. </P>
<P>The reconnaissance objectives for this mission are rear area units of the Belgian 16th Armored Division. The WP recon flight must attempt to collect intelligence on all four targets.</ScenDescription>
You will see the hex character that it is complaining about. I have marked it as bold above.
Delete that highlighted block and save.
The scenario should load now. You may have hit a special character by accident.
Re: [RESOLVED] Unable to open scenario
Posted: Sat Sep 30, 2023 6:44 am
by Dimitris
Great sleuthing Michael!!!
Re: Unable to open scenario
Posted: Sat Sep 30, 2023 8:24 am
by Lace
michaelm75au wrote: Fri Sep 29, 2023 11:08 pm
Open up the RS1.scen file with a text editor like Notepad++.
<?xml version="1.0"?>
<ScenContainer xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<ScenTitle>RS1: Morning Recon</ScenTitle>
<ScenDescription><BODY><P>After months of increasing tension along the inner-German border, Warsaw Pact commanders expect to receive the word to start combat operations at any time. WP air commanders authorize high speed reconnaissance flights across the border. Pilots are ordered to get in quickly, gather the required intel
ligence, and return. </P>
<P>The reconnaissance objectives for this mission are rear area units of the Belgian 16th Armored Division. The WP recon flight must attempt to collect intelligence on all four targets.</ScenDescription>
You will see the hex character that it is complaining about. I have marked it as bold above.
Delete that highlighted block and save.
The scenario should load now. You may have hit a special character by accident.
Good work. Thanks for that. The briefing was actually extracted from a .pdf, so perhaps there was a hidden character which was pasted in which screwed it up.
Just tested it now after making the suggested change and all is well.