Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   monster base (http://angband.oook.cz/forum/showthread.php?t=10420)

Tibarius November 23, 2020 17:32

monster base
 
I tried using version 4.2.1 to work on a mod.

What i did:
+ monster_base.txt: removed all except @ / Morgoth and then used d/D/A for young dragon, dragon, ancient dragon

+ monster.txt: removed all monsters from DL 3 to 99 except Sauron / Morgoth and changed all remaining "base:..." into one of the three dragon bases "base:dragon" for example.

+ pit.txt / summon.txt: changed all bases to dragon or removed large parts

Game startsup fine, looks like i can use "~ => monster knowledge", but when i cast a magic missile at a monster, there comes a C++ Runtime Library assertion up when the missile hits the monster:

mon-msg.c line 291, race->base->pain != NULL

Is there any non documented requirement for how to modify monster_base.txt?

Like all letters from a to z must be used or something like that?

Anyone a clue, thanks :)

Nick November 23, 2020 20:05

You need a type of pain message for every monster base, like
Code:

pain:3
Look at the pain.txt file to pick which one you want.

EDIT:Oops, didn't read fully. Probably you are giving one of your monster bases a pain index that doesn't exist in pain.txt; make sure that the types of pain are in sequence from 1, and that all your monster bases have a
Code:

pain:n
line where n is one of the types in your pain.txt file.

Tibarius November 24, 2020 16:29

lib/user directory
 
Thanks Nick!

Another small thing that could help develop a Mod. Modified files from "lib/gamedata" are loaded from "lib/user". But there are already 2 files located: lore.txt and windows.pfr.

Could either those two files get moved to lib/user/save for example or maybe introduce a new directory like "/lib/user/newdata" for modified files from the gamedata directory.

Nick November 24, 2020 20:09

Quote:

Originally Posted by Tibarius (Post 149567)
Another small thing that could help develop a Mod. Modified files from "lib/gamedata" are loaded from "lib/user". But there are already 2 files located: lore.txt and windows.pfr.

Could either those two files get moved to lib/user/save for example or maybe introduce a new directory like "/lib/user/newdata" for modified files from the gamedata directory.

The /lib/user/newdata directory is quite a good idea, but I'm not sure if it isn't better just to keep it simple. I'll think about that.


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

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