Page 1 of 1
[FIXED] Parsing Entity Name Error
Posted: Sun Aug 25, 2019 4:05 am
by warhero101
Hello, I've been working on a custom scenario for some time now and unfortunately I am no longer able to open it. Every time I try to open it using the scenario editor, I get the same error reading: "An error occurred while parsing EntityName. Line 28, position 26241".
Is there any way that I can fix this, or would I have to recreate the entire scenario from scratch?
Thank you!
RE: Parsing Entity Name Error
Posted: Sun Aug 25, 2019 4:17 am
by Dimitris
Hi, can you please post here or PM the scenario file so that we may have a look at it. Thanks!
RE: Parsing Entity Name Error
Posted: Sun Aug 25, 2019 7:29 pm
by warhero101
Thank you for the reply Dimitris! Unfortunately I tried to put the scenario file up but the system told me the file type was unsupported. Would you know a way around this problem?
RE: Parsing Entity Name Error
Posted: Mon Aug 26, 2019 12:56 am
by Dimitris
Hi, you have to compress the file to .zip before attaching it to your post.
RE: Parsing Entity Name Error
Posted: Mon Aug 26, 2019 11:53 pm
by warhero101
I've edited my original comment with the attached scenario file!
RE: Parsing Entity Name Error
Posted: Tue Aug 27, 2019 11:58 am
by MySoulYourBeats
Hi,
I also have the problem parsing entity name when I'm making a scenario. I found that the scen. can be loaded only when the two sides are netural to each other, and if they are hostile and have detected enemy units, then you cannot successfully read the scen. file after saving it. It is also the same case for save. file.
Only recently after the last game update did I find the error, and I've only found this post about it on internet, so I guess the error might come out after the last update. I will keep following this post to see whether matrix has solutions to it, or if they will do a quick fix recently.
So if you have seen same or similiar problems, or matrix games have some messages and answers about it, please reply below. Thanks.
RE: Parsing Entity Name Error
Posted: Thu Aug 29, 2019 7:03 am
by Dimitris
Hi there,
On the side name for US, Colombia and Equador, you used a character (ampersand) which is invalid for XML. This is generally not recommended, as it can cause parsing problems as you have discovered.
Added an extra check for such characters, and here is a copy of your scenario with the ampersand character replaced by "and" (see attachment). This should load on you without issues, but let us know.
Thanks.
RE: Parsing Entity Name Error
Posted: Thu Aug 29, 2019 12:42 pm
by warhero101
Yes, it works perfectly! Thank you very much for your help.