Download
(123 Kb)
Download
Updated: 02/04/17 07:56 AM
Compatibility:
Homestead (2.7)
Updated:02/04/17 07:56 AM
Created:01/14/17 03:08 PM
Monthly downloads:47
Total downloads:5,524
Favorites:10
MD5:
SaveHouse  Popular! (More than 5000 hits)
Version: 0.4
by: sirinsidiator [More]
WARNING: There are some major caveats that you should be aware of:
  • You have to reload the UI or log out before the data can be saved to disk. If you crash before that, your template will be gone!
  • Placing or removing items happens one item at a time, which means it takes a while until everything is done. You can stop or resume at any time though (see below).
  • When showing item requirements or restoring a template, you have to make sure that the text filter in the housing editor is empty, otherwise it won't see items that you have in your inventory.
  • Do not move, remove or place items while the addon is doing its work. This can only lead to disaster.
  • v0.4 is the final release for PTS. It adds a new command to upgrade your templates to a more stable data format. Future versions of the addon won't be able to read the old format anymore, so make sure you upgrade them!


This addon allows you to save your housing creations locally and restore them at a later time.
Right now it is controlled via slash commands (either /savehouse or /sh for short).
The following commands are available:
  • /sh help - shows a list of all available commands in chat
  • /sh list - shows a list of all saved furniture templates, the house they are from and how many items have been placed
  • /sh save <name> - creates a template for the current furniture setup in the current house. Use /reloadui afterwards to store it to disk.
  • /sh load <name> - tries to restore the saved template. It will skip already placed furniture and items missing from your inventory, meaning you can resume at any point and it will just continue placing the remaining items.
  • /sh delete <name> - removes the template from the savedata. the change is only written to disk when you reload the UI, so you can still save your template by force quitting (alt+f4)
  • /sh req <name> - will print a list of all required items to chat. it will show how many items you have and how many you need and color code accordingly. While you are inside your house, it will also consider already placed furniture
  • /sh clear - will remove every furniture in your house (back into your inventory)! Make absolutely sure that you have saved your template and don't blame me if you destroyed your nice interior.
  • /sh stop - will stop removing or placing furniture while either command is still running
  • /sh upgrade <name> - will convert a template to the most current save data format
v0.4
- switched to newly added api method to get item ids of placed furniture
- added command to upgrade old templates

v0.3
- updated furniture database
- fixed an infinite loop when resolving ambiguous item ids

v0.2
- added a database in order to match placed furniture to an item id by name
- updated save data format to be language independent
- fixed error introduced due to a renamed api method
Archived Files (3)
File Name
Version
Size
Uploader
Date
0.3
122kB
sirinsidiator
01/23/17 02:11 PM
0.2
146kB
sirinsidiator
01/19/17 11:25 AM
0.1
21kB
sirinsidiator
01/14/17 03:08 PM


Post A Reply Comment Options
Unread 01/23/17, 02:15 PM  
dominoid
AddOn Author - Click to view AddOns

Forum posts: 34
File comments: 276
Uploads: 2
Hey you got mentioned in the patch notes!
Report comment to moderator  
Reply With Quote
Unread 01/23/17, 02:20 PM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1578
File comments: 1129
Uploads: 41
Originally Posted by dominoid
Hey you got mentioned in the patch notes!
I saw! I feel like a celebrity now :P
Report comment to moderator  
Reply With Quote
Unread 02/26/17, 10:13 PM  
baratron

Forum posts: 1
File comments: 30
Uploads: 0
I created some houses on PTS and I want to be able to load them on Live. I no longer have the PTS houses because they were created with 2.7.1, before the NA characters were booted off in favour of EU.

I wanted to test things out on PTS 2.7.4 before loading the houses into Live 2.7.5. However, the addon is Not Happy.

Firstly, /sh list can only find one house, the one named "Bjorn", which has the lowest houseid. I tried deleting it from the savehouse.lua file, but it didn't help.

