Jump to content

New scripts fail everytime


wilwhitt56

Recommended Posts

Just started doing scripts for a mod im working on (still new to scripting) and ive been running into a problem everytime. when I make the script (most of the time just copying and pasting) It goes through this long list mostly involving magic effects and says it fails. Weirdly enough though, it stills saves the script. The most recent one was just an invisible wall script.

 

Scriptname OutofBoundsScript extends ObjectReference

Event OnTriggerEnter(ObjectReference akActionRef)
If(akActionRef == Game.GetPlayer())
Debug.Notification("You cannot go this way")
Endif
EndEvent

 

Which winds up giving me this message:

 

Starting 1 compile threads for 1 files...
Compiling "OutofBounds"...
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Keyword.psc(4,33): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Keyword.psc(8,45): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(27,49): unknown type globalvariable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(28,34): globalvariable is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(28,1): type mismatch on parameter 1 (did you forget a cast?)
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ActorBase.psc(4,15): unknown type class
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(12,66): unknown type globalvariable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(13,12): globalvariable is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(18,34): globalvariable is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(18,40): cannot compare a none to a float (cast missing or types unrelated)
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(18,40): cannot relatively compare variables to None
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(18,90): globalvariable is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(18,96): cannot compare a none to a float (cast missing or types unrelated)
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(18,96): cannot relatively compare variables to None
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(135,58): unknown type globalvariable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(140,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(144,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(148,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(155,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(158,62): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(159,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(169,31): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(173,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(176,33): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(179,36): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(185,28): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(200,71): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(205,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(208,57): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(229,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(232,48): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(236,33): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Quest.psc(241,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\LeveledItem.psc(13,24): unknown type globalvariable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\LeveledItem.psc(14,40): unknown type globalvariable
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(48,15): unknown type light
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(49,24): unknown type light
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(51,22): unknown type effectshader
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(52,35): unknown type effectshader
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(54,22): unknown type effectshader
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(55,39): unknown type effectshader
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(57,20): unknown type projectile
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(58,34): unknown type projectile
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(60,19): unknown type explosion
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(61,32): unknown type explosion
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(72,23): unknown type impactdataset
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(73,40): unknown type impactdataset
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(78,28): unknown type imagespacemodifier
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\MagicEffect.psc(79,45): unknown type imagespacemodifier
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Race.psc(20,19): unknown type voicetype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Race.psc(23,52): unknown type voicetype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ActorBase.psc(55,24): unknown type class
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ActorBase.psc(104,19): unknown type voicetype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ActorBase.psc(105,32): unknown type voicetype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(176,41): unknown type wordofpower
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(251,57): unknown type imagespacemodifier
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(257,31): unknown type wordofpower
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Game.psc(263,32): unknown type wordofpower
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Shout.psc(4,21): unknown type wordofpower
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Shout.psc(8,46): unknown type wordofpower
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(179,17): unknown type package
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Ammo.psc(9,20): unknown type projectile
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Weapon.psc(54,16): unknown type static
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Weapon.psc(55,33): unknown type static
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(293,45): unknown type associationtype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(454,28): unknown type idle
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(457,38): unknown type idle
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(721,32): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(721,51): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(733,29): unknown type package
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(737,30): unknown type package
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\Actor.psc(741,27): unknown type package
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(86,33): location is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(86,77): location is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(110,5): unknown type key
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(112,5): type mismatch on parameter 1 (did you forget a cast?)
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(112,29): cannot compare a none to a int (cast missing or types unrelated)
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(113,3): type mismatch on parameter 1 (did you forget a cast?)
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(242,18): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(245,15): unknown type scene
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(251,18): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(269,13): unknown type key
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(368,19): unknown type voicetype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(374,20): unknown type worldspace
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(388,41): unknown type locationreftype
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(465,90): unknown type encounterzone
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(477,45): unknown type impactdataset
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(517,19): unknown type topic
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(598,36): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(600,10): unknown type location
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(604,20): location is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(665,67): unknown type projectile
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(822,24): unknown type referencealias
C:\Program Files (x86)\Steam\steamapps\common\Skyrim\Data\Scripts\Source\ObjectReference.psc(834,26): unknown type referencealias[]
No output generated for OutofBounds, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on OutofBounds
Doesanyone know whats going on?
Link to comment
Share on other sites

To go into further detail:

For Skyrim LE - Extract the scripts.rar archive found in the Data folder to the data folder as all the necessary folders are inside the archive. If needed (after extraction), copy the PSC files from the Dawnguard sub-folder, Hearthfires sub-folder and Dragonborn sub-folder to the main source folder. Or set up a third party external text editor (Sublime Text, Notepad++, etc) to handle compiling scripts while using multiple source directories.

 

For Skyrim SE - Extract the scripts.zip archive found in the Data folder to the data folder as all the necessary folders are inside the archive. Bethesda already combined all the source scripts to a single folder due to SE containing all the DLC from the beginning.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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