From: 2weiEmu Date: Thu, 5 Feb 2026 19:02:20 +0000 (+0100) Subject: updated: more things, now tkinter yippee X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=3b61e0d26c3b92a0b8e4676fb01d12744e046843;p=research-obsidian.git updated: more things, now tkinter yippee --- diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 782072a..ea9fd20 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -177,11 +177,11 @@ }, "active": "04094233c3d02ad2", "lastOpenFiles": [ - "Nebulous Command/data.py~", + "Nebulous Command/missile-simulator.py~", "Nebulous Command/missiles-ranges.py~", + "Nebulous Command/data.py~", "Nebulous Command/__pycache__/data.cpython-314.pyc", "Nebulous Command/missiles-ranges.py", - "Nebulous Command/missile-simulator.py~", "Nebulous Command/calc.py~", "Nebulous Command/4913", "Nebulous Command/data.py", diff --git a/Nebulous Command/Notes on Mechanics.md b/Nebulous Command/Notes on Mechanics.md index 131b2bb..fd06f32 100644 --- a/Nebulous Command/Notes on Mechanics.md +++ b/Nebulous Command/Notes on Mechanics.md @@ -7,6 +7,7 @@ things that I still have to simulate: - new ui with where detected in the combination and where not - better error handling - better manipulations of settings for everything, perhaps tkinter more? +- can the radar target check Why does this document exist? Basically I just wanna explore what is the best way to build a solid _combat_ fleet in Nebulous. I.e. capable of winning fair 3000 point on 3000 point 1v1s, and perhapsperforming supporting roles in a match. diff --git a/Nebulous Command/__pycache__/data.cpython-314.pyc b/Nebulous Command/__pycache__/data.cpython-314.pyc index a322fe4..73c1588 100644 Binary files a/Nebulous Command/__pycache__/data.cpython-314.pyc and b/Nebulous Command/__pycache__/data.cpython-314.pyc differ diff --git a/Nebulous Command/data.py b/Nebulous Command/data.py index 52ae4df..8cab81e 100644 --- a/Nebulous Command/data.py +++ b/Nebulous Command/data.py @@ -81,3 +81,8 @@ radars = [ Radar("Bulwark Huntress", 4000, 40, 60, -38, 0, 4, 10), Radar("Ithaca", 3100, 40, 60, -34, 0, 4, 8.5), ] + + +@dataclass +class Illuminator(): + pass diff --git a/Nebulous Command/missiles-ranges.py b/Nebulous Command/missiles-ranges.py index 173e7c3..5aa4bc8 100644 --- a/Nebulous Command/missiles-ranges.py +++ b/Nebulous Command/missiles-ranges.py @@ -1,9 +1,39 @@ -from data import Jammer, Radar, Ship, Missile +from data import Jammer, Radar, Ship, Missile, radars import tkinter as tk +from tkinter import ttk + +RADAR_OPTIONS = [r.name for r in radars] def main(): root = tk.Tk() + # we need the ship that is _detecting_ + # what does that ship need? Radar, Illuminators, + # Strobe Correlators, ARRs and Signature Scramblers + label = tk.Label(root, text="The Detecting Ship") + label.grid(row=0, column=0) + + # RADAR + radar_det_combo = ttk.Combobox(root, values=RADAR_OPTIONS, state="readonly") + radar_det_combo.grid(row=1, column=0) + + # ILLUMINATORS + # not sure how these work yet? do these boost radiated + # power of a radar effectively, or how would that be? + # experimentally verify + + + + # we need the ship that is _hiding_ + # what does that need? What kind of Ship / Missile is it? + # What, and how many jammers + # does it have? How many layers of coating does it have? + # what other modifiers to Return signal does it have? + # i.e. radars and jammers that give + # +10%, or internal things, or is the Comms and RADAR off (-10% and -25%) + label = tk.Label(root, text="The Ship or Missile being detected") + label.grid(row=0, column=1) + root.mainloop()