FIX IT. (and curse Java)
[troll.git] / PLAN.org
index d8d1402..fef8643 100644 (file)
--- a/PLAN.org
+++ b/PLAN.org
-* DONE links to contrib and forum
-* DONE document maps
-* DONE document length/distance thingy
-* DONE debug rotating avatar
-* DONE easter egg for YannT
-* DONE messages
-* TODO referee cleanup
+* Todo list
+** DONE links to contrib and forum
+** DONE document maps
+** DONE document length/distance thingy
+** DONE debug rotating avatar
+** DONE easter egg for YannT
+** DONE messages
+** DONE left win bias bug
+** DONE upgrade deps
+** DONE Timings
+** DONE Protocol
+** DONE fenceposts
+** Quotes to include
+     Trolls, it is said, were bred by Melkor because he desired a race as powerful as the giant Ents, the Tree-herds.
+         David Day in Tolkien : The Illustrated Encyclopaedia (1993), p. 226
+
+     The folk belief … is that lightning seeks out trolls and giants, perhaps a reflection the giant-slaying of Thor in Old Norse mythology. Many informants have told collectors that the reason the giants or trolls are no longer populous is the accuracy and efficiency of the lightning strokes.
+         John Lindow, in Swedish Folktales and Legends (1978), p. 89
+
+     Senator Stampingston: Gentlemen, it's clear that we're in a universally precarious situation. Dethklok has summoned a troll.
+     General Crozier: That's impossible, there's no such thing as trolls.
+     Senator Stampingston: Then how do you explain the dead unicorns?
+         Metalocalypse, Dethtroll, episode 1.04 (2006)
+
+     They were trolls. Obviously trolls. Even Bilbo, in spite of his sheltered life, could see that: from the great heavy faces of them, and their size, and the shape of their legs, not to mention their language, which was not drawing-room fashion at all, at all.
+         J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
+
+     Trolls are slow in the uptake, and mighty suspicious about anything new to them.
+         J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
+
+     Trolls simply detest the very sight of dwarves (uncooked).
+         J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
+
+     Trolls do not build.
+         J. R. R. Tolkien, The Fellowship of the Ring (1954), Book I, Chapter 12: "Flight to the Ford"; said by Strider.
+
+     'Now is the time!' cried Gandalf. 'Let us go, before the troll returns!'
+         J. R. R. Tolkien, The Fellowship of the Ring (1954), Book II, Chapter 5: "The Bridge of Khazad-Dûm"
+
+     Trolls are only counterfeits, made by the Enemy in the Great Darkness, in mockery of Ents, as Orcs were of Elves.
+         J. R. R. Tolkien, The Two Towers (1954), Book III, Chapter 4: "Treebeard"
+** DONE View settings
+ - [X] troll pants colors
+** TODO Internationalised troll quotes
+ - pain au chocolat ou chocolatine
+** DONE initial model parametrization
+** DONE view parameterization?
+** DONE troll races
+** DONE html for salting the seed
+** TODO Leagues (need multiround)
+** TODO Multiround (need early termination)
+** TODO Leaguification
+- [X] Cheating
+- [X] Maps
+- [ ] Trolls
+- [ ] Multiround
+** DONE Early termination (need time rationalization)
+** DONE Time rationalization (need code reorg)
+** TODO Code cleanup
 
 That one's probably never going to be DONE ^^'
 
