Difference between revisions of "TES5Edit Scripting Functions"
TES5Edit Scripting Functions (edit)
Revision as of 00:56, 16 September 2016
, 00:56, 16 September 2016→Pascal implementation: You actually can use TFileStream, but it's not intuitive. Use TStringList.SaveToStream, then decrease stream Size by 2 to remove unwanted CRLF.
imported>DavidJCobb (→Pascal implementation: no TFile either) |
imported>DavidJCobb (→Pascal implementation: You actually can use TFileStream, but it's not intuitive. Use TStringList.SaveToStream, then decrease stream Size by 2 to remove unwanted CRLF.) |
||
Line 460: | Line 460: | ||
* TES5Edit's Pascal implementation supports out parameters but does not handle them properly. It appears as though they always receive default values (e.g. false booleans, empty strings). Var parameters properly receive values. | * TES5Edit's Pascal implementation supports out parameters but does not handle them properly. It appears as though they always receive default values (e.g. false booleans, empty strings). Var parameters properly receive values. | ||
* TES5Edit's Pascal implementation, while allowing you to use the << and >> operators for bitshifting, will result in values of FFFFFFFFFFFFFFFF or 0 instead an actual result. Use the shr and shl operators instead to perform working bitshifting. `FormID shr 24` for load order, etc. | * TES5Edit's Pascal implementation, while allowing you to use the << and >> operators for bitshifting, will result in values of FFFFFFFFFFFFFFFF or 0 instead an actual result. Use the shr and shl operators instead to perform working bitshifting. `FormID shr 24` for load order, etc. | ||
The reference documentation below appears to match what TES5Edit provides. | The reference documentation below appears to match what TES5Edit provides. | ||
* [http://docwiki.embarcadero.com/Libraries/XE8/en/System.RegularExpressionsCore.TPerlRegEx TPerlRegEx], used for regular expressions. | * [http://docwiki.embarcadero.com/Libraries/XE8/en/System.RegularExpressionsCore.TPerlRegEx TPerlRegEx], used for regular expressions. |