Jump to content

Photo

Arrays, how to deal with 128+ item overflow

papyrus arrays

  • Please log in to reply
2 replies to this topic

#1
RaidersClamoring

RaidersClamoring

    Enthusiast

  • Premium Member
  • 166 posts

Annoyingly enough, papyrus won't let you populate arrays with more than 128 items. Is there some method to catch the overflowing entries and store them elsewhere, like in a predeclared second array and beyond, when you use functions like GetInventoryItems()? 



#2
DlinnyLag

DlinnyLag

    Enthusiast

  • Members
  • PipPip
  • 114 posts

If you use GetInventoryItems then this mean that you use F4SE.

You can use LL FourPlay plugin to adjust 128 limit to higher value. But the value in under user's control.

Actually, I do not see any reason why 128 limit can be applied to GetInventoryItems result. Did you face the problem or just curious?

 

Another option to use arrays without such limits - use F4DS


Edited by DlinnyLag, 13 July 2022 - 06:05 PM.


#3
RaidersClamoring

RaidersClamoring

    Enthusiast

  • Premium Member
  • 166 posts

The reason would be that inventory items can be more than 128 and afaik there is no way to intercept the array-populating process to redirect it in some way, hence the question.

I'm no doubt going to face the problem. Currently working on a crude NewGame+ solution.

Going to take a look at that LL FourPlay, it seems really useful. I wonder if they will let me include it in something later published on Nexus though... I would guess not.

F4DS looks promising!







Also tagged with one or more of these keywords: papyrus, arrays

IPB skins by Skinbox
Page loaded in: 1.056 seconds