Don't Starve Together

Don't Starve Together

145 ratings
Modify Ownership
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
63.878 KB
12 Jan, 2016 @ 10:06pm
17 Apr, 2016 @ 5:31am
13 Change Notes ( view )

Subscribe to download
Modify Ownership

Description
Modify Ownership mod builds on top of the Ownership mod, allows owners of buildings add and remove other players as owners after the building is built.

To modify ownerships of a building, press O then right click on it.
A window will appear with the list of current owners. If they are currently online (you've met them recently or are in your cache) their name will show up, otherwise their userid is shown.
To remove another owner, click on a Del button next to their name/id. You can't remove yourself, unless you are the only owner, in which case the building will become public.
To add another owner, select them from dropdown or type (part of) their name into textbox or type their userid into textbox and click appropriate Add button.
Case sensitive checkbox affects how name entered into textbox is treated.
Enabled Auto filter (via checkbox) causes dropdown to contain only names that match entered name (and disables Autocompletion).

Admins and moderators (as defined by Moderator Commands mod, custom permission modifyowner) can modify owners of all non-public buildings.

Player cache collects all known players (their userids and names; client-side) that are your co-owners, so they are later recognized and can be added as owners even if they are no longer online or in your encounters history list.
It is saved in the file save/mod_config_data/moddata_workshop-599501490_playercache (under Documents/Klei/DoNotStarveTogether in Windows by default).
If the file has not been created yet (you haven't actually tried to modify any owners), there will be a message in the log: "[ModifyOwnership|PlayerCache] Error loading file {filename} (file not found)". It is harmless, as long as it says "file not found".


Configuration options (server)

Allow adding owners (default: yes) - enables adding new owners
Add online people only (defaulf: no) - you can add only people who are currently online; if disabled you can add anyone, people whom you recently met (i.e. are in your encounters history list) can be addressed by name
Allow removing owners (default: yes) - enables removing owners
Remove the last owner (default: yes) - enables removing the last owner and making the building public
Maximum number of owners (default: 10) - set maximum number of owners who can be added for a building, doesn't automatically remove current owners over the limit
Number of owners warning (default: 8) - shows a warning dialog screen when trying to add a new owner while current number of owners is greater or equal than this
Moderators (default: no) - enables Moderator Commands mod interaction
Default modify mode (default: no) - if enabled enables players' modify mode upon joining the world (i.e. as if they once pressed the hotkey)
Hotkey (server) (default: O) - Toggles the modify mode, applies to all clients who don't specify their local hotkey
Log level (default: more) - Amount of debug messages in the log; the default will be changed to normal in the future if there are no bugs found

Configuration options (client)
(setting this will apply only to you, even if you are the client)

Window position (default: left) - position of the window on the screen
Hotkey (client) (default: use server's value) - Toggles the modify mode


Known issues / Notes
You can't modify ownership of Basic / Improved Farm with a crop on it. Wait till it's ready for harvest and harvest it.
If two players have the same name, they can't be added by name, only by userid.
While building a structure, passing the cursor over the ownership window cancels the build but the tooltip remains - see http://forums.kleientertainment.com/topic/62038-graphics-placer-tooltip-remains-displayed-after-hud-loses-focus/.
Pressing ESC closes the window (same as pressing the Close button); it will not show the usual pause dialog screen.
Pressing TAB autocompletes text in the textbox based on the list of people in the dropdown.
If the building is destroyed while the window is open, interacting with it will close the window and issue spurious message about it being already closed.
Player cache only collects new players, there is currently no automatic removal of players from it. You can clear the entire cache by removing the file or by entering "MOPC:Reset();MOPC:Save()" into the debug console.
There is hard coded limit on how many tags an entity can have. Since tags are currently the way owners are detected, it limits the maximum number of owners of a building. If you have other mods that add their own tags to buildings, it will lower the maximum even lower. There is a test that checks the number of tags when trying to add new owner, so adding that new owner won't exhaust usable tags (+there is 5 tags buffer). If other mods add their tags after all owners are added and it exceeds hard limit it could cause network synchonization issues leading to crash.
If the Number of owners warning option is set very low (e.g. 1), it could be irritating having to confirm every addition of an owner.
Includes a test for string.split function override in an incompatible way by any mod. Doesn't error out, just prints the message.


To do
Fix spurious message noted above - keep an eye on http://forums.kleientertainment.com/topic/62264-client-crash-crash-after-setting-invalid-entity-to-net-entity/.
UI improvements
- make window size proportional to screen size
- add window border
- dropdown visuals
Popular Discussions View All (2)
21
10 Mar, 2020 @ 7:46pm
Bug reports
Muche
0
10 Mar, 2020 @ 7:44pm
it don't work.please update,i can't paly the game well without it.
Gleeman
57 Comments
GrandTickler 7 Aug, 2022 @ 8:38pm 
seems to work just fine still
H♡RR♡R 5 Aug, 2022 @ 4:29am 
How do you get rid of the lil' window that pops up when you go to "modify ownership" it just stays up forever until i restart the lobby. :( if anyone can help, plz do <3
thegreatmanagement 15 Jan, 2022 @ 1:53pm 
Hello is this mod still supported? I have a change/optimization of this mod that allows players to modify ownership for backpacks, which I found was curiously excluded from the current build of this mod. Please let me know, I would like to publish my change your permission!
Raiden_Sola 28 Jan, 2020 @ 8:22pm 
Think this mod is now broken. I've got this one and Ownership as the only running mods, and I still can't get it to do anything. Tried remapping the hotkeys and still can't get anything to work.
cudiPeter 22 Mar, 2019 @ 8:39pm 
thats nor running
More_urgent_jest 6 Mar, 2019 @ 10:29pm 
meh
RoMp 11 Oct, 2018 @ 10:03am 
My problem is that I use a controller to play. When I go up to a crockpot I can put items in but I have to use button 2 to cook and the mod uses the same button to change permissions. So I can't use it unless I press esc, go to settings, change to keyboard, press accept, continue, mouse over to close it, and then back to the menu to change back etc.. Which basically means I end up dying during winter because it's too much of a hassle.

Does anyoine have a way to fix this? I don't think it's possible to use the mouse and the controller at the same time but I could be wrong. Maybe I can edit controlls to make the left joystick button where you push down close that menu somehow? Or make that button cook without using the function of button 2?
Ronin 17 Feb, 2018 @ 8:39pm 
This developer hasn't been on in almost a year
NsiBpy 6 Jan, 2018 @ 4:42pm 
Hi!
A function is required for trading in the chest for the guest. For example, there is 1 gold in the chest, not the owner can take it for a certain price in exchange: 20 branches, 10 logs, 5 pieces of meat, etc.

Требуется функция для торговли в сундуке для гостя. Например в сундуке есть 1 золото, не владелец может взять его за определённую цену в обмен: 20 веток, 10 бревна, 5 кусков мяса итд
Ronin 30 Dec, 2017 @ 8:53am 
T-Rection you're supposed to HOLD O and then right click on it