Loathsomes Monster/ScriptedPawn Tweak

Need some nice Mods? Here, you are right!

Loathsomes Monster/ScriptedPawn Tweak

Postby MrLoathsome » Mon Aug 06, 2018 9:18 pm

Goddamnit.

This crap is only going to support 256 in the list.
Attachments
LSPTweak_RC1.zip
Loathsomes ScriptedPawn Tweak RC1
(8.28 KiB) Downloaded 33 times
Last edited by MrLoathsome on Wed Aug 15, 2018 6:46 am, edited 4 times in total.
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 OjitroC » Tue Aug 07, 2018 1:44 pm

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

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby papercoffee » Tue Aug 07, 2018 11:31 pm

Very interesting. :tu:
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 MrLoathsome » Wed Aug 08, 2018 3:05 am

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.
Last edited by MrLoathsome on Wed Aug 15, 2018 7:01 am, edited 2 times in total.
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 » Wed Aug 08, 2018 4:18 am

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.
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 OjitroC » Wed Aug 08, 2018 3:47 pm

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

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby MrLoathsome » Fri Aug 10, 2018 6:33 am

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.
Last edited by MrLoathsome on Wed Aug 15, 2018 6:48 am, edited 1 time in total.
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 Dr.Flay » Sat Aug 11, 2018 7:31 pm

BTW. "OjitroC" we are very keen to see this populated list of yours.
User avatar
Dr.Flay
Site Staff
 
Posts: 3106
Joined: Thu Aug 04, 2011 9:26 pm
Location: Kernow, UK
Personal rank: Chaos Evangelist

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby MrLoathsome » Sun Aug 12, 2018 1:36 am

blarg
Last edited by MrLoathsome on Wed Aug 15, 2018 6:48 am, edited 1 time in total.
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 OjitroC » Sun Aug 12, 2018 2:47 pm

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

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby MrLoathsome » Sun Aug 12, 2018 5:45 pm

Whoops.

The Large Version of the thing a pointless deleted piece of shit.
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 MrLoathsome » Wed Aug 15, 2018 6:47 am

Epic Sucks.

Entire post revised. No change to the original shitty code.
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 papercoffee » Wed Aug 15, 2018 10:20 am

Wait what?
What happened?
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 sektor2111 » Wed Aug 15, 2018 5:55 pm

MrLoathsome wrote:Epic Sucks.

Entire post revised. No change to the original shitty code.
Can you share them problem if you don't mind ?
User avatar
sektor2111
Godlike
 
Posts: 3496
Joined: Sun May 09, 2010 6:15 pm
Location: vect(1,1,1)

Re: Loathsomes Monster/ScriptedPawn Tweak

Postby Barbie » Wed Aug 15, 2018 11:16 pm

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

Next

Return to Modifications

Who is online

Users browsing this forum: No registered users and 1 guest