Jump to content

Help to compile pex from Psc.


Recommended Posts

I am trying to edit a script to add an additional race to it so it works with my mod. The script was sent to me by the author of Zombie Walkers. It makes reference to the feral ghoul race in some instances to edit their behaviours .

 

I have a mod that adds different types of feral ghouls and some are a different race simply for a different blood colour.

 

When using his mod with mine the other race of Ferals behave strangely, just run around aimlessly and do not attack. I looked at the esp and nothing with faction or attack race is changed. So I am hoping if I add my extra race type to the script, where race type is referenced, it will work for a patch between the two mods.

 

Main problem is I have no idea on scripting. I can see how it works to an extent when reading the PSC file in Notepad++

 

So, I installed Papyrus++ which is made for Skyrim but I read will work for Fallout 4 if you edit the path directories in settings.

 

I got a bunch of errors for every line that contained the user flag Mandatory. I am guessing that is because its a skyrim tool and doesn't know that user flag.. or whatever.. is there a way to fix that? https://imgur.com/a/7lM1Vy6

 

Also, the Flag file path seems to be incorrect, this path is what I found someone had listed it as to work with fallout 4 but it seems strange that there is no actual path to a file location, just the name of the file itself.

 

Is this file no being found the reason for the unrecognised "mandatory" flag?

 

Remember, I have never attempted to open or edit a script before so please try to keep explanations in laymans terms. :smile:

Edited by Guest
Link to comment
Share on other sites

Many of the script commands have changed so skyrim stuff wont work.

 

There is a Fallout 4 syntax file (no I cant remember where) called something like PapyrusFO4.xml you can load as a custom language in Notepad++ to help find syntax errors.

 

To compile scripts, assuming default paths (if buggered around your on your own), save this as a .bat file and run it from the directory/folder your script is in with the script name:

 

cd %2
"C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Papyrus Compiler\PapyrusCompiler.exe" %1 -f="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\Base\Institute_Papyrus_Flags.flg" -i="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User;C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\Base" -o="C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts" 
pause

If you can figure out how to add the .BAT file as a Menu:Run command to notepad++ you can run it from the editor (no, I dont remember howto either).

 

ps If you add or change script properties you will need to update the associations in the relevant CK script attached form.

Link to comment
Share on other sites

I figured out that it was just not locating the flag file because I had not unzipped the files found in \Fallout 4\Data\Scripts\Source\Base

 

It compliled without error after that. I am not familiar with CK much, but I notice in Fo4Edit, things that reference a script have a VMAD entry. Virtual Machine adapter or something.

 

I think I remember reading that has to be done in CK for it to work though?

Link to comment
Share on other sites

Hmm. Not sure exactly what it was I needed to do but maybe coz I added this script to a patch or something, idk? but just putting the edited script into a folder named Scripts with the Patch mod seemed to work.

 

Its some Quest alias script that is meant to Run on start. I didn't edit the original in the Zombie Walkers mod but copied it, added the edits and placed it in the patch lower down the load order, So I guess, the zombie walkers is telling it to run and when, but it if using the file with the same name that is lowest in the load order maybe?

 

Idk I only tested until I came across the first Rotted Feral Ghoul (the other race) and it seemed to work.

 

I kinda wish I had more understanding of what I had actually done though. lol

Link to comment
Share on other sites

  • Recently Browsing   0 members

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