Full Version : Nerun's Distro and XML Spawner
xmlspawner >>Q&A >>Nerun's Distro and XML Spawner


<< Prev | Next >>

Anvil- 01-04-2006
Ok, let me try and explain this... erased this a couple of times to re-write...

Loaded Nerun's distro with xmlload and turned on smart spawning.

This problem seems to affect large groups of monsters/animals that spawn in wilderness areas... at least that I've seen...

Player walks into area, and the 30 or so animals/monsters that spawn from one spawner are all spawning on top of each other, with a spawn range of 0 instead of 30 or 50 to get them more spread out so it looks more "natural and the world is more full"...

How could I go about importing them with the spawn ranges already set so when they spawn they don't spawn all on top of each other but spread out around the area?

Thanks.

Anvil

ArteGordon- 01-04-2006
could you give me the name or exact location of a spawner than exhibits this behavior and I will check to see what is up. I can check to see how Nerun has them defined and then how they get imported.

(edit)

ok, I have figured out what is going on. When importing, vendor spawners are automatically assigned a spawnrange of 0 to reproduce their behavior on distro spawners (that force that for vendors).
What is happening is that wilderness spawners with wandering healers on them also get this set.
I have modified the import function to make the spawnrange change only when there are nothing but vendors on the spawner.

(edit)

see the later post for the attached fix

Anvil- 01-04-2006
Is this something you'll be adding into the future distro's? Just curious... Thanks for the fix too! smile.gif

ArteGordon- 01-04-2006
QUOTE (Anvil @ Jan 4 2006, 06:21 PM)
Is this something you'll be adding into the future distro's? Just curious... Thanks for the fix too! smile.gif

yep, already added it to the 'upcoming changes' in the release forum.

Novafire- 01-05-2006
ArteGordon, I've already converted the premium spawners to xml and I've added some other xmlspawners as well. How do I fix the premium spawners that's already converted without affecting those that are not a conversion from premium spawners.

EDIT...

Ok, don't worry about it. I worked it out biggrin.gif I used xmlfind where name is data as all premium spawners have that prefix on my shard and deleted them in xmlfind and I re-imported the map file using xmlimportmap and respawned everything with xmlspawnerrespawnall.

Cheers!




ArteGordon- 01-06-2006
sorry, the fix that I posted earlier was not quite right. It was causing other imported spawners without vendors to end up with their spawnrange set to zero.

I have attached the REAL fixed version here. This is a modified version of xmlspawner2.cs for version 3.05


sorry, if you imported with the one I posted earlier, you should probably get rid of the previously imported spawners and do it again with the new version so that all of the spawnranges are correct.

Novafire- 01-06-2006
hmm, so far so good, if anything else goes wrong, I'll let you know! biggrin.gif