Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Necromancy failing  (Read 4187 times)

random_odd_guy

  • Bay Watcher
    • View Profile
Necromancy failing
« on: August 18, 2012, 07:14:32 pm »

I am playing with a modded bronze colossus, and upon invading and thoroughly clearing out a tower, found a book with a name, upon reading the message "the secrets of life and death" appeared in blue, but upon using the x menu, raise dead did not appear in the "aquired powers" section...help?
Logged

GoombaGeek

  • Bay Watcher
  • Horrors! Crundles in the caverns!
    • View Profile
Re: Necromancy failing
« Reply #1 on: August 18, 2012, 07:28:23 pm »

Do you have [CAN_LEARN]?
Logged
My wooden badge was delicious.

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #2 on: August 18, 2012, 07:33:44 pm »

Yes...you know what, heres the whole text file for the bronze colossus. additionally, there is a note added at the end of entity_default where i added a tag to make it [indiv_controllable] additionally, i made myself a novice reader at the begining for just such occasions...
Spoiler (click to show/hide)
Logged

Viking

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #3 on: August 18, 2012, 07:40:20 pm »

Well at least you have CanLearn
Logged

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #4 on: August 18, 2012, 07:42:52 pm »

ive tried reading it several times, each time, the same blue text shows up, but the ability isnt being added...really annoying...


is being an invincible regenerating adamantine colossus that flies and spits fire with legions of undead at my command REALLY too much to ask?


also worth noting, i was planning on fighting a titan immediately after...

titan vs legions of undead...that would have been epic...
« Last Edit: August 18, 2012, 07:48:26 pm by random_odd_guy »
Logged

Corai

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #5 on: August 18, 2012, 07:48:26 pm »

Give your bronze colossus a maxage. Immortal creatures cannot be necromancers/vampires.
Logged
Jacob/Lee: you have a heart made of fluffy
Jeykab/Bee: how the fuck do you live your daily life corai
Jeykab/Bee: you seem like the person who constantly has mini heart attacks because cuuuute

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #6 on: August 18, 2012, 07:49:09 pm »

THANK YOU...let me do that...


well, that didnt work...i copied the dwarf maxage thing, but modified it


[MAXAGE:15000:17000] is now placed just before the attack tags...that didnt seem to work...perhaps thats more than it can calculate?

is [NOTLIVING] a problem?...or do i need to start a new save...i modified both the main RAW with its description, and the one in DATA: REGION1.
do i need to modify the file for the character themselves? if so, where is that?


I had to swim across the freaking ocean to get to the tower....a given, i didnt know it was there at the time, but still.


if I cant figure this out...you know what, even if i do, im just gonna add the RAISE DEAD ability to the raw file for [COLOSSUS_BRONZE]. but id still like to figure this out.

okay, now i simply added this
[CAN_DO_INTERACTION:START:0]
            [CDI:ADV_NAME:Animate corpse]
            [CDI:INTERACTION:EXAMPLE RAISE]
            [CDI:TARGET:A:LINE_OF_SIGHT]
            [CDI:TARGET_RANGE:A:10]
            [CDI:VERB:gesture:gestures:NA]
            [CDI:TARGET_VERB:shudder and begin to move:shudders and begins to move]
            [CDI:WAIT_PERIOD:10]

to the bronze colossus file, as copied from the SECRET INTERACTION file. um...it isnt being recognized...-_-...sigh...whats wrong now...
it says UNKNOWN INTERACTION in the natural abilities list...and it doesnt do anything...im thinking its the START:0 bit...what should that be changed to say?

okay...after several attempts...i seem to be unable to find what the category of interaction RASIE DEAD is...which needs to go after [CAN_DO_INTERACTION:
before a ]
where in the fire breath its MATERIAL_EMISSION
i even checked the mummy raw...its not clearing things up...ARGH
you know what, this belongs in a different section now...i think...anyway...moving it
« Last Edit: August 18, 2012, 09:30:28 pm by random_odd_guy »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Necromancy failing
« Reply #7 on: August 18, 2012, 09:38:03 pm »

If a creature is NOT_LIVING, it can't learn the secrets of life and death (IIRC).

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #8 on: August 18, 2012, 10:01:32 pm »

If a creature is NOT_LIVING, it can't learn the secrets of life and death (IIRC).


I realized that...which is why I am now trying to bypass this by putting the ability straight into the raw of the bronze colossus...but i seem to be having difficulty getting the thing to work.


