Skip to content

Compiler Error - GetScriptParam - vts80

Hello.
I have hit a wall. Whenever I try to compile my code containing the the function GetScriptParam I get this ERROR: UNDEFINED IDENTIFIER (GetScriptParam)
Worryingly GetScriptParam does not appear in the toolkit function.

I guess the SetScriptParam / GetScriptParam is not in my Aurora Toolkit function library.
I think my Aurora version is vts80 ( the one included with nwn:ee on steam )

Can someone help? Thanks in advance

Comments

  • TarotRedhandTarotRedhand Member Posts: 1,481
    Check the lexicon page to make sure you are using it correctly and see if the example script on that page works for you -

    GetScriptParam(string)

    If not come back here again.

    TR
  • ZephiriusZephirius Member Posts: 411
    ... and check the lexicon to see if an include file is required.
  • JohnnyTsunamiJohnnyTsunami Member Posts: 6
    Hey Tarot, how are ya?

    I have just made new module, with just this script ( and an empty area) :
    void main()
    {
        // Check each parameter in turn (we could have more than one)
        //SetScriptParam("hostile","very");
        string sParameter = GetScriptParam("hostile");
        if(sParameter != "")
        {
            SpeakString("hostile: " + sParameter );
        }
    
    }
    
    20/08/2022 15:21:11: Error. 's_test' did not compile.
    s_test.nss(5): ERROR: PARSING VARIABLE LIST
    
    void main()
    {
        // Check each parameter in turn (we could have more than one)
        SetScriptParam("hostile","very");
        string sParameter = GetScriptParam("hostile");
        if(sParameter != "")
        {
            SpeakString("hostile: " + sParameter );
        }
    
    }
    
    20/08/2022 15:25:07: Error. 's_test' did not compile.
    s_test.nss(4): ERROR: UNDEFINED IDENTIFIER (SetScriptParam)
    
    I am certain that the compiler thinks that SetScriptParam has never been defined.
    I have game version v1.86 nw toolset version vts80 ( and it's the one shipped with Steam nwn ee )

    Thoughts? Is it my incompetance ( v likely) or has beamdog forgotten to include this library ( plausible ) ?
  • TarotRedhandTarotRedhand Member Posts: 1,481
    That last error message makes me suspect something so try verifying the installation because those 2 functions have been part of EE for around 2 years -

    Load Steam.
    From the Library section, right-click on the game and select Properties from the menu.
    Select the Local files tab and click Verify integrity of game files...
    Steam will verify the game's files.

    TR
  • JohnnyTsunamiJohnnyTsunami Member Posts: 6
    That last error message makes me suspect something so try verifying the installation because those 2 functions have been part of EE for around 2 years -

    Load Steam.
    From the Library section, right-click on the game and select Properties from the menu.
    Select the Local files tab and click Verify integrity of game files...
    Steam will verify the game's files.

    TR

    Tarot! You're correct. I ran the integrity check; 8 files failed; steam auto-updated; I loaded my script and GetScriptParam worked as expected.

    And I've just checked the toolset's function finder. GetScriptParam appears there, too.

    Thank you very much.
  • TarotRedhandTarotRedhand Member Posts: 1,481
    Great. If that hadn't worked I wouldn't have had a clue as to what to try next B) .

    TR
Sign In or Register to comment.