Tasheni Posted November 13, 2021 Share Posted November 13, 2021 This issue is driving me nuts:ck says: Warning: unable to load fragment source... or Code not loaded. I have this issue since years and simply ignored it. I edited the scripts directly and compiled them and that worked surprisingly good. But I had to install everything new and now ck compiles the fragments when closing dialogue or packages and inserts the warning under the fragment code inside the scripts and that, of course, gives compiling errors. I have to delete then the fragments, delete everything in the script and write the fragment code new and compile new. Sometimes I had to delete the script first from the source and script folders and then recompile everything. This is very annoying and tiring and prevents me from making progress. I doublechecked that the paths in the ScriptCompiling.bat are correct and that the scripts are all in the source folder. Why can't ck load the fragments? Any suggestion is welcome. Link to comment Share on other sites More sharing options...
agerweb Posted November 13, 2021 Share Posted November 13, 2021 Yes, it is very irritating; given I have many hundreds of script fragments this problem turns up a fair amount. It is usually after making a change to a particulalr fragment; the CK doesn't write the changes to the fragment to the quest script (ie the psc file becomes different from the fragment in the quest). I have noticed one of two things happen when reopening the quest. The CK reports 'code not loaded' because the psc file is different from the quest or it does nothing and leaves you to wonder why something is not working. You can see this in TesVEdit which will build the record based on the fragments in psc file not what it reads in your quest fragment. I have solved the problem in two different ways: 1. Force a script recompile by placing a new entry in a stage with no fragment (and if you had code not loaded replace that fragment as well), I just add a comment in stage 0 or something like that. Close the quest and open it again.2. If this doesn't work, then delete the stage, close and reopen the quest, recreate the stage and insert your code fragment. This is definitely a bug not a feature. Link to comment Share on other sites More sharing options...
Tasheni Posted November 13, 2021 Author Share Posted November 13, 2021 Thank you, agerweb. This is very bad news. It's so annoying that things that run for years suddenly stops working and I guess this is one reason. So starting all over again. :wallbash: Link to comment Share on other sites More sharing options...
Sphered Posted November 17, 2021 Share Posted November 17, 2021 For what its worth it doesnt break anything if the CK complains about an otherwise working function. It expects to see certain syntax in the psc so if it doesnt like what you rearranged their layout or syntax it will cough up that lovely feature Link to comment Share on other sites More sharing options...
Recommended Posts