Deleted5045300User Posted October 28, 2016 Share Posted October 28, 2016 I'm attempting to modify a script from the Undeath mod (which kindly provides the source) in order to fix a bug (technically a dirty workaround) locally. However, I cannot even compile the unmodified script. Here is the output from command prompt when attempting to compile via Notepad++:http://pastebin.com/vrNKijdy Attempting to compile via CK produces no output.Looking at the errors it would appear to me at first glance that types are being used in the script that haven't actually been defined.I'm coming from a C# background so I do have a vague idea of what I'm doing with this, but if I can't even get the unmodified source to compile then there is definitely something I am doing wrong. Link to comment Share on other sites More sharing options...
mrpwn Posted October 28, 2016 Share Posted October 28, 2016 (edited) Did you extract the script sources for Skyrim? They are in a file called Scripts.rar in \Skyrim\Data. If you have done so (seems like it based on the error messages), then the first error Unable to find flags file: TESV_Papyrus_Flags.flg would suggest that TESV_Papyrus_Flags.flg, which should be among the aforementioned script sources, is not where it should be (\Skyrim\Data\Scripts\Source). EDIT: As far as I know the unknown types are basically a result of the compiler's inability to successfully process other script sources while trying to compile the script you told it to compile. Many in-game objects (spells, weapons, NPCs, etc.) have base scripts that define what can be done with such an object and some of them extend (or inherit functions and events from) another script, which in turn may extend another script (and so forth). So the compiler is parsing your source file and ends up finding types (GlobalVariable, Actor, ActiveMagicEffect, etc) other than the base types (bool, float, int, and string) that require it to look for the corresponding script sources for the former types. The missing flags file is preventing the successful parsing of those types (e.g. GlobalVariable) when the compiler encounters certain keywords/flags that it is not sure what to do with. This parsing of other script sources is necessary so that all function calls and their return values can be resolved correctly, auto-casting of variables from one type to another can be done, etc. Edited October 28, 2016 by mrpwn Link to comment Share on other sites More sharing options...
Recommended Posts