^ That. I feel like having a "gateway" between two admin mods is a bad idea, just like running two admin mods at once.
CAMI should be about opening up administrative and utility functionality for[B] addons[/B]. Forget nonsense about making two admin mods work together (and find an alternative to shipping an admin mod with a gamemode).
Let addons hook into CAMI, and let admin mods implement CAMI how they please, as long as the functions and hooks return how the standard specifies. Just like CPPI.
[QUOTE=KingofBeast;47823348]^ That. I feel like having a "gateway" between two admin mods is a bad idea, just like running two admin mods at once.
CAMI should be about opening up administrative and utility functionality for[B] addons[/B]. Forget nonsense about making two admin mods work together (and find an alternative to shipping an admin mod with a gamemode).
Let addons hook into CAMI, and let admin mods implement CAMI how they please, as long as the functions and hooks return how the standard specifies. Just like CPPI.[/QUOTE]
This was honestly the main thing I was wondering "why?" when I was first looking at CAMI. Implementing this in a way to mitigate conflicts between admin mods seems like it would be kind of awkward, how would you defer a command to a admin mod if there is a conflict after all?
But making an interface and set of hooks that addons and gamemodes can use to interact with admin mods actually makes total sense. And would solve a lot of problems developers have when it comes to supporting admin mods. Currently we have to write an implementation that covers all admin mods we care to support, this is dumb. Hard coded support is a hack at best. Through CAMI you would have to write one thing, and assuming the admin mods play nicely, you would support all CAMI enabled admin mods with no work at all.
Modularity and loose coupling like this are something every developer should really strive for. Even if this is only being started due to a problem identified in DarkRP by the users, that doesn't make it a waste of time. Most programs we use were initially developed to handle one use case, over time many others are identified.
Yeah I've made tons of addons which have simple chat commands. I wish I could easily make them compatible with the most popular admin mods.
Chat commands are beyond the scope of the CAMI project. This is because chat command systems are not exclusive to Admin mods and because it's easy enough to make your own chat commands. It would also complicate the integration of CAMI into Admin mods and other mods that have them, which in turn would hurt adoption.
Why do you want to register your own chat commands with Admin mods, though?
[QUOTE=FPtje;47843809]Chat commands are beyond the scope of the CAMI project. This is because chat command systems are not exclusive to Admin mods and because it's easy enough to make your own chat commands. It would also complicate the integration of CAMI into Admin mods and other mods that have them, which in turn would hurt adoption.
Why do you want to register your own chat commands with Admin mods, though?[/QUOTE]
Maybe checking for permissions to run the command was what he meant?
[QUOTE=MGCLegend;47843897]Maybe checking for permissions to run the command was what he meant?[/QUOTE]
Yeah that would make much more sense.
No I mean
CAMI.AddChatCommand(function(ply, args)
end)
[QUOTE=bobbleheadbob;47847309]No I mean
CAMI.AddChatCommand(function(ply, args)
end)[/QUOTE]
Not all mods that have chat commands are admin mods. As such chat commands are not an admin mod exclusive thing and are therefore beyond the scope of a Common Admin Mod Interface.
Actual draft code now available:
[url]https://github.com/glua/CAMI[/url]
Is it possible to get a list of the admin mods this is currently implemented in or if this died horribly?
[QUOTE=Strideynet;50325088]Is it possible to get a list of the admin mods this is currently implemented in or if this died horribly?[/QUOTE]
FAdmin and ULX have. Other than that I don't know.
[url=https://facepunch.com/showthread.php?t=1481504&p=49303087&viewfull=1#post49303087]Maestro[/url] as well.
[QUOTE=FPtje;50325917]FAdmin and ULX have. Other than that I don't know.[/QUOTE]
Literally the two that matter lol
Some of the CAMI privileges are missing. There is only permissions with fpp, none of the darkrp commands. When I try to use one, it says you do not have the right perms to do this, even though I'm superadmin.
Sorry, you need to Log In to post a reply to this thread.