Jump to content

[Script/JsonUtil] Cannot compile "SetIntValue"


Nymra

Recommended Posts

Posted

I really have no idea why this is not compiling...

 

this is my first attempt on making a "save/load" profile option for Naked Defeat.

I used the method from Customizeable Camera since it got me the least headaches, haha.

But now... does not compile (see the error message).

I read the StorageUtil source file and description but I cannot make sense of it.

 

Whelp :(

 

attached is error message and the source script

2021-11-02 20_12_22-H__01_GAMES_SKYRIM FILES_00_MOD ORGANIZER 2_mods_NADE_Naked Defeat 3.0 Version 3.jpg

nade_configquest_scr.psc

Posted

SetINTValue("../Naked Defeat/profile" +Profile+ ".json", "NymStripping", NymStripping)

 

3rd property in StorageUtil.SetIntValue() should be Int, while property NymStripping appears to be Bool.

Posted
4 minutes ago, AndrewLRG said:

SetINTValue("../Naked Defeat/profile" +Profile+ ".json", "NymStripping", NymStripping)

 

3rd property in StorageUtil.SetIntValue() should be Int, while property NymStripping appears to be Bool.

 

2 minutes ago, HexBolt8 said:

AndrewLRG beat me to it.  ?  In case it's not clear, just add "as int" after the bool values.

 

ah, guessed something like that (like hey, is a bool and int actually?!), but would never come to that conclusion, thx alot. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...