It looks like the BOM (byte order mark) at the start of the text stream is causing the problem.
The first few lines of the original monster.txt from Angband 4.2 looks like this:
Your monster.txt file in the zip file you posted looks like this. Note the 0xefbbbf at the beginning - this is the BOM encoded as UTF-8:
The first few lines of the original monster.txt from Angband 4.2 looks like this:
Code:
00000000: 2320 4669 6c65 3a20 6d6f 6e73 7465 722e # File: monster. 00000010: 7478 740a 0a0a 2320 5468 6973 2066 696c txt...# This fil 00000020: 6520 6973 2075 7365 6420 746f 2069 6e69 e is used to ini 00000030: 7469 616c 697a 6520 7468 6520 226d 6f6e tialize the "mon 00000040: 7374 6572 2072 6163 6522 2069 6e66 6f72 ster race" infor 00000050: 6d61 7469 6f6e 2066 6f72 2041 6e67 6261 mation for Angba 00000060: 6e64 2e0a 0a23 2044 6f20 6e6f 7420 6d6f nd...# Do not mo
Your monster.txt file in the zip file you posted looks like this. Note the 0xefbbbf at the beginning - this is the BOM encoded as UTF-8:
Code:
00000000: efbb bf23 2046 696c 653a 206d 6f6e 7374 ...# File: monst 00000010: 6572 2e74 7874 0a0a 0a23 2054 6869 7320 er.txt...# This 00000020: 6669 6c65 2069 7320 7573 6564 2074 6f20 file is used to 00000030: 696e 6974 6961 6c69 7a65 2074 6865 2022 initialize the " 00000040: 6d6f 6e73 7465 7220 7261 6365 2220 696e monster race" in 00000050: 666f 726d 6174 696f 6e20 666f 7220 416e formation for An 00000060: 6762 616e 642e 0a0a 2320 446f 206e 6f74 gband...# Do not
Comment