I had an idea of how to go about querying our game servers for a game server list on the site, so today I had a poke around to see how to turn it into a vbulletin widget.
First up, the vbulletin documentation is pretty inadequate. The vbulletin forum, the best place to get details on the nooks and crannies of the system, strips out all code snippets which have been posted unless you have an account which is associated with a registered vbulletin license. If I didn't know better I'd assume they really didn't want people developing features for vbulletin.
However with a bit of digging, I managed to piece together enough info to get a 'proof of concept' working with a few of our servers:
(http://img704.imageshack.us/img704/6578/serverlist1.png)
So now I'm open to suggestions for how the server list should be styled.
Some ideas:
- Green/Red traffic light next to server name to show online/offline
- Click on server name to expand server details?
- What details to show?
- Game type?
- Current/Max players?
- Map name?
Really good work. The way I've imagined it looking is very simple. Highlight a server if it is the game time for that game or a match is on eg 7-10pm Monday would mean CoD 4 server would be highlighted to remind people to join (in a similar way to the forum threads).
The only details I'd expect to see are server name and number of players. If I see people playing a game when I want to I'll join no matter the map/game type. If possible a game logo instead of the game type tag section, might make it easier to glance at.
If the server is empty it should be out of the way, so it draws focus to a game being played, which should hopefully lure people in.
That's my two cents. By the looks of it this widget could be the single biggest improvement the forum software upgrade could bring, very much looking forward to seeing more.
Boon, if there's particular bits of code you want then shout at me and I'll try to copy paste them, they do restrict access to vB4 owners for whatever reason.
Quote from: T-Bag;305955Really good work. The way I've imagined it looking is very simple. Highlight a server if it is the game time for that game or a match is on eg 7-10pm Monday would mean CoD 4 server would be highlighted to remind people to join (in a similar way to the forum threads).
The only details I'd expect to see are server name and number of players. If I see people playing a game when I want to I'll join no matter the map/game type. If possible a game logo instead of the game type tag section, might make it easier to glance at.
If the server is empty it should be out of the way, so it draws focus to a game being played, which should hopefully lure people in.
That's my two cents. By the looks of it this widget could be the single biggest improvement the forum software upgrade could bring, very much looking forward to seeing more.
How about this for a mock up then?
(http://img686.imageshack.us/img686/5403/serverlistmockup.png)
Rather than server details, clicking a server could expand to a player list. Today's game highlighted yellow (in this example), empty/offline servers grey.
To make it smaller you could make whole game sections collapsible.
Obviously it would look nicer than I can do in Paint. :P
Quote from: TealeafBoon, if there's particular bits of code you want then shout at me and I'll try to copy paste them, they do restrict access to vB4 owners for whatever reason.
Will do. :thumbup:
Looks nice!
Work in progress:
(http://img517.imageshack.us/img517/6690/serverlist2.png)
Edit: Giving some thought to icons for game type, any issues with me nicking the little icons they have on gametracker?
Yup, those icons would work fine, or nick larger ones from the actual shortcuts. It'll be immediately recognisable that way to anyone visiting which games we play if they own them.
BFBC2 support added:
(http://img52.imageshack.us/img52/4241/serverlist3.png)
Damn that's impressive :yahoo:
I think it looks great. Deffo agree on the need for icons or something to differentiate between the game types but it's clean, uncluttered and looks superb.
Make sure there are no copyright issues before using icons from another site. We could end up in trouble if we use copyright material without permision.
I think the game icons are all issued as part of the media pack for each game, so I suspect we'd be ok on icon use, but worth checking.
Added some game icons (not stolen from gametracker):
(http://img235.imageshack.us/img235/2330/serverlist4.png)
Still need an icon for BFBC2 and L4D2 (possibly just recolour the red one to yellow/gold?).
Aside from that, does the serverlist need to be much more than this? I'm quite liking the cleanliness of its look just now.
Quote from: b00n;306021Aside from that, does the serverlist need to be much more than this? I'm quite liking the cleanliness of its look just now.
Thats just perfect in my opinion. That is how I always wanted it to be, great job b00n! :)
TL, to assist with packaging this into something that can be installed easily, could you grab me a copy of this vbulletin mod?:
http://www.vbulletin.org/forum/showthread.php?t=231154
Required as vbulletin can currently import/export products and plugins, but not widgets. You'll need it for the dMw site too.
Cheers :thumbup:
Attached.
Rename to .xml
Superb :worship:
Quote from: b00n;306021Added some game icons (not stolen from gametracker):
(http://img235.imageshack.us/img235/2330/serverlist4.png)
Still need an icon for BFBC2 and L4D2 (possibly just recolour the red one to yellow/gold?).
Aside from that, does the serverlist need to be much more than this? I'm quite liking the cleanliness of its look just now.
Quote from: TeaLeaf;306025Attached.
Thanks, but seems that while the mod can export widgets just fine, it fails to import them due to some poorly written SQL. I'll see about fixing that, if not the widget will need to be configured manually (not hard though).
Icons finished:
(http://img294.imageshack.us/img294/659/serverlist5.png)
Have I missed any servers?
Few issues to note:
This plugin is currently not configurable - I can't find sufficient documentation on customising the admincp at the moment, and I haven't had time in any case. Names, IP addresses, and ports of servers are hard-coded into the plugin. Not so bad, since if you take a look at the plugin code in Plugin Manager you'll see that it isn't hard to edit, and can still be done within admincp.
ArmA2 IP address is hard-coded to .49, which means if it switches its binding to .45 it'll most likely disappear. I may be able to modify it to check both and list whichever is online, if I get around to it.
Plugin was designed around the default Home layout, which allows 240px for the right column I believe. Anything less than that will probably squish the layout.
Lookin' damn fine :thumb:
Whitey has been trying some tweaks to keep ArmA2 on .45
Quote from: OldBloke;306045Lookin' damn fine :thumb:
Whitey has been trying some tweaks to keep ArmA2 on .45
You're right, I actually hard-coded it to .45 :)
Very impressive, this is as good as I imagined it being and more. I like how clean it is so it doesn't need any more clutter as far as I'm concerned.
I've packaged it up as best I can, install notes included. I gave it a test install and all seemed to work as it should.
Edit: Forgot to mention, I fixed the Widget import/export mod, a fixed version is included in the zip. If it's already installed, just replace the files with those included, no need to change anything in Admincp.
TL, have these files been uploaded to the server? Once I can get the access to ACP sorted I can go ahead and configure the plugin.
Edit: Ah yeah, guess I'll need to remove the CSS servers as well...?
I've installed the widget as per the install instructions included but it's not displaying properly. Have a look at the home page and let me know what I've missed. :)
EDIT: Sorted, It was an issue with the template to do with spacing/tabs but not sure exactly. To fix it, I took one of the default widget templates and cut/pasted it into the dmw_widget_serverlist then just changed the relevant parts and it was fine.