Why Result: Cannot open XML file (-13)?

About PR usage and development, and about the POP format.
Post Reply
DridiSara123
Sheikh
Sheikh
Posts: 27
Joined: June 17th, 2018, 1:56 pm

Why Result: Cannot open XML file (-13)?

Post by DridiSara123 »

So I use PR-1.3.1, and unfortunately I have problems with exporting. When I enter this following command:

PS C:\Users\SSD3> C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\pr.exe --export C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince

Then that here:

PR-1.3.1\PR-1.3.1\src\bin\Prince
Princed resources (PR) v1.3.1 Win32
(c) Copyright 2003-2012 Princed Development Team
http://www.princed.org

File unknown.xml already exists. Replace? [Yes/no/all]:y


And then this happens:
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\VPALACE.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\VIZIER.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\VDUNGEON.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\TITLE.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\SKEL.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\SHADOW.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\resources' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\PV.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\PRINCE.EXE' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\PRINCE.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\MIDISND2.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\MIDISND1.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\LEVELS.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\KID.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\IBM_SND2.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\IBM_SND1.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\GUARD2.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\GUARD1.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\GUARD.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\FAT.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\EPALACE.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\EDUNGEON.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\DIGISND3.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\DIGISND2.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\DIGISND1.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\CPALACE.DAT' to '.'
Result: Cannot open XML file (-13)
Exporting 'C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin\Prince\CDUNGEON.DAT' to '.'
Result: Cannot open XML file (-13)


And if I check the "Exporting Resource" folder, I only have the "Unkown" folder and there is only the unkown.xml on it.

And in unknown there is the following text on it:
<!DOCTYPE resources SYSTEM "http://www.princed.org/standards/xml/resources/std1.dtd">
<?xml version="1.0" ?>
<resources version="build-1" />

I don't know how to fix this? I'm a bit too noob when it comes to CMD. It would be great if there was PR-1.3.1 as a graphical user interface. Because with a command prompt, I usually only have problems.
dmitry_s
Developer
Developer
Posts: 148
Joined: July 27th, 2021, 7:22 am

Re: Why Result: Cannot open XML file (-13)?

Post by dmitry_s »

I think it cannot find the "resources.xml" file. Do the "cd C:\Users\SSD3\Music\ModBestOf\PR-1.3.1\PR-1.3.1\src\bin" command first.

Do not worry about the "unknown.xml" file. It stores resources that are not a part of original POP1 DAT files, like in a custom mod or POP2 DAT files. You can just overwrite it and it should always contain no elements in it.
Post Reply