aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


commit 99922ca7b369cea2b141e257a124797d80b78a53
parent c112d8c013fd70642c03637a06d377918cdf675c
Author: anon <anon@example.com>
Date:   Sat, 28 Nov 2026 09:50:53 +0000

Open all authored Whom-Pah routes to every faction and level

Diffstat:
Mdocs/zoning.md | 10++++++----
Mserver/assets/zone_links.yaml | 423++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
Mserver/browser_city_doors_test.go | 2++
Mserver/city_doors.go | 3+++
Mserver/state.go | 8+++++++-
Mserver/whompah_test.go | 32++++++++++++++++++++++++++++++++
Mserver/zoning.go | 4++++
Mtools/data/extract_whompahs.py | 18+++++++++++-------
8 files changed, 472 insertions(+), 28 deletions(-)

diff --git a/docs/zoning.md b/docs/zoning.md @@ -208,8 +208,10 @@ The selected client authors an unconditional Entertainment/Trade connection using template 96272, `Dummy wompah noselect`. Both type-51016 statels have a leading OnEnter event 16 with one `LineTeleport` function 53059, no function requirements, tick count 1, interval 0 and target 2. This differs from the -TeleportProxy 53082 shop-door path above. Only these two whom-pah LineTeleport doors -are enabled; other whom-pahs remain unmapped. +TeleportProxy 53082 shop-door path above. +All 60 authored whom-pah doors open on approach and use their destination +lines. Six in Tir and Broken Shores use the shared template 41565 with the name +`Whom-Pah`. Every level and faction can use these routes. | Source playfield / door | Door XYZ | Destination / packed line | | --- | --- | --- | @@ -229,7 +231,7 @@ Regenerate the selected source records and proposed arrivals with `local/reports/whompahs-14.9.1.json`, retains statel and destination-payload digests, full descriptors and index digest `46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`. -Review its two routes against the target entries in +Review its routes against the target entries in `server/assets/zone_links.yaml`; the extractor does not rewrite unrelated links. The native 14.9.1 handler `kkr.dll 0x100c1d10` ignores the destination arguments @@ -265,7 +267,7 @@ route and entry interaction, while the exact 14.9.1 records establish the selected endpoint identities. The retained source ledger is `local/whompah-smoke/source-ledger.json`. -`TestWhomPah*` verifies the two embedded mappings, continuous predicted entry, +`TestWhomPah*` verifies network-wide access, the Entertainment/Trade mappings, continuous predicted entry, the strict front/back plane boundary, the provisional entrance envelope, dead/loading/unready rejection, stale-session input, position persistence, cleared interior context and exactly one native teleport/redirect per leg. diff --git a/server/assets/zone_links.yaml b/server/assets/zone_links.yaml @@ -41808,6 +41808,14 @@ target: portals: [] 505: doors: + - id: 3222209017 + position: [2169.800537109375, 43.8000373840332, 3824.06787109375] + rotation: [0.0, -0.4305053949356079, 0.0, 0.9025880098342896] + whompah: true + destination: 795 + arrival: + position: [3721.3809814453125, 48.90996742248535, 1616.5050659179688] + rotation: [0, 0.7219953709046378, 0, 0.6918978858128376] - id: 3221291513 position: [2092.245849609375, 52.798404693603516, 3821.69970703125] rotation: [0.0, 1.0, 0.0, -5.185604095458984e-06] @@ -41900,6 +41908,11 @@ target: - id: 3221225977 position: [2167.349853515625, 43.800071716308594, 3815.89208984375] rotation: [0.0, -0.7431412935256958, 0.0, 0.6691345572471619] + whompah: true + destination: 551 + arrival: + position: [1362.1065673828125, 23.706379890441895, 1724.3839111328125] + rotation: [0, -0.9138523845805434, 0, 0.40604657269389016] - id: 3222340089 position: [2146.272705078125, 44.31503677368164, 3772.3955078125] rotation: [0.0, -0.34201401472091675, 0.0, 0.939694881439209] @@ -42314,12 +42327,27 @@ target: - id: 3221488156 position: [445.67987060546875, 8.423322677612305, 306.59014892578125] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + whompah: true + destination: 640 + arrival: + position: [616.7902221679688, 8.509872436523438, 338.15296936035156] + rotation: [0, -0.9201172437310828, 0, 0.3916430234138163] - id: 3221553692 position: [458.6902770996094, 8.423322677612305, 314.61676025390625] rotation: [0.0, 0.8433927297592163, 0.0, 0.5372976064682007] + whompah: true + destination: 551 + arrival: + position: [1362.0867309570312, 23.863157272338867, 1746.2257690429688] + rotation: [0, -0.38219554964259667, 0, 0.9240814692619874] - id: 3223912988 - position: [371.8798828125, 8.423422813415527, 214.39013671875] - rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + position: [458.5243835449219, 8.424246788024902, 327.2889709472656] + rotation: [0.0, 0.522499680519104, 0.0, 0.8526394963264465] + whompah: true + destination: 795 + arrival: + position: [3706.96044921875, 48.91026306152344, 1600.7175903320312] + rotation: [0, -0.9999904992280113, 0, 0.0043590656926473055] - id: 3223716380 position: [428.2005920410156, 11.61710262298584, 532.3740844726562] rotation: [0.0, -0.38268283009529114, 0.0, 0.9238798022270203] @@ -43700,6 +43728,30 @@ target: destination_index: 4 551: doors: + - id: 3221422631 + position: [1365.6871337890625, 24.899518966674805, 1726.63037109375] + rotation: [0.0, 0.9205030798912048, 0.0, -0.3907354176044464] + whompah: true + destination: 505 + arrival: + position: [2162.1141357421875, 42.5099983215332, 3815.473388671875] + rotation: [0, -0.7373837980644095, 0, 0.6754740071624564] + - id: 3221488167 + position: [1365.863037109375, 24.8995418548584, 1743.1998291015625] + rotation: [0.0, -0.3746006190776825, 0.0, 0.9271862506866455] + whompah: true + destination: 540 + arrival: + position: [465.5845947265625, 8.5, 311.7181091308594] + rotation: [0, 0.8379435468975435, 0, 0.54575691677959] + - id: 3221553703 + position: [1362.8370361328125, 24.899585723876953, 1734.8721923828125] + rotation: [0.0, -0.7009053230285645, 0.0, 0.7132543325424194] + whompah: true + destination: 600 + arrival: + position: [2494.2103271484375, 12.000000953674316, 2101.1319580078125] + rotation: [0, 0.36249352478990443, 0, 0.9319862898591325] - id: 3221226023 position: [1712.12939453125, 30.209197998046875, 743.6826782226562] rotation: [-7.85975871053779e-08, -0.8191501498222351, -4.4575747892849904e-07, 0.5735790729522705] @@ -43905,6 +43957,22 @@ target: destination_index: 1 560: doors: + - id: 3222143536 + position: [2892.2587890625, 38.400150299072266, 1906.6834716796875] + rotation: [0.0, 0.874617338180542, 0.0, -0.4848138689994812] + whompah: true + destination: 565 + arrival: + position: [2201.449951171875, 22.005887985229492, 1565.56884765625] + rotation: [0, 0.3749060193458059, 0, 0.9270628223903071] + - id: 3222209072 + position: [2890.45947265625, 38.400146484375, 1913.79833984375] + rotation: [0.0, -0.6946544647216797, 0.0, 0.7193436026573181] + whompah: true + destination: 790 + arrival: + position: [1280.735107421875, 0.7100131437182426, 2879.8680419921875] + rotation: [0, 0.7030338658968946, 0, 0.7111563705698396] - id: 3221226032 position: [1929.4024658203125, 37.28458786010742, 1231.0982666015625] rotation: [0.0, -0.08714862912893295, 0.0, 0.9961953163146973] @@ -44900,6 +44968,22 @@ target: destination_index: 1 565: doors: + - id: 3221553717 + position: [2198.118896484375, 22.99954605102539, 1562.4920654296875] + rotation: [0.0, 0.3987499475479126, 0.0, 0.9170596599578857] + whompah: true + destination: 560 + arrival: + position: [2889.2373046875, 37.11000442504883, 1904.5684814453125] + rotation: [0, -0.8795868539083852, 0, 0.4757383381981622] + - id: 3221619253 + position: [2191.034423828125, 22.9996337890625, 1565.931640625] + rotation: [0.0, 0.034899577498435974, 0.0, 0.9993908405303955] + whompah: true + destination: 566 + arrival: + position: [373.65928649902344, 28.861032485961914, 301.24755859375] + rotation: [0, -0.4209598362350216, 0, 0.9070792778346244] - id: 3222798901 position: [3010.410888671875, 34.88505172729492, 1807.919189453125] rotation: [-0.022319525480270386, 0.8523492217063904, -0.013677348382771015, 0.5223174691200256] @@ -45935,12 +46019,27 @@ target: - id: 3222012470 position: [379.76422119140625, 29.400136947631836, 297.0198669433594] rotation: [0.0, -0.6946544647216797, 0.0, 0.7193436026573181] + whompah: true + destination: 565 + arrival: + position: [2191.2491455078125, 22.1423978805542, 1570.3385620117188] + rotation: [0, 0.03405118084655537, 0, 0.999420090393902] - id: 3221946934 position: [390.56329345703125, 29.400136947631836, 307.6815490722656] rotation: [0.0, -0.00871920958161354, 0.0, 0.9999619722366333] + whompah: true + destination: 655 + arrival: + position: [3244.0, 0.6999309957027435, 898.0] + rotation: [0, 0.7071067811865475, 0, 0.7071067811865476] - id: 3223257654 position: [401.5991516113281, 29.40003776550293, 296.5973205566406] rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 800 + arrival: + position: [674.8031005859375, 73.30010986328125, 543.9142761230469] + rotation: [0, -0.7085719289744231, 0, 0.7056385912557964] - id: 3222798902 position: [430.35150146484375, 29.394638061523438, 356.21392822265625] rotation: [0.0, 0.9335814118385315, 0.0, 0.35836532711982727] @@ -51890,6 +51989,30 @@ target: destination_index: 3 600: doors: + - id: 3223061080 + position: [2484.1767578125, 13.300126075744629, 2101.517333984375] + rotation: [0.0, 0.0, 0.0, 1.0] + whompah: true + destination: 640 + arrival: + position: [626.8699340820312, 8.499589920043945, 331.0691375732422] + rotation: [0, -0.9999975337054369, 0, 0.00222094192710428] + - id: 3223126616 + position: [2491.453125, 13.29991340637207, 2098.48291015625] + rotation: [0.0, 0.3826843202114105, 0.0, 0.9238791465759277] + whompah: true + destination: 551 + arrival: + position: [1358.4822998046875, 23.85999584197998, 1735.15673828125] + rotation: [0, -0.7125886092307641, 0, 0.7015821220602513] + - id: 3223192152 + position: [2476.882080078125, 13.299840927124023, 2098.57421875] + rotation: [0.0, -0.38267749547958374, 0.0, 0.923882007598877] + whompah: true + destination: 605 + arrival: + position: [2143.9810791015625, 30.910117149353027, 2317.8660888671875] + rotation: [0, -0.9795849720925064, 0, 0.20103055103770526] - id: 3221226072 position: [3341.23291015625, 22.743120193481445, 2110.02587890625] rotation: [0.0, -0.7604034543037415, 0.0, 0.649450957775116] @@ -53154,6 +53277,22 @@ target: destination_index: 15 605: doors: + - id: 3225813597 + position: [2145.83251953125, 32.200016021728516, 2322.1171875] + rotation: [0.0, 0.9799239039421082, 0.0, -0.19937199354171753] + whompah: true + destination: 600 + arrival: + position: [2473.6787109375, 12.000040054321289, 2101.7169189453125] + rotation: [0, -0.38652536506169727, 0, 0.9222787768152977] + - id: 3225879133 + position: [2155.997314453125, 32.200035095214844, 2322.42822265625] + rotation: [0.0, 0.968148410320282, 0.0, 0.25037702918052673] + whompah: true + destination: 665 + arrival: + position: [994.6999816894531, 51.5, 3758.849853515625] + rotation: [0, -0.39021828902408395, 0, 0.9207223723311585] - id: 3222798941 position: [1338.16357421875, 2.3424229621887207, 1477.8699951171875] rotation: [0.0, 0.9612604975700378, 0.0, -0.275641530752182] @@ -54124,6 +54263,22 @@ target: destination_index: 2 610: doors: + - id: 3225420386 + position: [1140.6693115234375, 21.823322296142578, 2328.718994140625] + rotation: [0.0, 0.9612604975700378, 0.0, -0.275641530752182] + whompah: true + destination: 630 + arrival: + position: [1243.627685546875, 8.509953022003174, 2298.454833984375] + rotation: [0, -0.7624449631976185, 0, 0.6470530720849583] + - id: 3225485922 + position: [1162.6844482421875, 21.823097229003906, 2340.564697265625] + rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 685 + arrival: + position: [2519.8912353515625, 1.910004198551178, 1184.2129516601562] + rotation: [0, -0.36073293872436546, 0, 0.9326691519071932] - id: 3221226082 position: [961.1879272460938, 40.52589416503906, 962.469482421875] rotation: [0.0, 0.7071067094802856, 0.0, 0.7071068286895752] @@ -54336,8 +54491,13 @@ target: destination: 1626 destination_door: 3221227098 - id: 3225289314 - position: [2932.625244140625, 18.401201248168945, 1271.8621826171875] - rotation: [0.0, -0.7071028351783752, 0.0, 0.7071106433868408] + position: [1141.505126953125, 21.82373046875, 2353.32763671875] + rotation: [0.0, -0.2588125467300415, 0.0, 0.9659275412559509] + whompah: true + destination: 635 + arrival: + position: [797.5857543945312, 46.70983123779297, 1617.8453369140625] + rotation: [0, -0.02185054178606252, 0, 0.999761248410667] walls: - start: [199.9876708984375, 32.69691848754883, 2950.0] end: [200.0, 16.600000381469727, 265.1497802734375] @@ -58358,6 +58518,22 @@ target: destination_index: 1 630: doors: + - id: 3222733430 + position: [1254.726806640625, 8.42282485961914, 2311.42333984375] + rotation: [0.0, -0.30901071429252625, 0.0, 0.951058566570282] + whompah: true + destination: 760 + arrival: + position: [1208.427001953125, 20.502620697021484, 1227.4752197265625] + rotation: [0, 0.9999947460753156, 0, 0.0032415770490701206] + - id: 3222798966 + position: [1248.9666748046875, 8.423213005065918, 2297.466552734375] + rotation: [0.0, -0.766041100025177, 0.0, 0.6427916884422302] + whompah: true + destination: 610 + arrival: + position: [1137.5479125976562, 21.909975051879883, 2323.944580078125] + rotation: [0, -0.9416643729985094, 0, 0.3365534261084327] - id: 3221291638 position: [2177.994384765625, 30.667285919189453, 2329.55322265625] rotation: [0.0, 0.8767238259315491, 0.0, -0.4809940755367279] @@ -58389,8 +58565,13 @@ target: position: [3236.2109375, 41.58936309814453, 1207.3582763671875] rotation: [-0.0054816678166389465, 0.9838254451751709, 0.018718646839261055, -0.17806476354599] - id: 3221226102 - position: [1134.29248046875, 8.823323249816895, 2308.490966796875] - rotation: [0.0, 0.8660266399383545, 0.0, 0.49999791383743286] + position: [1268.9542236328125, 8.423322677612305, 2312.832275390625] + rotation: [0.0, 0.190809428691864, 0.0, 0.9816271066665649] + whompah: true + destination: 705 + arrival: + position: [890.0, 16.899999618530273, 652.0304260253906] + rotation: [0, -0.9999999999708962, 0, 7.629394530571084e-06] - id: 3222209142 position: [1149.9996337890625, 10.812959671020508, 2355.950927734375] rotation: [0.0, 1.0, 0.0, -3.6199901387590216e-06] @@ -59775,6 +59956,14 @@ target: destination_index: 2 635: doors: + - id: 3225092731 + position: [797.9451293945312, 46.62293243408203, 1612.626708984375] + rotation: [0.0, 0.0, 0.0, 1.0] + whompah: true + destination: 610 + arrival: + position: [1138.684814453125, 21.909883499145508, 2358.1356201171875] + rotation: [0, -0.25688678680987026, 0, 0.9664415030215229] - id: 3221291643 position: [653.0425415039062, 48.0255126953125, 1733.806640625] rotation: [0.0, 5.781650543212891e-06, 0.0, 1.0] @@ -59969,6 +60158,11 @@ target: - id: 3221226107 position: [783.2142944335938, 46.62301254272461, 1598.7572021484375] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] + whompah: true + destination: 760 + arrival: + position: [1221.6621704101562, 20.509965896606445, 1234.7583618164062] + rotation: [0, 0.9421776056952454, 0, 0.3351139497639193] - id: 3224240763 position: [1711.05419921875, 34.81463623046875, 1715.650634765625] rotation: [0.0, 0.4819576144218445, 0.0, 0.8761945366859436] @@ -61058,6 +61252,22 @@ target: destination_index: 1 640: doors: + - id: 3236102784 + position: [619.3399047851562, 9.799858093261719, 341.5332946777344] + rotation: [0.0, 0.9238777756690979, 0.0, -0.3826877176761627] + whompah: true + destination: 540 + arrival: + position: [445.69407653808594, 8.5, 298.9744110107422] + rotation: [0, -0.9999990793412495, 0, 0.00135695123468228] + - id: 3236168320 + position: [634.5442504882812, 9.799858093261719, 341.65106201171875] + rotation: [0.0, 0.9238805770874023, 0.0, 0.38268089294433594] + whompah: true + destination: 655 + arrival: + position: [3244.0, 0.6999309957027435, 890.0] + rotation: [0, 0.7071067811865475, 0, 0.7071067811865476] - id: 3221291648 position: [534.9664916992188, 8.167586326599121, 374.1082763671875] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] @@ -62085,8 +62295,13 @@ target: destination: 1180 destination_door: 3221226652 - id: 3221619328 - position: [474.92431640625, 13.798290252685547, 469.1773376464844] + position: [626.984619140625, 9.798042297363281, 338.3692626953125] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + whompah: true + destination: 600 + arrival: + position: [2483.8216552734375, 12.000000476837158, 2105.346435546875] + rotation: [0, 0.0024027326184067337, 0, 0.9999971134338161] - id: 3224109696 position: [556.2298583984375, 9.606521606445312, 390.3356018066406] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] @@ -66035,6 +66250,30 @@ target: destination_index: 1 655: doors: + - id: 3223716495 + position: [3231.6533203125, 1.800037145614624, 889.9999389648438] + rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 640 + arrival: + position: [638.0041809082031, 8.50987958908081, 337.3959655761719] + rotation: [0, 0.9271264612436453, 0, 0.37474861555692984] + - id: 3223978639 + position: [3234.309814453125, 0.4233289361000061, 905.8800048828125] + rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 710 + arrival: + position: [345.675048828125, 17.500003814697266, 382.2882995605469] + rotation: [0, -0.7071067811865475, 0, 0.7071067811865476] + - id: 3224044175 + position: [3231.6533203125, 1.8000354766845703, 897.9999389648438] + rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 566 + arrival: + position: [391.93019104003906, 28.272048950195312, 314.71026611328125] + rotation: [0, 0.07015042288881401, 0, 0.9975364244820941] - id: 3223782031 position: [508.4687805175781, 11.181968688964844, 2448.52587890625] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] @@ -67024,6 +67263,22 @@ target: destination_index: 3 665: doors: + - id: 3229811353 + position: [2334.9990234375, 7.623323917388916, 2251.11279296875] + rotation: [0.0, -0.2588125467300415, 0.0, 0.9659275412559509] + whompah: true + destination: 760 + arrival: + position: [1191.7939453125, 20.51005744934082, 1234.2398681640625] + rotation: [0, -0.9285383435314986, 0, 0.3712365076225406] + - id: 3229876889 + position: [998.0792236328125, 52.8000373840332, 3755.42138671875] + rotation: [0.0, -0.38267749547958374, 0.0, 0.923882007598877] + whompah: true + destination: 605 + arrival: + position: [2158.10107421875, 30.910086631774902, 2318.888916015625] + rotation: [0, 0.9702544387504309, 0, 0.2420874306631515] - id: 3221357209 position: [179.38949584960938, 8.418951988220215, 3898.57080078125] rotation: [0.023114917799830437, 0.9098114967346191, -0.00864238478243351, 0.4142873287200928] @@ -67358,11 +67613,21 @@ target: position: [1812.7425537109375, 6.922669887542725, 3595.566650390625] rotation: [0.0, -0.22494441270828247, 0.0, 0.974371612071991] - id: 3221226137 - position: [2342.02001953125, 7.623323440551758, 2253.509765625] - rotation: [0.0, 0.0, 0.0, 1.0] + position: [2349.308837890625, 7.623323440551758, 2251.492431640625] + rotation: [0.0, 0.2588196396827698, 0.0, 0.9659256935119629] + whompah: true + destination: 730 + arrival: + position: [361.90232849121094, 17.91018295288086, 333.4753723144531] + rotation: [0, -0.26613437424826775, 0, 0.9639359391803394] - id: 3221291673 position: [1005.7418823242188, 52.80003356933594, 3758.660400390625] rotation: [0.0, 0.0, 0.0, 1.0] + whompah: true + destination: 795 + arrival: + position: [3717.81494140625, 48.910213470458984, 1605.4531860351562] + rotation: [0, 0.9283919802217652, 0, 0.371602383011613] - id: 3222799001 position: [2366.02880859375, 7.402270793914795, 2263.800048828125] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] @@ -68839,6 +69104,22 @@ target: destination_index: 1 685: doors: + - id: 3225485997 + position: [2519.06005859375, 1.8220160007476807, 1169.0606689453125] + rotation: [0.0, -0.6883505582809448, 0.0, 0.725378155708313] + whompah: true + destination: 730 + arrival: + position: [362.563720703125, 17.910085678100586, 298.8014373779297] + rotation: [0, -0.9633244738361855, 0, 0.2683392593494968] + - id: 3225551533 + position: [2534.738525390625, 1.822951316833496, 1182.7860107421875] + rotation: [0.0, 0.008726555854082108, 0.0, 0.9999619126319885] + whompah: true + destination: 710 + arrival: + position: [356.97271728515625, 17.5, 363.9371643066406] + rotation: [0, -0.9673378731239384, 0, 0.2534905111045682] - id: 3223519917 position: [458.1705627441406, 16.396358489990234, 2382.1064453125] rotation: [0.0, 0.0, 0.0, 1.0] @@ -69029,8 +69310,13 @@ target: destination: 2034 destination_door: 3221227506 - id: 3221226157 - position: [2534.1845703125, 1.8233213424682617, 1181.8095703125] - rotation: [0.0, 0.0, 0.0, 1.0] + position: [2523.843505859375, 1.822991132736206, 1179.794189453125] + rotation: [0.0, -0.3583618998527527, 0.0, 0.9335827231407166] + whompah: true + destination: 610 + arrival: + position: [1168.0879516601562, 21.910017013549805, 2340.8193359375] + rotation: [0, 0.6995898864348871, 0, 0.7145446037848314] - id: 3225289389 position: [1704.1968994140625, 24.495134353637695, 855.6224365234375] rotation: [0.0, -0.8660229444503784, 0.0, 0.500004231929779] @@ -72386,9 +72672,15 @@ target: - id: 3221422785 position: [889.8798828125, 16.82332420349121, 659.5901489257812] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + whompah: true + destination: 630 + arrival: + position: [1271.0840454101562, 8.499999523162842, 2318.19482421875] + rotation: [0, 0.1891259053426205, 0, 0.9819528460818951] - id: 3221553857 position: [910.1199951171875, 16.823326110839844, 484.5098571777344] rotation: [0.0, 0.0, 0.0, 1.0] + whompah: true destination: 710 arrival: position: [388.0, 17.5, 382.4849853515625] @@ -72396,6 +72688,11 @@ target: - id: 3221750465 position: [895.7901611328125, 16.823326110839844, 470.12017822265625] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] + whompah: true + destination: 730 + arrival: + position: [353.27960205078125, 17.89999008178711, 316.43934631347656] + rotation: [0, -0.7114751551171344, 0, 0.7027112519741302] - id: 3222667969 position: [981.7347412109375, 18.561601638793945, 271.74365234375] rotation: [0.0, -0.5591879487037659, 0.0, 0.8290409445762634] @@ -72570,6 +72867,7 @@ target: - id: 3221226182 position: [381.6097412109375, 17.423322677612305, 382.1349182128906] rotation: [0.0, 0.7009105682373047, 0.0, 0.713249146938324] + whompah: true destination: 705 arrival: position: [910.0, 16.899999618530273, 492.0038146972656] @@ -72577,9 +72875,19 @@ target: - id: 3221291718 position: [359.7119140625, 17.423322677612305, 369.4801940917969] rotation: [0.0, 0.968146562576294, 0.0, -0.250384122133255] + whompah: true + destination: 685 + arrival: + position: [2534.4718017578125, 2.3099424839019775, 1188.9979248046875] + rotation: [0, -0.050542416937413695, 0, 0.9987219152948055] - id: 3221553862 position: [352.59014892578125, 17.423322677612305, 382.3201904296875] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] + whompah: true + destination: 655 + arrival: + position: [3244.0, 0.6999309957027435, 906.0] + rotation: [0, 0.7071067811865475, 0, 0.7071067811865476] - id: 3221422790 position: [515.745849609375, 9.635560035705566, 231.8916778564453] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] @@ -74606,6 +74914,22 @@ target: destination_index: 1 730: doors: + - id: 3221488346 + position: [365.400146484375, 17.82332420349121, 303.7428894042969] + rotation: [0.0, 0.968146562576294, 0.0, -0.250384122133255] + whompah: true + destination: 685 + arrival: + position: [2512.747802734375, 1.9101850390434265, 1169.4642333984375] + rotation: [0, -0.6900504684231747, 0, 0.7237612527822673] + - id: 3221684954 + position: [365.4633483886719, 17.823326110839844, 328.7819519042969] + rotation: [0.0, -0.2588125467300415, 0.0, 0.9659275412559509] + whompah: true + destination: 665 + arrival: + position: [2351.9000244140625, 7.700000286102295, 2255.35009765625] + rotation: [0, 0.24343027979093632, 0, 0.9699183980525921] - id: 3221226202 position: [513.08740234375, 22.256696701049805, 210.8645477294922] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] @@ -74659,6 +74983,11 @@ target: - id: 3222143706 position: [357.91680908203125, 17.823091506958008, 316.4720458984375] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] + whompah: true + destination: 705 + arrival: + position: [888.0000305175781, 16.899641036987305, 470.0] + rotation: [0, -0.7071013863693592, 0, 0.7071121759625769] walls: - start: [386.3143615722656, 17.799999237060547, 439.07647705078125] end: [386.5368347167969, 17.799999237060547, 445.68994140625] @@ -75072,6 +75401,22 @@ target: destination_index: 2 760: doors: + - id: 3225813752 + position: [1198.177734375, 20.423580169677734, 1238.0545654296875] + rotation: [0.0, 0.9238777756690979, 0.0, -0.3826877176761627] + whompah: true + destination: 665 + arrival: + position: [2332.2501220703125, 7.700000286102295, 2255.800048828125] + rotation: [0, -0.2650349098654269, 0, 0.9642388171778945] + - id: 3225879288 + position: [1218.3636474609375, 20.423322677612305, 1237.93017578125] + rotation: [0.0, 0.9238805770874023, 0.0, 0.38268089294433594] + whompah: true + destination: 635 + arrival: + position: [776.0880126953125, 46.69973945617676, 1598.3960571289062] + rotation: [0, -0.7086178128051002, 0, 0.7055925136899598] - id: 3223913208 position: [1114.0625, 30.9857120513916, 1546.7559814453125] rotation: [0.0, 0.891007661819458, 0.0, 0.4539882242679596] @@ -75331,8 +75676,13 @@ target: destination: 1627 destination_door: 3221227099 - id: 3221226232 - position: [1177.20166015625, 20.423656463623047, 1213.14794921875] + position: [1208.4205322265625, 20.423322677612305, 1232.7828369140625] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + whompah: true + destination: 630 + arrival: + position: [1252.1397094726562, 8.509784698486328, 2315.4879150390625] + rotation: [0, -0.32491323150474394, 0, 0.9457438300053269] - id: 3226206968 position: [954.2781372070312, 44.846153259277344, 1967.5172119140625] rotation: [0.0, 0.9832568168640137, 0.0, 0.18222516775131226] @@ -76045,6 +76395,14 @@ target: destination_index: 4 790: doors: + - id: 3221488406 + position: [1275.924560546875, 1.9628896713256836, 2879.78076171875] + rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 560 + arrival: + position: [2886.8145751953125, 37.110023498535156, 1913.787841796875] + rotation: [0, -0.701568490664952, 0, 0.7126020298217661] - id: 3221291798 position: [1204.0482177734375, 6.547452926635742, 2794.104736328125] rotation: [0.0, 0.7071070075035095, 0.0, 0.7071065902709961] @@ -76063,6 +76421,11 @@ target: - id: 3221422870 position: [1273.220947265625, 1.8041146993637085, 2887.520751953125] rotation: [0.0, 0.3826843202114105, 0.0, 0.9238791465759277] + whompah: true + destination: 800 + arrival: + position: [681.4856872558594, 73.30010223388672, 530.72216796875] + rotation: [0, -0.9602167763171985, 0, 0.2792556937271062] walls: - start: [2602.40380859375, 0.20035095512866974, 222.136962890625] end: [2759.4189453125, 0.4290504455566406, 3469.89990234375] @@ -77619,6 +77982,14 @@ target: destination_index: 1 795: doors: + - id: 3226272539 + position: [3706.68701171875, 50.20044708251953, 1605.8282470703125] + rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + whompah: true + destination: 540 + arrival: + position: [463.36895751953125, 8.500712394714355, 330.30224609375] + rotation: [0, 0.5018007846193344, 0, 0.8649832209675632] - id: 3221750555 position: [2045.4542236328125, 35.24995040893555, 779.46337890625] rotation: [0.0, 5.781650543212891e-06, 0.0, 1.0] @@ -77899,11 +78270,21 @@ target: position: [638.4015502929688, 29.108699798583984, 702.9579467773438] rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] - id: 3221881627 - position: [2023.491943359375, 33.674739837646484, 795.7941284179688] - rotation: [0.0, 0.0, 0.0, 1.0] + position: [3717.298583984375, 50.199928283691406, 1616.4873046875] + rotation: [0.0, 0.7071080207824707, 0.0, 0.7071054577827454] + whompah: true + destination: 505 + arrival: + position: [2165.2525634765625, 42.5099983215332, 3827.2626953125] + rotation: [0, -0.43581547451496166, 0, 0.9000360393747012] - id: 3221947163 - position: [2024.0235595703125, 33.575923919677734, 817.28271484375] - rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] + position: [3714.41357421875, 50.20054244995117, 1608.73876953125] + rotation: [0.0, 0.9238805770874023, 0.0, 0.38268089294433594] + whompah: true + destination: 665 + arrival: + position: [1005.3364868164062, 51.50019645690918, 3763.244140625] + rotation: [0, -0.014375457906111134, 0, 0.9998966677662195] walls: - start: [4440.0, 39.20000076293945, 860.0] end: [4440.0, 37.10000228881836, 1627.5] @@ -78113,6 +78494,11 @@ target: - id: 3222536992 position: [679.6632080078125, 74.60011291503906, 543.9044189453125] rotation: [0.0, -0.70710289478302, 0.0, 0.7071106433868408] + whompah: true + destination: 566 + arrival: + position: [406.55186462402344, 27.67922306060791, 296.6728820800781] + rotation: [0, 0.6957719508858998, 0, 0.7182627599704923] - id: 3222471456 position: [708.4625854492188, 68.45343017578125, 706.03173828125] rotation: [0.0, 1.0, 0.0, -3.6732051285071066e-06] @@ -78131,6 +78517,11 @@ target: - id: 3223192352 position: [684.0152587890625, 74.60014343261719, 534.7929077148438] rotation: [0.0, 0.9636293053627014, 0.0, -0.26724252104759216] + whompah: true + destination: 790 + arrival: + position: [1277.0466918945312, 0.6166085414588451, 2891.712890625] + rotation: [0, 0.36874702342691706, 0, 0.9295297911921858] - id: 3223585568 position: [621.23583984375, 70.00004577636719, 451.7529296875] rotation: [0.0, -0.707103967666626, 0.0, 0.7071095705032349] diff --git a/server/browser_city_doors_test.go b/server/browser_city_doors_test.go @@ -33,6 +33,8 @@ func TestBrowserCityDoors(t *testing.T) { {"bronto-shop", 705, 0xc03902c1, doorOrigin{}}, {"shop-bronto", 1191, 0xc00004a7, doorOrigin{705, 0xc03902c1}}, {"entertainment-trade", 705, 0xc00502c1, doorOrigin{}}, + {"trade-icc", 710, 0xc00502c6, doorOrigin{}}, + {"entertainment-rome", 705, 0xc00802c1, doorOrigin{}}, {"trade-entertainment", 710, 0xc00002c6, doorOrigin{}}, {"clan-shop", 540, 0xc01d021c, doorOrigin{}}, {"shop-clan", 1180, 0xc000049c, doorOrigin{540, 0xc01d021c}}, diff --git a/server/city_doors.go b/server/city_doors.go @@ -17,6 +17,9 @@ func (server *server) cityDoorPackets(player *character) [][]byte { func (server *server) advanceCityDoors(now time.Time, updates map[*worldClient][][]byte) { for origin, wasOpen := range server.cityDoors { + if server.zone != nil && origin.Playfield != server.playfield { + continue + } var door *zoneDoor for index := range server.zoneLinks["target"][origin.Playfield].Doors { candidate := &server.zoneLinks["target"][origin.Playfield].Doors[index] diff --git a/server/state.go b/server/state.go @@ -231,12 +231,18 @@ func newServerBase() *server { server.zoneLinks = links // Audited unlocked entrances on the early city/shop routes. server.cityDoors = map[doorOrigin]bool{ - {705, 0xc00502c1}: false, {710, 0xc00002c6}: false, {705, 0xc01102c1}: false, {1183, 0xc000049f}: false, {705, 0xc03902c1}: false, {1191, 0xc00004a7}: false, {540, 0xc01d021c}: false, {1180, 0xc000049c}: false, {800, 0xc0170320}: false, {1186, 0xc00004a2}: false, } + for playfield, zone := range links["target"] { + for _, door := range zone.Doors { + if door.WhomPah { + server.cityDoors[doorOrigin{playfield, door.ID}] = false + } + } + } server.worldResources, err = readWorldResources() if err != nil { panic(err) diff --git a/server/whompah_test.go b/server/whompah_test.go @@ -50,6 +50,38 @@ func TestWhomPahAuthoredRouteMappings(t *testing.T) { } } +func TestWhomPahNetworkAcceptsLevelOneOfEveryFaction(t *testing.T) { + t.Chdir(t.TempDir()) + world, _ := newWhomPahWorld(t) + links, err := readZoneLinks() + if err != nil { + t.Fatal(err) + } + world.zoneLinks = links + player, client := world.characters[1], world.clients[1] + player.level = 1 + count := 0 + for playfield, zone := range links["target"] { + for _, door := range zone.Doors { + if !door.WhomPah { + continue + } + count++ + player.playfield, player.position = playfield, door.Position + for side := uint16(0); side <= 2; side++ { + player.appearance = player.appearance&^(3<<9) | side<<9 + dest, err := world.zoneDestination(player, client) + if err != nil || dest == nil || dest.Playfield != door.Destination || dest.Position != door.Arrival.Position { + t.Fatalf("level-one side %d could not use Whom-Pah %d/%x: %v", side, playfield, door.ID, err) + } + } + } + } + if count != 60 { + t.Fatalf("got %d authored Whom-Pah routes", count) + } +} + func TestWhomPahHeldMovementRoundTripPersistsWithoutBouncing(t *testing.T) { t.Chdir(t.TempDir()) world, first := newWhomPahWorld(t) diff --git a/server/zoning.go b/server/zoning.go @@ -21,6 +21,7 @@ type zoneDoor struct { Rotation [4]float32 `yaml:"rotation"` Destination uint32 `yaml:"destination"` DestinationDoor uint32 `yaml:"destination_door"` + WhomPah bool `yaml:"whompah"` Return bool `yaml:"return"` Requirements []gamedata.ItemRequirement `yaml:"requirements"` RefusalMessage string `yaml:"refusal_message"` @@ -97,6 +98,9 @@ func (server *server) zoneDestination(character *character, client *worldClient) distance := float32(4) for index := range zone.Doors { door := &zone.Doors[index] + if door.Destination == 0 && !door.Return { + continue + } x, z := door.Position[0]-character.position[0], door.Position[2]-character.position[2] if squared := x*x + z*z; squared < distance && math.Abs(float64(door.Position[1]-character.position[1])) < 8 { selected, distance = door, squared diff --git a/tools/data/extract_whompahs.py b/tools/data/extract_whompahs.py @@ -26,8 +26,9 @@ def main(): assert (client / 'version.id').read_text().strip() == '14.9.1' database = ao_database.Database(client) routes = [] - for playfield, door_id in [(705, 0xc00502c1), (710, 0xc00002c6)]: - # Retain only the selected authored, unconditional LineTeleport doors. + for kind, playfield in sorted(database.records): + if kind != 1000026: + continue payload = database.read(1000026, playfield) offset = 4 for _ in range(struct.unpack_from('<I', payload)[0]): @@ -36,10 +37,13 @@ def main(): raw = payload[offset:offset + size] offset += size assert len(raw) == size and size == 64 + struct.unpack_from('<I', raw, 60)[0] - if struct.unpack_from('<II', raw) != (51016, door_id): - continue - assert struct.unpack_from('<I', raw, 56)[0] == 96272 + statel_type, door_id = struct.unpack_from('<II', raw) descriptor = raw[64:] + template = struct.unpack_from('<I', raw, 56)[0] + if statel_type != 51016: + continue + if template != 96272 and not (template == 41565 and b'Whom-Pah' in descriptor): + continue assert struct.unpack_from('>16I', descriptor) == (102, 103, 1009, 3, 2, 16, 2018, 53059, 0, 4, 0, 1, 0, 2, 0, 100001) packed, destination, opaque = struct.unpack_from('>3I', descriptor, 64) assert packed & 65535 == destination and opaque == 0 @@ -58,9 +62,9 @@ def main(): destination_sha256=hashlib.sha256(destination_payload).hexdigest())) assert offset == len(payload) database.close() - assert len(routes) == 2 + assert len(routes) == 60 - # Review these values against the two target entries in zone_links.yaml. + # Review these values against the target entries in zone_links.yaml. output = pathlib.Path('local/reports/whompahs-14.9.1.json') output.parent.mkdir(parents=True, exist_ok=True) output.write_text(json.dumps(dict(index_sha256=hashlib.sha256(database.index).hexdigest(), routes=routes), indent=2) + '\n')