Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive for Power

Fantasy Slave Management/RPG Erotic Game · By Strive4Power

Aric's Expansion Error

A topic by Jackobe created Sep 09, 2020 Views: 1,175 Replies: 9
Viewing posts 1 to 3

So I am of course trying to impregnate my servants, but they just won't get impregnated. I glanced at the consol and an error popped up saying "Script Error: Impregnation". Is there any way to fix this? Please help, I love this mod but I desperately want the impregnation function of the game to work.

Hard to be certain from your description, but please check out this chain of posts: https://itch.io/post/1742966

Thanks! Do you by any chance know how to get ro the spot I need to edit that code at? I've never done that before

(1 edit)

Any decent text editor can be used to change the script files(.gd) as they are plain text. The community often uses either Sublime Text 3 or Notepad++. Generally you just need something that provides line numbers, since that is the simplest way to find stuff. Otherwise, function names are used for which the definitions can generally be found by searching for "func " followed by the function name. Syntax coloring for languages like Python and formatting for JSON files can be nice to have. 


Edit: also make backup copies before you start, small mistakes can cause big problems.

Okay, so a new error popped up, though im not sure what it does. It was something about addrelations. Anyone know what that does?

Ocassionally people get:
SCRIPT ERROR: addrelations: Invalid get index 'id' (on base: 'Nil').
             At: res://files/globals.gd:1013

This is harmless, though the exact cause is not known. redle provided a solution on Discord:

If you simply add to globals.gd right after   func addrelations(person, person2, value):   and put in the lines

  if person == null || person2 == null:
    return

Be aware that the forum changes tabs to spaces (change the spaces before the "if" to 1 tab, and the spaces before the "return" line to 2 tabs)

Deleted 3 years ago

Do I change line 1011 right after that function to the new text, or do I make a new line?

While it is possible to add the new logic to the existing line 1011, unless you understand the code syntax it's better to simply make new lines.

so this one pretty much becomes the new line 1011 then right? 

Sorry, I've never done this before

The start of the function should look similar to this:

func addrelations(person, person2, value):
    if person == null || person2 == null:
        return
    if person == player || person2 == player || person == person2:
        return