Which format would be best?

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

Which output format would you rather have?

HTML
17
57%
Plain Text
10
33%
Delimited (.csv)
1
3%
Other (indicate below)
2
7%
 
Total votes: 30

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Which format would be best?

Post by Amadeus » Fri Oct 03, 2003 8:40 pm

I am thinking of adding functionality to the tray icon that would allow for right click options to write out to a file various types of information that MQ "knows". In other words, it could write out everything about your character into a "character sheet", etc...

So...

Zeus
a hill giant
a hill giant
Posts: 180
Joined: Wed Feb 19, 2003 10:03 am
Contact:

Post by Zeus » Mon Oct 06, 2003 11:26 am

Considered XML? Easy to incorporate to html for browser viewing and with .NET is EXTREMELY easy to dump data into an xml file.

prh
orc pawn
orc pawn
Posts: 12
Joined: Sat Oct 04, 2003 3:18 pm

Post by prh » Mon Oct 06, 2003 11:29 am

Was about to say XML till i saw Zeus had already written it... Maybe incorporate a simple xslt file to convert the xml to html :)

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Mon Oct 06, 2003 12:49 pm

I don't know xml ;) ...it would be simple html though, surely there is a converter out there somewhere that would convert SIMPLE html to xml.

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Post by MacroFiend » Mon Oct 06, 2003 2:15 pm

Amadeus, if you are interested in doing it XML, it is pretty simple to write the data out. The XSLT could be made by someone else (that is what transforms the "data" in to something pretty). If the concensus is for XML, I'd be willing to help you write the output routine to properly form the XML data. Someone suggested using the .NET XML writer which is a good idea but would change the minimum requirements to compile and run MQ to be VS.NET or newer, eliminating VS6/VC++6 as a platform.

XML is a superset of HMTL. An example of a possible way to represent character details below.

Code: Select all

<CharInfo>
  <Name>MacroFiend</Name>
  <MOBClass>NPC</MOBClass>
  <Stats>
    <AGI>75</AGI>
    <STR>110</STR>
    <DEX>75</STR>
    <WIS>90</WIS>
    <INT>75</INT>
  </Stats>
  <StatModifiers>
    <STR>45</STR>
    <AGI>-70</AGI> <!-- I'm very overweight -->
  </StatModifiers>

  <Inventory>
    <Bag num=0>
      <Slot num=0>
        <Item name="Rusty Dagger">
          <ItemID>2342</ItemID>
        </Item>
      </Slot>
     </Bag>
  </Inventory>
</CharInfo>

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Oct 07, 2003 5:48 pm

XML is nice for sure but it seems a bit overkill for this. Parsing a text file with a single variable=value pair on each line is generally a lot easier than XML. Keep it simple.