Page 1 of 2

(b28) Out-of-depth monster

Posted: Mon Jun 20, 2011 1:38 am
by Hedrachi
Found two hive mothers on the ritch lair level 3 in the Yeek ritch starting area.
One was the boss and was supposed to be there, the other was a level 38 elite like the ones in Eruan.

Re: (b28) Out-of-depth monster

Posted: Tue Jul 05, 2011 9:28 pm
by darkgod
Can you send me a savefile when this happpens please ? I generated thousands of npcs and couldnt get it

Re: (b28) Out-of-depth monster

Posted: Tue Jul 05, 2011 10:25 pm
by Hedrachi
Will try. But yeah, like you said, it's really, really, really rare. Would almost guess it requires the name to be identical to something that CAN spawn, like it was there.

Re: (b28) Out-of-depth monster

Posted: Tue Jul 05, 2011 10:59 pm
by madmonk
I've had this happen to me too!

See what I can do.

Re: (b28) Out-of-depth monster

Posted: Sat Jul 09, 2011 8:13 pm
by Hedrachi
Happened again. Sent savefile in an email to you, dg. Same place, different kind of ritch though. :/

Re: (b28) Out-of-depth monster

Posted: Thu Jul 14, 2011 9:45 pm
by Hedrachi
*giggles madly*

Bump for finding a level 25 ritch larva in ritch tunnels 1 as a level 1 yeek, in b29. Did I get the one cursed copy that keeps spitting out ritches that should never spawn in the yeek intro area?
Want the save, dg?

Maybe to perma-kill this bug, you'd need to remove

Code: Select all

load("/data/general/npcs/ritch.lua", rarity(0))
and replace it with a ritch_youngling.lua file that doesn't have any of the late-game ritches in it.

Speaking of, why does that file need to be loaded if the only ritches that are supposed to show up are defined in the npcs.lua file for the zone?

Re: (b28) Out-of-depth monster

Posted: Thu Jul 14, 2011 11:12 pm
by darkgod
To get the base definition, but it shuoldnt be a problem, the zone actor generator has a max_ood=2; and it works in all other starting zones except here ... dunno why :/

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 12:19 am
by Hedrachi
Are there any other zones where you're using a npc file just for the definition but not allowing any of the monsters it has? Maybe it'd stop doing this if you moved the chitinous ritch, ritch impaler, and ritch flamespitter to the ritch.lua file, maybe slap a max level of 7-10ish on them if you don't want them showing up in lategame.

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 7:24 am
by darkgod
Well the other starting zones all use normal files, like trollmire imports all trolls but some of those are high level and the generator correctly filters them out

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 1:24 pm
by bricks
It might be intended, but I've twice encountered a high-level leven cultist in the area just prior to the boss room in the Rhaloren Camp. (I think it's always the south-east room?) I thought it might be related to the issue with the ritches.

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 1:47 pm
by darkgod
nope not the same, and this one should be fixed in b29

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 4:27 pm
by Hedrachi
darkgod wrote:Well the other starting zones all use normal files, like trollmire imports all trolls but some of those are high level and the generator correctly filters them out
Yeah, that's what I'm trying to say, heh... there are no ritches in ritch.lua that should spawn in the tunnel, and as far as I can tell this is the only time that happens. So -maybe- sticking everything but the boss from the npcs.lua file into the ritch.lua file in the general/npcs directory might solve it, as could a generic try/catch statement if lua supports those. (if a massively ood monster tries to spawn, tell it to retry with a different level, otherwise just plunk an extra chitinous ritch in or something, at an appropriate level).

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 6:15 pm
by evouga
That might work as a workaround but better to find a fix the bug.

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 9:05 pm
by Hedrachi
*thinks*
Throw a math.min() around

Code: Select all

	actor_adjust_level = function(zone, level, e) return zone.base_level + e:getRankLevelAdjust() + level.level-1 + rng.range(-1,2) end,
somehow? Have the min be 11, or whatever the theoretical maximum allowed actor level is supposed to be here.

Edit:
or around line 50:

Code: Select all

			filters = { {max_ood=2}, },

Re: (b28) Out-of-depth monster

Posted: Fri Jul 15, 2011 9:32 pm
by darkgod
actor_adjust_level is not used to select npcs