Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Help With Simple Script


ElisHere
 Share

Recommended Posts

I have this simple script I am trying to compile. Most of this comes from the Creation Kit wiki. I want to start simple and just attach the script to a chest or door. All I want it to do is print a message, so I know scripts are working and the event fired.

Scriptname MyHouse extends ObjectReference  


Event OnActivate(ObjectReference akActionRef)

  Debug.Trace("Activated by " + akActionRef)

EndEvent
The compiler output is below.
C:\Program Files (x86)\Notepad++>"C:\Program Files (x86)\Steam\steamapps\common\skyrim\Papyrus Compiler\PapyrusCompiler.exe" 

MyHouse.psc 

-i="C:\Program Files (x86)\Steam\steamapps\common\skyrimData\Scripts\Source" -o="C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts"

Starting 1 compile threads for 1 files...

Compiling "MyHouse"...

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MyHouse.psc(0,0): unable to locate script ObjectReference

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MyHouse.psc(3,33): unknown type objectreference

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MyHouse.psc(4,2): variable Debug is undefined

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\MyHouse.psc(4,8): none is not a known user-defined type

No output generated for MyHouse.psc, compilation failed.


Batch compile of 1 files finished. 0 succeeded, 1 failed.

Failed on MyHouse.psc


C:\Program Files (x86)\Notepad++>pause

Press any key to continue . . .

It looks to me like the environment is not completely setup. I followed the Notepad++ setup here, http://www.creationkit.com/Notepad%2B%2B_Setup. It was somewhat helpful. It would be nice to know what goes into TESV_Papyrus_Flags.flg and where it should be located if you try compiling from the CK.

Thanks

Eli

Link to comment
Share on other sites

I use the CK compiler. I have heard that some people cannot get the Notepad++ to compile scripts correctly.

On the Papyrus Manager script list, right-click on your script name and select 'Compile'.

I have gone the Script Manager route without any luck. When I create the script, it gets compiled immediately saying the file TESV_Papyrus_Flags.flg is missing. The script will not show up in the list, even after closing and reopening the window. The script file has been created when I check the script sources folder. I am uninstalling the CK and reinstalling. Maybe that will solve the problems.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...