Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
db18efe
initial steps towards v1
Kasra-G Jan 2, 2025
4b3cf82
update script refactors
Kasra-G Jan 2, 2025
01c308d
forgot to commit src
Kasra-G Jan 2, 2025
2fed8bd
more changes
Kasra-G Jan 2, 2025
344126f
update script tweaks
Kasra-G Jan 3, 2025
c0d641a
enable autoupdate by default on dev
Kasra-G Jan 3, 2025
0f3b489
Disable autoupdate by default
Kasra-G Jan 3, 2025
ee43e3d
rename
Kasra-G Jan 3, 2025
3e263ba
config stuff
Kasra-G Jan 3, 2025
2d085af
more config stuff
Kasra-G Jan 3, 2025
3ed2ef4
install stuff
Kasra-G Jan 3, 2025
9ad3cb7
more install stuff
Kasra-G Jan 3, 2025
8601c2c
forgot to reboot
Kasra-G Jan 3, 2025
85a52b7
sleepy
Kasra-G Jan 3, 2025
e194cd3
test to see if auto update works?
Kasra-G Jan 3, 2025
161d08e
rename
Kasra-G Jan 3, 2025
d8c9584
fix for error on world load
Kasra-G Jan 3, 2025
6c9e181
dynamic list and loading of files in src
Kasra-G Jan 3, 2025
a6c3922
Renames
Kasra-G Jan 3, 2025
b198fd0
Multiple monitior support
Kasra-G Jan 4, 2025
bb95ed5
Fix various issues with multiple monitors and reactor statistics bein…
Kasra-G Jan 5, 2025
ae69227
Fix for no internet and checking for update/trying to update
Kasra-G Jan 5, 2025
a1af0cf
Actually commit the changes this time
Kasra-G Jan 5, 2025
532de2a
Download update files to a temp folder now
Kasra-G Jan 5, 2025
78d92cb
Fix small logic error
Kasra-G Jan 5, 2025
017ab03
test1
Kasra-G Jan 5, 2025
d87cab2
grasping at straws here
Kasra-G Jan 5, 2025
4f33f5f
grasping at straws here 2
Kasra-G Jan 5, 2025
2ac3b8a
uh
Kasra-G Jan 5, 2025
dad679b
it's actually been working this whole time
Kasra-G Jan 5, 2025
3060d67
update test
Kasra-G Jan 5, 2025
1ebb788
Trigger Update
Kasra-G Jan 5, 2025
d52645b
turn on update checking again maybe...
Kasra-G Jan 5, 2025
d523a6e
better update loop and some optimizations
Kasra-G Jan 6, 2025
859dde5
messing around with the main loop
Kasra-G Jan 6, 2025
9c19a9f
Add some comments
Kasra-G Jan 9, 2025
b69fbb2
Changed Vector2 to be just based off of vector class
Kasra-G Jan 6, 2025
59ca8d8
initial support for multiple reactors and external power buffers
Kasra-G Jan 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
reactorConfigSerialized.txt
commit.txt
/overrides
/defaults
/state
.DS_Store
40 changes: 40 additions & 0 deletions install.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-- This file is in pastebin

local GITHUB_CONSTANTS = {
OWNER = "Kasra-G",
REPO = "ReactorController",
BRANCH = "development",
}

local function downloadGitHubFileByPath(filepath, tempFoldername)
if tempFoldername == nil then
tempFoldername = ""
end

local endpoint = "https://raw.githubusercontent.com/"..GITHUB_CONSTANTS.OWNER.."/"..GITHUB_CONSTANTS.REPO.."/refs/heads/"..GITHUB_CONSTANTS.BRANCH.."/"..filepath
local response = http.get(endpoint)
local contents = response.readAll()
local file = fs.open(fs.combine(tempFoldername, filepath), "w")
file.write(contents)
file.close()
print("File", filepath, "downloaded!")
end

--- Download the update script and reboot
local function install()
local updateScriptPath = "src/scripts/update.lua"
local success, err = pcall(function() downloadGitHubFileByPath(updateScriptPath) end)
if not success then
error("Failed to install the script with error", err)
end
shell.run(updateScriptPath)
local success = _G.UpdateScript.performUpdate()
if not success then
error("Failed to install the script! Do you have internet access?")
end
print("Files downloaded successfully.")
sleep(1)
os.reboot()
end

install()
13 changes: 0 additions & 13 deletions installer.lua

This file was deleted.

Loading