DarkWolfModding Posted August 16, 2017 Share Posted August 16, 2017 (edited) The papyrus compiler just gives me a bunch of errors and wont compile my script. (I know for a fact my script has no errors) heres the error log --- ERRORS ---Keyword.psc(4,33): unknown type locationActor.psc(27,49): unknown type globalvariableActor.psc(28,34): globalvariable is not a known user-defined typeActor.psc(28,1): type mismatch on parameter 1 (did you forget a cast?)ActorBase.psc(4,15): unknown type classQuest.psc(12,66): unknown type globalvariableQuest.psc(13,12): globalvariable is not a known user-defined typeQuest.psc(18,34): globalvariable is not a known user-defined typeQuest.psc(18,40): cannot compare a none to a float (cast missing or types unrelated)Quest.psc(18,40): cannot relatively compare variables to NoneQuest.psc(18,90): globalvariable is not a known user-defined typeQuest.psc(18,96): cannot compare a none to a float (cast missing or types unrelated)Quest.psc(18,96): cannot relatively compare variables to NoneQuest.psc(135,58): unknown type globalvariableQuest.psc(140,10): unknown type locationQuest.psc(144,10): unknown type locationQuest.psc(148,10): unknown type locationQuest.psc(155,10): unknown type locationQuest.psc(158,62): unknown type locationQuest.psc(159,10): unknown type locationQuest.psc(169,31): unknown type locationQuest.psc(173,10): unknown type locationQuest.psc(176,33): unknown type locationQuest.psc(179,36): unknown type locationQuest.psc(185,28): unknown type locationQuest.psc(200,71): unknown type locationQuest.psc(205,10): unknown type locationQuest.psc(208,57): unknown type locationQuest.psc(229,10): unknown type locationQuest.psc(232,48): unknown type locationQuest.psc(236,33): unknown type locationQuest.psc(241,10): unknown type locationLeveledItem.psc(13,24): unknown type globalvariableLeveledItem.psc(14,40): unknown type globalvariableMagicEffect.psc(48,15): unknown type lightMagicEffect.psc(49,24): unknown type lightMagicEffect.psc(51,22): unknown type effectshaderMagicEffect.psc(52,35): unknown type effectshaderMagicEffect.psc(54,22): unknown type effectshaderMagicEffect.psc(55,39): unknown type effectshaderMagicEffect.psc(57,20): unknown type projectileMagicEffect.psc(58,34): unknown type projectileMagicEffect.psc(60,19): unknown type explosionMagicEffect.psc(61,32): unknown type explosionMagicEffect.psc(72,23): unknown type impactdatasetMagicEffect.psc(73,40): unknown type impactdatasetMagicEffect.psc(78,28): unknown type imagespacemodifierMagicEffect.psc(79,45): unknown type imagespacemodifierRace.psc(20,19): unknown type voicetypeRace.psc(23,52): unknown type voicetypeActorBase.psc(55,24): unknown type classActorBase.psc(104,19): unknown type voicetypeActorBase.psc(105,32): unknown type voicetypeShout.psc(4,21): unknown type wordofpowerShout.psc(8,46): unknown type wordofpowerActor.psc(179,17): unknown type packageAmmo.psc(9,20): unknown type projectileWeapon.psc(54,16): unknown type staticWeapon.psc(55,33): unknown type staticActor.psc(293,45): unknown type associationtypeActor.psc(454,28): unknown type idleActor.psc(457,38): unknown type idleActor.psc(721,32): unknown type locationActor.psc(721,51): unknown type locationActor.psc(733,29): unknown type packageActor.psc(737,30): unknown type packageActor.psc(741,27): unknown type packageGame.psc(176,41): unknown type wordofpowerGame.psc(251,57): unknown type imagespacemodifierGame.psc(257,31): unknown type wordofpowerGame.psc(263,32): unknown type wordofpowerObjectReference.psc(86,33): location is not a known user-defined typeObjectReference.psc(86,77): location is not a known user-defined typeObjectReference.psc(110,5): unknown type keyObjectReference.psc(112,5): type mismatch on parameter 1 (did you forget a cast?)ObjectReference.psc(112,29): cannot compare a none to a int (cast missing or types unrelated)ObjectReference.psc(113,3): type mismatch on parameter 1 (did you forget a cast?)ObjectReference.psc(242,18): unknown type locationObjectReference.psc(245,15): unknown type sceneObjectReference.psc(251,18): unknown type locationObjectReference.psc(269,13): unknown type keyObjectReference.psc(368,19): unknown type voicetypeObjectReference.psc(374,20): unknown type worldspaceObjectReference.psc(388,41): unknown type locationreftypeObjectReference.psc(465,90): unknown type encounterzoneObjectReference.psc(477,45): unknown type impactdatasetObjectReference.psc(517,19): unknown type topicObjectReference.psc(598,36): unknown type locationObjectReference.psc(600,10): unknown type locationObjectReference.psc(604,20): location is not a known user-defined typeObjectReference.psc(665,67): unknown type projectileObjectReference.psc(822,24): unknown type referencealiasObjectReference.psc(834,26): unknown type referencealias[]Keyword.psc(8,45): unknown type locationActiveMagicEffect.psc(188,67): unknown type projectileActiveMagicEffect.psc(308,32): unknown type locationActiveMagicEffect.psc(308,51): unknown type locationActiveMagicEffect.psc(320,29): unknown type packageActiveMagicEffect.psc(324,30): unknown type packageActiveMagicEffect.psc(328,27): unknown type packagemodCloudInventory_PlayerSpellSCRIPT.psc(0,0): unable to locate script debugmodCloudInventory_PlayerSpellSCRIPT.psc(6,17): unknown type messagemodCloudInventory_PlayerSpellSCRIPT.psc(29,12): Notification is not a function or does not existmodCloudInventory_PlayerSpellSCRIPT.psc(33,12): Notification is not a function or does not existmodCloudInventory_PlayerSpellSCRIPT.psc(39,37): message is not a known user-defined typemodCloudInventory_PlayerSpellSCRIPT.psc(39,4): type mismatch while assigning to a int (cast missing or types unrelated) heres the script im trying to compile: Scriptname modCloudInventory_PlayerSpellSCRIPT Extends ActiveMagicEffectimport gameimport utilityimport debugMessage Property msgCloudInventoryMenu AutoActor Property PlayerREF Auto;Crafting InventoryObjectReference Property CloudInventoryCont_Crafting Auto;Armor InventoryObjectReference Property CloudInventoryCont_Armor Auto;Weapon InventoryObjectReference Property CloudInventoryCont_Weapons Auto;Potion InventoryObjectReference Property CloudInventoryCont_Potions Auto;Books InventoryObjectReference Property CloudInventoryCont_Books Auto;Gems InventoryObjectReference Property CloudInventoryCont_Gems Auto;Jewlery InventoryObjectReference Property CloudInventoryCont_Jewlery Auto;Misc InventoryObjectReference Property CloudInventoryCont_Misc AutoEvent OnEffectStart(Actor akTarget, Actor akCaster) If(akCaster == PlayerREF) if(!IsInMenuMode() && !PlayerREF.IsInCombat()) Notification("Cloud Inventory: Loading up cloud storage...") wait(1) Menu() ElseIf(PlayerREF.IsInCombat()) Notification("Cloud Inventory: Cannot access your cloud inventory during combat") EndIF EndIFEndEventFunction Menu(Int aiButton = 0) aiButton = msgCloudInventoryMenu.Show() If(aiButton == 0);Inv Crafting CloudInventoryCont_Crafting.Activate(PlayerREF) ElseIf(aiButton == 1);Inv Armor CloudInventoryCont_Armor.Activate(PlayerREF) ElseIf(aiButton == 2);Inv Weapons CloudInventoryCont_Weapons.Activate(PlayerREF) ElseIf(aiButton == 3);Inv Potions CloudInventoryCont_Potions.Activate(PlayerREF) ElseIf(aiButton == 4);Inv Books CloudInventoryCont_Books.Activate(PlayerREF) ElseIf(aiButton == 5); Inv Gems CloudInventoryCont_Gems.Activate(PlayerREF) ElseIf(aiButton == 6); Inv Jewlery CloudInventoryCont_Jewlery.Activate(PlayerREF) ElseIf(aiButton == 7);Inv Misc CloudInventoryCont_Misc.Activate(PlayerREF) EndIfEndFunction I have recopied over my vanilla game backup and reinstalled the CK and SKSE and still nothing Edited August 16, 2017 by DarkWolfModding Link to comment Share on other sites More sharing options...
IsharaMeradin Posted August 16, 2017 Share Posted August 16, 2017 Some things to check in no particular order: #1 Length of script's file name. I have ran into issues with the length of a script's name when compiling within the Creation Kit. Not sure of the specific length but for some reason 29 sticks out in my head. You may want to try reducing the name and seeing if that does anything. Compiling with an external program like SublimeText avoids this issue. #2 Ensure that your scripts.rar file is properly unpacked so that the Creation Kit has access to the source scripts. If you need access to DLC scripts also make sure that you copy them into the correct source folder. The CK can only look into a single folder and as a result source files will need to be merged. When doing so, be sure to follow the same order as the ESM files so that the appropriate versions overwrite previous ones. i.e. Skyrim > Dawnguard > Hearthfires > Dragonborn FYI - Your script compiles just fine on my machine with SublimeText. The problem is most likely related to #2. PS. If it helps you any, you may utilize code ideas from any of my 'bag of holding' / 'inventory' related type mods. Link to comment Share on other sites More sharing options...
DarkWolfModding Posted August 16, 2017 Author Share Posted August 16, 2017 ill give it a try, I did move skyrim Special Edition directly over to my SSD ver from my HDD maybe it has something to do with that Link to comment Share on other sites More sharing options...
Recommended Posts