Hello, I'm probably a little late to the sandbox admin mod party, but I got here in the end right?
My name's [URL="http://steamcommunity.com/id/cosmodroke/"]Droke[/URL] and I've been working on an admin mod (among other things) since 2010 or so, I've just never released it.
Here it is. :happy:
[URL]https://github.com/droke/fusion[/URL]
For a bit of terrible help go to: [URL]https://github.com/droke/fusion/wiki[/URL]
[B]
What it is: [/B]an admin mod, like ULX or Evolve, but.. different!
[B]What else it does:
[/B]Aside from managing player ranks and permissions:
Prop protection
A shop that players can buy ranks, titles, etc
Scoreboard
Chatbox
And other stuff!
I'm not too experienced with releasing my stuff, except for uni assignments, so don't expect a great deal of in-depth documentation until I can motivate myself to do that.
If you want to check it out on an existing server, my sandbox server is 43.245.160.51:27025
Anyway thanks for your time, here are some pictures of the interface and what not.
Shop:
[IMG]http://i.imgur.com/zzm7AVL.png?1[/IMG]
Chat Box
[IMG]http://i.imgur.com/pBA0J7M.png?1[/IMG]
Scoreboard
[IMG]http://i.imgur.com/Csgo9Ji.png?1[/IMG]
Nice work!
Awesome! Nice work.
I edited the first post to be more informative.
Add a CAMI support to it please
I'll look into it.
[editline]6th February 2016[/editline]
Feel free to add me on steam if you need help setting it up.
[QUOTE=Xenus;49683569]I'll look into it.
[/QUOTE]
Thanks
droke this is cool you are cool
[QUOTE=Little Donny;49687818]droke this is cool you are cool[/QUOTE]
Thanks mate!
Looks great man, I really love it.
Really love the UI! Nice work. :ok:
[sp]and boy do I love that chatbox[/sp]
[QUOTE=Its Waffles;49718787]Really love the UI! Nice work. :ok:
[sp]and boy do I love that chatbox[/sp][/QUOTE]
Thanks! I love working with UI.
If anyone has this running on their servers, let me know, I'd love to come check it out.
:goodjob: >Insert drool face here< Amazing work!
Has anybody been able to get this working? For me everything works until I rejoin and my rank, playtime etc is gone.
[QUOTE=Mclovin01;49876415]Has anybody been able to get this working? For me everything works until I rejoin and my rank, playtime etc is gone.[/QUOTE]
Are you connected to a database?
Yeah and it successfully connects. Banning works aswell, it's just the User's table that doesn't seem to be working.
That scoreboard is amazing, great work dude!
Use Knoxed's [URL="https://github.com/droke/fusion/blob/master/fusion.sql"]SQL template[/URL]
Xenus helped me out, all fixed now. Thank you Xenus!
Can vouch for admin mod, Droke has banned me on many occasions
[QUOTE=Minteh Fresh;49914185]Can vouch for admin mod, Droke has banned me on many occasions[/QUOTE]
You've helped me test the bans system quite thoroughly over the years, thanks!
[QUOTE=Xenus;49918220]You've helped me test the bans system quite thoroughly over the years, thanks![/QUOTE]
It's an honour to help improve such a unique, well made product.
So has anyone got a server running fusion in some form that I can come check out?
Also, myself and others have updated the github recently, if anyone wants to check out the latest here it is: [url]https://github.com/droke/fusion[/url]
[QUOTE=Xenus;50079403]So has anyone got a server running fusion in some form that I can come check out?
Also, myself and others have updated the github recently, if anyone wants to check out the latest here it is: [url]https://github.com/droke/fusion[/url][/QUOTE]
I've got it on my server, haven't got to use it though!
[QUOTE=Xenus;50079403]So has anyone got a server running fusion in some form that I can come check out?
Also, myself and others have updated the github recently, if anyone wants to check out the latest here it is: [URL]https://github.com/droke/fusion[/URL][/QUOTE]
I have been using it on mine and slowly modding it to work with my (Hexahedronic base) BaseWars server.
Also had a hell of a time manually adding in those updates to my modified version but, was fun.
Feel free to message me for the addy.
[QUOTE=Broly;50160106]I have been using it on mine and slowly modding it to work with my (Hexahedronic base) BaseWars server.
Also had a hell of a time manually adding in those updates to my modified version but, was fun.
Feel free to message me for the addy.[/QUOTE]
Honestly I feel the test of a good admin mod is that you can use someone else's mod as your "base" but write your own separate addons that make it operate the way you need it to. What I mean is you can configure your own way of loading ranks and bans (so you can hook it into databases) if you need to, otherwise it works the default way.
Anyway my point is are you modifying the Fusion files itself? That's my point - hopefully you aren't because that makes pulling updates from GitHub harder - but I'm not sure how Fusion works exactly.
Which brings me to my next question, is Fusion being developed in a way that allows for that kind of customization? So you can adapt it to your needs without modifying the base files and breaking the ability to update it? Falco just did this with DarkRP and I think it's a game changer. Nice admin mod though!
Here's an example of what I mean. This is how my admin mod works (pseudo-code):
Built-in:
[lua]hook.Add("PlayerInitialSpawn", "rank.load.default", function(objPl)
objPl:setRank("Guest")
adminmod.ranks.get(objPl) -- loads it from a file
end)[/lua]
My server-specific addon:
[lua]hook.Remove("PlayerInitialSpawn", "rank.load.default")
hook.Add("PlayerInitialSpawn", "rank.load.database", function(objPl)
objPl:setRank("Guest")
local query = mydb:query("SELECT rank FROM player_data WHERE steam64 = '"...objPl:SteamID64().."' LIMIT 1")
function query:onSuccess(tblData)
objPl:setRank(tblData[1]["rank"])
end
query:execute()
end)[/lua]
This way the entire mod will function as a drop-in system for any server but I can have a separate addon specific to my server that replaces the default ranks with database calls that are designed directly for my database and APIs.
Fusion is written modular-ish, the files are automatically loaded so adding new files that tie in isn't too hard. Most of the modules I've made for Fusion won't cause errors if you just delete them too.
But it's not really been made with customizability in mind, it was just developed by me for my server, so I never had a reason to make it easy to understand and what not. If I had the time I'd love to either re-code it or overhaul parts of it that 17 year old me thought was cool, maybe one day.
The way I mean customizing though you would clone the mod and never actually touch any of its files though.
No worries man, I was just curious. I like how it looks especially!
[QUOTE=Banana Lord.;50161180]The way I mean customizing though you would clone the mod and never actually touch any of its files though.
No worries man, I was just curious. I like how it looks especially![/QUOTE]
Being able to derive from it like that and just override what parts you want to would have been a much nicer way to do it if my end goal was a release. Unfortunately my foresight is not so good, so here we are.
Thanks for the kind words! :D
So is this broken? I have errors whenever I try using this Admin Mod.
[editline]23rd April 2016[/editline]
[code][Fusion] Setting up player - code_thrax...
[ERROR] addons/fusion/lua/fusion/fusv_framework.lua:99: attempt to call field 'RetrieveData' (a nil value)
1. InitializePlayerData - addons/fusion/lua/fusion/fusv_framework.lua:99
2. DoInitialSpawn - addons/fusion/lua/fusion/fusv_framework.lua:199
3. v - addons/fusion/lua/fusion/fusv_framework.lua:270
4. unknown - lua/includes/modules/hook.lua:84
[/code]
Sorry, you need to Log In to post a reply to this thread.