Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Why does this cause crashes?  (Read 1084 times)

!!crundle!!

  • Bay Watcher
  • EVERYONE, I AM ON FIRE
    • View Profile
Why does this cause crashes?
« on: December 07, 2010, 01:22:47 am »

I wanted to make a 'demonspawn' civ that was based off of the demons of the world, but it crashes during worldgen...

Code: [Select]
[CREATURE:DEMON_CIV]
[COPY_TAGS_FROM:DEMON_1]
[APPLY_CREATURE_VARIATION:DEMON]
[APPLY_CURRENT_CREATURE_VARIATION]
[GO_TO_END]
[SELECT_CASTE:MALE]
[CASTE_NAME:demonspawn:demonspawn:demonspawn]
[SELECT_CASTE:FEMALE]
[CASTE_NAME:demonspawn:demonspawn:demonspawn]
[GO_TO_START]
[NAME:demonspawn:demonspawn:demonspawn]
[DESCRIPTION:A horrid spawn from a demon.]
[COLOR:7:0:1]

Code: [Select]
[CREATURE_VARIATION:DEMON]
[CV_REMOVE_TAG:NAME]
[CV_REMOVE_TAG:GENERAL_CHILD_NAME]
[CV_REMOVE_TAG:GENERAL_BABY_NAME]
[CV_REMOVE_TAG:CASTE_NAME]
[CV_REMOVE_TAG:CHILDNAME]
[CV_REMOVE_TAG:BABYNAME]
[CV_REMOVE_TAG:DEMON]
[CV_REMOVE_TAG:DEMON_UNIQUE]
[CV_REMOVE_TAG:SMALL_REMAINS]
[CV_REMOVE_TAG:DESCRIPTION]
[CV_REMOVE_TAG:COLOR]
[CV_REMOVE_TAG:MAXAGE]
[CV_REMOVE_TAG:PETVALUE]
[CV_REMOVE_TAG:PENETRATEPOWER]
[CV_REMOVE_TAG:VERMIN_EATER]
[CV_REMOVE_TAG:VERMIN_HATEABLE]
[CV_REMOVE_TAG:VERMIN_GROUNDER]
[CV_REMOVE_TAG:VERMIN_FISH]
[CV_REMOVE_TAG:VERMIN_SOIL]
[CV_REMOVE_TAG:VERMIN_SOIL_COLONY]
[CV_REMOVE_TAG:VERMIN_ROTTER]
[CV_REMOVE_TAG:VERMIN_NOTRAP]
[CV_REMOVE_TAG:FISHITEM]
[CV_REMOVE_TAG:IMMOBILE_LAND]
[CV_REMOVE_TAG:TRIGGERABLE_GROUP]
[CV_REMOVE_TAG:PET_EXOTIC]
[CV_REMOVE_TAG:NOT_BUTCHERABLE]
[CV_REMOVE_TAG:SPEED]
[CV_REMOVE_TAG:SWIM_SPEED]
[CV_REMOVE_TAG:MUNDANE]
[CV_REMOVE_TAG:POPULATION_NUMBER]
[CV_REMOVE_TAG:CLUSTER_NUMBER]
[CV_REMOVE_TAG:BUILDINGDESTROYER]
[CV_NEW_TAG:SELECT_CASTE:ALL]
[CV_NEW_TAG:CHANGE_BODY_SIZE_PERC:1]
[CV_NEW_TAG:EQUIPS]
[CV_NEW_TAG:CANOPENDOORS]

-CV_NEW_TAG:MAXAGE:100:500- not being used
-CV_NEW_TAG:CASTE:MALE-
-CV_NEW_TAG:MALE-
-CV_NEW_TAG:CASTE:FEMALE-
-CV_NEW_TAG:FEMALE-
Logged
w̷̦̬̹̣͕̙͖͑̓̌̓̑̄͒͋͜͝h̙̩͈̱͚̳̳̪͖̙͕̥̳ͥ̍̔͂̑̿̓̍̑ͣ͆̅̀͢y̧̼̭͎͓̟̺͉̰͎̱̜ͫ̂́͗̐̑́w̢̬̪͈̲̽̋́̈̓ͨ̄͐̿̓ͧ̇ͩ̏ͫ̑̎͟͡ḩ̡͍̫̣̹̬̙̭͊ͯͯ̉͡y̔ͥ̏͛̀̂̎̆ͥͮ̐̍̈̏͆̓̅̒҉̢̘͚͎̠̻̣̯̥̠̙̤̪̮̝̲̜̪́̕̕ͅw̸̗̻̱ͭͣͦͤ̇̑̅͗ͨͬ͋̉͊ͨ͂͜hͩͪ̋ͣ̇̔͂ͧ̍̾͂͏̨̠͕̼̟͙̳̺͕̥͔̜̮̩̰̲̞̼y̴̸̵̪͕̜̪̙̦̘ͧ̽̇ͭͭͬͯ̾̈́̐̂̉͆͒ͤ̌̀̕w̺̟͙͙̭͇̟̮͉̯͈͖̩͔͊͛ͧͯ̀̿ͣͪ͂ͪ͘̕͠ͅh̷̴̷̢͉͖̺̦̣͙̓ͧ̅͋ͪ̾̓͒̌̒ͯ̇́ͯ̕y̋ͪ̓̒̈́͞͏̤̗̞̲̪͚̮̤̫̪̺̪̫̕w̸͔̺̱̼̪̮̘̟͖̭̱͓͈̜͇͚͉̙͊̈́ͦ̅̋̂ͩ̓͗́̚͡ͅĥ̶̨̟̺͕̌͆͒͑ͦͨ̉͆͜͜ý̧͓̼̘̯͉̘̺̩͇̻͈͔̖͎̜͍ͭ̌ͩ͟͝͞

