<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><title>txxmo.dev · blog</title><link>https://txxmo.dev/blog/</link><description>posts from txxmo.dev</description>
<item><title>Wardawg</title><link>https://txxmo.dev/blog/kingofthehill/</link><guid>https://txxmo.dev/blog/kingofthehill/</guid><pubDate>Fri, 02 Oct 2026 00:00:00 +0000</pubDate><description>&lt;p&gt;&lt;em&gt;notes from a month of reading wardogs from the outside: where the documented layouts were wrong, how the terrain is stored, what 29 mortar shells taught me about fitting data, who really decides what a bullet hits, and rebuilding the maps in 3d.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;wardogs is an unreal engine 5 game built with large world coordinates. everything here was done externally and read-only: no injection, nothing loaded into the process, just reads and a lot of checking. the offsets are from the september 2026 builds and have moved since, so treat them as a record of the method rather than something to paste.&lt;/p&gt;
&lt;h2 id=&quot;the-base-address-that-pointed-at-nothing&quot;&gt;the base address that pointed at nothing&lt;/h2&gt;
&lt;p&gt;every tool starts by asking where the main module is loaded. this one answers instantly with &lt;code&gt;0x21F00000000&lt;/code&gt;. page-aligned, userland, plausible. and unreadable: nothing is mapped there.&lt;/p&gt;
&lt;pre data-lang=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;template&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;typename&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nc&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;bool&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;uintptr_t&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;address&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;out&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;sizeof&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;T&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;// false on failure, never a guess&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;uintptr_t&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;base&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;module_base&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;quot;WardogsClient-Win64-Shipping.exe&amp;quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;uint16_t&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;  &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mz&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;base&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mz&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mz&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mh&quot;&gt;0x5A4D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;w&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;base&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_ptr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;peb&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mh&quot;&gt;0x10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;                 &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;// ImageBaseAddress - the real one&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the real base is in the peb, and the header there carries the exact on-disk &lt;code&gt;SizeOfImage&lt;/code&gt; (&lt;code&gt;0xDF3D000&lt;/code&gt; on that build). the module list returns the same bogus value, so it&#x27;s not one api misbehaving.&lt;/p&gt;
&lt;p&gt;the file on disk is no help either. every section measures entropy 8.00 and only the pe header is plaintext, so there is no offline signature scanning. the code only exists in the running process.&lt;/p&gt;
&lt;h2 id=&quot;finding-the-globals-without-a-file-to-scan&quot;&gt;finding the globals without a file to scan&lt;/h2&gt;
&lt;p&gt;with no file to disassemble, the globals are resolved in three steps, cheapest first:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a stored offset from the last session, proven before use (the world&#x27;s class has to decode to the name &lt;code&gt;World&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;signatures run against the live image&lt;/li&gt;
&lt;li&gt;a search of &lt;code&gt;.data&lt;/code&gt; for a pointer to an object whose class is named &lt;code&gt;World&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;the last one took 43 seconds through a relay, so it&#x27;s a fallback, not a plan. two things made this easier than expected:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;after a patch, every &lt;code&gt;.data&lt;/code&gt; global moved by the &lt;strong&gt;same constant&lt;/strong&gt;. &lt;code&gt;+0x30680&lt;/code&gt; one week, &lt;code&gt;+0x6180&lt;/code&gt; the next. find one and you have them all&lt;/li&gt;
&lt;li&gt;the reflected field offsets didn&#x27;t move at all across those patches. only the globals and the hand-found fields needed re-checking&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;an address that looks plausible is worse than one that crashes. a crash tells you immediately.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;the-layout-everyone-agrees-on&quot;&gt;the layout everyone agrees on&lt;/h2&gt;
&lt;p&gt;the global object array is one of the most documented structures in the engine. chunked array, 64k items per chunk, and each item starts with the object pointer.&lt;/p&gt;
&lt;p&gt;not here. the item is 24 bytes with an 8-byte field &lt;strong&gt;in front of&lt;/strong&gt; the pointer, so reading the documented offset returns values like &lt;code&gt;0x4000000000000000&lt;/code&gt;. not null, not a pointer, and nothing crashes.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;offset&lt;/th&gt;
&lt;th&gt;field&lt;/th&gt;
&lt;th&gt;note&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x00&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;(unknown, 8 bytes)&lt;/td&gt;
&lt;td&gt;not in stock ue5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x08&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UObject*&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;stock puts this at &lt;code&gt;0x00&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x10&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;flags / serial&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;with that fixed, a full census was 551,000 objects, each with its class and name.&lt;/p&gt;
&lt;p&gt;the same build has &lt;code&gt;UStruct&lt;/code&gt; shifted &lt;code&gt;0x10&lt;/code&gt; past what the public sdk dump says: &lt;code&gt;Children&lt;/code&gt; at &lt;code&gt;0x48&lt;/code&gt;, &lt;code&gt;ChildProperties&lt;/code&gt; at &lt;code&gt;0x50&lt;/code&gt;, the script bytes at &lt;code&gt;0x60&lt;/code&gt;. the dump was generated against stock headers and nobody had walked a struct by hand to check.&lt;/p&gt;
&lt;p&gt;the camera was the third one. posted layouts for the cached view put rotation at &lt;code&gt;0x0C&lt;/code&gt; and fov at &lt;code&gt;0x18&lt;/code&gt;. those are for a float build. with large world coordinates the vectors are doubles:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;offset&lt;/th&gt;
&lt;th&gt;field&lt;/th&gt;
&lt;th&gt;type&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x00&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;location&lt;/td&gt;
&lt;td&gt;3 x double&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x18&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;rotation&lt;/td&gt;
&lt;td&gt;3 x double&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x30&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;fov&lt;/td&gt;
&lt;td&gt;float&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id=&quot;where-the-ground-is&quot;&gt;where the ground is&lt;/h2&gt;
&lt;p&gt;this was the part i expected to be impossible externally, and it turned out to be the most satisfying.&lt;/p&gt;
&lt;p&gt;the map uses world partition, so the landscape isn&#x27;t one object. each cell is an &lt;code&gt;ALandscapeStreamingProxy&lt;/code&gt; in its &lt;strong&gt;own level&lt;/strong&gt;. my first probe read the first 64 levels and found a handful of far-away cells. the world had about 1,200.&lt;/p&gt;
&lt;p&gt;each proxy holds a collision component, and behind that is a chaos heightfield. none of it is reflected, so it was found by reading memory next to things that were:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;offset&lt;/th&gt;
&lt;th&gt;field&lt;/th&gt;
&lt;th&gt;value seen&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x20&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;heights&lt;/td&gt;
&lt;td&gt;&lt;code&gt;TArray&amp;lt;uint16&amp;gt;&lt;/code&gt;, rows x cols&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x50&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;scale&lt;/td&gt;
&lt;td&gt;&lt;code&gt;(200, 200, 7.03125)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x80&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;min value&lt;/td&gt;
&lt;td&gt;float&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0x90&lt;/code&gt; / &lt;code&gt;0x92&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;rows / cols&lt;/td&gt;
&lt;td&gt;&lt;code&gt;511&lt;/code&gt; / &lt;code&gt;511&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;0xA0&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;height per unit&lt;/td&gt;
&lt;td&gt;float&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;pre data-lang=&quot;python&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;ground_z&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;comp_z&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;heights&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cols&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;col&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;          &lt;span class=&quot;c1&quot;&gt;# col runs along X&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;min_value&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;h&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;height_per_unit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hf&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scale_z&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;comp_z&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;checked against structures standing on the ground, it was within 0.4 m. two things bit me afterwards:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;on the second map a proxy holds &lt;strong&gt;four&lt;/strong&gt; collision components (256 x 256 quarter-cells, different z scale). reading only the first gave a quarter of the ground&lt;/li&gt;
&lt;li&gt;freed proxies linger in the level arrays with garbage row counts. sanity-check the dimensions before trusting the pointer&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;29-shells&quot;&gt;29 shells&lt;/h2&gt;
&lt;p&gt;the mortar has no fixed muzzle velocity. the weapon stats say &lt;code&gt;TypicalSpeed = -1&lt;/code&gt; and the game solves the speed per shot, so you can&#x27;t integrate a trajectory. what it does have is a range table on a data asset: a key, an impact distance and a flight time per row.&lt;/p&gt;
&lt;p&gt;the question was how the tube&#x27;s pitch maps to that key. three recorded landings suggested &lt;code&gt;key = 18 x pitch - 36&lt;/code&gt;, good to about 3 m on those three. then i recorded 29.&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;model&lt;/th&gt;
&lt;th&gt;rms error&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;18 x pitch - 36&lt;/code&gt;, symmetric descent&lt;/td&gt;
&lt;td&gt;11.6 m&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;17 x pitch - 36&lt;/code&gt;, descent 16 degrees steeper than launch&lt;/td&gt;
&lt;td&gt;3.0 m&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;the slope was slightly off, but most of the error was the landing-height correction: i&#x27;d assumed the shell comes down at the angle it went up. with drag it comes down much steeper. three points can&#x27;t show you that. the fit only looked right because there was nothing to disagree with it.&lt;/p&gt;
&lt;p&gt;the self-propelled howitzer was worse: its range table isn&#x27;t monotonic. range climbs from 600 m to 2,600 m and back down to 700 m across the keys, low arc and high arc in one curve. any reader that assumes &quot;bigger key, shorter range&quot; silently picks the wrong row.&lt;/p&gt;
&lt;h2 id=&quot;who-decides-what-a-bullet-hits&quot;&gt;who decides what a bullet hits&lt;/h2&gt;
&lt;p&gt;this is the finding i&#x27;d actually call a security result rather than a layout curiosity.&lt;/p&gt;
&lt;p&gt;bullets in wardogs are simulated on the &lt;strong&gt;shooter&#x27;s client&lt;/strong&gt;. a world subsystem keeps every live round in an array (position, velocity, spawn point, flight time), the client steps them, decides what they hit, and then tells the server. i watched 33 rounds in the firing range to confirm it: each one appears in the array the tick it&#x27;s fired and its fields advance exactly as a local integrator would.&lt;/p&gt;
&lt;p&gt;that puts the trust boundary in the wrong place. the server is told about a hit instead of computing one, so everything upstream of that message is the client&#x27;s word. i&#x27;m not publishing the layout of the round or anything about what the server does and doesn&#x27;t re-check, because that part is the exploit. the general lesson stands on its own: &lt;strong&gt;if the client owns the simulation, validation has to re-derive the shot, not sanity-check the result.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;the part worth writing down is the math, because predicting where a round goes is the same problem whether you&#x27;re building an aim trainer, a ballistics overlay or a server-side validator.&lt;/p&gt;
&lt;p&gt;for a target at &lt;code&gt;p&lt;/code&gt; moving at &lt;code&gt;v&lt;/code&gt;, a muzzle at &lt;code&gt;o&lt;/code&gt; and a round of speed &lt;code&gt;s&lt;/code&gt;, the flight time &lt;code&gt;t&lt;/code&gt; satisfies&lt;/p&gt;
&lt;pre data-lang=&quot;&quot;&gt;&lt;code&gt;| p + v*t - o | = s * t&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which is a quadratic in &lt;code&gt;t&lt;/code&gt;. take the smallest positive root, then aim at where the target will be, raised by however far the round falls in that time:&lt;/p&gt;
&lt;pre data-lang=&quot;python&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;solve_aim&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;o&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;g&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;981.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;               &lt;span class=&quot;c1&quot;&gt;# cm, cm/s, cm/s^2&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;d&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;o&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;2.0&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;d&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;disc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;4.0&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;c&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;disc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;None&lt;/span&gt;                               &lt;span class=&quot;c1&quot;&gt;# target outruns the round&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;min&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sqrt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;disc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
                        &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sqrt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;disc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;aim&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;v&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;                               &lt;span class=&quot;c1&quot;&gt;# lead&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;aim&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;z&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.5&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;g&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;                      &lt;span class=&quot;c1&quot;&gt;# drop, added back&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;normalize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;aim&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;o&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;t&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;that&#x27;s exact in a vacuum. for rifle rounds over a few hundred metres it&#x27;s close enough. for artillery it isn&#x27;t, and that&#x27;s where the measurements came in. the howitzer&#x27;s shell is an actor the camera follows, so its whole path can be recorded. fitting that path gave:&lt;/p&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;quantity&lt;/th&gt;
&lt;th&gt;value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;gravity&lt;/td&gt;
&lt;td&gt;981 cm/s²&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;drag&lt;/td&gt;
&lt;td&gt;&lt;code&gt;k(v) = 3.71e-6 + 6.0e-11 * v&lt;/code&gt; per cm, quadratic in speed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;muzzle speed at 33°&lt;/td&gt;
&lt;td&gt;~297 m/s (solved per shot, varies with elevation)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;descent angle at 2.5 km&lt;/td&gt;
&lt;td&gt;~55°&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;with drag there&#x27;s no closed form, so the solve becomes: guess &lt;code&gt;t&lt;/code&gt; from the vacuum answer, integrate the round forward with the drag model, measure the miss, correct, repeat. three or four passes converge.&lt;/p&gt;
&lt;h2 id=&quot;the-defibrillator&quot;&gt;the defibrillator&lt;/h2&gt;
&lt;p&gt;same class of problem, smaller scale. the defibrillator revives a downed teammate or shocks an enemy in front of you. reading the item&#x27;s blueprint showed the whole decision is made in a chain of client-side functions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;gather the characters inside a box in front of the player&lt;/li&gt;
&lt;li&gt;filter that list down to &lt;strong&gt;one&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;check line of sight to that one&lt;/li&gt;
&lt;li&gt;revive it if it&#x27;s a downed teammate, damage it otherwise&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;the box size, the reach and the charge time all come from a shared data asset, and the line of sight test is blueprint bytecode. the client then asks the server to act on the actor it picked. whether the server re-checks reach and line of sight for itself is the one thing i haven&#x27;t established, and it&#x27;s the only thing that matters. again, no offsets here on purpose.&lt;/p&gt;
&lt;p&gt;the interesting part was a bug in my own understanding. i assumed the filter picked the character nearest the crosshair. it doesn&#x27;t. with a wider gather box, the game&#x27;s filter chose a &lt;em&gt;standing teammate near the line&lt;/em&gt; over the downed one being looked at, and shocked him. the selection rule isn&#x27;t &quot;what you&#x27;re aiming at&quot;, it&#x27;s &quot;first acceptable entry in the gathered list&quot;. the only way i found that out was by being wrong about it in a match.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;reading the function list tells you what a system can do. it doesn&#x27;t tell you which of two valid targets it prefers.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;rebuilding-the-map-in-3d&quot;&gt;rebuilding the map in 3d&lt;/h2&gt;
&lt;p&gt;the last piece was a 3d view of each map for a browser radar, built from the game&#x27;s own pak files rather than from memory.&lt;/p&gt;
&lt;p&gt;the pipeline: export a world&#x27;s actors and their static meshes from the paks, then write four binary files per map (terrain, unique meshes, instance transforms, trees) plus a ground texture, and draw them with three.js.&lt;/p&gt;
&lt;p&gt;things that weren&#x27;t obvious:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;trees have trunk-only collision.&lt;/strong&gt; export the collision mesh and you get a forest of poles. the canopy size is in the mesh &lt;em&gt;name&lt;/em&gt; (&lt;code&gt;..._10mCanopy_...&lt;/code&gt;), so trees are drawn as instanced cones and blobs sized from the name&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;the ground texture is tiles.&lt;/strong&gt; the highest-detail tiles are stitched into one 4096 px image per map. where two separate tile textures meet you get a visible seam, and the cause isn&#x27;t the mapping (i checked, it&#x27;s correct): bilinear filtering clamps at each texture&#x27;s own edge. the fix is to export each tile with a 1-2 px border copied from its neighbours&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;instancing is everything.&lt;/strong&gt; a map is a few thousand unique meshes placed tens of thousands of times. storing each mesh once plus a transform per placement is the difference between ~40 mb and unusable&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;the engine&#x27;s &quot;last rendered&quot; time is per bounding box.&lt;/strong&gt; it&#x27;s fine for buildings and useless for crates, which is why occlusion ended up as a bvh of small props only. a building&#x27;s box is a solid brick with no doors; feed it to the bvh and everyone behind a window reads as hidden&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img alt=&quot;brave KpnNQL3nif&quot; src=&quot;/blog/img/brave-kpnnql3nif-4e6d64.png&quot; /&gt;
&lt;em&gt;one map rebuilt from the pak files: terrain, instanced buildings, and trees drawn from their names&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;the-object-that-came-back-from-the-dead&quot;&gt;the object that came back from the dead&lt;/h2&gt;
&lt;p&gt;to stay fast i keep a table of addresses already classified. then a structure finished building mid-match and never appeared.&lt;/p&gt;
&lt;p&gt;the placement stage and the finished structure are two objects. the game freed the first and allocated the second &lt;strong&gt;at the same address&lt;/strong&gt;, and my table said &quot;seen it&quot; for 60 seconds.&lt;/p&gt;
&lt;pre data-lang=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// before: identity = where it is&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seen&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;addr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// after: where it is AND what is there now&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;uint64_t&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hash&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;addr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_ptr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;addr&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mh&quot;&gt;0x10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_u32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;addr&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mh&quot;&gt;0x18&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;   &lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;// class, name number&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;seen&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;and-the-one-where-i-lied-to-myself&quot;&gt;and the one where i lied to myself&lt;/h2&gt;
&lt;p&gt;structures never worked. across every version, the class-name test never matched once, and i spent days suspecting the layout.&lt;/p&gt;
&lt;p&gt;the bug was my own lowercase helper. it decoded a plain byte string as wide text, so every substring test downstream compared against garbage.&lt;/p&gt;
&lt;pre data-lang=&quot;cpp&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// wrong: ascii bytes read as utf-16&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;wide_to_string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bytes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// right: one byte, one character&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;uint8_t&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bytes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;s&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;static_cast&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tolower&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;a few things i learned:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;verify an address by reading through it, never by how it looks&lt;/li&gt;
&lt;li&gt;a public dump is a hypothesis. three of the layouts above were &quot;known&quot; and wrong for this build&lt;/li&gt;
&lt;li&gt;cache identity, not location&lt;/li&gt;
&lt;li&gt;three data points will agree with almost any model. record until something disagrees&lt;/li&gt;
&lt;li&gt;when a feature has &lt;em&gt;never&lt;/em&gt; worked, suspect your own helpers before the target&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;that&#x27;s it for now. next time: getting occlusion right when the engine&#x27;s own &quot;last rendered&quot; time only works per bounding box.&lt;/p&gt;</description></item>
</channel></rss>
