View Full Version : Stormfront XML
Celephais
08-13-2005, 11:43 PM
Anybody here done any work generating stormfront XML? I'm looking for a tag that would allow me to do dynamic, specific color formatting of outpu.
I don't want to do a sendsettings and make a custom highlight string (because I can't do what I want with that anyway and it's ridiculous how verbose that tag is)
Specifically I'm looking for something like the <a> tag except be able to pass a color parameter. That way I would do something like:
<a exist='3236675' noun='wand' color='#444466'>silver wand</a> and then I would consistently display item 3236675 as that color (allowing me to mark mundane items visually and distinctly)
Celephais
08-13-2005, 11:51 PM
Oh, yes I do know about making two highlight strings, and then tagging on something like ~Highlight Red to the end of the output. With a "Highlight entire paragraph red" and then a "Highlight just that word as black", but that won't let me do what I want and I'm looking for an elegant solution if possible.
Shaelun
08-14-2005, 12:22 AM
The more I ponder this, the more confused I get... I'm aware (or rather believe) that StormFront receives XML formatted output from the game, but don't use it, and -- to be blunt... what the Hell are you talking about? The only situation I can conceive of where you'd need to know this or even be able to make use of it is if you were generating the XML from the game yourself.
Just trying to learn, not make a personal attack, and what you've asked has me thoroughly boggled.
... I don't suppose something like standard <color = "red">wand</color> would do it?
Celephais
08-14-2005, 12:42 AM
Well first off <Color = "Red">wand</color isn't proper XML, you need a tag, and then a property... so maybe <color value="red">wand</color> would work... I'll test it after I post and tell you..
I am parsing the xml from the game and altering it before sending it to the stormfront client, and vise versa. You know how in stormfront you have links for each item in your inventory so you can do that click menu stuff, well in order for that to work each object has a unique ID that the server maintains. So when I click on that wand it doesn't have to figure out if it's the fifth or sixth wand, it just sends a command with the identifier "3236675".
So what I can do is interrupt the tag that builds that click menu, and add my own menu item (Mark <color>), then I intercept the client trying to send that command to the server and save that "3236675" is now red. Then the next time the server tells the client something about that item, I incercept it and highlight it red. This way, at a glance, I can tell if wands are fresh, if they're dulplicated, what spells I imbed.
I can also use this unique identifier to track other details, once I weigh a box, I save the identifier with the weight, and then every time I display the box I have the client display "engraved iron trunk (28lb)"
Edit-disable smileys
[Edited on 8-14-2005 by Celephais]
Celephais
08-14-2005, 01:06 AM
<Color Value="Red">
<Font Color="Red">
<A Color="Red">
Don't work.
Also Tested with color, fgcolor, bgcolor properties. Web name, hexidecimal, palette number (@6 is red) colors. <b> and <pushBold/>Stuff<popBold/> only accomplishes default MonsterBold colors (tried the color properties there as well).
I'm not sure it's 100% possible, has anyone ever seen text appear a different color (other than MonsterBold yellow or Link blue) that wasn't set to a highlight string? (Like a GM doing something in colors)
Might still be possible even if the GMs can't do it, i'm not giving up.
Artha
08-14-2005, 01:08 AM
Yeah, it happens. [SEND]s for one.
Celephais
08-14-2005, 01:15 AM
Hmmm... now what can I do in game while i've got my xml logging on to get me colorful sends...
What FE were you using? Wizard or Stormfront? And was it a whole line a single color or multiple colors or single word? (Sorry for the 20 questions)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.