Jump to content

Photo

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


  • Please log in to reply
11 replies to this topic

#1
Ulfric1

Ulfric1

    Old hand

  • Supporter
  • PipPipPip
  • 585 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?



#2
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 8,979 posts

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.



#3
Ulfric1

Ulfric1

    Old hand

  • Supporter
  • PipPipPip
  • 585 posts

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



#4
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 8,979 posts

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.



#5
Ulfric1

Ulfric1

    Old hand

  • Supporter
  • PipPipPip
  • 585 posts

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



#6
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 8,979 posts

It is looking for the flag file.  I'm not familiar with the FO4 structure to know where that should be located.  But it should have been included with the source scripts.



#7
Zorkaz

Zorkaz

    Resident poster

  • Premium Member
  • 2,532 posts

When you install F4SE (You don't have to install it completely) it comes with the base scripts unpacked

 

You can also export the base scripts from the Fallout4Main.ba2



#8
Ulfric1

Ulfric1

    Old hand

  • Supporter
  • PipPipPip
  • 585 posts

I already have F4SE and it still gave me the errors though.

 

The flag file is the base Quest.pex file right?



#9
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 8,979 posts

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.



#10
Zorkaz

Zorkaz

    Resident poster

  • Premium Member
  • 2,532 posts

Ulfric, if you want to I can upload them for you






Page loaded in: 1.032 seconds