Full Version : Odd spawner bug!
xmlspawner >>Troubleshooting >>Odd spawner bug!
<< Prev | Next >>
Allmight- 08-24-2006
I placed a xmlspawner in covetous lvl 3 ( 5579 1899 0 ) in Trammel. I added the following spawns...
Mob Max
-----------------------------
Ghoul 3
Shade 3
Spectre 3
Wraith 3
-----------------------------
Max Count : 3
I started to push the up arrows three times for each mob, so i ended up with 12 spawned critters. Then i changed the Max Count to 3 and pushed respawn. Not a single critter spawned. I tried to reset and turn power on again, then respawn. Still nothing. If i change the Max Count up to 4, then one critter spawns. Upped to 5, then 2 critters spawns, and so on.
So im not really sure whats going on here. I should have Max Count critters spawned, as i had so far. Does it have anything to do with the location or something?
Note. I placed the spawner manually on above location, and entered the data after that. I tried to do it with Spawn Editor 2 as well, with the same end result.
Allmight- 08-24-2006
Have done some more testing. This seems to hapen wherever i place the spawn. I alos tried to remove the last entry "Wraith", but still same settings. Then hit respawn. When i did, i got one random critter.
Never noticed this behavior before, so im not sure if it is something that happened recently, or have been there all the time.
Dont know what do to.
Allmight- 08-24-2006
Okay, revisited my older spawns i did before, and which worked then, i found a pattern.
For every spawner i place with a max count lower than the totals of the max values, the following takes place...
For every extra critter i have in the list above one, max spawned creatures is one less than max count. So if i have 5 different critters in the list, with a max total of 100, and the max count is set to 40. When fully spawned i get 36 critters. If i add one more critter to the list, i get 35 spawned critters, and so on.
So currently, if i want to get correct amount of spawned critters, i must set the max count to ( desired amount + ( diffrent critters in list - 1 ) )
Allmight- 08-24-2006
Ok, more testing...
This happens with all spawns, no matter if they have a Max Count lower than the total of max, or the same.
When i placed a spawner with four different critters in the list, and pushed the increase button for each creature once, i had 4 spawned creatures, which i should have. Then i pushed the respawn button, and only one creature spawned.
ArteGordon- 08-24-2006
I will check this out. What version are you using? I think there are still some issues with the v3.15 beta related to the changes in subgroup spawning.
Allmight- 08-24-2006
I used an older version of beta 15. So i updated to the latest one, but still same thing.
ArteGordon- 08-24-2006
yeah, I see it now. I'll figure out what is going on.
ArteGordon- 08-24-2006
ok, I found it. This applies to the beta 3.15 only
Just make this change in xmlspawner2.cs around line 7750

QUOTE
private int SubGroupCount(int sgroup) { if (m_SpawnObjects == null || sgroup <= 0) return (0); int nsub = 0; for (int i = 0; i < m_SpawnObjects.Count; i++)
{
SpawnObject s = (SpawnObject)m_SpawnObjects[i];
if (s.SubGroup == sgroup)
nsub++;
}
return nsub;
}

It was treating subgroup 0 like other subgroups and applying the dont-spawn-the-subgroup-unless-you-can-spawn-all-of-the-subgroup rule to it.
I may end up dealing with this slightly differently in the final v3.15, but this will work.
ArteGordon- 08-24-2006
I just posted an update to the v3.15 beta that has the fix for this.
Allmight- 08-24-2006
Did the manual change since i work in VS, so if there are nothing else you added in the beta ill stick with this.
About the fix, it now works perefectly. Thanks for the fast fix.
Oh, and a quick question. How are Spawn Editor 2 coming? There are some proposed changes i look forward to, and one bug fix that i REALLY look forward to.
http://xmlspawner.15.forumer.com/index.php?showtopic=810
That one really starts to drive me nuts.
ArteGordon- 08-24-2006
the fix I ended up adding in the beta is a little different, but it will work in the same way.
I have some other things going on so havent been working on the editor, but it will get there.
Allmight- 08-24-2006
Well, if you need a hand, just let me know.