However, as you might have guessed from the title of the topic, for some reason I can't import any file whatsoever in the DAT archives. I am using the 1.3.1-prerelease2 version (which I think is the latest one) and I have the pop2.xml resources file. I'll try to explain in detail what my problem is.
First of all, I think there is a serious bug with the -i / --import command. What I write in the prompt is:
Code: Select all
pr -spop2.xml -iresources ita\nis.dat
This doesn't happen if the output file already exists, as in I already have a file named "nis.dat" in the "ita" directory and want to overwrite it. However, no matter what I do, every time I execute the command and try to overwrite the file I always have the same error multiple times:
Code: Select all
....
'filename.ext' has errors, skipped
'filename.ext' has errors, skipped
'filename.ext' has errors, skipped
....
Result: Success (0)
Code: Select all
pr --resource=pop2.xml --import=resources ita\nis.dat
I thought "maybe my modifications to the files are doing something wrong", but even if I leave the files untouched and try to re-import them in the archives the same error appears every time for every single file. So, every modification I tried to do to the archives failed miserably. The only time it kinda did something to an archive it left me with an 8 bytes file which immediately crashed the game (the original "nis.dat" archive is 1059 kB). I have tried older PR versions (1.3 and 1.3.1-prerelease1) and I have the same errors (except with 1.3, but it doesn't work either).
I have tried recompiling the whole source code with dev-cpp, but that didn't do any good.
I figured "maybe PR doesn't work very well with POP2", so I tried importing something in a POP1 DAT archive using the "resources.xml" file instead of "pop2.xml". Nothing changed, I always get the "'filename.ext' has errors, skipped" thing for every single file, even if I didn't do any modifications to the files I want to import.
Also, someone on the internet used PR to translate POP2 to Spanish, so doing what I'm trying to do is perfectly possible. This guy provided a translation log explaining how he did certain things, but following his instructions still gave me "'filename.ext' has errors, skipped" and folders created instead of DAT archives.
I'm on the edge of giving up. I feel like I have tried everything I could and I don't know what to do anymore. If someone can help, please do, I really want to translate POP2 to Italian. I'm using Windows 10 with the latest Creator's Update if that is any relevant.