Jump to content

What does "parent Script doesn't exist" mean?


Ulfric1

Recommended Posts

I'm following the basic quest tutorial and I'm trying to add a new script to the quest. It won't let me create that script because "the parent script doesn't exist."

 

So what is a parent script, why do I need to reference it here, and should I look for a preexisting one or just create one?

Link to comment
Share on other sites

I'm writing from a Skyrim perspective just so you know...

 

I assume that by "parent script" you are referring to the script that your script extends or to put it another way, the script associated with the object type of the object holding your script.

 

Other than a few top level scripts, every script extends the capabilities from another higher level script or parent if you will.

 

Example:

Actor extends ObjectReference because all actors are ObjectReferences

ObjectReference extends Form because all ObjectReferences are forms

Form does not extend anything because it is a top level script

A script assigned directly to an actor can use any functions and events from the Actor, ObjectReference and Form scripts

 

The type of script to extend is determined by the object holding the script. If your script is on a quest, it will extend Quest. If the script is on a quest alias, it will extend ReferenceAlias.

 

When you create a script from scratch in the CK there should be an Extends option. Here you would select the script associated with the object type that will be holding your script. I noticed on FO4's Hello World tutorial that it does not mention the Extends information. Neither does the Skyrim version but it does contain an image showing the field.

 

Please link the tutorial that you are using, I couldn't find a basic quest tutorial on the FO4 side of the CK wiki. At least not one that went to an empty page.

Link to comment
Share on other sites

I'm writing from a Skyrim perspective just so you know...

 

I assume that by "parent script" you are referring to the script that your script extends or to put it another way, the script associated with the object type of the object holding your script.

 

Other than a few top level scripts, every script extends the capabilities from another higher level script or parent if you will.

 

Example:

Actor extends ObjectReference because all actors are ObjectReferences

ObjectReference extends Form because all ObjectReferences are forms

Form does not extend anything because it is a top level script

A script assigned directly to an actor can use any functions and events from the Actor, ObjectReference and Form scripts

 

The type of script to extend is determined by the object holding the script. If your script is on a quest, it will extend Quest. If the script is on a quest alias, it will extend ReferenceAlias.

 

When you create a script from scratch in the CK there should be an Extends option. Here you would select the script associated with the object type that will be holding your script. I noticed on FO4's Hello World tutorial that it does not mention the Extends information. Neither does the Skyrim version but it does contain an image showing the field.

 

Please link the tutorial that you are using, I couldn't find a basic quest tutorial on the FO4 side of the CK wiki. At least not one that went to an empty page.

I had a lot of trouble finding a good tutorial too. I found the one I mentioned linked in a Reddit post, its a Skyrim tutorial so there's some differences.

https://www.creationkit.com/index.php?title=Bethesda_Tutorial_Basic_Quest_Scripting

 

I'm using extends quest in the script, but its giving me that message about a parent script when I try to save it. Do I need to include the quest id in the extends box?

Link to comment
Share on other sites

Skyrim has a scripts.rar or scripts.zip file depending upon whether it is LE or SSE. FO4 may have something similar. Make sure that it is extracted and that the source scripts (PSC files) are in the appropriate directory for the FO4's CK to utilize. The compiler is basically complaining that it cannot find the PSC file for the script being referenced. By making sure that they are extracted and placed in the correct spot, the error should go away. But since I do not have FO4, I have no idea where the PSC files should go.

 

And no, never put any form IDs in the Extends box. That would definitely cause things to blow up, well more like not know what to do.

Link to comment
Share on other sites

I think it worked, it let me create a new script but it won't let me compile it. It gives me this.

 

<unknown>(0,0): Unable to find flags file: Institute_Papyrus_Flags.flg
C:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Perk.psc(1,0): Unknown user flag hidden
C:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Actor.psc(1,0): Unknown user flag hidden
C:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Actor.psc(1,0): Unknown user flag hidden
C:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Actor.psc(1,0): Unknown user flag hidden
C:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Perk.psc(1,0): Unknown user flag hidden
C:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Perk.psc(1,0): Unknown user flag hidden

Link to comment
Share on other sites

No. This is the file that the compiler is looking for: Institute_Papyrus_Flags.flg

 

Skyrim has a TESV_Papyrus_Flags.flg file in with the source files (PSC)

Presumably that is where FO4's flag file should be located too.

 

FYI - With regards to Papyrus, the game in question uses the PEX files while the editor in question uses the PSC files.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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