Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace error with newer fallout 4 scriptnames in starfield #24

Open
RedxYeti opened this issue Oct 7, 2023 · 3 comments
Open

namespace error with newer fallout 4 scriptnames in starfield #24

RedxYeti opened this issue Oct 7, 2023 · 3 comments

Comments

@RedxYeti
Copy link

RedxYeti commented Oct 7, 2023

I'm trying to compile the script Fragments\TopicInfos\tif_ffclinicr02_001c2c28.psc for starfield

the scriptname is
ScriptName Fragments:TopicInfos:TIF_FFClinicR02_001C2C28 Extends TopicInfo Const hidden

--help doesnt have any info on changing the namespace

not sure how to compile these scripts with the newer fallout 4 style scriptnames

edit: not sure how possible this is but if no namespace is provided, it would be great if it checked the scriptname for : and automatically set the namespace if found or have an option to create the name space it expected instead of just erroring out

@nikitalita
Copy link
Collaborator

nikitalita commented Oct 9, 2023

edit: not sure how possible this is but if no namespace is provided, it would be great if it checked the scriptname for : and automatically set the namespace if found or have an option to create the name space it expected instead of just erroring out

Agreed; after struggling with PCompiler to test out its default behavior for this (it is incredibly unintuitive), I've decided it would be best to give the option to just recreate the expected namespace directory structure. I'll add this soon.

@RedxYeti
Copy link
Author

RedxYeti commented Oct 10, 2023

thank you for the option and I finally figured out what I was doing incorrectly.

I didnt realize -o was optimize

changing it to --output fixed my issue 🤦

I knew the issue was on my end because I got my dir to compile correctly once and then couldn't do it again, so I made this issue out of confusion.

thanks for all your work on this compiler!

@ForsakenShell
Copy link

ForsakenShell commented Oct 25, 2023

Just to add clarity to this:

You need to set the working directory to the root "scripts" directory and compile the scripts with the relative namespace path from that.

eg:
F:\MyMods\ProjectX\Scripts\Source\MyNamespace\ChildNamespace\TheFile.psc

The working directory needs to be:
"F:\MyMods\ProjectX\Scripts\Source"

The scripts must be compiled with the relative path from there:
"MyNamespace\ChildNamespace\TheFile.psc"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants