Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Need help debugging custom creature - game crashes upon loading [fixed]  (Read 1292 times)

Van Silke

  • Escaped Lunatic
    • View Profile

[Edit2] - I've since discovered the errorlog which helped me debug the issues.

Hello. This is my second post on the forum.

I've been toying around with modding custom creatures, and so far I've got this:

Creature:
Spoiler (click to show/hide)

Body:
Spoiler (click to show/hide)

Body Detail Plan:
Spoiler (click to show/hide)

Material Templates:
Spoiler (click to show/hide)

Tissue Templates:
Spoiler (click to show/hide)

I really need help with this thing, it's currently crashing my game for unknown reasons, upon "Finalizing descriptors" phase. I greatly appreciate any input.

[edit]
after parsing through the text a couple times, I've noticed [CREATURE_CLASS:CONSTRUCT_FRIENDLY] appears twice. I've since fixed this issue, it still crashes.

Additional note: It may have something to do with body or body detail plans? I noticed the game crashed when I added those specifically.
« Last Edit: October 17, 2021, 06:14:57 am by Van Silke »
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Need help debugging custom creature - game crashes upon loading [fixed]
« Reply #1 on: October 17, 2021, 01:52:50 pm »

[Edit2] - I've since discovered the errorlog which helped me debug the issues.
So, what exactly were the issues?

I ask mainly out of curiosity, as well as out of concern for the people who will inevitably stumble upon this thread in the future seeking help with similar problems.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Van Silke

  • Escaped Lunatic
    • View Profile
Re: Need help debugging custom creature - game crashes upon loading [fixed]
« Reply #2 on: October 17, 2021, 03:09:25 pm »

I failed to define/load tissues properly.

As you can see under Creature in the original post, I wrote the following:

Spoiler (click to show/hide)

Whereas I should have written the following:

Spoiler (click to show/hide)

In other words, I forgot to insert the <template>s [USE_TISSUE_TEMPLATE|<token>|<template>]s.

Failing to define/load a tissue causes an error as follows:
"<CREATURE>:<CASTE>:<bodypart>, layer n: Tissue <x> was not found, using first tissue instead"

The errors continue for every body part.

If no tissues are defined/loaded, the creature will cause CTD. Presumably it's because there's no "default" tissue for the game to fall back on, there has to be at least one defined in the creature file.

I'm sorry for making this thread and solving the issue overnight, I just wasn't looking in the right place. Like you said though, maybe my example will be of some help to someone in the future... Define/load your tissue templates!
« Last Edit: October 17, 2021, 03:14:14 pm by Van Silke »
Logged