Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old October 25, 2019, 17:14   #1
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 50
Posts: 399
Tibarius is an unknown quantity at this point
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!
Tibarius is offline   Reply With Quote
Old October 25, 2019, 17:30   #2
Gwarl
Knight
 
Join Date: Jan 2017
Posts: 766
Gwarl is on a distinguished road
Have a read through this thread
Gwarl is offline   Reply With Quote
Old October 25, 2019, 20:53   #3
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 50
Posts: 399
Tibarius is an unknown quantity at this point
hint

Quote:
Originally Posted by Gwarl View Post
Have a read through this thread
Thanks for the hint Gwarl, my problem is not to modify .txt files in general. I already changd p_race.txt, history.txt, class.txt to have a different set (and modified) races available at character creation.
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!
Tibarius is offline   Reply With Quote
Old October 25, 2019, 21:44   #4
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,102
wobbly is on a distinguished road
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.
wobbly is online now   Reply With Quote
Old October 25, 2019, 22:18   #5
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,401
Donated: $40
Pete Mack is on a distinguished road
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.
Pete Mack is offline   Reply With Quote
Old October 26, 2019, 14:34   #6
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 50
Posts: 399
Tibarius is an unknown quantity at this point
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!
Tibarius is offline   Reply With Quote
Old October 27, 2019, 02:20   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,401
Donated: $40
Pete Mack is on a distinguished road
You can install it. MinGW in particular is a tiny install
Pete Mack 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
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


All times are GMT +1. The time now is 16:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.