BreadMan161 Posted May 20, 2021 Share Posted May 20, 2021 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 More sharing options...
GamerRick Posted May 21, 2021 Share Posted May 21, 2021 Look in: \Fallout New Vegas\EditorWarnings.log Link to comment Share on other sites More sharing options...
BreadMan161 Posted May 22, 2021 Author Share Posted May 22, 2021 Look in: \Fallout New Vegas\EditorWarnings.logI 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 More sharing options...
GamerRick Posted May 22, 2021 Share Posted May 22, 2021 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=1The 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 More sharing options...
BreadMan161 Posted May 22, 2021 Author Share Posted May 22, 2021 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=1The 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 More sharing options...
dubiousintent Posted May 22, 2021 Share Posted May 22, 2021 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 More sharing options...
BreadMan161 Posted May 22, 2021 Author Share Posted May 22, 2021 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 More sharing options...
GamerRick Posted May 22, 2021 Share Posted May 22, 2021 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. Link to comment Share on other sites More sharing options...
BreadMan161 Posted May 22, 2021 Author Share Posted May 22, 2021 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 More sharing options...
GamerRick Posted May 22, 2021 Share Posted May 22, 2021 I don't see anything wrong with it. :confused: Link to comment Share on other sites More sharing options...
Recommended Posts