Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Strive for Power

Fantasy Slave Management/RPG Erotic Game · By Strive4Power

Bug

A topic by gerva00000 created Aug 27, 2019 Views: 757 Replies: 10
Viewing posts 1 to 8
(1 edit) (+1)

Version: 0.5.25

Bug: Interaction doesn´t reset next day, daily report screen doesn´t appear.

Error (I suppose):  

SCRIPT ERROR: _on_end_pressed: Invalid get index 'farmmana' (on base: 'Dictionary').

          At: res://files/scripts/Mansion.gd:1150

Maverik will probably release a fixed version sometime soon.  I have a bugfix posted on the discord, in the mods channel.  https://itch.io/t/284398/discord
To quick fix this issue yourself, open globals.gd in a decent text editor and add these lines after line 1278:

    if !state.mansionupgrades.has("farmmana"):
        state.mansionupgrades.farmmana = 0

First line should have 1 tab, second line should have 2 tabs.

Thanks! I never fix a code before, it was try and error. But now it works! (sorry for my english )

Huh, didn't know about this. I just edited my save file. Add farmmana in mansionupgrades  after farmhatchery.

"mansionupgrades":{"farmcapacity":3,"farmhatchery":0,"farmmana":0,"farmtreatment":1,"foodcapacity":2,"foodpreservation":0,"jailcapacity":8,"jailincenses":1,"jailtreatment":1,"mansionalchemy":2,"mansionbed":3,"mansioncommunal":20,"mansionkennels":1,"mansionlab":2,"mansionlibrary":3,"mansionluxury":2,"mansionnursery":1,"mansionparlor":1,"mansionpersonal":10}

I'm having this issue as well and I went to look though the files. This line is already in place so is there any other options to try? The only benefit of this error is that the repeat quests count down days dont progress leaving you plenty of time to upgrade your slaves but without the option to sleep with them to get their lewdness up :(

(1 edit)

Are you using any mods? Because the fix should only be present if you are using a mod or my bugfix patch.(Edit: or if you added it yourself, in which case you made a mistake or used a low quality text editor)  If you aren't using my patch, I recommend getting it from Discord as stated in a post above.

If the error message does not exactly match the one in the first post, then please post it here.

You cannot have both the working fix and the error, so one of those is different.

To be honest I didn't see an error unless there's a specific place to look. I didn't put in any fixes in myself all I did was take a look at the files that was pointed out here. Also, the only mod in my game was the one that was already there? The one that says constants. The only thing I've ever added to this game was a few images and I dont see that messing with anything at all.

Usually when the game starts there are 2 windows, the game window and a command prompt/terminal.  The second window is the place to check for error messages when the game behaves weird. You stated that you had the same problem, thus assumed you had seen an error message too.  Since you did not see an error message, I assume that means you have the state issue of: "Interaction doesn't reset next day, daily report screen doesn't appear."  Is this correct?

You said: "This line is already in place so is there any other options to try?"   Unless you meant another line, the game does not have these 2 lines in globals.gd, without outside mods or patches. 

    if !state.mansionupgrades.has("farmmana"):
        state.mansionupgrades.farmmana = 0

Images are fine; they will have no impact on this.  The simplest way to resolve this is to get my bugfix patch from Discord and copy it over Strive's game files. It will also deal with many other issues.

(1 edit)

Ahh hmm never looked at the second window because I never noticed it pop up :D  This is the error I found I will attempt to fix it: 

SCRIPT ERROR: GDScript::reload: Parse Error: Too few arguments for 'str' intrinsic function.
          At: user://mods/Constants/constantsmod.gd:22
ERROR: reload: Method/Function Failed, returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:580
SCRIPT ERROR: _ready: Invalid call. Nonexistent function 'new' in base 'GDScript'.
          At: res://files/scripts/mainmenu.gd:125

I don't usually go on Discord because of past problems I've had but if I can't fix this then I will go then. Thank you. 

Edit: Also what I meant by finding the line that was meantion in the previous posts I just meant the farmmana = 0  in every masionupgrade , masion and global files. Unless im missing one...?

The error means that your "Constants" mod in AppData is old and the code is no longer compatible with the current Godot engine. Either delete the folder or get the bugfix.  The original globals.gd file has the line "farmmana = 0," which only works for new progresses and evades the backwards compatibility problem of this thread.

I've delete the file, whole game in fact. I backed up my saved games, jpegs and such then added them back into the new folder, started up the game to see if it was better with no change. I decided to make a new game to see if I would have an issue there and nope the log comes up, interactions menu is refreshed and everything. Im inclined to believe there's just a random weird problem with my personal save though I will still go to the Discord and get the bugfix and try. Either way thanks all around for the help and if I can't fix it, oh well i'll just move on to the next game no big deal lol