Loathsomes Monster/ScriptedPawn Tweak

Need some nice Mods? Here, you are right!

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby papercoffee » Thu Aug 16, 2018 1:06 am

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
papercoffee
Site Staff
 
Posts: 8690
Joined: Wed Jul 15, 2009 11:36 am
Location: Cologne, the city with the big cathedral.
Personal rank: coffee addicted !!!

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby Gustavo6046 » Thu Aug 16, 2018 9:34 pm

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.
Terrain apprentice.
User avatar
Gustavo6046
Masterful
 
Posts: 734
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Typing ghost

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby MrLoathsome » Sat Sep 15, 2018 8:10 am

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

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby Gustavo6046 » Sun Sep 16, 2018 5:11 am

Or you make a single string, with an infinite amount of serializable elements.
Terrain apprentice.
User avatar
Gustavo6046
Masterful
 
Posts: 734
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Typing ghost

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby Barbie » Sun Sep 16, 2018 12:19 pm

Gustavo6046 wrote:Or you make a single string, with an infinite amount of serializable elements.
Strings are limited to 1023 characters.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
Barbie
Godlike
 
Posts: 1463
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby OjitroC » Mon Sep 17, 2018 12:26 am

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
OjitroC
Inhuman
 
Posts: 863
Joined: Sat Sep 12, 2015 8:46 pm

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby Gustavo6046 » Wed Sep 19, 2018 9:21 pm

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?
Terrain apprentice.
User avatar
Gustavo6046
Masterful
 
Posts: 734
Joined: Mon Jun 01, 2015 7:08 pm
Personal rank: Typing ghost

Previous

Return to Modifications

Who is online

Users browsing this forum: No registered users and 1 guest