![]() |
#1 |
Swordsman
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 426
![]() |
parse error
Started to work on a variant, modifying the .txt files only under the lib/gamedata folder, using 4.0.5 version as base.
I changed the name of magic book #1 from 'Magic for Beginners' to 'Magic for Testnners' in class.txt (6 times) in object.txt (1 time) in store.txt (1 time) using the plain MS Editor program (after opening the file with wordpad, save it (to have ASC II). Starting the game i get a parser error in monster line 1 column 1. Anyone an idea why that occurs?
__________________
Blondes are more fun! |
![]() |
![]() |
![]() |
#2 |
Knight
Join Date: Jan 2017
Posts: 862
![]() |
Have a read through this thread
|
![]() |
![]() |
![]() |
#3 | |
Swordsman
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 426
![]() |
hint
Quote:
After opening the .txt files with Wortpad and saving them again, the encoding is right and i can modify them using the most simple text editior available, Editor from MS Windows. I was wondering why a renaming of the magic books inside the [ ] brakets crashes the game. I found those names only in class.txt, store.txt and object.txt (with base_object defining some stuff like color). So if anyone knows about that, explanations welcome ![]()
__________________
Blondes are more fun! |
|
![]() |
![]() |
![]() |
#4 |
Veteran
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,435
![]() |
Not sure if it's your issue but casters drop books, so you'll have to change the drops on monsters, otherwise it'll attempt to drop a non-existant book. for instance:
Code:
name:38:Apprentice base:person color:r info:110:15:20:9:15 power:2:1:1584:39:6 blow:HIT:HURT:1d4 flags:MALE | HAS_LIGHT flags:DROP_40 flags:OPEN_DOOR flags:FORCE_SLEEP spell-freq:12 spells:BLIND | BLINK | CONF | MISSILE drop:magic book:[Magic for Beginners]:5:1:1 friends-base:20:1d3:person friends-base:40:1d3:person friends-base:80:1d3:person friends:50:1d2:Same desc:He is leaving behind a trail of dropped spell components. |
![]() |
![]() |
![]() |
#5 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,999
Donated: $40
![]() |
Yep, tha was my guess, but I didn't have access to the code at the time. I strongly recommend getting in the habit of grepping the entire codebase when you make a change like this. Since you aren't using an IDE for your changes, you should install the unix basic tools from minGW or cygwin. grep in particular is a must-have for code changes with a basic editor.
|
![]() |
![]() |
![]() |
#6 |
Swordsman
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 426
![]() |
thanks
Thanks Wobbly ... very likely THAT's the reason why my renaming caused problems!
Pete ... thanks too, but i have to use what is available to me, and there is no grep shell-like command available ...
__________________
Blondes are more fun! |
![]() |
![]() |
![]() |
#7 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,999
Donated: $40
![]() |
You can install it. MinGW in particular is a tiny install
|
![]() |
![]() |
![]() |
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 |
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 |