Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

So, my game crashes after skipping to the next day. Debugger shows this. (below)

I believe this is due to me breeding two of my slaves with another male slave. Don't know what to do with this so just reporting.


(+2)

This one was tricky, it is likely attempting to find the father but they are not appearing in either the mansion slaves or the mod's NPC list. It seems certain that your description of the cause is correct because if it was the player then it is easy to find or if it was an animal then it would create a temporary replacement. The best cause for this that I can come up with is that the male slave had sex with the other two slaves and then was removed from the mansion and vanishing from the world (if the slave was sold to a slave guild, then they will not exist as far as the search is concerned, but may be bought back as a quick fix). The fertilize_egg function cannot handle slave fathers that did exist during sex but not later when the egg is fertilized. The fix for this is easy; open globals.gd(if you edit the one in the mod folder, then you need to re-apply the mod) with a decent text editor and after(use the Find or Search function):

        father = globals.state.findslave(father_id)

Add the lines:

        if father == null: # father disappeared from world
            father = globals.newslave(randomfromarray(globals.allracesarray), 'adult', 'male')

These two lines will need the spaces in front of them replaced with tabs(2 and 3 respectively), since this site replaces tabs with spaces.

It should look like this:

    if father_id != null && father_id != '-1' && !father_unique in ['','dog','horse']:
        father = globals.state.findslave(father_id)
        if father == null: # father disappeared from world
            father = globals.newslave(randomfromarray(globals.allracesarray), 'adult', 'male')
    else:
(+1)

Your solution resolved the problem, thank you very much!

(+1)

Added to v1.3