-* DONE left win bias bug
-* DONE upgrade deps
-* DONE Timings
-* TODO Protocol
-* DONE fenceposts
-* Quotes to include
-    Trolls, it is said, were bred by Melkor because he desired a race as powerful as the giant Ents, the Tree-herds.
-        David Day in Tolkien : The Illustrated Encyclopaedia (1993), p. 226
-
-    The folk belief … is that lightning seeks out trolls and giants, perhaps a reflection the giant-slaying of Thor in Old Norse mythology. Many informants have told collectors that the reason the giants or trolls are no longer populous is the accuracy and efficiency of the lightning strokes.
-        John Lindow, in Swedish Folktales and Legends (1978), p. 89
-
-    Senator Stampingston: Gentlemen, it's clear that we're in a universally precarious situation. Dethklok has summoned a troll.
-    General Crozier: That's impossible, there's no such thing as trolls.
-    Senator Stampingston: Then how do you explain the dead unicorns?
-        Metalocalypse, Dethtroll, episode 1.04 (2006)
-
-    They were trolls. Obviously trolls. Even Bilbo, in spite of his sheltered life, could see that: from the great heavy faces of them, and their size, and the shape of their legs, not to mention their language, which was not drawing-room fashion at all, at all.
-        J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
-
-    Trolls are slow in the uptake, and mighty suspicious about anything new to them.
-        J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
-
-    Trolls simply detest the very sight of dwarves (uncooked).
-        J. R. R. Tolkien, The Hobbit (1937), Chapter 2: "Roast Mutton"
-
-    Trolls do not build.
-        J. R. R. Tolkien, The Fellowship of the Ring (1954), Book I, Chapter 12: "Flight to the Ford"; said by Strider.
-
-    'Now is the time!' cried Gandalf. 'Let us go, before the troll returns!'
-        J. R. R. Tolkien, The Fellowship of the Ring (1954), Book II, Chapter 5: "The Bridge of Khazad-Dûm"
-
-    Trolls are only counterfeits, made by the Enemy in the Great Darkness, in mockery of Ents, as Orcs were of Elves.
-        J. R. R. Tolkien, The Two Towers (1954), Book III, Chapter 4: "Treebeard"
-* TODO View settings
-- [ ] troll pants colors
-* TODO Troll quotes
-- pain au chocolat ou chocolatine
-* TODO initial model parametrization
-* TODO view parameterization?
-* TODO troll races
+- [ ] split GameManager
+
+*** organize routines by functional area
+
+*** split out what can be
+
+*** factor stone throwing ref/view interface
+** Testing
+*** DONE basics
+*** TODO the @Illedan case
+*** TODO more generic "referee crash"
+*** TODO parameters feedback
+*** TODO cheating cases
+** DONE add a background to the favicon
+
+That transparency is nefarious on my browser's default tab background
+color.
+
+* BUGS
+** GodMode crash
+Reported by @Illedan
+
+java.lang.NullPointerException
+       at com.codingame.game.GodModeManager.update(GodModeManager.java:102)
+       at com.codingame.game.Referee.gameTurn(Referee.java:122)
+       at com.codingame.gameengine.core.GameManager.start(GameManager.java:122)
+       at com.codingame.gameengine.core.RefereeMain.start(RefereeMain.java:67)
+       at com.codingame.gameengine.core.RefereeMain.main(RefereeMain.java:50)
+
+** viewer goes blank
+<2020-06-03 mer. 22:58>
+(22:19:12) Astrobytes: JBM, if you're around, the TVC viewer goes blank after a couple of games. Consistently. In Chrome. Other games not doing the same.
+(22:24:18) Astrobytes: Seems to be fine in Opera and FF
+(22:30:54) Astrobytes: struct, what's happening with Shabu/Shobu/Shamu/Shangis/whateverit'scalled?
+(22:38:18) JBM: interesting, lemme try
+(22:44:15) JBM: mmm
+(22:44:18) JBM: not here :(
+(22:44:36) Astrobytes: Any luck reproducing JBM? In true bug-form, it hasn't happened since I reported it. Yet it's been happening all day (on 2 different PCs) with multiple restarts.
+(22:44:41) Astrobytes: Ah.
+(22:44:54) JBM: mmm
+(22:45:11) JBM: i only started pushing stuff at around 6 CEST
+(22:45:21) JBM: and then again, did not touch the viewer today
+(22:45:27) Astrobytes: One Win 8.1 and one Win 10
+(22:45:35) JBM: i only have a win10
+(22:45:56) JBM: chrome, errr 83.0.4103.61
+(22:46:19) JBM: ... .97 now
+(22:46:46) Astrobytes: I'm on latest w/ever that is
+(22:48:05) UnnamedCodinGamer: I also had a few black screens (Firefox)
+(22:48:15) Astrobytes: Interesting
+(22:48:19) Astrobytes: Recent?
+(22:48:23) JBM: nope, still get my ui
+(22:48:25) UnnamedCodinGamer: yes
+(22:48:34) JBM: i only get a temporary black sometimes as part of the demo
+(22:48:49) Astrobytes: No, this is full-on blackout
+(22:48:53) UnnamedCodinGamer: it was full black here
+(22:49:01) JBM: the rest of the ui still working?
+(22:49:06) JBM: what does the console report?
+(22:49:26) Astrobytes: Didn't check console, if it happens again I'll let you know
+(22:49:31) JBM: yes please
+(22:49:32) UnnamedCodinGamer: everything else seemed normal
+(22:49:49) Astrobytes: What were your UI settings UnnamedCodinGamer?
+(22:50:16) Astrobytes: Verbose trolling etc
+(22:50:20) UnnamedCodinGamer: like theme?
+(22:50:41) Astrobytes: No the settings for the viewer
+(22:51:47) UnnamedCodinGamer: on/off/GREen
+(22:51:56) JBM: you have to give the actual options
+(22:51:59) UnnamedCodinGamer: I think this is the default
+(22:52:00) JBM: the ordering is random
+(22:52:15) JBM: the defaults, OTOH, aren't (too much)
+(22:52:28) JBM: like, pants color definitely is random
+(22:52:35) UnnamedCodinGamer: verbose trolling on
+(22:52:41) UnnamedCodinGamer: detroll mode off
+(22:52:56) JBM: but a bad pants color would likely merely result in a naked troll, not a crash or allblack ui
+(22:53:05) JBM: yes, those are the defaults
+(22:53:39) JBM: well, no matter if it currently doesn't reproduce
+(22:53:41) JBM: and if it does
+(22:53:49) JBM: please look at the JS console
+(22:53:51) Astrobytes: Then I've had it with detroll mode on and off
+(22:54:02) Astrobytes: Will certainly do
+(22:54:12) JBM: is that in the main viewer only or in last battles?
+(22:54:27) Astrobytes: Main viewer only
+(22:54:34) UnnamedCodinGamer: i had both
+(22:54:41) JBM: because it doesn't in B, or because you never tried?
+(22:54:43) JBM: ah ok
+(22:54:51) JBM: thx
+(22:55:04) UnnamedCodinGamer: after reload of last battles it was back to normal
+(22:55:16) JBM: mmm
+(22:55:28) Astrobytes: Could be a resource usage thing over x amount of time
+(22:55:38) Astrobytes: Donno
+(22:55:40) JBM: if it's irreproducible after reload, i'm tempted to dismiss as "something something cache"
+(22:55:51) JBM: resource usage i'm more doubtful
+(22:55:57) JBM: but who knows
+(22:56:01) Astrobytes: Was still getting it after clearing cache earlier
+(22:56:09) JBM: dear me
+(22:56:19) JBM: ok, creating an actual entry in the PLAB
+(22:56:36) Astrobytes: Anyway, don't worry about it too much until we can give you some more details
+(22:57:07) JBM: right
+(22:57:11) JBM: eagerly awaiting those
+* Publication checklist
+- [ ] demo is up-to-date
+- [-] game name is updated to simple 'troll'
+  - [ ] in pom.xml artifactId
+  - [X] CANCELLED in config.ini (if GC confirms) (eZ disproved)
+  - [ ] in config.js