Loathsomes Monster/ScriptedPawn Tweak

Need some nice Mods? Here, you are right!
User avatar
papercoffee
Godlike
Posts: 10671
Joined: Wed Jul 15, 2009 11:36 am
Personal rank: coffee addicted !!!
Location: Cologne, the city with the big cathedral.

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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.
User avatar
wallabra
Godlike
Posts: 1481
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Resident Wallaby
Discord: wallabra
Location: Porto Alegre, Brazil

Re: Loathsomes Monster/ScriptedPawn Tweak

Post by wallabra »

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.
boing boing
MrLoathsome
Inhuman
Posts: 958
Joined: Wed Mar 31, 2010 9:02 pm
Personal rank: I am quite rank.
Location: MrLoathsome fell out of the world!

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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: )
blarg
User avatar
wallabra
Godlike
Posts: 1481
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Resident Wallaby
Discord: wallabra
Location: Porto Alegre, Brazil

Re: Loathsomes Monster/ScriptedPawn Tweak

Post by wallabra »

Or you make a single string, with an infinite amount of serializable elements.
boing boing
User avatar
Barbie
Godlike
Posts: 3252
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Loathsomes Monster/ScriptedPawn Tweak

Post by Barbie »

Gustavo6046 wrote:Or you make a single string, with an infinite amount of serializable elements.
Strings are limited to 1023 characters.
"If Origin not in center it be not in center." --Buggie
User avatar
OjitroC
Godlike
Posts: 3802
Joined: Sat Sep 12, 2015 8:46 pm

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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.
User avatar
wallabra
Godlike
Posts: 1481
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Resident Wallaby
Discord: wallabra
Location: Porto Alegre, Brazil

Re: Loathsomes Monster/ScriptedPawn Tweak

Post by wallabra »

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?
boing boing