Commit Graph
100 Commits
Author SHA1 Message Date
adminandGitHub 64b065b7c9 More headshots (#2989)
* add some more headshots

* more headshots

* rename headshots and upload more

* lots more
2023-10-19 22:13:48 -07:00
adminandGitHub be6389fecc don't give an on-fire penalty if you're the defender and fleeing (#2988) 2023-10-18 20:12:44 -07:00
adminandGitHub 5ab671b575 Add more names (#2987)
* fix the hero generator for recent changes

* try a few more

* throw if it fails

* a few more

* extraneous print

* added more names
2023-10-18 20:10:25 -07:00
adminandGitHub d046b58e1c Slight cleanup in DefendCommandSelector (#2986)
* slight cleanup to DefendCommandSelector

* more cleanup
2023-10-16 17:10:57 -07:00
adminandGitHub be120d7cdf Make selected flee province optional, and must not be set if no flee provinces are available (#2985)
* make it optional

* make the flee province optional

* fix test to allow for optional flee province id

* add tests for incorrect flee province settings
2023-10-16 06:58:45 -07:00
adminandGitHub bbd62a09b3 experimental sandbox directories (#2984) 2023-10-14 15:39:58 -07:00
adminandGitHub 35fef3b924 move rules_jvm_external import to use bzlmod and upgrade to 5.3 (from 4.2) (#2983) 2023-10-14 08:44:40 -07:00
adminandGitHub e87417c7d5 Minimal flatbuffers (#2982)
* upgrade flatbuffers to 23.3.3 (from 2.0.8)

* back to 2.0.8

* unneeded
2023-10-14 08:25:02 -07:00
adminandGitHub 4e29c3d5a9 bring over the basic test (#2981) 2023-10-14 08:13:43 -07:00
adminandGitHub 24fa7af8e4 suppress the duplicate library warnings (#2979) 2023-10-11 21:30:29 -07:00
adminandGitHub adad79a0d6 upgrade googletest to a 1.14.0-derived version (from 1.12.1) (#2978) 2023-10-08 18:13:25 -07:00
adminandGitHub 9ca7037a9f defender cannot flee if they do not hold any other provinces (#2977) 2023-10-08 18:05:59 -07:00
adminandGitHub 6fe4e7a196 upgrade bazel to 6.3.2 (from 6.2.1) (#2976) 2023-10-08 18:02:32 -07:00
adminandGitHub b3c99caa56 Revert "link all the test libraries statically" (#2975)
* Revert "Make the test libraries static (#2968)"

This reverts commit 0042c39f13e5c01760d3d0e1a067cbe788d50a7e.

* add support for dynamic linker
2023-10-06 19:46:08 -07:00
adminandGitHub cee74ab0fc update to llvm/clang 15 (#2974)
* try updating to clang 16

* use 15.0.7
2023-10-06 16:56:42 -07:00
adminandGitHub fee7caba21 upgrade scalapb (#2973) 2023-10-06 06:53:02 -07:00
adminandGitHub 4a53fba799 Upgrade rules_scala to 6.2.0 (from an old git commit) (#2972)
* upgrade rules_scala but does not match

* more updates
2023-10-05 22:14:43 -07:00
adminandGitHub 7960bca566 make the function-ness of stuff in AIClient explicit (#2971) 2023-10-05 22:10:56 -07:00
adminandGitHub 8d0524d467 delete the test (#2970) 2023-10-05 17:12:23 -07:00
adminandGitHub d053784629 Make the test libraries static (#2968) 2023-10-05 16:55:13 -07:00
adminandGitHub 3c6e4c4770 cleanup (#2967) 2023-10-05 07:52:49 -07:00
adminandGitHub ee1cc8484e Use grailbio/bazel-tools (#2965)
* use my fork of llvm toolchain, currently failing on libunwind

* update bazelrc

* it builds
2023-10-03 21:42:18 -07:00
adminandGitHub ea8c4a9082 enable bzlmod (#2966) 2023-10-03 17:08:49 -07:00
adminandGitHub 167536b7ca update parallel-hashmap to 1.3.11 (from 1.3.8) (#2964) 2023-09-23 16:32:09 -07:00
adminandGitHub 20fdfd7ad2 update grpc to 1.53.0 (from 1.50.0) (#2963) 2023-09-23 10:41:25 -07:00
adminandGitHub cf3defaea3 fix an npe when the commanding unit's headshot is not known (#2961) 2023-09-22 19:12:23 -07:00
adminandGitHub d435ab6425 upgrade scala to 2.13.12 (#2960) 2023-09-22 06:43:04 -07:00
adminandGitHub 1dc90e95be Build and run with Java 17 (#2959)
* try building and running against java17

* missed a digit
2023-09-22 06:38:15 -07:00
adminandGitHub e7854999f2 add name words (#2958) 2023-09-21 06:43:21 -07:00
adminandGitHub 8a6051df50 use internalAssert for checking calls to mutate the gamestate (#2957) 2023-09-19 21:53:22 -07:00
adminandGitHub ddd6dbd875 add host_cxxopt for future absl builds (#2956) 2023-09-19 21:51:04 -07:00
adminandGitHub b4f2ea5d5e more unnecessary texture creation (#2955) 2023-09-18 17:46:31 -07:00
adminandGitHub 8dbe40089c Handle ransom offer invalidation (#2954)
* return ambassador to province if a ransom offer target is destroyed

* invalidate ransom offers if a faction is destroyed or if the ransom offer is no longer valid
2023-09-17 10:41:25 -07:00
adminandGitHub 76fecf2938 fix a crasher if there's no model set in the DominionPanelController (#2953) 2023-09-10 21:39:49 -07:00
adminandGitHub fe07761b35 Static AWSResourceFetcher (#2952)
* one thing at a time

* always get the AWSResourceFetcher from the static object
2023-09-10 08:25:23 -07:00
adminandGitHub 4e83f73f05 don't display the refresh rate (#2951) 2023-09-10 07:57:30 -07:00
adminandGitHub 9b6047eb44 minor cleanup in UnitInfoPanelController (#2950) 2023-09-10 07:47:26 -07:00
adminandGitHub cd5fd2de2a fetch on start instead of on demand (#2949) 2023-09-09 20:48:12 -07:00
adminandGitHub d7d2b7dd06 Revert "unload unused assets at every model swap (#2947)" (#2948)
This reverts commit 7b65acb8fcb27e911fe433a743de778e246f5bfd.
2023-09-09 19:41:01 -07:00
adminandGitHub ed72439b38 unload unused assets at every model swap (#2947)
* unload unused assets at start of year

* just unload resources on every model swap
2023-09-09 17:07:46 -07:00
adminandGitHub c906d49338 Crossing choices (#2946)
* remove unused definition for BestCommandIndexFor

* remove unused BestCommandIndexFor
2023-09-09 16:48:34 -07:00
adminandGitHub 4b50747193 Water crossing calculates score the way other strategies do, and uses lookahead (#2945)
* score calculator for water crossings

* use it for lookahead

* it works but is slow

* set the start crossing locations in advance

* remove the direct command index chooser
2023-09-05 21:23:38 -07:00
adminandGitHub e6fdd26075 reflow and shrink text if necessary for province events (#2944) 2023-09-05 19:57:12 -07:00
adminandGitHub 7dce6ec6a7 singular name (#2943) 2023-09-05 19:43:03 -07:00
adminandGitHub 341253cd2b load directly into RawImage (#2942) 2023-09-02 22:04:11 -07:00
adminandGitHub 8edca2f993 replace all new texture creation with LoadImage, except in Shardok (#2941)
* replace all new texture creation with LoadImage, except in Shardok

* load directly in Shardok too

* awake not start

* set up in awake, not start

* need to actually make the texture

* load correctly

* make on the fly I guess
2023-09-02 18:05:33 -07:00
adminandGitHub d3fca557a5 don't show support field when support isn't known (#2940) 2023-09-02 09:07:37 -07:00
adminandGitHub b28e4e4213 add some name words (#2939) 2023-09-02 09:01:16 -07:00
adminandGitHub fd35eb09bf filter dead heroes out of scouted province views (#2938)
* filter dead heroes out of scouted province views

* add tests
2023-09-02 08:49:10 -07:00
adminandGitHub 3b585887e6 hook up CapturedHeroReturned (#2937) 2023-09-01 20:21:18 -07:00
adminandGitHub 978cfdb581 refactor water crossings (#2936)
* refactor water crossings

* move IntendedCrossingStarts to a helper
2023-08-31 07:36:07 -07:00
adminandGitHub 81eb7b986b unit cleanup (#2935) 2023-08-30 20:11:02 -07:00
adminandGitHub 23121192df flee before crossing rivers (#2934)
* flee before crossing rivers

* fix tests
2023-08-30 19:10:36 -07:00
adminandGitHub c5ea2b8d07 move attacker and defender strategy selectors to separate classes (#2933) 2023-08-30 17:43:47 -07:00
adminandGitHub e6e4f9b134 Don't flee if the attacker needs to cross rivers (#2932)
* don't include units that need to cross rivers when deciding whether defender should flee

* defender only considers units that don't need to cross rivers when deciding whether to flee

* flee tests
2023-08-30 06:52:07 -07:00
adminandGitHub 174a0075a1 center the text in NotificationPanel when there are no images (#2931) 2023-08-26 09:22:17 -07:00
adminandGitHub d80ac786b6 use stoke regular instead of stoke light for the names in PopupPanelController (#2930) 2023-08-26 09:00:48 -07:00
adminandGitHub 032d03d9c6 images and names are now in their own container, to fix some formatti… (#2929)
* images and names are now in their own container, to fix some formatting issues

* fix a missing reference

* add the spacer back
2023-08-26 08:59:05 -07:00
adminandGitHub 131f61e2ab Upgrade Unity to 2022.3.8f1 (from 2021.3.24f1) (#2928)
* Upgrade Unity to 2022.3.8f1 (from 2021.3.24f1)

* update the script too
2023-08-26 07:27:21 -07:00
adminandGitHub 3612ffe40b Get rid of RandomStateSequencer.apply without an explicit functionalRandom (#2927)
* get rid of RandomStateSequencer.apply without a functionalRandom

* fix remaining tests
2023-08-25 17:12:34 -07:00
adminandGitHub c405ce30ae basic flee (#2926)
* basic flee

* use 15%, not 10%
2023-08-24 06:54:45 -07:00
adminandGitHub 438cd4abf7 Consolidate SeededRandom (#2925)
* don't double vigor xp

* Revert "don't double vigor xp"

This reverts commit d4a19fbfc7a2941a4c48cb4d3135ced002fcd392.

* DivineCommandTest is a random command

* Fix HandleCapturedHeroesCommand

* RandomSingleResultAction wasn't needed

* fix HandleRiotCrackDownCommand

* HandleRiotGiveCommand

* OrganizeTroopsCommand

* SuppressBeastsCommand
2023-08-23 07:57:19 -07:00
adminandGitHub 4b7ec1a826 split SequentialResultsAction into deterministic and random versions (#2924)
* rename action subclasses to Deterministic

* add Random versions and use it in one subclass

* replace another

* do 'em all

* EndBattleAftermathPhaseAction

* fix build & tests for battle aftermath

* performprovinceeventsaction

* remove the SeededRandom

* fix PerformUnaffiliatedHeroesAction

* treaty resolution helpers
2023-08-22 19:43:03 -07:00
adminandGitHub 86181bbd1d Only random state sequencer, no actionresultsequencer (#2923)
* only ever use RandomStateSequencer, not ActionResultSequencer

* fix remaining cases

* no direct usage of ActionResultSequencer

* get rid of ActionResultSequencer, just do everything directly
2023-08-21 19:00:53 -07:00
adminandGitHub bfa150bdfe moved JankyRandom to test/ (#2922) 2023-08-20 18:37:22 -07:00
adminandGitHub 14ffceb1c5 Remove SeqRandomUtils from HeroGenerator and delete it (#2921)
* remove SeqRandomUtils from HeroGenerator

* delete SeqRandomUtils
2023-08-20 18:30:29 -07:00
adminandGitHub 2f5a6c6a92 start converting returningHeroes to random (#2915)
* start converting returningHeroes to random

* fix CheckForFactionChangesAction

* InvitationResolutionHelpers

* tests build

* duplicated invitations
2023-08-20 18:00:19 -07:00
adminandGitHub 7c363d5319 Less seq random (#2918)
* start removing seqrandomutils from commandchoicehelpers

* fix more randoms

* add a sort
2023-08-20 09:54:50 -07:00
adminandGitHub e53c94cfbe sort new heroes (#2920) 2023-08-20 09:53:03 -07:00
adminandGitHub 78052aa961 exclude names from pregenerated hero list (#2919) 2023-08-20 08:08:46 -07:00
adminandGitHub 704ce12edf remove some dead code (#2917) 2023-08-19 10:22:09 -07:00
adminandGitHub bc6797f578 clean up braces (#2916)
* use a new random

* back to functionalrandom
2023-08-19 09:53:06 -07:00
adminandGitHub 077a1b054d stop exporting random from SeqRandomUtils (#2914) 2023-08-10 06:42:39 -07:00
adminandGitHub 54930cebe3 eliminated some dead code from FactionUtils (#2913) 2023-08-09 22:24:02 -07:00
adminandGitHub ac71879159 remove SeqRandomUtils from prompt generators (#2912) 2023-08-09 22:20:30 -07:00
adminandGitHub 6eec628fcb remove scala.util.random from CustomBattleManager (#2911) 2023-08-09 18:42:17 -07:00
adminandGitHub c7bdc59f96 eliminate random from HeroGenerator (#2910) 2023-08-09 18:31:31 -07:00
adminandGitHub ae2aead4bc remove SeqRandomUtils from FixLeaderAloneCommandSelector (#2909) 2023-08-09 06:43:36 -07:00
adminandGitHub 1624c30e90 Remaining random in CommandChoiceHelpers (#2908)
* a few more

* CommandChoiceHelpers builds

* fix PerformVassalDefenseDecisionsAction; service now builds

* fix the tests
2023-08-08 17:27:57 -07:00
adminandGitHub 3c2abf3a5c remove unused RandomCommands (#2907) 2023-08-07 21:30:01 -07:00
adminandGitHub d30c525c48 Replace randomness in CommandChoiceHelpers and AI (#2903)
* start conversoin

* off to this again

* continuing

* PerformVassalCommandsPhaseAction

* MidGameAIClient builds

* start fixing ai

* it runs

* don't add a new random seed if it hasn't changed

* slight cleanup

* move the RandomState out

* reorder args

* never used that one

* reformat to improve diff

* fix PerformVassalCommandPhaseActionTest
2023-08-07 21:26:37 -07:00
adminandGitHub aa858891f6 use a separate function instead of a default (#2906) 2023-08-07 19:16:05 -07:00
adminandGitHub dd8d088656 use CommandChooser in AIClient (#2905) 2023-08-07 18:27:48 -07:00
adminandGitHub a191416ebb use CommandChooser in EarlyGameAIClient (#2904) 2023-08-07 18:18:46 -07:00
adminandGitHub 8010921a2b remove random command code (#2902) 2023-08-07 17:19:12 -07:00
adminandGitHub 547b26c1c3 Multiple sort keys (#2901)
* populate multiple sort keys instead of cramming into one

* why does this break the build

* Revert "why does this break the build"

This reverts commit e622d61679a36e7061ae74877c408c0e1b9494ea.

* use it in the HeroesAndBattalionsPanel too
2023-08-06 09:14:20 -07:00
adminandGitHub aae74b9abe Clean up ActionResultApplierTest (#2900)
* clean up ActionResultApplierTest

* whitespace too
2023-08-06 08:21:22 -07:00
adminandGitHub 2f4b1dff0b Populate the sort keys correctly in the client (#2899)
* tweak sortKey

* sort by hero id last

* populate the changed sort key

* use the new sort key in the client'

* simplify UnaffiliatedHeroes back to how it was
2023-08-06 07:43:00 -07:00
adminandGitHub 0c92e97823 update GiveToHeroInProvince quests in the recipient province, not the acting province (#2898) 2023-08-05 15:13:24 -07:00
adminandGitHub e44d3a7f4b Explicit vectors (#2897)
* make the Vector[CommandChooser]s explicit

* one more
2023-08-04 16:44:25 -07:00
adminandGitHub 93bc011a7d make CommandChooser an implicit class (#2896) 2023-08-04 16:24:30 -07:00
adminandGitHub b74a3a5c5a Tweak the names layout a bit more (#2895)
* treaty too

* some layout tweaking
2023-08-04 16:21:48 -07:00
adminandGitHub 5818b649c5 clean up PerformVassalCommandsPhaseActionTest (#2894)
* clean up PerformVassalCommandsPhaseActionTest

* more cleanup
2023-08-04 07:36:46 -07:00
adminandGitHub 9c59192edf tweak Notification panel a bit more (#2893) 2023-08-03 22:00:06 -07:00
adminandGitHub 8705896385 Hero names in popup panel (#2892)
* add hero name to Treaty Proposal

* add names to popup panel controller and do ransom panel

* Invite too

* notifications too

* max size

* 18 not 12

* tweak treaty text

* move dismiss button back

* hide the container, not just the image

* expand the text view

* add spacers

* fix the dismiss button
2023-08-03 21:49:34 -07:00
adminandGitHub 170e5b8f6a pass through entire hero to popupinfo (#2891) 2023-08-03 21:06:45 -07:00
adminandGitHub c8e4d69ef2 Warning on max alms (#2890)
* allow alms even if support is 100

* warn if support is already 100
2023-08-03 20:04:48 -07:00
adminandGitHub f38b9543c9 allow alms even if support is 100 (#2889) 2023-08-03 20:04:13 -07:00
adminandGitHub 6705296278 Show warning when giving to a hero with 100 loyalty (#2888)
* allow gifts to heroes with full loyalty

* warn if hero has 100 loyalty
2023-08-03 19:55:09 -07:00
adminandGitHub 5801348201 allow gifts to heroes with full loyalty (#2887) 2023-08-03 19:54:38 -07:00