Ulfric1 Posted August 11, 2020 Share Posted August 11, 2020 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 More sharing options...
IsharaMeradin Posted August 11, 2020 Share Posted August 11, 2020 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 ObjectReferencesObjectReference extends Form because all ObjectReferences are formsForm does not extend anything because it is a top level scriptA 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 More sharing options...
Ulfric1 Posted August 12, 2020 Author Share Posted August 12, 2020 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 ObjectReferencesObjectReference extends Form because all ObjectReferences are formsForm does not extend anything because it is a top level scriptA 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 More sharing options...
IsharaMeradin Posted August 12, 2020 Share Posted August 12, 2020 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 More sharing options...
Ulfric1 Posted August 13, 2020 Author Share Posted August 13, 2020 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.flgC:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Perk.psc(1,0): Unknown user flag hiddenC:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Actor.psc(1,0): Unknown user flag hiddenC:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Actor.psc(1,0): Unknown user flag hiddenC:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Actor.psc(1,0): Unknown user flag hiddenC:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Perk.psc(1,0): Unknown user flag hiddenC:\Steam\SteamApps\common\Fallout 4\Data\Scripts\Source\User\Perk.psc(1,0): Unknown user flag hidden Link to comment Share on other sites More sharing options...
IsharaMeradin Posted August 13, 2020 Share Posted August 13, 2020 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. Link to comment Share on other sites More sharing options...
Zorkaz Posted August 14, 2020 Share Posted August 14, 2020 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 Link to comment Share on other sites More sharing options...
Ulfric1 Posted August 16, 2020 Author Share Posted August 16, 2020 I already have F4SE and it still gave me the errors though. The flag file is the base Quest.pex file right? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted August 16, 2020 Share Posted August 16, 2020 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 More sharing options...
Zorkaz Posted August 16, 2020 Share Posted August 16, 2020 Ulfric, if you want to I can upload them for you Link to comment Share on other sites More sharing options...
Recommended Posts