Page 1 of 2

Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Mon Aug 06, 2018 9:18 pm
by MrLoathsome
Goddamnit.

This crap is only going to support 256 in the list.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Tue Aug 07, 2018 1:44 pm
by OjitroC
This is very useful indeed :gj:

One question - in the LSPTweak.ini, the SPCList goes up to [511] - when (or, more likely, if) the number of unique spawned monsters/scripted pawns goes beyond that, will new lines in the list be automatically generated or will they need to be added manually?

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Tue Aug 07, 2018 11:31 pm
by papercoffee
Very interesting. :tu:

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Aug 08, 2018 3:05 am
by MrLoathsome
OjitroC wrote:One question - in the LSPTweak.ini, the SPCList goes up to [511] - when (or, more likely, if) the number of unique spawned monsters/scripted pawns goes beyond that, will new lines in the list be automatically generated or will they need to be added manually?


The size of that array is hardcoded. It would only need 1 number changed and a recompile to increase the list.
How large of a list you would need?

*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: Wed Aug 08, 2018 4:18 am
by Gustavo6046
Cool! I like the idea. :thuup:

Anyway, do you think linked lists could somehow be serialized into an array format for INI? That would be useful, and good, too.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Aug 08, 2018 3:47 pm
by OjitroC
MrLoathsome wrote: How large of a list you would need?
I use MonsterSpawn 303 which has 20 lists each with 60 slots for pawns (total of 1200 pawns). All of the lists are populated but not all of them are full; moreover not all of the pawns are unique in that there may be several of the same class. I haven't counted the number of unique pawns but I would say that a SPCList with 1,000 slots would be sufficient (though this would obviously take a long time to fill).

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Fri Aug 10, 2018 6:33 am
by MrLoathsome
I will post up a 2nd version that will support a larger list. Maybe tomorrow.

Everything else will be the same, so you will only need to change the 1st line of your current
ini file to use the new version.

**Edit: But that wont work because I am stupid.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sat Aug 11, 2018 7:31 pm
by Dr.Flay
BTW. "OjitroC" we are very keen to see this populated list of yours.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sun Aug 12, 2018 1:36 am
by MrLoathsome
blarg

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sun Aug 12, 2018 2:47 pm
by OjitroC
MrLoathsome wrote:See first post for version of this that will support 2048 items in the ini list.

That's excellent - just to note, though, that the revised .u isn't included in the update.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Sun Aug 12, 2018 5:45 pm
by MrLoathsome
Whoops.

The Large Version of the thing a pointless deleted piece of shit.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Aug 15, 2018 6:47 am
by MrLoathsome
Epic Sucks.

Entire post revised. No change to the original shitty code.

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Aug 15, 2018 10:20 am
by papercoffee
Wait what?
What happened?

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Aug 15, 2018 5:55 pm
by sektor2111
MrLoathsome wrote:Epic Sucks.

Entire post revised. No change to the original shitty code.
Can you share them problem if you don't mind ?

Re: Loathsomes Monster/ScriptedPawn Tweak

PostPosted: Wed Aug 15, 2018 11:16 pm
by Barbie
sektor2111 wrote:Can you share them problem if you don't mind ?
See his (edited) first post:
MrLoathsome wrote:This crap is only going to support 256 in the list.
Does the compiler throw an error?