Skip to content

Commit

Permalink
end of week 30
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Feb 11, 2024
1 parent 121ffc0 commit 4b96fb5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
12 changes: 11 additions & 1 deletion behaviours/generic_behaviour.py
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ def sleep_until_arrived(self):

set_logging(level=logging.DEBUG)
agent = sys.argv[1] if len(sys.argv) > 2 else "CTRI-U-"
ship_number = sys.argv[2] if len(sys.argv) > 2 else "44"
ship_number = sys.argv[2] if len(sys.argv) > 2 else "1"
ship = f"{agent}-{ship_number}"
bhvr = Behaviour(agent, ship, {})
bhvr.ship = bhvr.st.ships_view_one(ship, True)
Expand All @@ -1086,3 +1086,13 @@ def sleep_until_arrived(self):
ship = self.ship

current_system = st.systems_view_one(ship.nav.system_symbol)
factions = st.list_factions()
for faction in factions:
print(faction.headquarters)
hq = st.systems_view_one(waypoint_slicer(faction.headquarters))
route = bhvr.pathfinder.astar(current_system, hq, force_recalc=True)
if route:
print(route.jumps)
else:
print("No route found")
print("---")
32 changes: 16 additions & 16 deletions blog/Version 2.1.4 (week 29&30).md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ Once that's completed, a mechanism by which the user token can be used to instan
Progress on the UI to enable ship controls is going slowly and unsteadily.
It feels like a simple task that will take a lot of time, and as such there's quite a mental barrier against it.
The solution will be to gently chip at it, with each bit of progress making the system more functional than the last - doing it all in one go is not a viable option (psychologically) so breaking it down is the way forwards.
We can already set individual tasks - which is a huge step forwards, we just need to get the UI to be able to set behaviours instead and buy ships, and we'll be functionally comparitive with the conductor.
We can already set individual tasks - which is a huge step forwards, we just need to get the UI to be able to set behaviours instead and buy ships, and we'll be functionally comparitive with the conductor.


## performance

* Node U (exp 29-30) - Didn't do initial exploration - why?
* The evolution behaviour appears to be buying goods when it's at the end of the chain and there's no profitable location - so it ends up selling them at a loss next time around
- sorted itself out, ran out of money initially but caught up once TVs eveolved.
- seems to successfuly build jump gate and explore the gate network outwards.
- needs to find haulers
- sorted itself out, ran out of money initially but caught up once TVs eveolved.
- seems to successfuly build jump gate and explore the gate network outwards.
- needs to find heavy haulers
- needs to trade antimatter
- needs to warp to start systems.
* Node C (27-28) - Didn't do initial exploration - why?
Expand All @@ -26,15 +26,15 @@ We can already set individual tasks - which is a huge step forwards, we just nee
* Node V (26-27) - Didn't do initial exploration - why?
- stuck doing mining and no trading

| stat | Node U (exp) | node V (26-27) | node C (27-28)
| --- | ------------ | ---------- |
| total uptime | 257.29 | 354.16 |
| total ships | 84 | 22 |
| contracts | 257 | 2 |
| contract_earnings | 22,025,637 | 0 |
| trade_earnings | 148,474,606 | 2,692,372 |
| total_earnings | 170,500,243 | 2,692,372 |
| requests | 1,218,532 | 392,857 |
| average delay | 9.01 | 0.5 |
| CPH | 662,677.30 | 7,602.134 |
| CPR | 139.922 | 6.85 |
| stat | Node U (exp) | node V (26-27) | node C (27-28) |
| --- | ------------ | ------------- | -------------- |
| total uptime | 335.92 | 182.43 | 336.49 |
| total ships | 102 | 27 | 42 |
| contracts | 377 | 0 | 0 |
| contract_earnings | 38,708,976 | 0 | 13404 |
| trade_earnings | -2,457,452?? | 1,454,525 | 41,500,535 |
| total_earnings | 36,251,524 | 1,454,525 | 41,513,939 |
| requests | 443,175 | 194,175 | 1309062 |
| average delay | 11.94 | 0.54 | 1.85 |
| CPH | 107,917.13 | 7,973.06 | 123373.47 |
| CPR | 81.79 | 7.49 | 31.71 |

0 comments on commit 4b96fb5

Please sign in to comment.