![]() |
#1 |
Rookie
Join Date: Dec 2020
Posts: 5
![]() |
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.
|
![]() |
![]() |
![]() |
#2 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,367
Donated: $60
![]() ![]() |
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.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Dec 2020
Posts: 5
![]() |
That makes sense and thank you. I will post an update if I find consistent similarities between objects and the different files.
|
![]() |
![]() |
![]() |
#4 |
Rookie
Join Date: Dec 2020
Posts: 5
![]() |
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.
|
![]() |
![]() |
![]() |
#5 |
Rookie
Join Date: Dec 2020
Posts: 5
![]() |
Does the (~) always come after the first word in a name for a reason? Apple~ vs. Handful~ of dried fruit.
|
![]() |
![]() |
![]() |
#6 |
Knight
Join Date: Nov 2008
Posts: 871
![]() |
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.
__________________
The Complainer worries about the lack of activity here these days. |
![]() |
![]() |
![]() |
#7 |
Rookie
Join Date: Dec 2020
Posts: 5
![]() |
Ok and thanks!
|
![]() |
![]() |
![]() |
#8 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,681
Donated: $40
![]() |
Oh right, Merry Xmas!
Soon it will be time to kill santa and his elves. |
![]() |
![]() |
![]() |
#9 |
Apprentice
Join Date: Jul 2020
Posts: 50
![]() |
![]() |
![]() |
![]() |
![]() |
#10 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,681
Donated: $40
![]() |
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?
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
In what file can I edit where you spawn? | Gothmog | Sil | 0 | December 30, 2016 22:36 |
ammo doesn't combine correctly | saarn | v4 | 22 | May 30, 2012 13:17 |
Modded object file rarities for many items - anyone else want to test? | ewert | Vanilla | 66 | August 1, 2010 07:28 |
[Q] (simple) help needed with edit file | Djabanete | Variants | 4 | March 20, 2010 16:55 |
Edit File For Dungeon Generation? | Zero | Vanilla | 3 | January 9, 2008 18:17 |