monster base

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tibarius
    Swordsman
    • Jun 2011
    • 429

    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!
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    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.
    Last edited by Nick; November 23, 2020, 21:21. Reason: Reading
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • Tibarius
      Swordsman
      • Jun 2011
      • 429

      #3
      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!

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9634

        #4
        Originally posted by Tibarius
        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.

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