inEQUALITY

  • Bay Watcher
  • Living On the Mirror's Edge
    • View Profile
Re: Why does this cause crashes?
« Reply #1 on: December 07, 2010, 06:46:42 am »

I wanted to make a 'demonspawn' civ that was based off of the demons of the world, but it crashes during worldgen...

Code: [Select]
[CREATURE:DEMON_CIV]
[COPY_TAGS_FROM:DEMON_1]
[APPLY_CREATURE_VARIATION:DEMON]
[APPLY_CURRENT_CREATURE_VARIATION]
[GO_TO_END]
[SELECT_CASTE:MALE]
[CASTE_NAME:demonspawn:demonspawn:demonspawn]
[SELECT_CASTE:FEMALE]
[CASTE_NAME:demonspawn:demonspawn:demonspawn]
[GO_TO_START]
[NAME:demonspawn:demonspawn:demonspawn]
[DESCRIPTION:A horrid spawn from a demon.]
[COLOR:7:0:1]

Code: [Select]
[CREATURE_VARIATION:DEMON]
[CV_REMOVE_TAG:NAME]
[CV_REMOVE_TAG:GENERAL_CHILD_NAME]
[CV_REMOVE_TAG:GENERAL_BABY_NAME]
[CV_REMOVE_TAG:CASTE_NAME]
[CV_REMOVE_TAG:CHILDNAME]
[CV_REMOVE_TAG:BABYNAME]
[CV_REMOVE_TAG:DEMON]
[CV_REMOVE_TAG:DEMON_UNIQUE]
[CV_REMOVE_TAG:SMALL_REMAINS]
[CV_REMOVE_TAG:DESCRIPTION]
[CV_REMOVE_TAG:COLOR]
[CV_REMOVE_TAG:MAXAGE]
[CV_REMOVE_TAG:PETVALUE]
[CV_REMOVE_TAG:PENETRATEPOWER]
[CV_REMOVE_TAG:VERMIN_EATER]
[CV_REMOVE_TAG:VERMIN_HATEABLE]
[CV_REMOVE_TAG:VERMIN_GROUNDER]
[CV_REMOVE_TAG:VERMIN_FISH]
[CV_REMOVE_TAG:VERMIN_SOIL]
[CV_REMOVE_TAG:VERMIN_SOIL_COLONY]
[CV_REMOVE_TAG:VERMIN_ROTTER]
[CV_REMOVE_TAG:VERMIN_NOTRAP]
[CV_REMOVE_TAG:FISHITEM]
[CV_REMOVE_TAG:IMMOBILE_LAND]
[CV_REMOVE_TAG:TRIGGERABLE_GROUP]
[CV_REMOVE_TAG:PET_EXOTIC]
[CV_REMOVE_TAG:NOT_BUTCHERABLE]
[CV_REMOVE_TAG:SPEED]
[CV_REMOVE_TAG:SWIM_SPEED]
[CV_REMOVE_TAG:MUNDANE]
[CV_REMOVE_TAG:POPULATION_NUMBER]
[CV_REMOVE_TAG:CLUSTER_NUMBER]
[CV_REMOVE_TAG:BUILDINGDESTROYER]
[CV_NEW_TAG:SELECT_CASTE:ALL]
[CV_NEW_TAG:CHANGE_BODY_SIZE_PERC:1]
[CV_NEW_TAG:EQUIPS]
[CV_NEW_TAG:CANOPENDOORS]