it worked for the dragonfire by copying the bit for dragon breath
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
      [CDI:ADV_NAME:Breath fire]
      [CDI:USAGE_HINT:ATTACK]
      [CDI:BP_REQUIRED:BY_CATEGORY:MOUTH]
      [CDI:FLOW:DRAGONFIRE]
      [CDI:TARGET:C:LINE_OF_SIGHT]
      [CDI:TARGET_RANGE:C:15]
      [CDI:MAX_TARGET_NUMBER:C:1]
      [CDI:WAIT_PERIOD:50]

by copying that from the dragon's raw.

the MATERIAL EMISSION refers to a raw under the txt file "interaction_standard"

the material emission itsself's raw is:
[INTERACTION:MATERIAL_EMISSION]
   [I_SOURCE:CREATURE_ACTION]
   [I_TARGET:A:MATERIAL]
      [IT_MATERIAL:CONTEXT_MATERIAL]
   [I_TARGET:B:LOCATION]
      [IT_LOCATION:CONTEXT_LOCATION] <-- this is always the emitter for now
   [I_TARGET:C:LOCATION]
      [IT_LOCATION:CONTEXT_LOCATION]
      [IT_MANUAL_INPUT:target]
   [I_EFFECT:MATERIAL_EMISSION]
      [IE_TARGET:A]
      [IE_TARGET:B]
      [IE_TARGET:C]
      [IE_IMMEDIATE]


incidentally just below it is a version with "hidden effects" i can only assume this is the one that titans and forgotten beasts infamously use.


but under the files with the states that give things the ability to raise the dead, which are found under the folder "interaction_examples" in the files "interaction_disturbance" and "interaction_secret" both have the description of the ability...and a listed gained ability...but im having difficulty trying to copy that to the colossus, since everything seems in order for them...i tried using the one that looks more similar to the dragonfire, as far as layout goes:
[CE_CAN_DO_INTERACTION:START:0]
            [CDI:ADV_NAME:Animate corpse]
            [CDI:INTERACTION:EXAMPLE RAISE]
            [CDI:TARGET:A:LINE_OF_SIGHT]
            [CDI:TARGET_RANGE:A:10]
            [CDI:VERB:gesture:gestures:NA]
            [CDI:TARGET_VERB:shudder and begin to move:shudders and begins to move]
            [CDI:WAIT_PERIOD:10]
(for mummies, the file looks the same, except with "EXAMPLE D RAISE" instead of "EXAMPLE RAISE")
which seems in order, except for the CE_ bit. and the START:0. removing the CE didnt work, most likely because the EXAMPLE RAISE seems to refer to something in the same file:
[INTERACTION:EXAMPLE RAISE]
   [I_TARGET:A:CORPSE]
      [IT_LOCATION:CONTEXT_ITEM]
      [IT_AFFECTED_CLASS:GENERAL_POISON]
      [IT_REQUIRES:FIT_FOR_ANIMATION]
      [IT_FORBIDDEN:NOT_LIVING]
      [IT_MANUAL_INPUT:corpses]
   [I_EFFECT:ANIMATE]
      [IE_TARGET:A]
      [IE_IMMEDIATE]
      [IE_ARENA_NAME:Animated corpse]
      [SYNDROME]
         [CE_FLASH_TILE:TILE:165:3:0:0:FREQUENCY:2000:1000:START:0]
         [CE_PHYS_ATT_CHANGE:STRENGTH:300:1000:TOUGHNESS:300:1000:START:0]
         [CE_SPEED_CHANGE:SPEED_PERC:60:START:0]

which confuses me, because in the case of dragonfire, the raw refers to MATERIAL_EMISSION in a different file, and refers after the CAN_DO_INTERACTION bit. but this one seems to refer to it, whereas this one refers to it under the next line...

