YaLTeR / bxt-rs

Fastest video recording and TAS tools for Half-Life & mods.
GNU General Public License v3.0
47 stars 10 forks source link

Fix Operation enum addition not on parity with release build #104

Closed khanghugo closed 7 months ago

khanghugo commented 7 months ago

Here is the SQL for migration

--
-- swap SetYawSpeed and SetFrameTime
-- SetYawspeed to BOGUS
UPDATE undo_log
SET action = CAST(x'6969' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'000d'; -- SetYawSpeed

-- SetFrameTime to old SetYawspeed
UPDATE undo_log
SET action = CAST(x'000d' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'000f'; -- SetFrameTime

-- BOGUS to old SetFrameTime
UPDATE undo_log
SET action = CAST(x'000f' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'6969';

--
-- swap SetAdjacentYawspeed and SetCommands
-- SetAdjacentYawspeed to BOGUS
UPDATE undo_log
SET action = CAST(x'6969' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'000e'; -- SetAdjacentYawspeed

-- SetCommands to old SetAdjacentYawspeed
UPDATE undo_log
SET action = CAST(x'000e' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'0010'; -- SetCommands

-- BOGUS to old SetCommands
UPDATE undo_log
SET action = CAST(x'0010' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'6969';
khanghugo commented 7 months ago

Nevermind. I think I have been memory holed. The setframetime and setcommands are added after the set yawspeed. I thought they were there since forever.