From 5e4cf29b95a5a5ca4211f21793b39ca45b4c1af3 Mon Sep 17 00:00:00 2001 From: C'tri Goudie Date: Tue, 13 Feb 2024 16:27:09 +0000 Subject: [PATCH] add handling of trade_best_intrasolar not being given any system at all --- behaviours/trade_best_intrasolar.py | 3 +++ blog/Version 2.1.5 (week 31&32).md | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 blog/Version 2.1.5 (week 31&32).md diff --git a/behaviours/trade_best_intrasolar.py b/behaviours/trade_best_intrasolar.py index f2c7654..151e8f9 100644 --- a/behaviours/trade_best_intrasolar.py +++ b/behaviours/trade_best_intrasolar.py @@ -66,6 +66,9 @@ def _run(self): ship: Ship agent = self.agent + if not self.target_sys: + self.target_sys = ship.nav.system_symbol + if self.ship.nav.system_symbol != self.target_sys: arrived = self.ship_extrasolar_jump(self.target_sys) if not arrived: diff --git a/blog/Version 2.1.5 (week 31&32).md b/blog/Version 2.1.5 (week 31&32).md new file mode 100644 index 0000000..2527818 --- /dev/null +++ b/blog/Version 2.1.5 (week 31&32).md @@ -0,0 +1,24 @@ +# Week 31/32 + +We can now set behaviours individually, and Space Admiral has sorted some more of interstellar trading. + +Unfortunately, for reasons as yet unclear, the Node-U behaviour didn't properly start executing TRADE_BEST_INTRASOLAR for the command ship. +With Justin back and active (and already in first place), the focus is going to be largely on enhancing reliability and performance, not new strategies. + +Node-V isn't doing anything at all, when I restarted the dispatcher I got a bunch of errors from it attempting to map to a system it's not in? +Turns out we need to purge the cache between resets. Maybe the clint should do that if the system's dates don't match up with the service? + +## performance + +| stat | Node U (exp) | node V (26-27) | node C (27-28) | +| --- | ------------ | ------------- | -------------- | +| total uptime | +| total ships | +| contracts | +| contract_earnings | +| trade_earnings | +| total_earnings | +| requests | +| average delay | +| CPH | +| CPR |