![]() |
#1 |
Rookie
Join Date: Nov 2017
Posts: 4
![]() |
Modifying Artifacts - Parse error?
Hey everyone! I am coming back to the game after a while, and wanted just to have some fun (a bit less frustrating I hope).
I went to modifying the artifact.txt, but when I do, I get a Parse Error in artifact line 1 column 1. Any clue what I am doing wrong? Thanks! |
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,429
Donated: $60
![]() ![]() |
It's hard to say without knowing what modifications you made.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Nov 2017
Posts: 4
![]() |
It is actually doing it if I make no changes at all, and just save the artifact.txt file.
I was looking to modify some of the drop rates and levels, but after experimenting a bit, it was clear that it was generating a parse error just by saving the file. |
![]() |
![]() |
![]() |
#4 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,429
Donated: $60
![]() ![]() |
That's very odd. Is that in Windows? Could you indulge me by posting a file that is failing to parse, so I can try to find why?
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#5 |
Rookie
Join Date: Nov 2017
Posts: 4
![]() |
Here is the file. I might be just doing something basic wrong, but I can't tell.
It is for 4.1.1 |
![]() |
![]() |
![]() |
#6 | |
Knight
Join Date: Jan 2017
Posts: 934
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Rookie
Join Date: Nov 2017
Posts: 4
![]() |
That certainly is possible, but it doesn't even get to a point where it can load. It has the parse error immediately on boot-up.
|
![]() |
![]() |
![]() |
#8 |
Knight
Join Date: Nov 2008
Posts: 878
![]() |
The format of the Angband part of the file is good, the problem is that there are 3 extra characters (EF BB BF, the UTF-8 byte order mark) at the very beginning of the file and they mess everything up. My guess would be that whichever editor you used put those extra characters there, and the problem wasn't immediately clear because the byte order mark is invisible in any editor that would put it there in the first place.
__________________
The Complainer worries about the lack of activity here these days. |
![]() |
![]() |
![]() |
#9 |
Prophet
Join Date: Apr 2008
Posts: 2,945
![]() |
File is encoded as UTF-8. If you used an editor where the encoding was not UTF-8, your file will not be parsed properly.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant! |
![]() |
![]() |
![]() |
#10 |
Prophet
Join Date: Apr 2008
Posts: 2,945
![]() |
Yes and no. In the newer versions, all properties are stored on the object, so modifying randart generation won't change anything on your current game. However, it will influence future games, since modifying the base set will probably generate different randarts.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant! |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parse error in randart line | epatton | Vanilla | 1 | October 30, 2017 19:06 |
html dump parse error | murphy | Oook! | 1 | May 17, 2016 15:57 |
kangband 'parse error' problem on x86_64 | ennorie | Variants | 0 | December 24, 2010 11:36 |
1375 parse error | PowerDiver | Development | 12 | April 24, 2009 15:48 |
making a semi-variant (more talk about modifying the /edit .txt files) | will_asher | Variants | 20 | December 2, 2007 11:38 |