Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 16, 2020, 19:26   #1
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 416
Tibarius is an unknown quantity at this point
monster knowledge

Still working on a variant version, which restricts itself to modifying /lib/gamedata files.

My goal ... to modify the monsters in monster.txt.

To make a complete redo of that, i have to redo monster_base.txt as well.

While i change monster_base.txt the monster knowledge information available with '~' => monster knowledge seems to be hardcoded in some way.

version 3.5.1: i redo monster_base.txt but monster knowledge seems hardcoded
version 4.0.4: same as in 3.5.1, ancient dragons and dragons show up below the same group in monster knowledge, is that hardcoded??? (cause i noticed no file in gamedata which seems to define those groups)
version 4.2.0: now suddenly a new 'group' shows up not defined in monster_base.txt, for example 'Men' group for 'townfolks' group.

Anyone can tell me if changing monster_base.txt can cause conflicts with (still) hardcoded tables?

I got some issues starting a new game in version 3.5.1 if i use an opened player file (no issues in the 1st try using a new player file).
__________________
Blondes are more fun!
Tibarius is offline   Reply With Quote
Old May 17, 2020, 05:32   #2
wobbly
Veteran
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 2,299
wobbly is on a distinguished road
Hardcoded

For 4.x in ui-knowledge.c

Code:
/**
 * ------------------------------------------------------------------------
 *  MONSTERS
 * ------------------------------------------------------------------------ */

/**
 * Description of each monster group.
 */
static struct
{
	const wchar_t *chars;
	const char *name;
} monster_group[] = {
	{ (const wchar_t *)-1,   "Uniques" },
	{ L"A",        "Ainur" },
	{ L"a",        "Ants" },
	{ L"b",        "Bats" },
	{ L"B",        "Birds" },
	{ L"C",        "Canines" },
	{ L"c",        "Centipedes" },
	{ L"uU",       "Demons" },
	{ L"dD",       "Dragons" },
	{ L"vE",       "Elementals/Vortices" },
	{ L"e",        "Eyes/Beholders" },
	{ L"f",        "Felines" },
	{ L"G",        "Ghosts" },
	{ L"OP",       "Giants/Ogres" },
	{ L"g",        "Golems" },
	{ L"H",        "Harpies/Hybrids" },
	{ L"h",        "Hominids (Elves, Dwarves)" },
	{ L"M",        "Hydras" },
	{ L"i",        "Icky Things" },
	{ L"FI",       "Insects" },
	{ L"j",        "Jellies" },
	{ L"K",        "Killer Beetles" },
	{ L"k",        "Kobolds" },
	{ L"L",        "Lichs" },
	{ L"tp",       "Men" },
	{ L".$!?=~_",  "Mimics" },
	{ L"m",        "Molds" },
	{ L",",        "Mushroom Patches" },
	{ L"n",        "Nagas" },
	{ L"o",        "Orcs" },
	{ L"q",        "Quadrupeds" },
	{ L"Q",        "Quylthulgs" },
	{ L"R",        "Reptiles/Amphibians" },
	{ L"r",        "Rodents" },
	{ L"S",        "Scorpions/Spiders" },
	{ L"s",        "Skeletons/Drujs" },
	{ L"J",        "Snakes" },
	{ L"l",        "Trees/Ents" },
	{ L"T",        "Trolls" },
	{ L"V",        "Vampires" },
	{ L"W",        "Wights/Wraiths" },
	{ L"w",        "Worms/Worm Masses" },
	{ L"X",        "Xorns/Xarens" },
	{ L"y",        "Yeeks" },
	{ L"Y",        "Yeti" },
	{ L"Z",        "Zephyr Hounds" },
	{ L"z",        "Zombies" },
	{ NULL,       NULL }
};
wobbly is offline   Reply With Quote
Old May 17, 2020, 19:04   #3
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 416
Tibarius is an unknown quantity at this point
code snip

Thanks Wobbly!
__________________
Blondes are more fun!
Tibarius 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
Knowledge base CivBesch Vanilla 11 October 17, 2017 17:48
4.0.1 Artifact knowledge mwnahas Vanilla 1 July 29, 2015 05:46
Self-Knowledge Cauldron Vanilla 4 June 21, 2009 21:02
Monster knowledge menu - bug JamesDoyle Vanilla 1 March 1, 2009 10:10
possible monster knowledge bug - bronze golem bebo Vanilla 2 February 28, 2009 19:21


All times are GMT +1. The time now is 06:15.


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