Basically, no matter what I do, every text command gives the following errors:
Code:
user:/AddOns/SaveHouse/lib/LibSaveHouse/LibSaveHouse.lua:421: function expected instead of nil
stack traceback:
	user:/AddOns/SaveHouse/lib/LibSaveHouse/LibSaveHouse.lua:421: in function 'DecodeValue'
	user:/AddOns/SaveHouse/lib/LibSaveHouse/LibSaveHouse.lua:442: in function 'DecodeData'
	user:/AddOns/SaveHouse/lib/LibSaveHouse/LibSaveHouse.lua:544: in function 'Furniture:Deserialize'
	user:/AddOns/SaveHouse/lib/LibSaveHouse/LibSaveHouse.lua:182: in function 'lib:HasOutdatedSaveData'
	user:/AddOns/SaveHouse/StartUp.lua:110: in function 'ListTemplates'
	user:/AddOns/UndauntedDaily/lib/LibSlashCommander/LibSlashCommander.lua:464: in function 'subCommand'
	user:/AddOns/UndauntedDaily/lib/LibSlashCommander/LibSlashCommander.lua:459: in function 'fn'
	EsoUI/Ingame/SlashCommands/SlashCommands_Shared.lua:71: in function 'DoCommand'
	EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1813: in function 'SharedChatSystem:SubmitTextEntry'
	EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:2523: in function 'ZO_ChatTextEntry_Execute'