of course, this probably has something to do with the fact that the necromancer one is actually under a different interaction, which is to say, reading the book.
the full raw for it:
[INTERACTION:EXAMPLE SECRET]
   [I_SOURCE:SECRET]
      [IS_NAME:the secrets of life and death]
      [IS_SPHERE:DEATH]
      [IS_SECRET_GOAL:IMMORTALITY]
      [IS_SECRET:SUPERNATURAL_LEARNING_POSSIBLE]
      [IS_SECRET:MUNDANE_RESEARCH_POSSIBLE]
      [IS_SECRET:MUNDANE_TEACHING_POSSIBLE]
      [IS_SECRET:MUNDANE_RECORDING_POSSIBLE:objects/text/book_instruction.txt:objects/text/secret_death.txt]
   [I_TARGET:A:CREATURE]
      [IT_LOCATION:CONTEXT_CREATURE]
      [IT_REQUIRES:MORTAL]
      [IT_REQUIRES:CAN_LEARN]
      [IT_REQUIRES:CAN_SPEAK]
   [I_EFFECT:ADD_SYNDROME]
      [IE_TARGET:A]
      [IE_IMMEDIATE]
      [IE_ARENA_NAME:Necromancer]
      [SYNDROME]
         [CE_DISPLAY_TILE:TILE:165:5:0:1:START:0]
         [CE_DISPLAY_NAME:NAME:necromancer:necromancers:necromantic:START:0]
         [CE_ADD_TAG:NOEXERT:NO_AGING:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_GAIN:NO_PHYS_ATT_RUST:START:0]
         [CE_CAN_DO_INTERACTION:START:0]
            [CDI:ADV_NAME:Animate corpse]
            [CDI:INTERACTION:EXAMPLE RAISE]
            [CDI:TARGET:A:LINE_OF_SIGHT]
            [CDI:TARGET_RANGE:A:10]
            [CDI:VERB:gesture:gestures:NA]
            [CDI:TARGET_VERB:shudder and begin to move:shudders and begins to move]
            [CDI:WAIT_PERIOD:10]
so now im wonder just what the raw is for what im assuming is added to the file whereever your adventurer is stored. which i would think would look more like the dragonbreath raw, since this one seems to be purely to ADD that raw to your character, rather than the raw itsself

i suppose i could figure it out by creating another adventurer (of a more normal species) and making them become a necromancer normally, then saving, finding where their raw is stored, and examining it for what is probably OBVIOUSLY WHAT IM LOOKING FOR as some sort of [CAN_DO_INTERACTION: ] tag.then copy pasting that.
i am also convinced that the ability doesnt have some sort of built in autoreject tag for non_living, since you can have bronze colossus necromancers in arena mode
« Last Edit: August 18, 2012, 10:10:33 pm by random_odd_guy »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Necromancy failing
« Reply #9 on: August 18, 2012, 10:10:11 pm »

The "animate corpse" interaction isn't actually in the game.

What you want is this:

[SPHERE:DEATH]
[SUPERNATURAL]

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #10 on: August 18, 2012, 10:12:52 pm »

The "animate corpse" interaction isn't actually in the game.

What you want is this:

[SPHERE:DEATH]
[SUPERNATURAL]

wait, so adding those tags will just make it know it automatically, or am i misunderstanding?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Necromancy failing
« Reply #11 on: August 18, 2012, 10:15:30 pm »

It will give it "knowledge"; whether that means it can use it or it can only teach it I don't know.

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #12 on: August 18, 2012, 10:24:06 pm »

It will give it "knowledge"; whether that means it can use it or it can only teach it I don't know.


hm i found something interesting when i searched dwarf fortress' files for [SUPERNATURAL]
behold the werewolf RAW
[INTERACTION:WEREBEAST_CURSE]

[I_SOURCE:DEITY]
   [IS_USAGE_HINT:MAJOR_CURSE]
   [IS_HIST_STRING_1: cursed ]
   [IS_HIST_STRING_2: to assume the form of a wolf-like monster every full moon]

[I_TARGET:A:CREATURE]
   [IT_LOCATION:CONTEXT_CREATURE]
   [IT_REQUIRES:CAN_LEARN]
   [IT_REQUIRES:HAS_BLOOD]
   [IT_FORBIDDEN:NOT_LIVING]
   [IT_FORBIDDEN:SUPERNATURAL]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:WERECURSE]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:VAMPCURSE]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:DISTURBANCE_CURSE]

[I_EFFECT:ADD_SYNDROME]
   [IE_TARGET:A]
   [IE_IMMEDIATE]
   [SYNDROME]
   [IE_ARENA_NAME:Werewolf]
   [SYN_CLASS:WERECURSE]
   [CE_BODY_TRANSFORMATION:START:0]
      [CE:CREATURE:WEREBEAST:DEFAULT]
      [CE:PERIODIC:MOON_PHASE:27:0]
      [CE_ADD_TAG:NO_AGING:START:0]



[INTERACTION:WEREBEAST_BITE]

[I_SOURCE:ATTACK]
   [IS_HIST_STRING_1: bit ]
   [IS_HIST_STRING_2:, passing on the werebeast curse]

[I_TARGET:A:CREATURE]
   [IT_LOCATION:CONTEXT_CREATURE]
   [IT_REQUIRES:CAN_LEARN]
   [IT_REQUIRES:HAS_BLOOD]
   [IT_FORBIDDEN:NOT_LIVING]
   [IT_FORBIDDEN:SUPERNATURAL]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:WERECURSE]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:VAMPCURSE]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:DISTURBANCE_CURSE]

