Jump to content

[LE] creation kit script fragment issue


Tasheni

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...