Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit e08e887

Browse files
committed
Update build environment
1 parent f96e079 commit e08e887

File tree

5 files changed

+29
-9
lines changed

5 files changed

+29
-9
lines changed

.vscode/launch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"configurations": [
77
{
88
"name": "Streamlabs Rcon Integration",
9+
"preLaunchTask": "Build Debug Files",
910
"type": "python",
1011
"request": "launch",
1112
"program": "${workspaceFolder}/Source/Streamlabs Rcon Integration.py"

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"python.pythonPath": "D:\\Applications\\Python37-32\\python.exe"
2+
"python.defaultInterpreterPath": "D:\\Applications\\Python37-32\\python.exe"
33
}

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Build Debug Files",
8+
"type": "shell",
9+
"command": "Copy-Item 'Source\\eventDefinitions.json'",
10+
"problemMatcher": [],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
}
16+
]
17+
}

Source/Streamlabs Rcon Integration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class State():
1818
def __init__(self):
19-
self.version = "0.1.1"
19+
self.version = "0.1.2"
2020
self.config = Config(self)
2121
self.logging = Logging(self)
2222
self.config.LogMissingSettings()
@@ -249,11 +249,11 @@ def Run(self):
249249
state.Run()
250250
except Exception as ex:
251251
try:
252-
self.streamlabs.Disconnect()
252+
state.streamlabs.Disconnect()
253253
except:
254254
pass
255255
try:
256-
self.logging.RecordException(
256+
state.logging.RecordException(
257257
ex, "Application Critical Error - Application has been stopped")
258258
except:
259259
pass

ToDo.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
Bugs / Outstanding
22
===================
33

4-
Look to use yaml in rcon integration configs as they may be nicer to read and may support the action commands and passing JSON to Factorio nicer.
4+
Replace the event definitions with a proper readme type file. Also add to readme what the generic event types are.
5+
The profiles loading tries to do everything in Profiles folder, no sanity check about file/folder type. If you make a "backup" folder in it, the program crashes without recording an error.
6+
Look to use yaml in RCON integration configs as they may be nicer to read and may support the action commands and passing JSON to Factorio nicer.
57
Should I just ignore any event without an ID string? Came up ages ago during Will's playthrough. But not enough of an issue to be done at the time.
6-
If you close the GUI when internet is dead after being connected via RCOn the python window never closes. Gues its waiting for something to close.
8+
If you close the GUI when internet is dead after being connected via RCON the python window never closes. Guess its waiting for something to close.
79
Change profile loading to not error on startup for bad profiles, but error on trying to start them.
810

911

@@ -13,9 +15,9 @@ Ideas
1315
Make a settings manager GUI
1416
Make a profile manager GUI
1517
Make so that profile startup errors are shown in a GUI and disable running until fixed.
16-
Have seperate Activity and System (status, warning, errors) logs
18+
Have separate Activity and System (status, warning, errors) logs
1719
Have a way to pause logs from updating and then resume to allow scrolling
1820
Support multiple calculated values via exec. Array in to exec, to numbered strings in action script.
19-
Handle paused Factorio server accepting but not reply to RCON command. It will honor the command when the server is unpaused. So different between start test connection and event handling.
21+
Handle paused Factorio server accepting but not reply to RCON command. It will honour the command when the server is un-paused. So different between start test connection and event handling.
2022
Add a more complete test GUI with options to select subscription types, donation currencies, etc.
21-
Look at supporting Twitch PubSub directly so I can get the Channel Points. May also open up othe opportunities: https://github.com/twitchdev/pubsub-samples/tree/1638781c0c096c4be43493a86f2a75401256583b/python
23+
Look at supporting Twitch PubSub directly so I can get the Channel Points. May also open up other opportunities: https://github.com/twitchdev/pubsub-samples/tree/1638781c0c096c4be43493a86f2a75401256583b/python

0 commit comments

Comments
 (0)