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...

Errors Everywhere


Dogrules23
 Share

Recommended Posts

Whilst compiling a script for my Skyrim mod, I get the following message:

Starting 1 compile threads for 1 files...
Compiling "TIF__0200A5FA"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script property D23LoreBook already defined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script variable ::D23LoreBook_var already defined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script property D23LoreBook already has a get function defined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__0200A5FA.psc(19,14): script property D23LoreBook already has a set function defined
No output generated for TIF__0200A5FA, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on TIF__0200A5FA
 

 

Here is my script:

GetOwningQuest().SetStage(20)
Alias_D23UlgronYulhhorn.GetReference().RemoveItem(Alias_D23BookLore.GetReference(),1,False,Game.GetPlayer())
debug.notification("Book added")

Link to comment
Share on other sites

2 hours ago, Dogrules23 said:

Here is my script:

GetOwningQuest().SetStage(20)
Alias_D23UlgronYulhhorn.GetReference().RemoveItem(Alias_D23BookLore.GetReference(),1,False,Game.GetPlayer())
debug.notification("Book added")

It's preferable that you put only

GetOwningQuest().SetStage(20)

in your TIF. Put the rest on the stage 20 of your quest after adding the properties. Not sure what you want to do with your code though.

Link to comment
Share on other sites

1 minute ago, ladyonthemoon said:

It's preferable that you put only


GetOwningQuest().SetStage(20)

in your TIF. Put the rest on the stage 20 of your quest after adding the properties. Not sure what you want to do with your code though.

I just changed the script to what you said and I get the same error. With that code I want to give the book the NPC has to the player.

Link to comment
Share on other sites

I did as you said and this is what I get now:

 

Starting 1 compile threads for 1 files...
Compiling "QF_D23HagnonQuest_02003456"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,0): variable Alias_D23UlgronYulhhorn is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,24): none is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,39): none is not a known user-defined type
No output generated for QF_D23HagnonQuest_02003456, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on QF_D23HagnonQuest_02003456
 

Link to comment
Share on other sites

1 minute ago, Dogrules23 said:

I did as you said and this is what I get now:

Starting 1 compile threads for 1 files...
Compiling "QF_D23HagnonQuest_02003456"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,0): variable Alias_D23UlgronYulhhorn is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,24): none is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_D23HagnonQuest_02003456.psc(53,39): none is not a known user-defined type
No output generated for QF_D23HagnonQuest_02003456, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on QF_D23HagnonQuest_02003456
 

What's the content of your code?

Link to comment
Share on other sites

12 minutes ago, Dogrules23 said:

This is in Quest Stages where it should be:

SetObjectiveCompleted(5)
SetObjectiveDisplayed(10)
Alias_D23UlgronYulhhorn.GetReference().RemoveItem(Alias_D23BookLore.GetReference(), 1, False, Game.GetPlayer())
debug.notification("Book added")

Did you create the Alias "D23UlgronYulhhorn"?

Link to comment
Share on other sites

More importantly did you add "D23UlgronYulhhorn" as a Property because that sounds like its missing.

ReferenceAlias property D23UlgronYulhhorn Auto

Also papyrus fragments require a little special handling, run the script through the compiler, it'll report errors and won't compile but do you want to save anyway, choose yes, there should be a script source file you can open. Open it and add the property, save, recompile.

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...