AtomsChosen Posted December 4, 2023 Share Posted December 4, 2023 (edited) I was watching this video try to learn how to script little by little. I followed the video and came up with this script: _______________________________________________________ Scriptname Z100_ShipmentInjectionsScr extends Quest MiscObject Property shipment_NuclearMaterial_small auto Const LeveledItem Property LL_Junk_Large auto Const Event OnQuestInit() LL_Junk_Large.AddForm(shipment_NuclearMaterial_small, 1, 1) EndEvent _________________________________________________________________________ I have it placed in the picture seen below here under C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User I hit compile Papyrus Scripts and it runs for about 15 seconds then says Compiling "[Script Name Removed]"... No output generated for [Script Name], compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed. Failed on [Script Name] The script seems like it should be working, but it isn't. Idk why. Edited December 4, 2023 by RayoftheSun Link to comment Share on other sites More sharing options...
Fantafaust Posted December 5, 2023 Share Posted December 5, 2023 Is there any particular reason not to use the CK to make and compile the script? Link to comment Share on other sites More sharing options...
AtomsChosen Posted December 5, 2023 Author Share Posted December 5, 2023 I am using the CK to attempt to compile the scripts. It just doesn't seem to be working for whatever reason. Link to comment Share on other sites More sharing options...
Fantafaust Posted December 5, 2023 Share Posted December 5, 2023 You made the script outside of the CK though, didn't you? Unless I read it wrong. I have it placed in the picture seen below here under C:\Program Files (x86)\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User Have you tried making a quest in an .esp and creating the script through the CK itself? Link to comment Share on other sites More sharing options...
AtomsChosen Posted December 5, 2023 Author Share Posted December 5, 2023 Ill give this a try. I didn't think it mattered if I made it outside the CK or not. Link to comment Share on other sites More sharing options...
DiodeLadder Posted December 5, 2023 Share Posted December 5, 2023 Hello RayoftheSun, It might be that the compiler doesn't have the permission to write files in the Program Files directory? For the games you want to mod, I think it's best to install them outside of Program Files folder because that directory is protected. I don't know for sure if it is the cause in this particular case, but I think this install location will cause problems sooner or later. Link to comment Share on other sites More sharing options...
AtomsChosen Posted December 5, 2023 Author Share Posted December 5, 2023 (edited) Well that is pretty bad news. If I have to change the location of my installation then this means I will have to go through all of the nifs in my custom mods and specify a new path for every single one of them. Is there a way to just give it permission? Edited December 5, 2023 by RayoftheSun Link to comment Share on other sites More sharing options...
DiodeLadder Posted December 5, 2023 Share Posted December 5, 2023 You should use material files for assigning your textures. The old Skyrim method like you are doing would work, but that would create extra work if you are doing many assets. Material files can hold all the necessary texture paths, and parameters in a reusable way. You can use those files to create material swaps in CK as well. I don't recommend doing it the old way. Also, the file path doesn't need to be full. As you can see in the screenshot, my material file path only includes the path within the Data folder. I'm pretty sure the game only cares about path within the Data folder, since some of the vanilla assets have the full file path of Bethesda developers' drives, but still loads fine on my machine. Like I said, I'm not sure if the install location is your problem, but just that it MIGHT be the cause and I wouldn't recommend it. I don't think opening up permissions is a good idea, as it would make your machine vulnerable. Link to comment Share on other sites More sharing options...
AtomsChosen Posted December 5, 2023 Author Share Posted December 5, 2023 Interesting. I wondering exactly why BGSM were even used when this old method seems to work just fine. I had a feeling it had to do with material swaps, but I didn't think about all the time saving. In future mods Ill use BGSMs. Its also a relief to know that if I change the location of my steam folder then I can still have those nifs working. I am going to first try installing fallout 4 on another computer then entering the CK to see if the script compiles properly. What some other possible causes for why this script is not working? I tried compiling this directly in the CK then edited it with the existing script, but keeping the assigned name. Got the same result. Link to comment Share on other sites More sharing options...
South8028 Posted December 5, 2023 Share Posted December 5, 2023 For fo4 it doesn't matter where the game is located physically. You can even, for example, copy the game and ini to a drive, for example F, format C, reinstall Windows, return the ini, run fo4 on drive F and play right away. Link to comment Share on other sites More sharing options...
Recommended Posts