Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Trouble testing animal patching  (Read 692 times)

Kyubee

  • Bay Watcher
  • modding is hard
    • View Profile
Trouble testing animal patching
« on: July 02, 2024, 04:51:27 am »

So, I'm trying this whole new fancy system of patching existing raws, and trying to make a mod that makes giant insects live longer, have a growth state, and lay eggs, but im having trouble getting it to a point i can even test it. I can't even get giant flies to appear in my embark, even trying to use the select_entity and give dwarves [USE_ANY_PET_RACE].

Could someone more skilled with the new modding methods look through these and tell me if im doing something wrong? I don't want to have to cut the existing giant insects and replace them with near-identical counterparts.

Here's my first file's raws
Code: [Select]
creature_bugs_expanded

[OBJECT:CREATURE]

[SELECT_CREATURE:GIANT_FLY]

[MAXAGE:5:10]
[CHILD:1] These two tags give the creature a longer lifespan and the ability to be fully tamed.

[COMMON_DOMESTIC] This is simply here as a debug tag to make sure they work on embark-test.

[CREATURE_CLASS:GIANT_INSECT] This is too, but this will stay after initial testing

[GENERAL_CHILD_NAME:giant fly hatchling:giant fly hatchlings]

[BODY_DETAIL_PLAN:LEATHERY_EGG_MATERIALS] To give them egg materials.

[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:10]
[CLUTCH_SIZE:10:30]

and heres my test code for the dwarf entity, which i don't intend to keep around for release versions, but is there so i can quickly embark with giant bugs to make sure they use nest boxes and the likes.

entity_dwarf_test

Code: [Select]
[OBJECT:ENTITY]

     [SELECT_ENTITY:MOUNTAIN]
     [USE_ANY_PET_RACE]


     [ANIMAL_CLASS:GIANT_INSECT]
     [ANIMAL_ALWAYS_PRESENT][ANIMAL_ALWAYS_PET]

Am I missing something obvious?

My mod appears in the mod options and everything, I enable it, but giant flies don't appear in the embark list, nor can I make their eggs appear, even through DFhack.

Thanks for the help, this is all so new to me, and ill admit i've been rusty with the vanilla files in general.
« Last Edit: July 02, 2024, 04:54:07 am by Kyubee »
Logged
My (long abandoned) mod: http://www.bay12forums.com/smf/index.php?topic=176501.0
The litten is wandering around the dump now, occasionally exploding.

aSpatula66

  • Bay Watcher
  • Hoarder of Knowledge
    • View Profile
Re: Trouble testing animal patching
« Reply #1 on: July 02, 2024, 09:20:46 am »

You need the [ANIMAL] token before ANIMAL_CLASS
Logged

Kyubee

  • Bay Watcher
  • modding is hard
    • View Profile
Re: Trouble testing animal patching
« Reply #2 on: July 02, 2024, 02:49:53 pm »

Thank you! The animal class systems also fairly new to me, I think I played around with it but, never too much! Any other big things you can see?

The error log hasnt been throwing anything up, but, even with that change, the flies don't show up
« Last Edit: July 02, 2024, 02:53:51 pm by Kyubee »
Logged
My (long abandoned) mod: http://www.bay12forums.com/smf/index.php?topic=176501.0
The litten is wandering around the dump now, occasionally exploding.

aSpatula66

  • Bay Watcher
  • Hoarder of Knowledge
    • View Profile
Re: Trouble testing animal patching
« Reply #3 on: July 02, 2024, 04:05:01 pm »

I can't see any issues but maybe try removing use_any_pet_race and common_domestic?
Logged

Kyubee

  • Bay Watcher
  • modding is hard
    • View Profile
Re: Trouble testing animal patching
« Reply #4 on: July 02, 2024, 04:10:09 pm »

I can't see any issues but maybe try removing use_any_pet_race and common_domestic?

Nope, still didnt work, gonna give up for now and work on other projects.
Logged
My (long abandoned) mod: http://www.bay12forums.com/smf/index.php?topic=176501.0
The litten is wandering around the dump now, occasionally exploding.

Kyubee

  • Bay Watcher
  • modding is hard
    • View Profile
Re: Trouble testing animal patching
« Reply #5 on: July 02, 2024, 11:48:36 pm »

So, I think I found my problem. I tried to put my mods directly into the "installed_mods" folder.

Logged
My (long abandoned) mod: http://www.bay12forums.com/smf/index.php?topic=176501.0
The litten is wandering around the dump now, occasionally exploding.