Full Version : WriteMulti command added
xmlspawner >>XMLSpawner Feature Request's >>WriteMulti command added
<< Prev | Next >>
ArteGordon- 01-24-2006
I have added a new WriteMulti command that will be included in the v3.07 release that will allow you to create multi text files that can be imported in UO Architect or spawned with the MULTIADDON keyword.
The syntax is
[WriteMulti <MultiFile> [zmin zmax]
You will be asked to target an area, and all items and statics within that area will be exported to the multi text file.
You can easily grab things like existing buildings, sections of existing buildings, addons, multis (like camps), or just bunches of objects that you would like to turn into an addon.
By specifying the min and max z, you can limit the exported items/statics to those within that z range.
The multi files will be written out into the Spawns folder.
godfood- 01-24-2006
So cool arte. I've been waiting for this. UOAR seem to want to make all of my multi's at z7 Very annoying.
How hard would it be to add an arg or two for specifying wether or not to extract frozen items?
ArteGordon- 01-24-2006
yeah, that is being added right now. There will be args like '-nostatic -noitem -nomulti' to exclude static tiles, non-static items, or multis.
I've tried it out on existing static buildings and it seems to work just fine with UOAR, even doing partial extractions.
Note, it will also write hue information on items to the multi file but of course, UOAR will ignore that and if you import it into UOAR, fiddle with it, and export it again, that hue info will be lost.
here is a partial room extraction with z limited to 0 to 30 from the Sweet Dreams inn
or the healer with the roof cut off
godfood- 01-24-2006
You rock so hard Arte. It's great
ArteGordon- 01-25-2006
updated the version of WriteMulti.cs in the beta_307 attachment.
The new version has additional features that allow it to extract portions of multis like sections of player houses, or camps, as well as handling addons and partial addons.
Additional arguments are available to restrict the extraction to certain types of objects.
WriteMulti <MultiFile> [zmin zmax][-noitems][-nostatics][-nomultis][-noaddons][-invisible]
The -noitems flag will ignore all items
The -nostatics flag will ignore all static (frozen) tiles.
The -noaddons flag will ignore all addons and their components
The -nomultis flag will ignore all multis and their components
The -invisible flag will include invisible items (by default they are ignored)
A check is now added to prevent overwriting files.
If you try to overwrite a non-multi.txt file or a multi.txt file that you did not write, you will be blocked.
This is accomplished by looking for the first header line of the form
1 version staffname
where 'staffname' is the name of the character that wrote the file. You can overwrite files that you have written, but you cannot overwrite others.
If the staffname is missing, then no one can overwrite it.