Cuberite Forum

Full Version: [DONE] Groups and permissions refactor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
I have cobbled together some sort of a basic UI for the ranks. It's not pretty, but it gets the job done; I'll leave the beautification part on the more web-experienced coders here.

It's all in the Ranks PR / branch: https://github.com/mc-server/Core/pull/83

Permissions page:
[Image: permissions.png]

Editing group:
[Image: permissions_edit.png]

Ranks page:
[Image: ranks.png]

Editing rank's groups:
[Image: ranks_groups.png]

Editing rank visuals:
[Image: ranks_visuals.png]

Player list:
[Image: players.png]

Player details:
[Image: players_details.png]

Sending a PM:
[Image: players_pm.png]
That looks greatBig Grin

I do have a question though: The Player details page shows "Permissions *" for you, but what would it show when there is someone with a "normal" list with permissions?
It lists all the permissions:
[Image: players_details2.png]
That could get pretty big.
Does this interface support changing permissions for offline users? That's a pretty essential feature.
It doesn't, yet. Do you have any recommendations about what it should look like, how to integrate it?
I'd recommend removing the rank changing from the player details page, and create a new page - "Player Permissions" or something.

There should be an easy lookup feature - just type in the name and jump to a player, and also a list of everybody and what rank they have (plus a dropdown and save button for each player to change the rank).
I'm writing a migration path, so that the server auto-migrates from INI files to SQLite DB, and I've hit some kind of a performance bottleneck. Processing just 80 players takes 10 seconds! WhatTheFunction?!?
Something's seriously wrong. I've just retried the same code with VS2013 on a slightly faster computer and it takes a fraction of a second. Did the VS optimizer get really that good? Do I really write such a poor code?
They did put a lot of work into MSVC's optimiser in the last couple of cycles. Also how much newer if the cpu in the faster computer? A lot of the recent processors have got more performance per cycle. Also your moving around a lot of strings in the code so you may be benefiting form move constructors. People have seen 5-10% gains on some code purely from turning on the c++11 standard libs.
Pages: 1 2 3 4 5 6