Skip to content

Commit

Permalink
adjustments during play
Browse files Browse the repository at this point in the history
  • Loading branch information
Piglit committed Apr 1, 2024
1 parent bc5f0b0 commit 66fb872
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 1,374 deletions.
18 changes: 13 additions & 5 deletions ee_autoconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dialog import Dialog
import subprocess

SERVER = "127.0.0.1" # TODO adjust
SERVER = "192.168.115.236" # TODO adjust

d = Dialog(autowidgetsize=True)

Expand All @@ -27,9 +27,11 @@
]

factions = [
("Endor", "Tantal 3 Flight Control"),
("FC-03", "Tantal 3 Flight Control"),
("Tantal-3", "Tantal 3 Ground Control"),
("Transport", "Main transport craft"),
("Escort", "Escort ship")
("Escort", "Escort ship"),
("None", "None")
]


Expand All @@ -38,12 +40,18 @@
d.clear()
exit(0)

code, faction = d.menu("Select faction:", title="Ship Connector", choices=factions)
code, faction = d.menu("Select ship:", title="Ship Connector", choices=factions)
if code != d.OK:
d.clear()
exit(0)

acs = f"solo;faction={faction}"
if faction not in ["FC-03", "Tantal-3"]:
if faction == "None":
acs = f""
else:
acs = f"solo;faction={faction}"
else:
acs = f"callsign={faction}"

command = ["./EmptyEpsilon", "server_scenario=", "httpserver=", f"autoconnect={station}", f"autoconnectship={acs}", f"autoconnect_address={SERVER}"]
d.clear()
Expand Down
73 changes: 19 additions & 54 deletions hardware.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ target = Spot
# Ship not selected
condition = Always
# Dim brown lights
value = [60], [44], [14], [8], 0, 0, 0
value = [200], [44], [14], [8], 0, 0, 0

[state]
target = Fogger
Expand All @@ -44,7 +44,7 @@ input = Energy
min_input = 0
max_input = 1000
# Lights get dimmer when energy is drained
min_output = [5], [240], [250], [160], 0, 0, 0
min_output = [128], [240], [250], [160], 0, 0, 0
max_output = [255], [240], [250], [160], 0, 0, 0

[state]
Expand All @@ -59,6 +59,19 @@ max_input = 4
min_output = 0, 0, 0, 0, 0, [100], [0]
max_output = 0, 0, 0, 0, 0, [100], [255]

[state]
target = Spot
# Docking complete
condition = Docked
# clam green glow
effect = variable
input = Energy
min_input = 0
max_input = 1000
# Lights get brighter wile energy is charging
min_output = [128], [0], [128], [0], 0, 0, 0
max_output = [255], [0], [255], [0], 0, 0, 0

[state]
target = Spot
# Shields are on
Expand All @@ -69,7 +82,7 @@ min_input = 0
max_input = 100
# Lights get dimmer when shields are low
# shields use blue lights
min_output = [2], [0], [0], [255], 0, 0, 0
min_output = [128], [0], [0], [255], 0, 0, 0
max_output = [255], [0], [128], [255], 0, 0, 0

[state]
Expand All @@ -81,7 +94,7 @@ input = Energy
min_input = 0
max_input = 1000
# Lights get dimmer when energy is drained
min_output = [5], [255], [128], [0], 0, 0, 0
min_output = [128], [255], [128], [0], 0, 0, 0
max_output = [255], [255], [128], [0], 0, 0, 0

[state]
Expand All @@ -93,7 +106,7 @@ input = Energy
min_input = 0
max_input = 1000
# Lights get dimmer when energy is drained
min_output = [5], $FF, $00, $00, 0, 0, 0
min_output = [128], $FF, $00, $00, 0, 0, 0
max_output = [255], $FF, $00, $00, 0, 0, 0

[state]
Expand All @@ -106,19 +119,6 @@ time = 1.0
min_value = [5], [255], [128], [0], 0, 0, 0
max_value = [255], [255], [128], [0], 0, 0, 0

[state]
target = Spot
# Docking complete
condition = Docked
# clam green glow
effect = variable
input = Energy
min_input = 0
max_input = 1000
# Lights get brighter wile energy is charging
min_output = [5], [0], [128], [0], 0, 0, 0
max_output = [255], [0], [255], [0], 0, 0, 0

[state]
target = Spot
# Critical condition
Expand All @@ -144,41 +144,6 @@ condition = Jumped
value = 0, 0, 0, 0, 0, 0, 0


## This configuration is for the entry door.
[state]
target = Dockspot
# Game has not yet started
condition = HasShip == 0
# Dim white lights
value = 0.3, $FF, $FF, $FF, 0, 0, 0

[state]
# slowly glowing red while not docked
target = Dockspot
condition = HasShip
effect = glow
min_value = 0.3, $FF, $00, $00, 0, 0, 0
max_value = 1, $FF, $00, $00, 0, 0, 0
time = 3

[state]
# glowing yellow while docking
target = Dockspot
# Docking initiated
condition = Docking
effect = glow
time = 1.0
# glowing
min_value = [5], [255], [128], [0], 0, 0, 0
max_value = [255], [255], [128], [0], 0, 0, 0

[state]
# green when door is freee
target = Dockspot
condition = Docked
value = 1, $00, $FF, $00, 0, 0, 0


########################################
# Events
########################################
Expand Down Expand Up @@ -217,6 +182,6 @@ value = 1, $88, $00, $00, 0, 0, 0
target = Fogger
# Hull takes damage
trigger = <Hull
runtime = 1.2
runtime = 1.0
value = 1

Loading

0 comments on commit 66fb872

Please sign in to comment.