About Siegecraft: OpenDAoC, DAoC 1.65, and differences
OpenDAoC is looking into "classic-accurate siege weapons (daoc.djswifty.com), with the siegecrafting tradeskill and all" and I think I can help, with this homework:
- what OpenDAoC does with siege today;
- what is missing or different from 1.65;
- what we know about 1.65 siegecraft, and from where;
- the change we propose, which touches both the server and the database.
Every claim below has a source in siegecraft-sources.csv. The data
tables and a draft of the database rows are attached at the end.
1. What OpenDAoC does today
We read OpenDAoC-Core at ee6d8ea and OpenDAoC-Database at 7068aef.
The code is there. Core has the siege engines (GameSiegeRam, GameSiegeBallista,
GameSiegeCatapult, GameSiegeTrebuchet, GameSiegeCauldron), the siege window's actions, a
SiegeCrafting profession and a Siegecraft master class. When a Siegecraft recipe finishes,
SiegeCrafting.BuildCraftedItem spawns the engine where the crafter stands, for item
Object_Type 80 (ballista), 81 (catapult), 82 (cauldron), 83 (ram) and 84 (trebuchet).
The data isn't. The database has no recipes with CraftingSkillType 3 (Siegecraft), so
nobody can craft a siege weapon, and the Siegecraft skill can't be raised.
What players use instead is an Atlas shortcut. The SiegeMerchantAlb, SiegeMerchantMid and
SiegeMerchantHib lists sell one-use items: deploy_siege_ram, deploy_heavy_siege_ram,
deploy_siege_catapult, deploy_siege_trebuchet and deploy_siege_ballista, at 50g or 100g each.
Using one casts a SummonSiege* spell that places the engine. A ram has to be summoned at a keep
door 200 to 500 units away, with at most two rams nearby. No parts, no recipe and no skill are
involved.
Some of the classic pieces exist already. The part items (swing_harness, gimbal, pivot,
counterweight and the rest) are in the database, and a merchant list with them and boards
exists, on a Midgard NPC template (Heimdar) that no spawned NPC uses. Door repair costs the same wood units per tick as in 1.60. The database also has
tiered parts such as makeshift_ram_cladding, worn_ballista_trigger and
durable_siege_ram_beak, and *_apparatus items. Those belong to the siegecraft of patch 1.90
(see section 3), not to 1.65, and our rows don't use them.
The engine numbers are placeholders, which OpenDAoC notes as fine where a feature is missing:
| Ram | Ballista | Catapult | Trebuchet | |
|---|---|---|---|---|
| Base damage | 100–200 by level, plus half again per rider | 75 | 100, radius 150 | 100, radius 150 |
| Arm time (after 5 s to aim) | 10 s | 10 s | 10 s | 15 s |
| Damage multiplier | ×3 vs doors and keeps | ×2 vs doors and keeps | ×3 vs doors and keeps | |
| Can move once placed | no | yes | yes | no |
Rams are limited to two per target. Engines lose 10% of their health every four minutes and stop working at 30%. They don't use ammunition.
2. What's missing or different
The full comparison, with a source for each row, is in
siegecraft-rules.csv. In short:
| 1.65 | OpenDAoC today | |
|---|---|---|
| Getting a weapon | craft parts, then build the engine with Siegecraft where you stand | buy and use a deploy_* item |
| Who has Siegecraft | Weaponcraft, Armorcraft, Tailoring and Fletching crafters | every crafter, including Alchemy and Spellcraft |
| Wood tiers | elm, oak and ironwood version of each engine | engine level isn't read from the item |
| Engines per door | 3, of any kind | 2 rams |
| Arm time | ram 5 s, ballista 10 s, catapult 15 s | ram 10 s, catapult 10 s |
| Ammunition | loaded one piece at a time, used up per shot; stone, ice, bullet, grapeshot, bolt | not used |
| Ballista bonus | ×3 against siege engines | ×3 against doors and keeps |
| Moving an engine | not possible | ballistae and catapults can move; rams take riders |
| Door upgrade | /upgrade N, paid in wood units |
no command |
3. What we know about 1.65
Why not just look at retail? Live DAoC no longer has 1.65 siegecraft. Patch 1.90 (5 September 2007) "completely revamped" it: recipes now run from 5 to 1000 skill, the parts moved from Armorcraft, Weaponcraft, Tailoring and Fletching into Siegecraft itself, each engine comes in ten configurations from makeshift to fortified instead of three woods, ammunition is tied to engine tier, and stronger engines need a siege tent nearby. Playing retail today shows the 1.90 system, so 1.65 has to be pieced together from sources written at the time.
1.65 siege is 1.60 siege. We went through the official patch notes from 1.60 to 1.65. Patch 1.60 (24 February 2003) reworked siege. After that, we found three notes that touch it: siegecraft items got an inventory icon in 1.62, the housing Siegecraft Supplies merchants started selling ammo in 1.64, and siege engines and parts got new models and icons in 1.65 (8 October 2003). None of them changes how siege works.
That matters because the best-documented source is from 1.60:
- Celer Healweall's Siege Weapon Workshop (daoc.djswifty.com, the site OpenDAoC linked) is a 1.60 worksheet. It covers every recipe, part, cost and weight, the rules, and the keep door wood-unit tables. Its Excel version is the "siege weapons FAQ" other sites quoted at the time.
- The 1.64 client's own recipe file (August 2003), through OfflineDAoC-True165, a 1.65 recreation built on OpenDAoC. Its v0.7 release includes the 1.64 recipes as OpenDAoC rows, Siegecraft among them. It also already implements engine tiers and ammunition, under GPL-3.0 like Core.
- The period forums. Threads on Freddyshouse from 2002 to 2004 describe building and running engines and confirm the numbers: 300 boards per ram after 1.60, any crafter at skill 1 can build, ram arm time 5 s, ammo stacks of 20, a skill cap of 68 reached by crafting ammo.
- Mythic's own Siegecraft HOWTO (January 2002). It predates 1.60, when a ram took 1250 boards and a ballista 1500, so it isn't a 1.65 source. It helps with the history of individual recipes.
The two recipe sources agree on 23 of 26 recipes
(siegecraft-recipes.csv):
| Kind | Recipes | Skill and level | Materials |
|---|---|---|---|
| Parts | 12, e.g. swing harness, ram cladding, gimbal, pivot | Armorcraft, Weaponcraft, Tailoring or Fletching, 500 | metal bars, leather, thread, cloth |
| Engines | 9: elm small ram, oaken ram, ironwood siege ram; elm scorpion, oaken ballista, ironwood palintone; elm onager, oaken catapult, ironwood trebuchet | Siegecraft, 1 | 300 (rams), 400 (ballistae) or 600 (catapults) boards of the wood, plus parts |
| Ammo | 5: catapult stone, ballista bolt, bullet, grapeshot, ball of ice | Siegecraft, 10 (stone, bolt) and 18 (the rest) | 7 to 27 metal bars, plus elm boards for bolts |
The three that differ, with Mythic's 2002 recipe for comparison:
| Recipe | Mythic, January 2002 | Celer, 1.60 (February 2003) | 1.64 client (August 2003) | Our rows |
|---|---|---|---|---|
| Ballista trigger | 140 metal, 400 leather, 600 cloth, 100 thread | 100 metal, 300 leather, 450 thread | 100 metal, 300 leather, 450 cloth | 1.64 |
| Arm cushion | 160 metal, 460 leather, 600 cloth, 140 thread | 100 metal, 400 leather, 400 cloth, 100 thread | 100 metal, 400 leather, 400 cloth | Celer, open |
| Ballista bolt | not given | 7 metal, 13 elm boards | 7 metal, 15 elm boards | 1.64 |
The trigger already used cloth in 2002, so the 1.64 recipe looks like the same one scaled down, and we follow it. Celer's crafted prices only add up with his own materials, so for the arm cushion we can't tell whether the recipe changed between February and August 2003 or a material was named differently along the way. We're asking the OfflineDAoC-True165 project what the raw 1.64 file says.
The 1.64 recipe levels fill a gap Celer leaves: he gives no level for ammunition, and without one the skill can't reach 68.
4. The change: server logic and database rows
Neither half works alone. The rows are useless while nothing can start a Siegecraft recipe, and the code can't be tested without rows.
Starting a recipe. A client's craft request carries only a recipe id, picked from its crafting
window, and the server looks that id up as is (MakeProductHandler → CraftItem). The clients
players run today come from long after patch 1.90, so their crafting window can't offer the 1.65
Siegecraft recipes. The server needs another way in: a /siegecraft command that lists the recipes
and builds one, or a dialog on the Siegecraft master. Either way, no client change is needed.
We suggest small steps, each its own pull request:
| Step | Repository | Change | Needs a decision |
|---|---|---|---|
| 1 | Core | a server-side way to start a Siegecraft recipe; Siegecraft only for Weaponcraft, Armorcraft, Tailoring and Fletching | command or master dialog |
| 2 | Database | the recipes, engine and ammo items, part and ammo merchant lists | where the merchants stand |
| 3 | Core | engines take their tier (elm, oak, ironwood) from the item's Level |
|
| 4 | Core | ammunition: loaded from the backpack, used per shot, five types | yes, gameplay |
| 5 | Core | the 1.60 rules: 3 engines per door, arm times, no moving, ballista ×3 against siege | yes, gameplay |
| 6 | Core and database | door /upgrade N with the 1.60 wood-unit table |
yes |
Steps 1 and 2 go together. They are the smallest change a player can use: buy parts, craft, build a ram. We'll test them on our own server before opening any pull request.
OpenDAoC's decisions:
- whether the
deploy_*merchants stay. The nearest 1.65 equivalent was the battleground Siege Master, who sold tokens and built the engine for you; - whether to port OfflineDAoC-True165's tier and ammunition code for steps 3 and 4, with credit, rather than write new code;
- the gameplay choices in steps 4 to 6.
Files
| File | What it is |
|---|---|
siegecraft-recipes.csv |
the 26 recipes from both sources, side by side |
siegecraft-rules.csv |
each rule: 1.65, its source, OpenDAoC today, the change |
siegecraft-door-wood-units.csv |
keep door upgrade and repair costs in wood units |
siegecraft-sources.csv |
every source, dated |
siegecraft-itemtemplate.sql, siegecraft-crafteditem.sql, siegecraft-craftedxitem.sql, siegecraft-merchantitem.sql |
draft rows in OpenDAoC-Database's per-table format: 9 engines, 5 ammo, 26 recipes (ids 30500–30525), 2 merchant lists |
siegecraft-parts-update.sql |
optional: 1.60 weights and prices for the existing part items |
The SQL is a draft. We checked it offline: the columns match each table, every referenced item exists, and the crafted costs add up to Celer's, apart from the recipes that follow the 1.64 file. It hasn't been loaded on a server yet. Of the three disputed recipes, the trigger and the bolt follow the 1.64 file and the arm cushion follows Celer.
Thanks to Celer Healweall (Celer Y of Heart of Oak, Hibernia/Igraine) for the 2003 worksheet, and to the OfflineDAoC-True165 project for publishing its 1.64 recipe rows.