Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old December 2, 2020, 21:24   #1
Mud
Rookie
 
Join Date: Dec 2020
Posts: 5
Mud is on a distinguished road
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.
Mud is offline   Reply With Quote
Old December 2, 2020, 22:00   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,659
Donated: $60
Nick will become famous soon enough
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.
Nick is offline   Reply With Quote
Old December 2, 2020, 22:04   #3
Mud
Rookie
 
Join Date: Dec 2020
Posts: 5
Mud is on a distinguished road
That makes sense and thank you. I will post an update if I find consistent similarities between objects and the different files.
Mud is offline   Reply With Quote
Old December 2, 2020, 22:36   #4
Mud
Rookie
 
Join Date: Dec 2020
Posts: 5
Mud is on a distinguished road
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.
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	40
Size:	19.6 KB
ID:	1923  
Mud is offline   Reply With Quote
Old December 3, 2020, 18:13   #5
Mud
Rookie
 
Join Date: Dec 2020
Posts: 5
Mud is on a distinguished road
Does the (~) always come after the first word in a name for a reason? Apple~ vs. Handful~ of dried fruit.
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	25
Size:	18.1 KB
ID:	1924  
Mud is offline   Reply With Quote
Old December 3, 2020, 18:37   #6
Sideways
Knight
 
Join Date: Nov 2008
Posts: 757
Sideways is on a distinguished road
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.
Sideways is offline   Reply With Quote
Old December 3, 2020, 19:33   #7
Mud
Rookie
 
Join Date: Dec 2020
Posts: 5
Mud is on a distinguished road
Ok and thanks!
Mud is offline   Reply With Quote
Old December 22, 2020, 13:02   #8
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,994
Donated: $40
Pete Mack is on a distinguished road
Oh right, Merry Xmas!
Soon it will be time to kill santa and his elves.
Pete Mack is offline   Reply With Quote
Old December 23, 2020, 17:34   #9
invisibletroll
Apprentice
 
Join Date: Jul 2020
Posts: 50
invisibletroll is on a distinguished road
Thumbs up

Quote:
Originally Posted by Pete Mack View Post
Oh right, Merry Xmas!
Soon it will be time to kill santa and his elves.
If you kill Santa, I will kill you.
invisibletroll is offline   Reply With Quote
Old December 23, 2020, 23:48   #10
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,994
Donated: $40
Pete Mack is on a distinguished road
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?
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
In what file can I edit where you spawn? Gothmog Sil 0 December 30, 2016 23:36
ammo doesn't combine correctly saarn v4 22 May 30, 2012 14:17
Modded object file rarities for many items - anyone else want to test? ewert Vanilla 66 August 1, 2010 08:28
[Q] (simple) help needed with edit file Djabanete Variants 4 March 20, 2010 17:55
Edit File For Dungeon Generation? Zero Vanilla 3 January 9, 2008 19:17


All times are GMT +1. The time now is 18:48.


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