Difference between revisions of "User:DavidJCobb"

Jump to navigation Jump to search
309 bytes added ,  16:20, 10 August 2014
m
imported>DavidJCobb
(→‎Scratchpad: noting that import sucks)
imported>DavidJCobb
Line 4: Line 4:


*[[Script File Structure#Import|Import]] is unreliable, and I don't know what makes it break. It works in some cases, but in others, it completely fails to import global functions from the target file.
*[[Script File Structure#Import|Import]] is unreliable, and I don't know what makes it break. It works in some cases, but in others, it completely fails to import global functions from the target file.
**Errors will not be generated when compiling in the Creation Kit. You'll only be able to detect the problem by checking the Papyrus logs, which will contain something like<br/><code>Error: Method ImportedFunctionName not found on EntityThatHasAScriptThatImportsStuff. Aborting call and returning None</code>
**It's consistent: if it doesn't work for a file, then it will probably never work for that file (barring massive changes).
**It's consistent: if it doesn't work for a file, then it will probably never work for that file (barring massive changes).
**You can work around this by referencing all functions in the script to be imported as methods, e.g. ''ScriptToBeImported.FunctionName()''.
**You can work around this by referencing all functions in the script to be imported as methods, e.g. ''ScriptToBeImported.FunctionName()''.
Anonymous user

Navigation menu