Jump to content

Question about Papyrus Compile Error


RadoGamer

Recommended Posts

Hey People I hope everyone is having a good summer, I've been working on a couple of follower mods and I'm having a problem with a compile error on the recruit, dismiss fragments.

 

All the other scripts are compiling fine the affinityscenehandler script is compiling fine so I know it's not my system. I'm using the fragments from Seddons tutorial which I've used in the past without issue, these are the fragments. My alias property is set correctly and was created without issue

 

 

FollowersScript.GetScript().SetCompanion(Nameofmod.GetActorReference())

FollowersScript.GetScript().DismissCompanion(Nameofmod.GetActorReference())

 

this is the error.

 

 

 

Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "AA_:Fragments:Quests:QF_00ComChildJamaica_01006AEE"...
C:\Users\Johnnygnote\AppData\Local\Temp\PapyrusTemp\AA_\Fragments\Quests\QF_00ComChildJamaica_01006AEE.psc(7,41): variable Jamaica is undefined
C:\Users\Johnnygnote\AppData\Local\Temp\PapyrusTemp\AA_\Fragments\Quests\QF_00ComChildJamaica_01006AEE.psc(7,49): none is not a known user-defined script type
C:\Users\Johnnygnote\AppData\Local\Temp\PapyrusTemp\AA_\Fragments\Quests\QF_00ComChildJamaica_01006AEE.psc(7,49): type mismatch on parameter 1 - cannot pass a void to a actor
No output generated for AA_:Fragments:Quests:QF_00ComChildJamaica_01006AEE, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on AA_:Fragments:Quests:QF_00ComChildJamaica_01006AEE

 

The pex scripts are actually showing up in the Script folder after I compile so I'm not sure whats going on. When I go to my APPData folder and look in the designated folder there's nothing there. Should I make that folder read write if it's not?

 

I'm running Windows 10 pro. Any insight would be appreciated.

 

Thanks

Link to comment
Share on other sites

Sorry, I solved the issue here is the correct script, after looking closer at the error I checked other scripts in the CK for the missing variable. Here is the correct fragment.

 

Recriut - FollowersScript.GetScript().SetCompanion(Alias_Jamaica.GetActorReference())

Dismiss - FollowersScript.GetScript().DismissCompanion(Alias_Jamaica.GetActorReference())

 

Alias_ was the missing variable.

 

Thanks anyway,

Link to comment
Share on other sites

  • Recently Browsing   0 members

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