Jump to content

Unusual scripting error.


BreadMan161

Recommended Posts

For some unknown reason, my copy of the GECK isn't allowing me to add in a script that should work under normal circumstances. The script is intended for a companion mod, and is specifically for FollowerFiredYes.The script is as follows:

ShowMessage JVCKalevMessageLeave
ShowMessage JVCKalevMessagePerkRemoved
Set JVCKalevREF.Waiting to 0
Set JVCKalevREF.HasBeenHired to 0
Set JVCKalevREF.L38 to 0
Set JVCKalevREF.IsFollowingDefault to 0
Set JVCKalevREF.IsFollowingLong to 0
JVCKalevREF.SetPlayerTeammate 0
Player.RemovePerk FoxingCowboy
JVCKalevREF.evp

JVCKalevREF.MoveToMarkerWithFade JVCKalevHomeMarkerREF

If anyone can tell me what's wrong, provide me with an .EXE of the geck that they can confirm works, or just help with the coding of this mod, then that would be greatly appreciated.

Link to comment
Share on other sites

Look in: \Fallout New Vegas\EditorWarnings.log

I located it, but found it unusually empty. However I chose to instead look through the Message Log that the GECK Extender provides and found the error. Here it is:

 

 

Now that I've found the error, I need to figure out just what it means and how to remedy it.

Link to comment
Share on other sites

OK, I got the files mixed up. This reminded me where there's a setting for having the GECK show a pop-up message for script compile errors:

 

In file: Data\nvse\Plugins\geckextender.ini set this:

[Script]
...
bScriptCompileWarningPopup=1

The error you're getting means that it can't find the variable Waiting in the script attached to the NPC JVCKalevREF.

...

Link to comment
Share on other sites

OK, I got the files mixed up. This reminded me where there's a setting for having the GECK show a pop-up message for script compile errors:

 

In file: Data\nvse\Plugins\geckextender.ini set this:

[Script]
...
bScriptCompileWarningPopup=1

The error you're getting means that it can't find the variable Waiting in the script attached to the NPC JVCKalevREF.

...

Strange, I checked my AI wait package and it seems to be a-ok and it's in the correct window. Any other ideas as for what's causing the error?

Link to comment
Share on other sites

Do you have a variable named "Waiting" associated with the reference "JVCKalevREF" (like the variable "HasBeenHired")? The error is saying you don't, regardless of what you otherwise think is there.

 

Note references to specific lines in code often are just "approximately located at". Look at preceding lines for failure to complete matching parens or failing to close a block correctly. Variable names missing are more precise information.

 

-Dubious-

Link to comment
Share on other sites

Do you have a variable named "Waiting" associated with the reference "JVCKalevREF" (like the variable "HasBeenHired")? The error is saying you don't, regardless of what you otherwise think is there.

 

Note references to specific lines in code often are just "approximately located at". Look at preceding lines for failure to complete matching parens or failing to close a block correctly. Variable names missing are more precise information.

 

-Dubious-

Yes I do, I just checked and it's there. That makes things all the stranger to me because this should be working and yet isn't working one bit. Here are the images of the package in question if it will help.

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

Please show us the script you put on NPC JVCKalev. Look at a vanilla companion, like Veronica (and her VeronicaREF) to see how it's done. That script error has nothing to do with the AI package.

Here's the companion script I have written.

 

scn JVCKalevCompanionScript

short HasBeenHired
short L38
short DoOnce

int CombatStyleRanged
int CombatStyleMelee
int IsFollowingDefault
int IsFollowingLong
int FollowerSwitchAggressive
int Waiting

Begin GameMode
    If (DoOnce != 1)
        Set HasBeenHired to 0
        Set L38 to 0
        Set CombatStyleRanged to 1
        Set CombatStyleMelee to 0
        Set IsFollowingDefault to 0
        Set IsFollowingLong to 0
        Set FollowerSwitchAggressive to 0
        Set Waiting to 0
        Set DoOnce to 1
    EndIf
End

 

Hope it helps.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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