Exporting Multis from InsideUO

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Exporting Multis from InsideUO

Post by stranf »

Xuri has helped me out with figuring out how to export statics from InsideUO into a .dfn file.

Now I was wondering if it is possible to export the multis. (This is the portion of insideUO where the houses are stored)

Specifically the Gypsy wandering camps could come in handy as well as the Exodus parts. (I want to have a servicable Ultima III quest for my next worldfile release and the exodus art would come in handy).

Thanks again.
Maarc
Developer
Posts: 576
Joined: Sat Mar 27, 2004 6:22 am
Location: Fleet, UK
Has thanked: 0
Been thanked: 0
Contact:

Post by Maarc »

It is possible, sort of, but not quite so easy I don't think. And you will run into the issue that, essentially, anything you add will be considered a real house :)

In essence, you'll need to add something like this:

Code: Select all

// Sandstone Patio House
[HOUSE 30]
{
ID=0x409c
SPACEX=8
SPACEY=8
CHARX=-2
CHARY=2
CHARZ=7
HOUSE_ITEM=111
HOUSE_ITEM=112
HOUSE_DEED=sandstonepatiohousedeed
}
to a DFN file in the house category. That's the entry for the Sandstone Patio House as it is in our DFNs (or at least, my installed version). And I can explain this a little for you :)

The ID field is the crucial one. The rest you can tinker with and experiment, but this ID field is the essential part. You'll see that the ID for it starts with 0x40. *ALL* houses must start with that ID! Go to the Multi tab on InsideUO. Scroll down the list until you see the "Sandstone Patio House". Right click on it and choose details.

Now here's the kicker. Look at the Number field. It should say

Number: 156 (0x9C)

The 0x9C is the critical part :) But I hear you saying "Hang on, where's the 0x40 to start it with!". And you're right ... it's not there. So you essentially have to add it. So basically, you need to do something like this:

* Find the entry in InsideUO you want to add
* Right click and choose Details
* Take note of the Number field, and add 0x4000 to it
* Store this number in the ID field of your house entry

Now, you may not now how to add hex numbers. That's okay, most people don't. But you have a calculator that can do it. Start->Programs->Accessories->Calculator. Go to the View menu and choose scientific. Now it will look like a real calculator. Hit the hex radial button and do the math (4000 + 9C). Tada! You now have it!

As for the rest of the fields ... well, CHARX/Y/Z basically tells you the numbers to add to your character's current location once the placement has been done. This should reposition you onto the front doorstep, sort of thing.

SPACEX and SPACEY tell you how much free space you need to be able to place the house. Note that it's not 8x8 tiles in that example, but 16x16! (Think of it as 8 tiles to your left, AND to your right, when you place it. Ditto up and down)

HOUSE_ITEM is basically an entry that you want to add to the house by default (and is considered part of the house). Have a look at [HOUSE ITEM 111] in house.dfn for an example on how this is done. This includes things like doors and the house sign (if any), and is a relative offset. To me, I'm guessing they're mostly guess and check, sorry, don't know a better way.

And HOUSE_DEED is almost self-explanatory. It points to an item entry (in the items dfn category) that will be created when you re-deed the house.

Hope this is of help to you, and enjoy!
Post Reply