![]() |
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? |
Have a read through this thread
|
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 :) |
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 |
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.
|
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 ... |
You can install it. MinGW in particular is a tiny install
|
All times are GMT +1. The time now is 12:05. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.