Skip to content

Commit

Permalink
add handling of trade_best_intrasolar not being given any system at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Feb 13, 2024
1 parent e4b1998 commit 5e4cf29
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions behaviours/trade_best_intrasolar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 24 additions & 0 deletions blog/Version 2.1.5 (week 31&32).md
Original file line number Diff line number Diff line change
@@ -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 |

0 comments on commit 5e4cf29

Please sign in to comment.