b3w4r3 Posted October 14, 2023 Share Posted October 14, 2023 When I package a mod that has scripts do I need to include the pex and psc? Link to comment Share on other sites More sharing options...
DieFeM Posted October 14, 2023 Share Posted October 14, 2023 The pex would be enough, but you can pack the psc just in case, if you loose your local copy you still have the one packed in the ba2, because if you need to edit the script you'll need it. Link to comment Share on other sites More sharing options...
b3w4r3 Posted October 14, 2023 Author Share Posted October 14, 2023 Well first mod I uploaded I only packaged the psc script files and so far no one has said it's not working. Second mod I did the same and one user commented the mod didn't work. After I added the pex it was working. Now I'm thinking I need to add the pex to the first mod also. Thanks for the help. Link to comment Share on other sites More sharing options...
iqoniq Posted October 14, 2023 Share Posted October 14, 2023 Well first mod I uploaded I only packaged the psc script files and so far no one has said it's not working. Second mod I did the same and one user commented the mod didn't work. After I added the pex it was working. Now I'm thinking I need to add the pex to the first mod also. Thanks for the help.You will need to add the pex files. The psc files are just your source code and can be opened in a text editor (I edit mine in Notepad++). The pex files are the compiled executables, and what works in the game. If you have a look in the script directory, and then in the source directory, there should be a corresponding psc for every pex that was supplied with the vanilla game (assuming you let the installer unzip the source files). You can take the psc away and the game works fine, but if you take the pex away then the quest scripts and so on won't function. As an asides, don't feel too bad about it, I completely left out the pex and psc of one of my first mods. Link to comment Share on other sites More sharing options...
b3w4r3 Posted October 14, 2023 Author Share Posted October 14, 2023 Well first mod I uploaded I only packaged the psc script files and so far no one has said it's not working. Second mod I did the same and one user commented the mod didn't work. After I added the pex it was working. Now I'm thinking I need to add the pex to the first mod also. Thanks for the help.You will need to add the pex files. The psc files are just your source code and can be opened in a text editor (I edit mine in Notepad++). The pex files are the compiled executables, and what works in the game. If you have a look in the script directory, and then in the source directory, there should be a corresponding psc for every pex that was supplied with the vanilla game (assuming you let the installer unzip the source files). You can take the psc away and the game works fine, but if you take the pex away then the quest scripts and so on won't function. As an asides, don't feel too bad about it, I completely left out the pex and psc of one of my first mods. Thank you. Link to comment Share on other sites More sharing options...
mastomak Posted October 15, 2023 Share Posted October 15, 2023 If you feel your code is good enough for others to look at, and you are uploading to nexus mods - please include your psc files. When learning to mod I have found it invaluable being able to look at other peoples code to understand how the game works. Link to comment Share on other sites More sharing options...
Recommended Posts