stonefisher Posted July 5, 2017 Share Posted July 5, 2017 I compiled this script a few days ago just fine. Mod was released and all is fine. Until I want to update the script to deal with a bug that was found. Scriptname ATaAH_Quest_Script extends Quest GlobalVariable Property ATaAH_GlobalVariable Auto Perk Property ATaAH_Perk Auto Event OnInit() RegisterForRemoteEvent(Game.getplayer(),"OnGetUp") Game.getplayer().addperk(ATaAH_Perk) endevent Event Actor.OnGetUp(Actor akSender, ObjectReference akFurniture) If (akFurniture.getbaseobject() is Terminal) Game.GetPlayer().SetScale(ATaAH_GlobalVariable.getvalue()) endif endEvent I cant compile it anymore. This is the exact same script from the mod that was released and it works perfectly. But now when I try to compile the script I get this message: Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "ATaAH_Quest_Script.psc"...H:\SteamLibrary\steamapps\common\Fallout 4\Data\Scripts\Source\User\ATaAH_Quest_Script.psc(4,14): cannot name a variable or property the same as a known type or scriptH:\SteamLibrary\steamapps\common\Fallout 4\Data\Scripts\Source\User\ATaAH_Quest_Script.psc(8,26): ATaAH_Perk is not a variableNo output generated for ATaAH_Quest_Script.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on ATaAH_Quest_Script.psc Any ideas why? I looked up the error message but the explanations did not seem relevant. Link to comment Share on other sites More sharing options...
shavkacagarikia Posted July 5, 2017 Share Posted July 5, 2017 A bit weird. You aren't naming the property the same name as known type. Check if you have a script with the same name as property name. Link to comment Share on other sites More sharing options...
stonefisher Posted July 5, 2017 Author Share Posted July 5, 2017 Yes I do. My own apparently. Weird, both scripts run correctly. Looks like I should be more descriptive in my naming. Link to comment Share on other sites More sharing options...
Recommended Posts