[I_EFFECT:ADD_SYNDROME]
   [IE_TARGET:A]
   [IE_IMMEDIATE]
   [SYNDROME]
   [SYN_CLASS:WERECURSE]
   [CE_BODY_TRANSFORMATION:START:16800]
      [CE:CREATURE:WEREBEAST:DEFAULT]
      [CE:PERIODIC:MOON_PHASE:27:0]

most notably is
[I_TARGET:A:CREATURE]
   [IT_LOCATION:CONTEXT_CREATURE]
   [IT_REQUIRES:CAN_LEARN]
   [IT_REQUIRES:HAS_BLOOD]
   [IT_FORBIDDEN:NOT_LIVING]
   [IT_FORBIDDEN:SUPERNATURAL]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:WERECURSE]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:VAMPCURSE]
   [IT_CANNOT_HAVE_SYNDROME_CLASS:DISTURBANCE_CURSE]
similar tags found in the necromancy file
[I_TARGET:A:CREATURE]
      [IT_LOCATION:CONTEXT_CREATURE]
      [IT_REQUIRES:MORTAL]
      [IT_REQUIRES:CAN_LEARN]
      [IT_REQUIRES:CAN_SPEAK]
these seem to be the requirement subsections. it seems to learn necromancy normally, you merely need to be mortal and able to learn and speak. hm...well, if i modified that, sadly, i ditched the book earlier because i decided to just add it manually...still, i do wonder how the character's RAW file would be changed...if i figured THAT out...argh
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Necromancy failing
« Reply #13 on: August 18, 2012, 10:27:36 pm »

You can't add the animate dead interaction because it's not actually in the raws.

random_odd_guy

  • Bay Watcher
    • View Profile
Re: Necromancy failing
« Reply #14 on: August 18, 2012, 10:30:40 pm »

You can't add the animate dead interaction because it's not actually in the raws.

im not trying to anymore. right now im trying to figure out how the game keeps track of weather something is a necromancer by way of data files. that information has to be stored SOMEWHERE, and im trying to copy whatever tells it that something *is* a necromancer, and add that to the main raw files.

hm....http://dwarffortresswiki.org/index.php/DF2012:Syndrome is quite helpful, mostly with explaining these bizare CE_CAN_DO_INTERACTION, etc...

apparently [CE_CAN_DO_INTERACTION] makes something able to perform an interaction...this tag is found under the necromancy SYNDROME, which means...that the effect of reading a book about life and death is indeed giving you a syndrome wherein you gain this ability...now...where is it STORED

OH i see what you were saying...but the thing is, since reading a book can add something to your character's file that lets it access that ability, whereever it is stored, adding that something to the raws should let them access it, since the game itsself can access it.

wait...if the interaction isnt in the raws, then what the heck is this:
[INTERACTION:EXAMPLE RAISE]
   [I_TARGET:A:CORPSE]
      [IT_LOCATION:CONTEXT_ITEM]
      [IT_AFFECTED_CLASS:GENERAL_POISON]
      [IT_REQUIRES:FIT_FOR_ANIMATION]
      [IT_FORBIDDEN:NOT_LIVING]
      [IT_MANUAL_INPUT:corpses]
   [I_EFFECT:ANIMATE]
      [IE_TARGET:A]
      [IE_IMMEDIATE]
      [IE_ARENA_NAME:Animated corpse]
      [SYNDROME]
         [CE_FLASH_TILE:TILE:165:3:0:0:FREQUENCY:2000:1000:START:0]
         [CE_PHYS_ATT_CHANGE:STRENGTH:300:1000:TOUGHNESS:300:1000:START:0]
         [CE_SPEED_CHANGE:SPEED_PERC:60:START:0]
[CE_ADD_TAG:NO_AGING:NOT_LIVING:OPPOSED_TO_LIFE:EXTRAVISION:NOEXERT:NOPAIN:NOBREATHE:NOSTUN:NONAUSEA:NO_DIZZINESS:NO_FEVERS:NOEMOTION:PARALYZEIMMUNE:NOFEAR:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_GAIN:NO_PHYS_ATT_RUST:NOTHOUGHT:NO_THOUGHT_CENTER_FOR_MOVEMENT:NO_CONNECTIONS_FOR_MOVEMENT:START:0]
         [CE_REMOVE_TAG:HAS_BLOOD:TRANCES:LIKES_FIGHTING:MISCHIEVOUS:START:0]
« Last Edit: August 18, 2012, 10:55:09 pm by random_odd_guy »
Logged
Pages: [1] 2