SmartHarvestSE icon indicating copy to clipboard operation
SmartHarvestSE copied to clipboard

SKSE array usage

Open SteveTownsend opened this issue 1 year ago • 0 comments

Input in Nexus DM from user subhuman0100

I see you found the CreatexArray functions SKSE added, but if you look at Utility.PSC down at the bottom they also added several so far undocumented functions to resize arrays without losing data in them.

Using them would greatly simplify the code in Smart Harvest, however there would be a fair bit of rewriting current code to do so. So I'm not going to say you should or should not use resizing, I'll leave that up to you.

What I will say, is if you wish to resize arrays and need some examples or other help in figuring out how to do so (there's some, but not much documentations in the utility.psc source) I'm willing to help where I can.

On a similar note, SKSE bool arrays are broken and have been since day one. The changelog here:

https://github.com/i...64_whatsnew.txt

Shows there's a fix in upcoming v2.2.0 which is still in testing. Current release version is 2.0.20

The bool array used in Smart Harvest should be considered to be suspect, at best. In the current versions, contents of all elements can be "flipped" to true when the value of any element is changed. IDK if that's of any help to you or not, you know your mod better than I do. But it may explain some of the errors being reported.

SteveTownsend avatar Jan 03 '23 13:01 SteveTownsend