-CV_NEW_TAG:MAXAGE:100:500- not being used
-CV_NEW_TAG:CASTE:MALE-
-CV_NEW_TAG:MALE-
-CV_NEW_TAG:CASTE:FEMALE-
-CV_NEW_TAG:FEMALE-

I suggest actually coding it all up in a creature entry, then I'll take a look. I haven't the first idea how how variations are supposed to work, but I'm getting the feeling you didn't use it correctly. Might be the fact it crashes that clued me off here. :P
Logged
Quote from: Carl Sagan
It does no harm to the romance of the sunset to know a little bit about it.
If the magma cannon doesn't count, they aren't proper scientists.

D_E

  • Bay Watcher
    • View Profile
Re: Why does this cause crashes?
« Reply #2 on: December 07, 2010, 01:23:20 pm »

I suggest trying to pin down the cause of the crash a bit tighter.  There are two possibilities, one is that you've made a mistake with the creature variation stuff, and the other is that it crashes because you're referencing the procedurally generated DEMON_1.  If DF tries to finalize DEMON_CIV before generating DEMON_1, it could be what's causing the crash.

I'm pretty sure you can assign any creature to a civ, so I suggest temporarily removing the creature variation stuff and just using
Code: [Select]
[CREATURE:DEMON_CIV]
   [COPY_TAGS_FROM:DEMON_1]
Run world gen for only 5 years, so you're demon civ doesn't go extinct.

If that works, start adding the creature variation stuff back, a few lines at a time.  One possible culprit in the CV stuff is that you select the MALE and FEMALE castes after applying the creature variation, but the castes are not created by the variation.

Code: [Select]
   [SELECT_CASTE:MALE]
      [CASTE_NAME:demonspawn:demonspawn:demonspawn]
   [SELECT_CASTE:FEMALE]
      [CASTE_NAME:demonspawn:demonspawn:demonspawn]

Code: [Select]
   -CV_NEW_TAG:MAXAGE:100:500- not being used
   -CV_NEW_TAG:CASTE:MALE-
   -CV_NEW_TAG:MALE-
   -CV_NEW_TAG:CASTE:FEMALE-
   -CV_NEW_TAG:FEMALE-

Logged
Mods I've done:
Zelda mod-mod, Beta in the Wild DF 47.04
Illithid Empire mod DF 31.25 (update canceled)
Spotter's Guide to Illithids (Genesis mod-mod) genesis 3.19a4 (update canceled)

!!crundle!!

  • Bay Watcher
  • EVERYONE, I AM ON FIRE
    • View Profile
Re: Why does this cause crashes?
« Reply #3 on: December 07, 2010, 02:46:31 pm »

It still crashed with the caste stuff in there, so I deactivated it.

I'll test the non-variation version next.
Logged
w̷̦̬̹̣͕̙͖͑̓̌̓̑̄͒͋͜͝h̙̩͈̱͚̳̳̪͖̙͕̥̳ͥ̍̔͂̑̿̓̍̑ͣ͆̅̀͢y̧̼̭͎͓̟̺͉̰͎̱̜ͫ̂́͗̐̑́w̢̬̪͈̲̽̋́̈̓ͨ̄͐̿̓ͧ̇ͩ̏ͫ̑̎͟͡ḩ̡͍̫̣̹̬̙̭͊ͯͯ̉͡y̔ͥ̏͛̀̂̎̆ͥͮ̐̍̈̏͆̓̅̒҉̢̘͚͎̠̻̣̯̥̠̙̤̪̮̝̲̜̪́̕̕ͅw̸̗̻̱ͭͣͦͤ̇̑̅͗ͨͬ͋̉͊ͨ͂͜hͩͪ̋ͣ̇̔͂ͧ̍̾͂͏̨̠͕̼̟͙̳̺͕̥͔̜̮̩̰̲̞̼y̴̸̵̪͕̜̪̙̦̘ͧ̽̇ͭͭͬͯ̾̈́̐̂̉͆͒ͤ̌̀̕w̺̟͙͙̭͇̟̮͉̯͈͖̩͔͊͛ͧͯ̀̿ͣͪ͂ͪ͘̕͠ͅh̷̴̷̢͉͖̺̦̣͙̓ͧ̅͋ͪ̾̓͒̌̒ͯ̇́ͯ̕y̋ͪ̓̒̈́͞͏̤̗̞̲̪͚̮̤̫̪̺̪̫̕w̸͔̺̱̼̪̮̘̟͖̭̱͓͈̜͇͚͉̙͊̈́ͦ̅̋̂ͩ̓͗́̚͡ͅĥ̶̨̟̺͕̌͆͒͑ͦͨ̉͆͜͜ý̧͓̼̘̯͉̘̺̩͇̻͈͔̖͎̜͍ͭ̌ͩ͟͝͞