1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XMLSpawner Exporting some spawns?

Discussion in 'Script Support' started by sec_goat, Sep 27, 2013.

  1. sec_goat
    Offline

    sec_goat Member

    Joined:
    Aug 26, 2013
    Messages:
    110
    Likes Received:
    14
    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?
     
  2. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,637
    Likes Received:
    398
  3. sec_goat
    Offline

    sec_goat Member

    Joined:
    Aug 26, 2013
    Messages:
    110
    Likes Received:
    14
    I have not, thank you I will read up on that now!

    EDIT: it looks like I just need to save the current map to a file, then I can just include the entire spawns folder with the scripts?
     
    #3 sec_goat, Sep 27, 2013
    Last edited: Sep 27, 2013
  4. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,637
    Likes Received:
    398
    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.
     
  5. sec_goat
    Offline

    sec_goat Member

    Joined:
    Aug 26, 2013
    Messages:
    110
    Likes Received:
    14
    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?
     
  6. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,155
    Likes Received:
    125
    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.
     
  7. sec_goat
    Offline

    sec_goat Member

    Joined:
    Aug 26, 2013
    Messages:
    110
    Likes Received:
    14
    @ravenwolf that sounds perfect that means i can just release the farm spawners and nothing else, I like that a lot!
     
  8. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,155
    Likes Received:
    125
    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.
     
  9. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,014
    Likes Received:
    131
    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. :)
     
  10. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,155
    Likes Received:
    125
    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.
     
    • Agree Agree x 1
  11. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,014
    Likes Received:
    131
    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 ;)
     
  12. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,155
    Likes Received:
    125
    Hehe, yeah. I actually had worked with ArteGordon and Godfood back in the day. Its slowly coming back to me.
     
    • Two Thumbs Up Two Thumbs Up x 1
  13. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,014
    Likes Received:
    131
    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. ;)
     
    • Agree Agree x 1
  14. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,155
    Likes Received:
    125
    Yeah, that guy fwiffo is doing a decent job but is no Arte!
     

    Attached Files:

Similar Threads: XMLSpawner Exporting
Forum Title Date
Releases XmlSpawner (does compile with servuo) Saturday at 1:20 PM
Script Support XmlSpawner cant give non movable reward item (It became movable) Nov 23, 2017
Script Support Adding Addon Items and Mobs to XMLSpawner Oct 30, 2017
General Discussion XMLSpawner Vendors Oct 9, 2017
Script Support XmlSpawner. Adding new arguments for LOOTPACK Sep 4, 2017
ServUO Discussion How to Export XMLSpawner Attachment Aug 31, 2017
Support Adding mob to XMLSpawner Jul 28, 2017