[gurps] Building a VehicleML

Onno Meyer Onno.Meyer at gmx.de
Tue Feb 17 08:59:27 CST 2009


> >For now I've dropped html/css and switched to PDF via fop. I'm 
> >roughly where I was, but with better growth potential. 
> 
> Well, I certainly find HTML more convenient in general - easier for
> search engines to index, easier to flip through quickly when I'm
> searching for a design with particular characteristics...

One problem that has me stumped right now is how to switch 
between Occ and Cargo in the same line (default) and Cargo 
below Occ in a new paragraph, not merely a new line (if 
Occ is too long).
 
With html, I don't see a chance, while fo might be able to
handle it. 

It also means that I can try to guesstimate good page breaks 
in the output.

Regarding the XML:

I want to declare one of the categories as "main category",
so that "interstellar" ships may be found in an "aerospace"
search, but only get listed once in a table-of-contents.

In addition, I turned the ID into a GUID. Probably overkill,
but it solves namespace management problems if anybody else 
uses the format.

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="starships.xslt"?>
<vehicles>
   <vehicle
    id="DD862253-584F-4DF8-919D-B645FC3667C9">
      <meta>
         <title>Hyalearl, 100-ton Sulieman-Class Scout/Courier</title>

         <week>698</week>

         <date>2008-03-10</date>

         <copyright>2008</copyright>

         <writer>Onno Meyer</writer>

         <tech>10</tech>

         <background>GURPS Traveller</background>

         <version>1.0</version>

         <categories>
            <category>manned</category>

            <category>aerospace</category>

            <category>space</category>

            <category mainCategory="true">interstellar</category>
         </categories>
      </meta>

      <writeup
       rules="GTStarships">
         <intro>The Hyalearl is a Scout/Courier assigned to the Security Branch of the Imperial Interstellar Scout Service. She is armed with two 500mm missile racks and one 250-MJ laser in the dorsal turret. The starboard cargo bay holds the usual air/raft hangar, but the port bay has been modified with a drop capsule system, low berths and a small surgery. The Scout/Courier is no real special ops craft, but she can jump into tight spots and get out again ...</intro>

         <intro>The ship has heavy compartmentalization. A typical crew consists of a captain/pilot, an astrogator, an engineer and five security troops. The listed payload includes an air/raft, 16 drop capsules, 18 missiles, two EW drones and 40 stons of general cargo.</intro>

         <subassemblies>VGSL Hull +8, Turret +5</subassemblies>

         <powertrain>Engineering, 3 Jump Drive, 20 Maneuver</powertrain>

         <fuel>20 Jump Fuel Tank</fuel>

         <occupancy>4 Staterooms, 4 Low Berths</occupancy>

         <cargo>8 dtons</cargo>

         <armors>
            <armor
             subassembly="All"
             F="4/200"
             RL="4/200"
             B="4/200"
             T="4/200"
             U="4/200">
            </armor>
         </armors>

         <weapons>
            <weapon
             amountText="2"
             name="500mm Missile Racks"
             locationText="Turret">
            </weapon>

            <weapon
             amountText="1"
             name="250-MJ Turret Laser"
             locationText="Turret">
            </weapon>
         </weapons>

         <equipments>
            <equipment
             subassembly="All">Basic Stealth; Basic Emission Cloaking</equipment>

            <equipment
             subassembly="Hull">Utility; two Fuel Processors; compact, hardened Basic Bridge with Planetary Survey Add-On; Drop Capsule Ready Rack; Drop Capsule Launcher; Spacedock (for one 0.5-dton air/raft); Sick Bay</equipment>
         </equipments>

         <statistics>
            <size>123'x82'x30'</size>

            <payload>71</payload>

            <lwt>379</lwt>

            <volume>100</volume>

            <maint>26 mh/day</maint>

            <price>MCr30.4</price>

            <ht>12</ht>

            <hps>
               <hp
                subassembly="Hull">15,000</hp>

               <hp
                subassembly="Turret">1,200</hp>
            </hps>

            <saccel>2.1 Gs/2.6 Gs empty</saccel>

            <jump>2</jump>

            <aspeed>2,360 mph</aspeed>
         </statistics>
      </writeup>
   </vehicle>

   <vehicle
    id="FF9C59C3-830D-45DF-9787-246D2A21C592">
      <meta>
         <title>Covert System Defense Satellite</title>

         <week>696</week>

         <date>2008-02-25</date>

         <copyright>2008</copyright>

         <writer>Onno Meyer</writer>

         <tech>10</tech>

         <version>1.0</version>

         <background>GURPS Traveller</background>

         <categories>
            <category>unmanned</category>

            <category mainCategory="true">space</category>
         </categories>
      </meta>

      <writeup
       rules="GTStarships">
         <intro>The CSDS is a low-cost alternative to a crewed System Defense Boat or starfighter. Powered down, the satellite can remain in orbit for a long time. Remote control from a surface base provides fire control data and launch orders, thereby avoiding controversy about armed robots.</intro>

         <intro>The Covert System Defense Satellite has an extra-heavy planetoid hull with total compartmentalization. The exact distribution of armor varies from satellite to satellite. The payload are thirty 500mm missiles.</intro>

         <subassemblies>Planetoid Hull +6</subassemblies>

         <powertrain>1 Maneuver</powertrain>

         <occupancy>(only in Cockpit)</occupancy>

         <armors>
            <armor
             subassembly="All"
             F="4/793"
             RL="4/821"
             B="4/805"
             T="4/832"
             U="4/791">
            </armor>
         </armors>

         <weapons>
            <weapon
             count="3"
             name="500mm Missile Racks"
             subassembly="Hull"
             facing="F">
            </weapon>
         </weapons>

         <equipments>
            <equipment
             subassembly="Hull">Cockpit</equipment>
         </equipments>

         <statistics>
            <size>25'x20'x10'</size>

            <payload>32</payload>

            <lwt>678</lwt>

            <volume>10</volume>

            <maint>8 mh/day</maint>

            <price>MCr2.86</price>

            <ht>9</ht>

            <hps>
               <hp
                subassembly="Hull">12,000</hp>
            </hps>

            <saccel>0.06 Gs</saccel>
         </statistics>
      </writeup>
   </vehicle>
</vehicles>



More information about the GurpsNet-L mailing list