![]() |
How do I edit the object file correctly?
I was experimenting with the .txt files and decided to try and change torch to flare in the object.txt file. It crashed on start up since I don't know what I'm doing and was wondering if there was a place that already had info on how to mod Angband.
|
This has changed quite a bit recently, and there probably aren't any really good current sources of information. There is some info at the top of the .txt datafiles as a starting point.
One simple thing you can do is search through all the files in lib/gamedata (and lib/tiles if you're using tiles) for the thing you're planning to change. In your case, the crash will be because other files (class.txt, ego_item.txt, store.txt) are expecting to find an object called "Wooden Torch" - if you change the name in all those places, it should work. |
That makes sense and thank you. I will post an update if I find consistent similarities between objects and the different files.
|
1 Attachment(s)
You were right, chanigng the name in all the files worked. Some require many to be changed, like the Wooden Torch, since characters start with one while "flask~ of oil" only needed the object.txt and store files to be changed.
|
1 Attachment(s)
Does the (~) always come after the first word in a name for a reason? Apple~ vs. Handful~ of dried fruit.
|
The ~ indicates where the plural goes if you have more than one; so you have apples, handfuls of dried fruits, flasks of oil, hard biscuits etc.
|
Ok and thanks!
|
Oh right, Merry Xmas!
Soon it will be time to kill santa and his elves. |
Quote:
|
As it is Festivus, how come there are no Easter egg monsters for today? And speaking of Easter, what about easter bunnies? Maybe they should breed in town?
|
All times are GMT +1. The time now is 07:38. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.