PDA

View Full Version : Parser Table Functionality



Fot5
October 23rd, 2010, 18:10
Can someone explain how the table functionality works in the 4e Parser? Specifically, I'd like to see an example file that contains valid Col and Row entries (excerpt from the Parser Document.txt file shown below).

Col;{number},{label}
Row;{from},{to},{result},{resultn}

Zeus
October 24th, 2010, 02:51
Try the following format. Key thing to remember is to ensure the Row statements contain the correct number of column data. Oh and the delimiter is a semi-colon.

E.g. 3 column 3 row table

ZTable
Name;<Name of Table>
Description;<Description of Table>
Col;1;<Name of Column>
Col;2;<Name of Column>
Col;3;<Name of Column>
Row;1;3;<Row 1 Col 1 Data>;<Row 1 Col 2 Data>;<Row 1 Col 3 Data>
Row;4;6;<Row 2 Col 1 Data>;<Row 2 Col 2 Data>;<Row 2 Col 3 Data>
Row;7;9;<Row 3 Col 1 Data>;<Row 3 Col 2 Data>;<Row 3 Col 3 Data>

An empty row would look like:

Row;10-10;;;

Hope that helps.

Fot5
October 24th, 2010, 15:22
Thanks for the example. Heh, I just noticed that my example has a semi-colon.

someoneinatree
November 20th, 2010, 23:22
In Version 118, I have found that the parser struggles with some of the tables in the equipment section of the Dark Sun Campaign setting. A little bit random, and I edited the output so that I could parse it alright, but it doesn't know how to display them properly unfortunately.

Zeus
November 21st, 2010, 09:18
In Version 118, I have found that the parser struggles with some of the tables in the equipment section of the Dark Sun Campaign setting. A little bit random, and I edited the output so that I could parse it alright, but it doesn't know how to display them properly unfortunately.

chezcaliente- I am not sure I am following you correctly. Could you provide an example please.

someoneinatree
November 21st, 2010, 23:00
It basically affects Mounts and Cages in the Dark Sun equip.txt

I've copied one of them below, the section in red is what I added to close off all the open tags just to at least get it to parse, but I imagine something different is required to make it appear as a pretty table in game.



ZHead; Mount
ZDesc; <p>A crodlu is a large, flightless drake with a beak and weak, clawed forelimbs that can be used to manipulate small objects. It is a tough and aggressive hunter in the wild. When trained, it makes an excellent war mount. </p>
<p>
<table><tr><th>Speed per Hour</th><th>Speed per Day</th><th>Normal Load (lb.)</th><th>Heavy Load (lb.)</th><th>Push/Drag (lb.)</th></tr>
<tr><td>4 miles</td><td>40 miles</td><td>190</td><td>380</td><td>950</td></tr></table></p>

I understand I could probably replace it manually with the ZTable format above, but my main point was that the parser itself wasn't recognising the tables correctly to start with.

M. Flinkenflogel
November 30th, 2010, 00:59
It basically affects Mounts and Cages in the Dark Sun equip.txt

I've copied one of them below, the section in red is what I added to close off all the open tags just to at least get it to parse, but I imagine something different is required to make it appear as a pretty table in game.




I understand I could probably replace it manually with the ZTable format above, but my main point was that the parser itself wasn't recognising the tables correctly to start with.

I have noticed the same thing. Secondly it doesn't recognize some of the weapons as weapons but only as normal equipment. Thirdly a lot of equipment form Eberron and some other sources have also been imported. I have found the following in Equip.txt (easily fixed by hand, but it might help with it debugging. I have also removed all of the descriptive lines. I don't want to get into copyright problems.):



ZHead; Superior two-handed melee weapon
ZItem; Greatspear; 25 gp; 8 lb.
ZDesc; ;

ZHead; Superior two-handed melee weapon
ZItem; Mordenkrad; 30 gp; 12 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double axe; 40 gp; 15 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double flail; 30 gp; 11 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double sword; 40 gp; 9 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Urgrosh; 10 gp; 8 lb.
ZDesc; ;

ZHead; Superior two-handed ranged weapon
ZItem; Greatbow; 30 gp; 5 lb.
ZDesc; ;

ZHead; Superior two-handed ranged weapon
ZItem; Superior crossbow; 30 gp; 6 lb.
ZDesc; ;

ZHead; Superior one-handed melee weapon
ZItem; Net; 20 gp; 6 lb.
ZDesc; ;

ZHead; Superior one-handed ranged weapon
ZItem; Bola; 5 gp; 2 lb.
ZDesc; ;

ZHead; Superior two-handed ranged weapon
ZItem; Blowgun; 5 gp; 2 lb.
ZDesc; ;

ZHead; Superior two-handed weapon
ZItem; Garrote; 1 gp; 1 lb.
ZDesc; ;

ZHead; Superior one-handed melee weapon
ZItem; Cutting Wheel; 10 gp; 1 lb.
ZDesc; ;

ZHead; Superior one-handed melee weapon
ZItem; Drow Long Knife; 15 gp; 2 lb.
ZDesc; ;

ZHead; Superior one-handed melee weapon
ZItem; Talenta Tangat; 20 gp; 8 lb.
ZDesc; ;

ZHead; Superior two-handed melee weapon
ZItem; Talenta Sharrash; 30 gp; 10 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double Scimitar; 40 gp; 15 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Zulaat; 30 gp; 12 lb.
ZDesc; ;

ZHead; Superior one-handed ranged weapon
ZItem; Talenta Boomerang; 5 gp; 1 lb.
ZDesc; ;

ZHead; Superior one-handed ranged weapon
ZItem; Xen’drik Boomerang; 10 gp; 2 lb.
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double axe - Secondary end; ; -
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double flail - Secondary End; ; -
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double sword - Secondary end; ; -
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Urgrosh - Secondary end; ; -
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Zulaat - Secondary end; ; -
ZDesc; ;

ZHead; Superior double melee weapon
ZItem; Double scimitar - Secondary end; ; -
ZDesc; ;

M. Flinkenflogel
November 30th, 2010, 01:00
I just noticed those are all superior items. This might have something to do with it.