Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Strive for Power

Fantasy Slave Management/RPG Erotic Game · By Strive4Power

How to fix constants mod (5.24c)

A topic by Creamtreat created Jun 25, 2019 Views: 2,454 Replies: 2
Viewing posts 1 to 3

As of 5.24c the constants mod isn't usable. The mod is supposed to be accessible from the main menu, but isn't even when enabled. I re-downloaded the game to confirm this. I haven't seen any information on how to fix it here so here's what worked for me.

Open up the game client and go to the main menu. Then look at the black screen that opens alongside the game client. You should see this error message:

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


If the text in the black screen matches the text above, this fix will work. Close the game then go to your mods folder and open up the folder for the constants mod (for me it was in C:\Users\AppData\Roaming\Strive\mods\Constants). You should see a file named 'constantsmod.gd'. Open the file, preferably with notepad++ as the code is easier to read with it than regular notepad. Look for the line marked 'var text = str()'. Its near the top, it will be line 22 if you opened it with notepad++. Change this line to :

var text = ''

That's two single quotation marks together, not a double quotation mark. Save the file and then open the game. The constants menu should now be visible at the main menu.  

Generally, people have had trouble with the mod due to a conflict with residual mod data stored in Strive's appdata.  Renaming(saves and pictures can be moved over later) or deleting that folder generally solves the problem.  I just tried using the 0.5.24c with constants mod with fresh appdata folder and program files, and had no issues.  Though it's good to hear that you found a faster fix.

Thank you my man I know this was a lot of months ago you posted this but it helped me out so much as having the constants loaded at all disabled all mods somehow.