Editing those layout files can be a tricky business! Getting started is the easy part, knowing what all those numbers mean is where decorating magic happens.
For the beginner, I suggest starting with an empty house. That will simplify the learning process.
First, I am going to take just one plain sumac tile and place it in my empty house. I also enlarged it a little so we can see it better for the tutorial.
The next step is to save the layout file. Click on the front door, or type /house to bring up this box:
Be sure to name your file something meaningful. The name of the house or the project you are working on are good ideas. I named this one "demo".
One of the hardest things for some people to find now is that file you just saved. Fortunately, SoE made this easier than ever with the latest Launchpad. From the EQ2 Launchpad, click on the Advanced Tools button, then on Open Game Directory. From here just look for a folder named "saved_house_layouts". When you try to open it, you should be presented with a list of programs, choose Notepad (NOT Microsoft Word!).
The file that opens should look like the one below. There are several sets of numbers, separated by commas.
The first three lines identify the house are working in, DO NOT delete them. The next line identifies the one sumac tile I have placed in my house. The first number identifies the item as a Plain Sumac Tile, the next number identifies THIS PARTICULAR sumac tile. If there were more than one in the house I would use the next three numbers to find the exact tile I want, they are the LOC of the item (east/west, up/down, north/south - in that order). Next comes the rotation, this is the normal allowed rotation you can achieve using the mousewheel. The next two numbers will tilt the object (these are usually the magic numbers we are looking for). They will angle the object sideways (north/south and east/west). The last number is the size. Every object when placed straight out of your bags will have a size of 1.00000000, you will remember that I enlarged this tile before placing it. "False" means that the item is not in the moving crate. And finally we have the name of the item, which comes in handy when you have a few hundred items to sort through to find the one thing you wanted to change.
Now, I am going to tilt my tile by 90 degrees. Remember, that is one of the last two numbers before the size. When working with floor tiles, it really doesn't matter which one you choose, unless you are picky about which way the grain of the wood is going to show.
Remember to hit "save" on your file, then you are ready to load it up and see the results. Type /house again if you need to bring up the door options. This time we want to load the layout file.
And we successfully stood our sumac tile up on its side!
A few things to remember about the layout files:
- Layouts were designed to let you save your current house set-up, then pack everything up and with the push of a magic button it would put everything back where it was. This doesn't always work currently. Use with caution.
- A side benefit of the 'save layout' feature was the discovery that we can edit these files ourselves and do some pretty impressive things with them. This is the area we'll be talking about.
- Any layout editing should come with a big red warning "ATTEMPT AT YOUR OWN RISK" - items can/have/will go missing.
- Layout files can't tell the difference between this ash bookcase and that one over there - this is a very important fact to remember.
- Save often, save multiples, save backups.
- Don't be afraid to experiment! You can always pick the item up and start over.
- Remember, you can use negative numbers as well (tilt by -35 instead of 35).
- If your item disappears, try raising/lowering it by .01.