Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 22, 2017, 21:17   #1
philly1919d
Rookie
 
Join Date: Nov 2017
Posts: 4
philly1919d is on a distinguished road
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!
philly1919d is offline   Reply With Quote
Old November 22, 2017, 21:28   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,705
Donated: $60
Nick is on a distinguished road
It's hard to say without knowing what modifications you made.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old November 22, 2017, 21:37   #3
philly1919d
Rookie
 
Join Date: Nov 2017
Posts: 4
philly1919d is on a distinguished road
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.
philly1919d is offline   Reply With Quote
Old November 22, 2017, 21:53   #4
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,705
Donated: $60
Nick is on a distinguished road
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 Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old November 22, 2017, 23:03   #5
philly1919d
Rookie
 
Join Date: Nov 2017
Posts: 4
philly1919d is on a distinguished road
Here is the file. I might be just doing something basic wrong, but I can't tell.

It is for 4.1.1
Attached Files
File Type: zip artifact.zip (18.7 KB, 9 views)
philly1919d is offline   Reply With Quote
Old November 22, 2017, 23:13   #6
Gwarl
Swordsman
 
Join Date: Jan 2017
Posts: 420
Gwarl is on a distinguished road
Quote:
### IMPORTANT NOTES ###
# (1.) Any changes or additions to the file may have influence on randarts
# and may break savefile compatibility for old savegames with randarts. If
# using random artifacts, finish your existing game before making any
# changes to the artifact.txt file at all.
# (2.) Removing any artifact, or changing its "base" type (as defined by
# the tval and sval entries in the "base-object:" line), will break savefile
# compatibility for ALL savefiles.
# (3.) Adding a new artifact, WILL now affect savefile compatibility for all
# savefiles.
Is 1 still accurate?
Gwarl is offline   Reply With Quote
Old November 22, 2017, 23:56   #7
philly1919d
Rookie
 
Join Date: Nov 2017
Posts: 4
philly1919d is on a distinguished road
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.
philly1919d is offline   Reply With Quote
Old November 23, 2017, 00:24   #8
Sideways
Apprentice
 
Join Date: Nov 2008
Posts: 77
Sideways is on a distinguished road
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.
Sideways is offline   Reply With Quote
Old November 23, 2017, 09:34   #9
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,146
PowerWyrm is on a distinguished road
Quote:
Originally Posted by philly1919d View Post
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.
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://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old November 23, 2017, 09:36   #10
PowerWyrm
Veteran
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,146
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
Is 1 still accurate?
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://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.