XMLSpawner Exporting some spawns?

sec_goat

Citizen
I am working on updating the Lord Greywolf's food system making it easier to set up and get going right out of the box, and I need some assistance in the spawns.

The easiest way for me to do this I think is to have some of the farms throughout the default maps have spawners that spawn different crop types. Once I get this set up, how do I say export a specific subset of spawners?
 

Milva

Paladin
Reads that this will save all of the spawners on the current map to the file--of course any other xml spawners on that map will also be saved along with it.
 

sec_goat

Citizen
Reads that this will save all of the spawners on the current map to the file--of course any other xml spawners on that map will also be saved along with it.
yes ma'am that is the one I was talking about. I will do it this way and hope any of my other custom spawners don't screw people up. What happens if you have a spawner for an object that is not in your code base?
 

Ravenwolfe

Moderator
ServUO Developer
I find the best way is to give those spawners a special name such as resource1, resource2, and so on. Then you use [xmlfind and have it list the spawners with that name,"resource". From there you can check all and use the save option at the bottom of the gump to save just those spawners as a .xml file.

If you add an object to a spawner of a type that is unknown it will throw an error on the spawner and next restart you will get a badspawn.log file, but it will not hurt server operations.
 

sec_goat

Citizen
@ravenwolf that sounds perfect that means i can just release the farm spawners and nothing else, I like that a lot!
 

Ravenwolfe

Moderator
ServUO Developer
No problem, If your not sure how to do it, I can post a few screenshots. I like having them seperated because you can load and unload them whenever you wish. I use it a lot for xmlquests.
 

tass23

Moderator
Yes, using [xmlfind you can save multiple spawners easily. As Raven pointed out, it helps to name the actual spawner itself. You can also save each spawner to their own xml file. Say you placed a spawner named FarmablePumpkins in a field outside Brit. All you have to do is [xmlsave FarmableWheat FarmableWheat.xml and it will save that one spawner. The nice thing about using the [xmlfind to save your spawners though is you can save spawners on multiple maps into one xml file. So you could really place them on all facets, use [xmlfind and check mark them all and save them. :)
 

Ravenwolfe

Moderator
ServUO Developer
Also, once you have certain spawns, such as the farmablepumpkins @tass23 mentioned saved as an xml file, you can then use [xmlloadhere to load the spawners in a different field each time.
 

tass23

Moderator
Hmm, it's possible Raven is a Kindred XML Spirit.....
Attention folks: Please direct all XML question to Raven if I'm not around, that is all, thank you ;)
 

Ravenwolfe

Moderator
ServUO Developer
Hehe, yeah. I actually had worked with ArteGordon and Godfood back in the day. Its slowly coming back to me.
 

tass23

Moderator
It's a shame Arte has disappeared into oblivion....I'm betting if he could put up with my incessant pestering about ideas, XmlSpawner could be a whole lot more than it is now. ;)
 

Ravenwolfe

Moderator
ServUO Developer
Yeah, that guy fwiffo is doing a decent job but is no Arte!
 

Attachments

  • ai64.tinypic.com_24w7bjr.jpg
    30.7 KB · Views: 32