Valhalla Legends Forums Archive | General Discussion | Simple but VERY helpful idea for Web Bot

AuthorMessageTime
drake
I know this is kind of stupid to be requesting a feature for something that is already so awesome but I was wondering if you could add the ability to feed the background color for the the different windows as a parameter. Like you feed it the bot name and channel name, feed it background=ffffff or something. Right now all of them are default black and its just that it would add a nice touch for ones needs to customize it for their site but wouldn't be too difficult to add. If I had access to the code I could add this feature literally in like 2 minutes.
July 28, 2003, 1:17 AM
DarkMinion
Wrong forum, genius.
July 28, 2003, 3:35 AM
drake
mmm name a better one? The BNLS Request one is for requests to be added not for ideas as far as bot development. Programming forums don't seem to work either cause thats for help with programming not feature requests. Now the description for general includes "and [vL]-related issues." which this is a vL related issue.

Now if I am wrong thats fine but maybe it suggests the descriptions aren't clear enough or a new forum needs to be made.
July 28, 2003, 4:15 AM
Adron
Shouldn't you be able to change the background color using the style sheet?
July 28, 2003, 9:04 AM
Yoni
[quote author=Adron link=board=2;threadid=2111;start=0#msg16227 date=1059383088]
Shouldn't you be able to change the background color using the style sheet?
[/quote]Yes
July 28, 2003, 10:35 AM
Skywing
This is exactly what the ?css= option is for. Since all pages generated by BinaryChatISAPI are fully stylized, you should be able to customize almost everything related to the visual appearance. The ?css= option takes the fully qualified path (including protocol name) to a stylesheet file, and can be used with almost all pages generated by the ISAPI DLL. An example of using this to change that appearance of things: http://www.valhallalegends.com/skywing/isapi/BinaryChatISAPI.dll?channeltextstream=Skywing?css=http://botdev.valhallalegends.com/webchannel/styles.css.

BTW, the "default" frameset is not even provided by BinaryChatISAPI - you don't necessarily have to use it if you don't want to.

Also note that BinaryChatISAPI always uses qmarks (?) as command/option separators, even past the first commmand.

The default stylesheet (which is used if none is specified) is located here.
July 28, 2003, 3:15 PM
Adron
[quote author=Skywing link=board=2;threadid=2111;start=0#msg16246 date=1059405300]
This is exactly what the ?css= option is for. Since all pages generated by BinaryChatISAPI are fully stylized, you should be able to customize almost everything related to the visual appearance.
[/quote]

Note almost. Did you see the conversation a few days ago about wanting to customize the color of the name of an op leaving the channel? As it is now you can't have the name of an op talking be white but the entire leave message for all users be green. Not an extremely important thing but maybe you should add that if you're idling over the source code.
July 28, 2003, 5:10 PM
drake
Shortly after I posted I figured that out but thanks for the reply. The thing is that it isn't documented in the readme so I had to figure that out by snooping around the system. Yet there is a one problem, the connection images are built in groups of 6 so that when there is only one bar, there is a bunch of black for where another 5 would be. Maybe it would be better for 3 image of green, yellow, and red which display accordingly. Yes I am a pain in the ass :-/
July 29, 2003, 8:04 AM
Adron
[quote author=drake link=board=2;threadid=2111;start=0#msg16351 date=1059465868]
Shortly after I posted I figured that out but thanks for the reply. The thing is that it isn't documented in the readme so I had to figure that out by snooping around the system. Yet there is a one problem, the connection images are built in groups of 6 so that when there is only one bar, there is a bunch of black for where another 5 would be. Maybe it would be better for 3 image of green, yellow, and red which display accordingly. Yes I am a pain in the ass :-/
[/quote]

Hmm, so you mean that if you don't have a black background for the page, you still get a black background where the bars are supposed to be? Wouldn't the easiest way to fix that be to make the black areas of the bars be transparent instead?
July 29, 2003, 11:38 AM
Spht
[quote author=Adron link=board=2;threadid=2111;start=0#msg16361 date=1059478733]
[quote author=drake link=board=2;threadid=2111;start=0#msg16351 date=1059465868]
Shortly after I posted I figured that out but thanks for the reply. The thing is that it isn't documented in the readme so I had to figure that out by snooping around the system. Yet there is a one problem, the connection images are built in groups of 6 so that when there is only one bar, there is a bunch of black for where another 5 would be. Maybe it would be better for 3 image of green, yellow, and red which display accordingly. Yes I am a pain in the ass :-/
[/quote]

Hmm, so you mean that if you don't have a black background for the page, you still get a black background where the bars are supposed to be? Wouldn't the easiest way to fix that be to make the black areas of the bars be transparent instead?
[/quote]

Yes, that is correct. The icons are currently JPEGs, so we'd need to create new transparent GIF icons (I could provide you with these if you wish, Skywing). Then Skywing would simply have to change the extensions to which WebChannel references the icons (.JPG to .GIF).
July 29, 2003, 2:29 PM
Raven
The problem could actually be fixed by drawing the green bars as singles, and if a certain amount needs to be drawn beyond green, it'd just draw them as a set. Since battle.net doesn't update latency in real time while in channels, this could simply be done upon onJoin. :)
July 29, 2003, 3:35 PM
Skywing
[quote author=Raven link=board=2;threadid=2111;start=0#msg16376 date=1059492909]
The problem could actually be fixed by drawing the green bars as singles, and if a certain amount needs to be drawn beyond green, it'd just draw them as a set. Since battle.net doesn't update latency in real time while in channels, this could simply be done upon onJoin. :)
[/quote]You would still have the problem of the background of the images being black while the rest of the page possibly having some other different background color. This is something which could be fixed for all of the product icons, too.
July 29, 2003, 6:45 PM
drake
I don't care which way you do it personally, whatever way is easiest to you. By no means am I telling you that you have to but it would be GREATLY appreciated.
July 29, 2003, 8:41 PM
Skywing
[quote author=drake link=board=2;threadid=2111;start=0#msg16406 date=1059511301]
I don't care which way you do it personally, whatever way is easiest to you. By no means am I telling you that you have to but it would be GREATLY appreciated.
[/quote]
If you want transparent icons that much, it'd probably speed things up if you made transparent versions of all of the images BinaryChatISAPI references.
July 29, 2003, 10:07 PM
Raven
But the product icons are plain rectangles. I'm not even sure why there is even black outside the triangles to begin with, as it could easily be trimmed. Did you extract the icons out of the MPQs, or did you create them manually? (I think it was the latter.....?)
July 29, 2003, 11:08 PM
drake
Ok I will work on getting transparent versions to you asap so that you can use them. Thanks Sky.
July 30, 2003, 12:39 AM
drake
Well since I am just bored off my mind this summer, I did this in about 5 minutes so here are the images. Obviously I didn't include 6Red.gif because there is no need for it to be transparent and you can just use the jpeg image.

http://drake.skin-zone.net/images/
July 30, 2003, 1:00 AM
Spht
[quote author=drake link=board=2;threadid=2111;start=15#msg16441 date=1059526804]
Well since I am just bored off my mind this summer, I did this in about 5 minutes so here are the images. Obviously I didn't include 6Red.gif because there is no need for it to be transparent and you can just use the jpeg image.

http://drake.skin-zone.net/images/
[/quote]

Those are not the proper sizes.
July 30, 2003, 1:02 AM
drake
Those were the sizes I got from the bot :-/
July 30, 2003, 2:22 AM
Spht
[quote author=drake link=board=2;threadid=2111;start=15#msg16449 date=1059531733]
Those were the sizes I got from the bot :-/
[/quote]

Ah. I wasn't aware that Skywing used those dimentions. Those should be fine then. You might also want to make some of the flag icons transparent (such as operator).
July 30, 2003, 3:16 AM
drake
Ya I didn't notice that image cause the channel I am using the alternate background color for, doesn't have operator status in it but I will do what I can for that.
July 30, 2003, 5:21 AM

Search