Page 2 of 2

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Thu Aug 16, 2018 1:06 am
by papercoffee
Barbie wrote:
MrLoathsome wrote:This crap is only going to support 256 in the list.
Does the compiler throw an error?

MrLoathsome wrote:*Edit. When it gets over 255 (not 511), it will just delete any new array elements added while continuing to sort the list elements from 0-255.
No warnings or errors of course on compile or run-time. It is happy to make empty arrays with more than 256 elements for some reason. Writes em to the config file nice and empty.

I had forgotten about those limitations while I was writing this pointless thing.

To hell with it.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Thu Aug 16, 2018 9:34 pm
by Gustavo6046
Loathsome, can't you like work with it in chunks? Divide the large array into small pieces, and work with them separately. Make multiple "pages" in the config list. Something like that.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sat Sep 15, 2018 8:10 am
by MrLoathsome
Yes.

But is there any need or interest? Has anybody created a list bigger than 256 with this yet? (or even tried it? :roll: )

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sun Sep 16, 2018 5:11 am
by Gustavo6046
Or you make a single string, with an infinite amount of serializable elements.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sun Sep 16, 2018 12:19 pm
by Barbie
Gustavo6046 wrote:Or you make a single string, with an infinite amount of serializable elements.
Strings are limited to 1023 characters.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Mon Sep 17, 2018 12:26 am
by OjitroC
MrLoathsome wrote: Has anybody created a list bigger than 256 with this yet?

I started to use it, stopped when it became clear the larger version wouldn't work, and then recently went back to using the original version. With this version I have created a list with 256 monsters. The number of entries in the list does go above 256 depending on how many 'new' monsters are detected in the session but, on closing down UT and starting it up again later, anything after [255] is overwritten - thus far I have got up to 268 but this number will probably drop the next time I play.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Sep 19, 2018 9:21 pm
by Gustavo6046
Barbie wrote:
Gustavo6046 wrote:Or you make a single string, with an infinite amount of serializable elements.
Strings are limited to 1023 characters.


But you can use strings to maximize entries: 63 strings (chunks), in each of 32 arrays (banks). I guess that would be a nice way, wouldn't it be?