The start of my savehouse.lua data is:
Lua Code:
  1. ["martin"] =
  2.         {
  3.             ["houseId"] = 16,
  4.             ["furniture"] =
  5.             {
  6.                 [1] = "1:Book Row, Long:/esoui/art/icons/housing_bre_inc_book_row005.dds:2:G::5fV:5eY:7tq::-V7L:",
  7.                 [2] = "1:Book Stack, Decorative:/esoui/art/icons/housing_bre_inc_book_stack002.dds:2:G:1p:5lb:5cG:7un::-RpY:",
  8.                 [3] = "1:Tea Table, Carved:/esoui/art/icons/housing_uni_fur_spellcraftingstand001.dds:2:3::5cS:5d0:7xO::-TQh:",
  9.                 [4] = "1:The Anuad Paraphrased:/esoui/art/icons/housing_gen_crf_tablepropsarcanebook001.dds:2:G::5f9:5dR:7t9::-Xbu:",
  10.                 [5] = "1:The Lunar Lorkhan:/esoui/art/icons/housing_gen_crf_tablepropsarcanebook001.dds:2:G::5fw:5dx:7ts::-18yj:",
  11.                 [6] = "1:Monomyth: The Myth of Aurbis:/esoui/art/icons/housing_gen_crf_tablepropsarcanebook001.dds:2:G::5kL:5g9:7mi::-jex:",
  12.                 [7] = "1:Nine Commands of the Eight Divines:/esoui/art/icons/housing_gen_crf_tablepropsarcanebook001.dds:2:G::5fl:5e1:7td::-zA1:",
  13.                 [8] = "1:Gods and Worship in Tamriel:/esoui/art/icons/housing_gen_crf_tablepropsarcanebook001.dds:2:G::59v:5ek:7f6::-9mv:",
  14.                 [9] = "1:Mages Guild Banner:/esoui/art/icons/housing_gen_lsb_bannermageguildmed001.dds:4:1C::5is:5kw:7kL::-fQf:",
It is in the "old" format because of being from the older PTS.

However when I run this, the Book Row, Long gets placed, then the game says "Could not place Mask of Cheerful Slaughter: Collectible cannot be placed". Which is strange, I don't know why it's trying to place a costume!

Then it places the Tea Table, Carved; the Anuad book and the Lunar Lorkhan book, before giving up entirely. When I try to stop or restart the process, nothing visibly happens.

Do you have any idea what might be wrong?
Report comment to moderator  
Reply With Quote
Unread 02/27/17, 04:55 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1578
File comments: 1129
Uploads: 41
Hi baraton,

Please make sure that you are using the latest version of the SaveHouse addon. Older versions do not work anymore due to some changes that happened in the last PTS patch.
Before you can load a template in the old format, you have to upgrade it via
Code:
/sh upgrade <name>
(make a backup of your save data file just in case).
Unfortunately not every item can be identified correctly and some even have been removed from the API, so there may be some data loss in the process.

If that doesn't work, please send me your save data file and I'll take a look.
Report comment to moderator  
Reply With Quote
Unread 03/18/17, 04:19 PM  
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view AddOns

Forum posts: 409
File comments: 891
Uploads: 21
Would it be possible to have pieces of furniture saved with their name? Either as a table with the first value being what it currently is, and the second the name, or maybe with the key being name.."unique identifier" (so you can save them all)

The reason for this is that it would then be much easier to edit the save files. If there's some structure I have in my house that I want to give to someone else, I can delete all the other stuff in the save file that is not in the structure.
Report comment to moderator  
Reply With Quote
Unread 03/19/17, 05:54 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1578
File comments: 1129
Uploads: 41
Originally Posted by Dolgubon
Would it be possible to have pieces of furniture saved with their name? Either as a table with the first value being what it currently is, and the second the name, or maybe with the key being name.."unique identifier" (so you can save them all)

The reason for this is that it would then be much easier to edit the save files. If there's some structure I have in my house that I want to give to someone else, I can delete all the other stuff in the save file that is not in the structure.
I don't plan to bring the names back into the save data and the save data is not intended to be edited.
My plan is to make an ingame template editor that let's you change templates after they have been created in many ways. Deleting certain furniture will be the first thing I add as it is easiest to implement.
Report comment to moderator  
Reply With Quote
Unread 06/18/17, 02:02 AM  
Granpafishy

Forum posts: 18
File comments: 30
Uploads: 0
Crashing

Since the update of the game on the 12th, I've been getting crashes, when even I load a set right as it finishes.
Report comment to moderator  
Reply With Quote
Unread 06/19/17, 04:04 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1578
File comments: 1129
Uploads: 41
Re: Crashing

Originally Posted by Granpafishy
Since the update of the game on the 12th, I've been getting crashes, when even I load a set right as it finishes.
Does it only happen for a specific house, or all houses?
It would be interesting if you could reproduce the problem in an inn room and send me the savedata.
Report comment to moderator  
Reply With Quote
Unread 07/06/17, 03:19 PM  
Granpafishy

Forum posts: 18
File comments: 30
Uploads: 0
So far it's only been the Daggerfall Overlook. I'll see if I can get it to do it to others as well.
Report comment to moderator  
Reply With Quote
Unread 10/21/17, 04:56 PM  
omnido
 
omnido's Avatar

Forum posts: 0
File comments: 25
Uploads: 0
Export Saved Furniture Coordinates Feature?

Sirinsidiator,

Thank you for your work with this addon.

I am looking to transfer a saved furniture layout from one home to the next.
For example:
Save the furniture layout of Barbed Hook Private Room, and then load it into Cliffshade.
Since Cliffshade has a section that is identical in floor plan layout to Barbed Hook, this would seem plausible. The problem however is that Cliffshade's "Floor" is 10,000 units "higher" than Barbed hook's, so even if the furniture were to load there, it would all be under the "floor" and inaccessible.

Normally I would simply edit the Saved Variable file and adjust all the furniture Height values, however this is proving difficult as the Saved Variable file for your addon doesnt display coordinates in numerical values.

Any ideas on how this could be edited without decoding your addons functions?
Report comment to moderator  
Reply With Quote
Unread 10/22/17, 01:35 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1578
File comments: 1129
Uploads: 41
Re: Export Saved Furniture Coordinates Feature?

Originally Posted by omnido
Sirinsidiator,

Thank you for your work with this addon.

I am looking to transfer a saved furniture layout from one home to the next.
For example:
Save the furniture layout of Barbed Hook Private Room, and then load it into Cliffshade.
Since Cliffshade has a section that is identical in floor plan layout to Barbed Hook, this would seem plausible. The problem however is that Cliffshade's "Floor" is 10,000 units "higher" than Barbed hook's, so even if the furniture were to load there, it would all be under the "floor" and inaccessible.

Normally I would simply edit the Saved Variable file and adjust all the furniture Height values, however this is proving difficult as the Saved Variable file for your addon doesnt display coordinates in numerical values.

Any ideas on how this could be edited without decoding your addons functions?
If it's only a one-time thing you could edit RequestPlaceFurniture in LibSaveHouse.lua to add these 10,000 units.
Just add a line z = z + 10000 after local x, y, z = furniture:GetCoordinates().
Report comment to moderator  
Reply With Quote
Unread 10/22/17, 06:56 PM  
omnido
 
omnido's Avatar

Forum posts: 0
File comments: 25
Uploads: 0
Re: Re: Export Saved Furniture Coordinates Feature?

Originally Posted by sirinsidiator
If it's only a one-time thing you could edit RequestPlaceFurniture in LibSaveHouse.lua to add these 10,000 units.
Just add a line z = z + 10000 after local x, y, z = furniture:GetCoordinates().
I attempted that, but upon attempting to load the furniture it threw the very correct error: "Need to be inside Barbed Hook Private Room to load furniture."
Error-checking for the win eh?
Other than altering the saved variable file to the same name, I'd be hard pressed how to circumvent that error.
Report comment to moderator  
Reply With Quote
Unread 10/23/17, 03:48 AM  
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1578
File comments: 1129
Uploads: 41
Re: Re: Re: Export Saved Furniture Coordinates Feature?

Originally Posted by omnido
Originally Posted by sirinsidiator
If it's only a one-time thing you could edit RequestPlaceFurniture in LibSaveHouse.lua to add these 10,000 units.
Just add a line z = z + 10000 after local x, y, z = furniture:GetCoordinates().
I attempted that, but upon attempting to load the furniture it threw the very correct error: "Need to be inside Barbed Hook Private Room to load furniture."
Error-checking for the win eh?
Other than altering the saved variable file to the same name, I'd be hard pressed how to circumvent that error.
Ah yes, forgot about that.
Just delete lines 153-155 in StartUp.lua:
Lua Code:
  1. elseif(house.houseId ~= GetCurrentZoneHouseId()) then
  2.     local houseName = GetHouseName(house.houseId)
  3.     df("Need to be inside %s to load furniture", houseName)
Then it should load it anyways.
Report comment to moderator  
Reply With Quote
Unread 11/02/17, 04:07 AM  
bottleofsyrup
 
bottleofsyrup's Avatar

Forum posts: 0
File comments: 38
Uploads: 0
I recently tried to replace everything from a save file, and it placed everything but crashed in the process of putting collectibles and now crashes every time I try to load from that save file. This is in Hakkvild's High Hall. It did place some of the collectibles though so it's odd. It appears to only be the final 3 items that didn't load. They are:

Bust: Blood Spawn
Bust: Troll King
Karthwolf Charger Mount

It'll be no problem putting just those three back manually, of course, but thought I'd report the issue as I'll be loading in my Halloween decor next year and then back to my main furnishing setup again after that.
Last edited by bottleofsyrup : 11/02/17 at 04:09 AM.
Report comment to moderator  
Reply With Quote
Unread 11/15/17, 11:45 AM  
Helediron

Forum posts: 0
File comments: 67
Uploads: 0
Just an idea, but could this addon act also as master lamp turn-on switch? I glanced the API but didn't see any item state manipulation call. But if i remove a lamp and place it back, it will have it's light-on.

With a house open to guilds my lamps are having interesting new light patterns every day .
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.