|
Post by Eagle on Feb 25, 2009 11:23:27 GMT
[BINARIES]Download binaries[SOURCE]Download source codeWith these sources you can modify the plug-in to your specific needs, or use it as a reference for creating your own plug-ins. Note that you will need to download the EagleWare binaries as well and extract those to the dependencies folder included in the source code zip file in order to open the project file. [INSTALLATION]Download the binaries and extract them to a new folder on the server running FLAC, preferable location is My Documents\FLAntiCheat\PlugIns\Banners. Next you will have to alter DynamicAssemblies.xml located in My Documents\FLAntiCheat and add the following line between the <plugins> and </plugins> tags: <plugin assembly="%PATH_TO_PLUGIN%\FlacPlugIn.Banners.dll" listener="FlacPlugIn.Banners.NotificationHandler" />Replace %PATH_TO_PLUGIN% with the full path to the binaries. [NOTES]This plug-in allows you to add banners with font and color you specify, banners can be managed in game using the /banners command after an admin has been granted use of this command. Banner text and styles are stored in the plug-in folder as Banners.xml. If you manually alter the contents of this file, be sure to verify with Internet Explorer wether or not you have a valid xml file still. Manual editing of this file is only for advanced users and requires a restart of FLAC, management through in game commands is adviced. The style parameter as used in the /banners add command has to be an 8 character hexadecimal number preceeded by 0x, for example: 0x3399FF01 The exact meaning of this hexadecimal number can be found under EagleWare.Libraries.FLServerCommunications.Events > UniverseCustomChat > Style at the component documentation.
|
|
|
Post by dragnite on Feb 26, 2009 2:34:33 GMT
I wouldnt exactly call this an explanation, why cant it be simple like size =, message =, colour =.
as in
<banner size = "10" message = "MU Rocks" Colour = "red"
Seriously the only part i understand is getting the colours in hexidecimal because when i click a colour on my forum it shows it. The rest is all jargon.
Also in the xml file if i were to edit it manually then what exactly does the number in this line mean
style="4294967040"
|
|
|
Post by Eagle on Feb 26, 2009 14:18:51 GMT
The snippet you quoted is from the developers documentation and indeed jargon, examples for white universe text is provided so you'll at least be able to recreate banners you have running now without any problems. Creating your own styles requires some knowledge of hexadecimal numbers, what it boils down to is that you have to add the individual numbers to create the style you want... bold for instance is 1, italic is 2... 3 would make is bold and italic (1+2). Again... to understand the bit positions etc you need to know how to use hex numbers.
The configuration files contain decimal numbers, 4294967040 for isntance equals 0xFFFFFF00. You can use the windows calculator in scientific mode to convert that back and forth. Also note that direct editing of the xml file is only for advanced users, in game commands ensure you can't create an invalid configuration file.
Below a few examples of styles you could use: plain white text: 0xFFFFFF00 bold white text: 0xFFFFFF01 bold red text: 0x0000FF01
I'm sure someone could slap together a windows application which allows you to calculate this number by selecting size, color etc. from drop down lists for example. Feel free to post such a request, or maybe something like that is allready available? Hex code used is afterall the code as used by Freelancer itself, even FLHook is to be configured as such.
|
|
|
Post by dragnite on Feb 26, 2009 14:43:27 GMT
That explains it a bit better and as you added these examples
plain white text: 0xFFFFFF00 bold white text: 0xFFFFFF01 bold red text: 0x0000FF01
i can see fromt he two white ones it is only the end number i need to change for bold,italic etc
The colour bit isnt so difficult i can just go into my forum admin section select a colou i like and write it down then go in game and do the rest.
|
|
|
Post by bulldogg on Feb 27, 2009 8:29:24 GMT
@ dragnite, what forum software you using?
|
|
|
Post by dragnite on Feb 27, 2009 12:45:10 GMT
|
|
|
Post by bulldogg on Feb 27, 2009 16:38:15 GMT
hmm i may copy there color system to make something useful
which forum did you choose on thats site? phpBB2 | phpBB3 | punBB | Invision ?
|
|
|
Post by bulldogg on Mar 1, 2009 17:29:38 GMT
im definatly gonna make a managment application addon for this feat, just need to get a list of colors and style types for presets
BD
|
|
|
Post by tiger on Mar 24, 2009 12:22:29 GMT
|
|
|
Post by robocop on Apr 4, 2009 14:22:20 GMT
My FLAC install does not include the DynamicAssemblies.xml file mentioned above. I have the 2.9.4.1 version installed, but no DynamicAssemblies.xml file.
I had to skip versions as the 2.9.3.30? version killed the server and I had to roll back. Is it possible that file was installed in the 3.30 version but not in the 4.1 version?
Also, where do I install the source code and dependencies files?
|
|
|
Post by Eagle on Apr 4, 2009 15:04:40 GMT
You don't need the source code plus its dependencies, those are only for folks who want to modify this particular plug in or develop their own based on it. The DynamicAssemblies.xml isn't actually deployed as a clean install does not need one. This file is only needed when plug ins are used along side FLAC. You can find its format in this thread, let me know if this helps
|
|
|
Post by bulldogg on Apr 4, 2009 18:04:50 GMT
ill make a config tool for this i think, choose color, size and message in a nice lil window
or, ill edit the source to allow default colour values such as red blue ect to make it easier for changes ingame, aswell as size, bold ect ect
|
|
|
Post by bulldogg on Apr 10, 2009 12:11:05 GMT
i have this applied and the banners are working set to a 300 (5min interval) but the /banners command cant be seen ingame
|
|
|
Post by Eagle on Apr 10, 2009 12:31:59 GMT
If problems persist after a restart, let me know... if so, debug log should also contain clues as to what's wrong.
|
|
|
Post by bulldogg on Apr 10, 2009 15:07:31 GMT
works fine after restart
|
|
|
Post by Eagle on Apr 10, 2009 17:08:37 GMT
excellent ;D
|
|
|
Post by robocop on Apr 19, 2009 20:02:54 GMT
Everything seems to be working. Is there a place where I can download the options/syntax list that you see in game when typing /banners so I can refer to it while I'm typing?
|
|
|
Post by Eagle on Apr 20, 2009 6:31:29 GMT
Nope, but a print screen would do the trick I deliberatelly chose to embed all in the plug in itself so if I ever changed it, I would not have to search the forum for posts to update. /banners help should display all options available to you.
|
|
Gibbon
FLAC
Bananaworld
Posts: 178
|
Post by Gibbon on Jul 11, 2009 8:35:20 GMT
Ok, so for those of us who were quite happy with things as they were, the situation is currently thus. All banners have now disappeared from the server and i have no way to edit them as that section in FLAC has now been removed. So i now have to go through the above process to manage banners in game?
|
|
|
Post by Eagle on Jul 11, 2009 9:35:11 GMT
Banners are indeed no longer supported in FLAC, the above is an add-on (plug-in) you can use to do what FLAC once did and more. For the developers out there the source of this plug-in is also available so you can customize it to your specific needs. Using the plug-in as is you just need the binaries, also note that banner configuration produced by this plug-in is stored in an xml file so easy to backup etc.
|
|