Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old November 23, 2020, 18:32   #1
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 426
Tibarius is an unknown quantity at this point
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
__________________
Blondes are more fun!
Tibarius is offline   Reply With Quote
Old November 23, 2020, 21:05   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,648
Donated: $60
Nick will become famous soon enough
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.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.

Last edited by Nick; November 23, 2020 at 21:21. Reason: Reading
Nick is offline   Reply With Quote
Old November 24, 2020, 17:29   #3
Tibarius
Swordsman
 
Tibarius's Avatar
 
Join Date: Jun 2011
Location: Germany
Age: 51
Posts: 426
Tibarius is an unknown quantity at this point
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.
__________________
Blondes are more fun!
Tibarius is offline   Reply With Quote
Old November 24, 2020, 21:09   #4
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,648
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Tibarius View Post
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.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick 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
CON: Base Regen DavidMedley Vanilla 0 November 4, 2019 06:44
Knowledge base CivBesch Vanilla 11 October 17, 2017 18:48
Really impressed with the angband code base Pete Mack Development 7 June 24, 2016 13:18
Knowledge base (~) odd behaviour? MKula Development 4 November 26, 2015 05:16
Sil - knowledge base Oski Sil 5 August 19, 2013 02:15


All times are GMT +1. The time now is 11:23.


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