joelday / papyrus-lang

📜Advanced language tools for the Papyrus scripting language.
Other
105 stars 19 forks source link

Don't know how to add a project to papyrus project explorer #86

Closed TheFBplus closed 5 years ago

TheFBplus commented 5 years ago

I know the question sounds stupid,but I have tried many ways and none of them seems to be right.My explorer is like this: image how can I add project like you did: image I open a folder directly but it looks like this: image And how can I compile the psc file?Am I suppose to use command line?Is there a more convenient way? I have read all the tutorial but I just could not find the solution.Can you give me some advice? BTW I'm so sorry for my awful English, It becomes even more difficult to write than to read.I hope you can understand what I am talking about.Thanks a lot.

joelday commented 5 years ago

@TheFBplus I only know one language! You have nothing to apologize for.

It will automatically discover .ppj files in the folder you have open. Otherwise, it will include scripts that can be found based on the paths in your CreationKit.ini.

We have an open issue to make it easier to create new .ppj files, especially because Skyrim developers are usually not familiar with them.

joelday commented 5 years ago

At one point in the past, the folder you had open was treated as a "project", but that led to a lot of confusing errors for developers who didn't want to open their scripts folder directly.

TheFBplus commented 5 years ago

Oh,I see.It's all about the .ppj files,and yes I haven't play any fallout games before,so I just skip that part in the tutorial,my bad :pensive: I will try it later when I come home from work.Thanks for your replay!

TheFBplus commented 5 years ago

I tried to create the .ppj file manually but it still didn't work: image image image Am I missing something?Since I am totally a novice to fallout game,my question may sounds stupid,forgive me:joy: BTW I I am very much looking forward to the upcoming new feature which will automatically create the .ppj file.

Scrivener07 commented 5 years ago
<?xml version='1.0'?>
<!-- http://www.creationkit.com/fallout4/index.php?title=Papyrus_Projects -->
<PapyrusProject
    xmlns="PapyrusProject.xsd"
    Flags="TESV_Papyrus_Flags.flg"
    Output="..\..\"
    Asm="Discard"
    Optimize="false"
    Release="false"
    Final="false"
>
    <Imports>
        <Import>.</Import>
        <Import>..\Base</Import>
    </Imports>
    <Folders>
        <Folder>.</Folder>
    </Folders>
</PapyrusProject>

It looks like you nearly got it. The main difference between ours is the TESV_Papyrus_Flags.flg. The institute flag file indicates the project is for fallout. Use TESV_Papyrus_Flags.flg for skyrim.

I was too lazy to retype your files paths from the images but your Imports and Folders elements looked good.

TheFBplus commented 5 years ago

@Scrivener07 Thanks a lot,finally it works 😄 image Just like coming to the 21st century haha,I can get rid of my notepad now.