Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive for Power

Fantasy Slave Management/RPG Erotic Game · By Strive4Power

script errors on boot

A topic by whitefoux created Dec 10, 2019 Views: 409 Replies: 4
Viewing posts 1 to 5
(1 edit)

Downloaded latest version boots only with errors

I get "randomnportrait: unable to iterate on object of type Nil'. At: res://files/scripts/characters/constructor.gd:182"

and I can't save or load when i try i get another script error

"_on_SavePanel_visibility_changed: Invalid call. Nonexistent function 'find' in base 'Nil. At: res://files/scripts/mainmenu.gd:343"

Game runs and works as far as i can tell, i just don't go in very far since I can not save or reload.

The game as downloaded from this site should be free of errors on start.  If on the off chance you added any mods or bugfixes, then it would help me to know what has been changed. 

If you are using the vanilla game, then the problem is likely that the game's user folders were altered either by you or your system. The default location for these folders is "C:\Users\YOUR_USER_NAME\AppData\Roaming\Strive". If you are using the itch.io launcher, then it may be interfering with the folder placement. https://itch.io/t/586531/bug-playing-strive-with-itchio-launcher (The Discord bugfix described in that issue will probably not resolve this issue.)

Otherwise, your "progressdata" file has incorrect data. It should be located at "C:\Users\YOUR_USER_NAME\AppData\Roaming\Strive\progressdata" and either renaming it or deleting it will cause a new one to be created.

(1 edit)

I went to that location and there was no folder there, and i don't think i'm using the .io launcher, i just DLed it and launched the strive.exe. so i created the folder myself, and it's still throwing out those errors. Also that link just leads to a post, which leads to another post which leads to the discord. and i've looked through the #mods and all i see is the one with the bug fixes from you, and some other mods from other users but nothing specifically related to allowing me to set where those folders themselves should be or whatever, and i tried Adding the bug fixes one but that still didn't fix it, oh well, thanks for the help.

One last possibility is that the game somehow does not have permissions to create files/folders as needed. I put the Strive game folder on the desktop, but someone once put it in their "Program Files" folder and had a similar issue.

This is the layout for Strive's user folders (all are empty), though if it isn't able to create them itself there is likely another issue.

Strive
      bodies
      mods
      portraits
      saves
      thumbnails


If you have some time and want help investigating the problem, I recommend Strive's Discord. I find that it's easier to work with people to debug stuff there, especially with faster responses. It's possible to change the code to get more detailed feedback about the problem from Strive's perspective.

(4 edits)

did you downloaded the game from Ichio and for your OS and just unpacked inside empty folder where you wanna have game?

i asume its not ichio launcher problem and such error never poped when i played and i m doing a lot weird things with this sorcery

Could you try to create new folder in drive?

download game from here: https://strive4power.itch.io/strive-for-power for your OS (have experience only with 32 and 64 versions)

unpack to that folder

and try again?


Function dropping bugs for you is localized inside Game/Scripts/characters/constructor.gd and  should looks more or less like this:

  • func randomportrait(person):
       var array = []
       var racenames = person.race.split(" ")
          for i in globals.dir_contents(globals.setfolders.portraits):          <<<<<<this is the line 182
             for k in racenames:
                if i.findn(k) >= 0:
                    array.append(i)
                    continue
    if array.size() > 0:
       person.imageportait = array[randi()%array.size()]