Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old January 31, 2013, 16:35   #1
Join Date: Jan 2013
Posts: 2
cereb is on a distinguished road
obj-info.c adding new pval_flags for example

Dear All,
I am trying to implement some of Entrobands features into the 3.4 Angband code and cannot find where, OF_MIGHT or any of the others is defined.
My compiler is happy with the others but when I add a new one I get an
error: 'OF_QUEST' undeclared here (not in a function)

I have also tried to add a misc_flags but got the same result.

Any help would be appretiated please,

cereb is offline   Reply With Quote
Old January 31, 2013, 20:11   #2
Vanilla maintainer
Nick's Avatar
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
Nick will become famous soon enoughNick will become famous soon enough
You need to add an entry to src/object/list-object-flags.h. This just looks like a list, but it gets processed during initialisation (by init2.c, or something called by it).

Ask again if you need more detail.
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 January 31, 2013, 22:15   #3
Join Date: Jan 2013
Posts: 2
cereb is on a distinguished road
Many thanks

Dear Nick,
ah, that explains why searching did not work. The processing function adds the OF_ bit to the MIGHT part.
Ah well. I know now.
Thank you so much. I was kind of losing it trying to get this.

cereb is offline   Reply With Quote

angband, development, flags, objects

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
Adding 3 dimensions to a 2D roguelike xibalba Idle chatter 12 February 22, 2012 12:41
Making levels interesting without just adding more loot EpicMan Development 26 July 6, 2011 21:29
Adding a new shop to Angband 3.1.1 Kyle Development 9 October 30, 2010 20:56
Adding Fonts? (X11 version) danaris Vanilla 8 March 17, 2010 18:12
Adding Effects to Angband PaulBlay Development 0 March 28, 2009 12:08

All times are GMT +1. The time now is 17:32.

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