Loathsomes Monster/ScriptedPawn Tweak

Need some nice Mods? Here, you are right!
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!

Loathsomes Monster/ScriptedPawn Tweak

Post by MrLoathsome »

Goddamnit.

This crap is only going to support 256 in the list.
You do not have the required permissions to view the files attached to this post.
Last edited by MrLoathsome on Wed Aug 15, 2018 6:46 am, edited 4 times in total.
blarg
User avatar
OjitroC
Godlike
Posts: 3750
Joined: Sat Sep 12, 2015 8:46 pm

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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?
User avatar
papercoffee
Godlike
Posts: 10529
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 »

Very interesting. :tu:
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 »

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

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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.
"Everyone is an idea man. Everybody thinks they have a revolutionary new game concept that no one else has ever thought of. Having cool ideas will rarely get you anywhere in the games industry. You have to be able to implement your ideas or provide some useful skill. Never join a project whose idea man or leader has no obvious development skills. Never join a project that only has a web designer. You have your own ideas. Focus on them carefully and in small chunks and you will be able to develop cool projects."

Weapon of Destruction
User avatar
OjitroC
Godlike
Posts: 3750
Joined: Sat Sep 12, 2015 8:46 pm

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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).
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 »

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
User avatar
Dr.Flay
Godlike
Posts: 3351
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK

Re: Loathsomes Monster/ScriptedPawn Tweak

Post by Dr.Flay »

BTW. "OjitroC" we are very keen to see this populated list of yours.
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 »

blarg
Last edited by MrLoathsome on Wed Aug 15, 2018 6:48 am, edited 1 time in total.
blarg
User avatar
OjitroC
Godlike
Posts: 3750
Joined: Sat Sep 12, 2015 8:46 pm

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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.
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 »

Whoops.

The Large Version of the thing a pointless deleted piece of shit.
blarg
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 »

Epic Sucks.

Entire post revised. No change to the original shitty code.
blarg
User avatar
papercoffee
Godlike
Posts: 10529
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 »

Wait what?
What happened?
User avatar
sektor2111
Godlike
Posts: 6442
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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 ?
User avatar
Barbie
Godlike
Posts: 2955
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Loathsomes Monster/ScriptedPawn Tweak

Post 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?
"If Origin not in center it be not in center." --Buggie