![]() |
#1 |
Apprentice
Join Date: Mar 2019
Posts: 62
![]() |
Parser error when modifying the monsters file
I don't know the first thing about coding, so I am a bit lost. I decided to try modifying the monster file today. Nothing elaborate, just a name change. When I first tried modifying it and opened Angband, I was told there was a parse error, and then the game closed down. I looked around the forum, and found that I might do better using Notepad++. So I downloaded that, and tried again. I didn't get the same error, which is perhaps an improvement, but I got another one saying "parser_getval error: name is name"; after I clicked OK the game again shut down. After further experimentation I found that there was no objection to my changing the monster description, but only the name. What am I doing wrong?
|
![]() |
![]() |
![]() |
#2 |
Apprentice
Join Date: Mar 2019
Posts: 62
![]() |
Oops, this was not supposed to be in the AAR! How do I move this into general Angband?
![]() |
![]() |
![]() |
![]() |
#3 |
Prophet
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,617
![]() |
Look in the user directory and see if you have a lore file (where monster memory is kept). Try deleting that. You'll get parser errors if you have monster memory for a non-existant monster.
|
![]() |
![]() |
![]() |
#4 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 58
Posts: 9,557
Donated: $60
![]() ![]() |
Thread moved
![]()
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#5 |
Apprentice
Join Date: Mar 2019
Posts: 62
![]() |
Thank you. Problem solved. I'll miss the lore for a while, though.
|
![]() |
![]() |
![]() |
#6 |
Apprentice
Join Date: Mar 2019
Posts: 62
![]() |
Here I am, resurrecting my old thread. I tried to do the same kind of modifications as I referred to above in the latest edition of Angband, and I got a new parse error which could not be solved by deleting the lore. It says 'Parse error in monster line 1 column 1.'
Although someone could probably walk me through this and eventually solve my problems, I suspect it would take several botched attempts on my part, asking help on each one. I ca'n't help but think it would save time for all concerned if somebody was willing to make my changes for me and post the modified monster file. Would anybody be willing to bother? ![]() |
![]() |
![]() |
![]() |
#7 |
Prophet
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,617
![]() |
Firstly what are you using as your text editor? Mearly opening and saving with notepad will give you a parser error. With a decent editor you'll have line numbers, the fact that your error is on line 1 makes me suspicious your using an editor thats not right for the job.
|
![]() |
![]() |
![]() |
#8 | |
Prophet
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,617
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Adept
Join Date: Aug 2018
Location: Barcelona
Posts: 110
![]() |
Try using Atom or Vscode or some other proper editor. What i don't understand is that line 1 is a comment so theoretically it should be ignored by the parser, altough i don't know where the source file that contains the parser is.
|
![]() |
![]() |
![]() |
#10 | ||||
Apprentice
Join Date: Mar 2019
Posts: 62
![]() |
Quote:
Quote:
1) People on this forum are generally pretty helpful, and someone just might do it to be nice; and 2) I really do mess up so much trying to do this that whoever is instructing me would spend less time doing the whole thing himself than by telling me how to do so. Anyway, there is certainly no pressure for you to do it. If I ever do go in for editing on a larger scale than a couple of names, I will of course have to get the hang of doing it for myself. Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
Tags |
error, modding, modifying |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modifying Artifacts - Parse error? | philly1919d | Vanilla | 9 | November 23, 2017 09:36 |
Reusing the Angband parser | Byrhtnoth | Development | 12 | March 17, 2017 05:43 |
Error in monsters description | TJS | Development | 4 | July 31, 2010 13:00 |
Lua "obsolete file error", blargh | Therem Harth | ToME | 4 | July 4, 2010 14:02 |
File Dump Error | Batanu44 | Vanilla | 2 | October 13, 2009 00:01 |