You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on the thread in #25 , but now this seems more like an 'issue' discussion:
On my Ubuntu 20.04 system, the Linux version of AmbermoonTextImport seems to produce a 'scrambled' version of the referenced text file (see details below). First, the incorrect text file rears its head as shown in the following example:
Looking for text data in '.../temp/nt2/NPC_texts.amb' ... done
Found 454 texts in 70 filled sub-directories.
Collecting text data ... done
Writing data to '/path/to/Amberfiles/NPC_texts.amb' ... done
But then the second export (to a new directory) fails:
Failed to load game data: Index was outside the bounds of the array.
Demonstration that resulting file is 'scrambled':
Opening my new version of NPC_texts.amb and comparing to the original reveals that they contain large bits of the same data , but with these chunks in a different order. Perhaps the two files even have identical contents, but in a different order? They do have the same size, which is curious...
Anyway, this screenshot shows the hex values of the two files side-by-side: portions that should be near the top of the file in the original file (at right) are ~75% of the way down my new version of the file:
I've also attached the two NPC_texts.amb files (renamed so GitHub accepts the upload) in case that helps track this down. Unfortunately my C# skills are nonexistent and unlikely to improve - thanks to anyone who has any thoughts on this. NPC_texts.amb.mine.txt NPC_texts.amb.original.txt
The text was updated successfully, but these errors were encountered:
Following up on the thread in #25 , but now this seems more like an 'issue' discussion:
On my Ubuntu 20.04 system, the Linux version of AmbermoonTextImport seems to produce a 'scrambled' version of the referenced text file (see details below). First, the incorrect text file rears its head as shown in the following example:
Example :
Successfully Export the original AMB file:
./AmbermoonTextImport -e /path/to/Amberfiles NPC_texts.amb ~/temp/nt2/
Successfully re-import the exported files:
./AmbermoonTextImport -i path/to/Amberfiles NPC_texts.amb ~/temp/nt2/
But then the second export (to a new directory) fails:
./AmbermoonTextImport -e /path/to/Amberfiles NPC_texts.amb ~/temp/nt3/
Demonstration that resulting file is 'scrambled':
Opening my new version of NPC_texts.amb and comparing to the original reveals that they contain large bits of the same data , but with these chunks in a different order. Perhaps the two files even have identical contents, but in a different order? They do have the same size, which is curious...
Anyway, this screenshot shows the hex values of the two files side-by-side: portions that should be near the top of the file in the original file (at right) are ~75% of the way down my new version of the file:

I've also attached the two NPC_texts.amb files (renamed so GitHub accepts the upload) in case that helps track this down. Unfortunately my C# skills are nonexistent and unlikely to improve - thanks to anyone who has any thoughts on this.
NPC_texts.amb.mine.txt
NPC_texts.amb.original.txt
The text was updated successfully, but these errors were encountered: