Bay 12 Games Forum

Please login or register.

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

Author Topic: Game Keeps crashing after I edited raws  (Read 2707 times)

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Game Keeps crashing after i edited raws
« Reply #15 on: February 08, 2013, 05:13:06 pm »

AFAIK, the CHILD tag is binary. It can only be 1 or 0 and it indicates whether eggs hatch.

But don't quote me on that.
oh god why must i be gone six hours a day :P
Agreed. :P

And for everyone out there [CHILD:X] determines how many years a creature spends as a child before it becomes an adult. Its presences also enables breeding in the first place (i.e. without one creatures won't breed).
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Vicious Bug

  • Bay Watcher
    • View Profile
Re: Game Keeps crashing after I edited raws
« Reply #16 on: February 08, 2013, 05:15:47 pm »

so, should I add the [FEMALE] after the select cast tag?
and what does IIRC mean ^^''
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Game Keeps crashing after I edited raws
« Reply #17 on: February 08, 2013, 05:21:30 pm »

so, should I add the [FEMALE] after the select cast tag?
and what does IIRC mean ^^''
IIRC = "if I remember correctly"

And taking a look at the raws, I think that all you need to do is to move the last [GO_TO_END] up before the female selection.

So change this:
Code: [Select]
   [CHILD:2][GENERAL_CHILD_NAME:Giant brown recluse spider:Giant brown recluse spiders]
   [SELECT_CASTE:FEMALE]
         [LAYS_EGGS]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGGSHELL:SOLID]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
         [EGG_SIZE:80]
         [CLUTCH_SIZE:3:10]
   [GO_TO_END]
   [PREFSTRING:venomous bite]
to this:
Code: [Select]
   [CHILD:2][GENERAL_CHILD_NAME:Giant brown recluse spider:Giant brown recluse spiders]
   [GO_TO_END]
   [SELECT_CASTE:FEMALE]
         [LAYS_EGGS]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGGSHELL:SOLID]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
         [EGG_SIZE:80]
         [CLUTCH_SIZE:3:10]
   [PREFSTRING:venomous bite]

I think the exact problem is that you are adding the [SELECT_CASTE:FEMALE] stuff to the start of the creatures' raws, before the castes are actually defined. As such if we instead add it to the end I think it will work fine.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Game Keeps crashing after I edited raws
« Reply #18 on: February 08, 2013, 05:21:40 pm »

IIRC = if i remember correctly

No what I am saying is that I think you want to put the SELECT_CASTE:FEMALE after the GO TO END tag.  Otherwise I think at the beginning of the raw, and therefore it appears before the CASTE:FEMALE has been declared and doesn't make any sense.  But the structure of these raws is very convoluted because of the Go To's and references and I am not confident I understand it without delving into it more. 

edit:  Yep what i2amroy said, although he explained much better ;)
« Last Edit: February 08, 2013, 05:24:07 pm by smakemupagus »
Logged

Vicious Bug

  • Bay Watcher
    • View Profile
Re: Game Keeps crashing after I edited raws
« Reply #19 on: February 10, 2013, 10:42:53 am »

well It seems this was the problem,
no more crashes :P
thanks guys
Logged
Pages: 1 [2]