chiark / gitweb /
bugs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 23 Nov 2020 02:24:12 +0000 (02:24 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 23 Nov 2020 02:24:12 +0000 (02:24 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
specs/penultima.game.toml
src/bin/otter.rs
templates/script.ts

index 7ceb27aeab863a2e4ad93ab8b85b62a2f20a9315..2e6ff80b7b8a54e0d55983fe6816970754f0bd50 100644 (file)
@@ -2,9 +2,6 @@
 # SPDX-License-Identifier: AGPL-3.0-or-later
 # There is NO WARRANTY.
 
-# xxx
-# xxx also put this in the README.md
-
 table_size = [300, 200]
 
 [[pieces]]
index c6967712b75343352036b7fa95891e85726ac620..22567b8b3c3227610d063948a1a6225fde1bdf06 100644 (file)
@@ -2,6 +2,16 @@
 // SPDX-License-Identifier: AGPL-3.0-or-later
 // There is NO WARRANTY.
 
+// xxx
+// chiark:~> otter join-game unix:ijackson::test
+// already in game, as player #1 "ijackson"
+// redelivering existing access token
+// thread 'main' panicked at 'execution error: game alternations failed (maybe partially); response to: AlterGame { game: InstanceName { account: AccountName { scope: Unix { user: "ijackson" }, subaccount: "" }, game: "test" }, insns: [RedeliverPlayerAccess(1#1)], how: Online }
+// 
+// Caused by:
+//    AuthorisationUninitialised', src/bin/otter.rs:414:25
+
+
 #![allow(unused_imports)]
 
 use otter::imports::*;
index 42bb4192ee62830133a8d6130aed55fa163abce5..10fb4a1fb32cfff68e409fd25e89611934429b83 100644 (file)
@@ -37,6 +37,8 @@
 //   #def.{}.stuff
 //      generated by server, reserved for Piece trait impl
 
+// xxx Error (reloading may help?):exception handling update Piece: {"Piece":{"piece":"10.1","op":{"Modify":{"pos":[151,40],"svg":"<g id=\"piece10.1\" data-dragraise=\"4\"><g transform=\"scale(0.2 0.2) translate(-22.5 -22.5)\"><!-- otter.git#3413043bf64abcedc4332b192dd207882a0f3abf+ library/wikimedia/chess-b-R.usvg CC-BY-SA-4.0, see library/wikimedia/LICENCE -->\n<svg width=\"45\" height=\"45\" viewBox=\"0 0 45 45\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:usvg=\"https://github.com/RazrFalcon/resvg\" usvg:version=\"0.11.0\">\n    <defs/>\n    <path fill=\"#000000\" fill-rule=\"evenodd\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linejoin=\"round\" d=\"M 9 39 L 36 39 L 36 36 L 9 36 L 9 39 Z\"/>\n    <path fill=\"#000000\" fill-rule=\"evenodd\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linejoin=\"round\" d=\"M 12.5 32 L 14 29.5 L 31 29.5 L 32.5 32 L 12.5 32 Z\"/>\n    <path fill=\"#000000\" fill-rule=\"evenodd\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linejoin=\"round\" d=\"M 12 36 L 12 32 L 33 32 L 33 36 L 12 36 Z\"/>\n    <path fill=\"#000000\" fill-rule=\"evenodd\" stroke=\"#000000\" stroke-width=\"1.5\" d=\"M 14 29.5 L 14 16.5 L 31 16.5 L 31 29.5 L 14 29.5 Z\"/>\n    <path fill=\"#000000\" fill-rule=\"evenodd\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linejoin=\"round\" d=\"M 14 16.5 L 11 14 L 34 14 L 31 16.5 L 14 16.5 Z\"/>\n    <path fill=\"#000000\" fill-rule=\"evenodd\" stroke=\"#000000\" stroke-width=\"1.5\" stroke-linejoin=\"round\" d=\"M 11 14 L 11 9 L 15 9 L 15 11 L 20 11 L 20 9 L 25 9 L 25 11 L 30 11 L 30 9 L 34 9 L 34 14 L 11 14 Z\"/>\n    <path fill=\"none\" stroke=\"#ffffff\" stroke-linecap=\"round\" d=\"M 12 35.5 L 33 35.5 L 33 35.5\"/>\n    <path fill=\"none\" stroke=\"#ffffff\" stroke-linecap=\"round\" d=\"M 13 31.5 L 32 31.5\"/>\n    <path fill=\"none\" stroke=\"#ffffff\" stroke-linecap=\"round\" d=\"M 14 29.5 L 31 29.5\"/>\n    <path fill=\"none\" stroke=\"#ffffff\" stroke-linecap=\"round\" d=\"M 14 16.5 L 31 16.5\"/>\n    <path fill=\"none\" stroke=\"#ffffff\" stroke-linecap=\"round\" d=\"M 11 14 L 34 14\"/>\n</svg>\n</g></g><path id=\"surround10.1\" d=\"M 0 4.95 a 4.95 4.95 0 1 0 0 -9.9 a 4.95 4.95 0 1 0 0 9.9 z\"/>","held":"2#1","z":"g04r000000","zg":60,"pinned":false,"uos":[]}}}}: TypeError: players[p.held] is undefined
+
 type PieceId = string;
 type PlayerId = string;
 type Pos = [number, number];