[RESOLVED] Unable to open scenario

Post bug reports and ask for game support here.

Moderator: MOD_Command

Post Reply
User avatar
Lace
Posts: 17
Joined: Thu Jul 26, 2018 12:57 pm
Location: EGNT/LFMQ

[RESOLVED] Unable to open scenario

Post 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 13 times
Last edited by Lace on Thu Sep 21, 2023 5:18 am, edited 1 time in total.
Nikel
Posts: 2058
Joined: Tue Mar 24, 2009 10:51 am

Re: Unable to open scenario

Post 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.
User avatar
Lace
Posts: 17
Joined: Thu Jul 26, 2018 12:57 pm
Location: EGNT/LFMQ

Re: Unable to open scenario

Post 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.
User avatar
Lace
Posts: 17
Joined: Thu Jul 26, 2018 12:57 pm
Location: EGNT/LFMQ

Re: Unable to open scenario

Post by Lace »

Any comment from the devs please, or did any of those who downloaded manage to open the scenario?
User avatar
blu3s
Posts: 1065
Joined: Fri Jul 08, 2022 9:45 am

Re: Unable to open scenario

Post by blu3s »

The scenario seems to have been corrupted in some way. It will be investigated. Thanks for the report

Logged 0015331
Dimitris
Posts: 15275
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: Unable to open scenario

Post by Dimitris »

Sorry, we've been away (literally). We'll take a look.
Dimitris
Posts: 15275
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: Unable to open scenario

Post 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...
User avatar
Lace
Posts: 17
Joined: Thu Jul 26, 2018 12:57 pm
Location: EGNT/LFMQ

Re: Unable to open scenario

Post by Lace »

Dimitris wrote: Thu Sep 28, 2023 7:00 am

This will be an "interesting" one to solve...
You're welcome :lol:
FifthDomain
Posts: 485
Joined: Wed Aug 05, 2020 7:39 pm
Location: United Kingdom

Re: Unable to open scenario

Post 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.
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: Unable to open scenario

Post 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>&lt;BODY&gt;&lt;P&gt;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&#x2;ligence, and return. &lt;/P&gt;
&lt;P&gt;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.
Michael
Dimitris
Posts: 15275
Joined: Sun Jul 31, 2005 10:29 am
Contact:

Re: [RESOLVED] Unable to open scenario

Post by Dimitris »

Great sleuthing Michael!!!
User avatar
Lace
Posts: 17
Joined: Thu Jul 26, 2018 12:57 pm
Location: EGNT/LFMQ

Re: Unable to open scenario

Post 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>&lt;BODY&gt;&lt;P&gt;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&#x2;ligence, and return. &lt;/P&gt;
&lt;P&gt;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.
Post Reply

Return to “Tech Support”