-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MP groups and permissions #2783
Conversation
zsilencer
commented
Jan 20, 2016
Impressive. Once this gets merged, we can all start making the interface read-only when player is a spectator. E.g. changing drop downs to just plain text. |
I plan on expanding the group management tab so that you can create new groups with fine grained control, such as allowing only certain game commands, and boundaries on the map where things can be placed, etc. Right now just wanted these two defaults, and I made it so the host always has full access, with a setting of a default group of any players joining. So you can just have you and your buddies working on a park without needing a password, and can let anyone join, watch and chat. Making everything in the interfaces read-only might be a big pain, and they get a error box saying permission denied when they try things, so it shouldn't be too hard for users to understand. |
Currently clients with full access can change the permissions of other clients, this shouldn't be allowed for the time being. |
Cool stuff. Out of curiosity – does OpenTTD has something like that? |
31f7be7
to
14ae348
Compare
14ae348
to
6e3068c
Compare
71384a9
to
02f4359
Compare
@IntelOrca K I have this mostly complete now, and have added a default User group that does not have permission to modify or assign groups to address your concern. Maybe some people can test this. |
02f4359
to
1277c1a
Compare
@LRFLEW could you xcode this PR? |
}break; | ||
case 3:{ // set group name | ||
size_t nameChunkOffset = nameChunkIndex - 1; | ||
if (nameChunkOffset < 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size_t
is unsigned, so this is always false.
@zsilencer I made a PR against your branch to fix the Xcode project. I also fixed one of @janisozaur's comments, as it was causing a warning in Xcode. |
still have some things to change so do not merge yet |
1a6deed
to
5a43e31
Compare
ca6406d
to
5a72cb0
Compare
This reminds me of Locomotion which showed you what other players were looking at. |
Clients can still pick up and move guests even though the guest permission is disabled. |
alright i fixed that, let me know if anyone finds any other issues. |
Does it save the groups and permissions? |