fix detections when unloading script + improvements #1

Merged
zyu merged 4 commits from mike/hydroxide:main into main 2026-08-01 04:05:00 +00:00
Contributor

getgenv().hydroxide_repo and getgenv().hydroxide_branch merged into getgenv().hydroxide_raw
won't break stuff as only uses hydroxide_raw and defaults to zyu/hydroxide
this was mainly due to github & forgejo having different urls for getting raw files

you can check for backward compatibility:

-- this will load zyu/hydroxide ON SERVERHOP; you're still loading rogue_ui from mike/hydroxide but hydroxide_raw isn't set to mine
pcall(function()
    getgenv().hydroxide_repo   = "mike/hydroxide"
    getgenv().hydroxide_branch = "main"

    local url = "https://git.fable.bz/"
        .. getgenv().hydroxide_repo
        .. "/raw/branch/"
        .. getgenv().hydroxide_branch
        .. "/ROGUE/rogue_ui.lua"
        .. "?nonce=" .. tostring(math.random())

    loadstring(game:HttpGet(url, true))()
end)

if you want my fork (main branch) you use:

getgenv().hydroxide_raw = "https://git.fable.bz/mike/hydroxide/raw/branch/main/"

the hydroxide_raw / DEFAULT_RAW is already in my (old) github fork to potentially stop people from loading the github fork
(defaults to forgejo zyu/hydroxide if they try to use old hydroxide_branch / repo)

also loader_script for queue functions is "globalized" and doesnt need to be rewritten each time

getgenv().hydroxide_repo and getgenv().hydroxide_branch merged into getgenv().hydroxide_raw won't break stuff as only uses hydroxide_raw and defaults to zyu/hydroxide this was mainly due to github & forgejo having different urls for getting raw files you can check for backward compatibility: ``` -- this will load zyu/hydroxide ON SERVERHOP; you're still loading rogue_ui from mike/hydroxide but hydroxide_raw isn't set to mine pcall(function() getgenv().hydroxide_repo = "mike/hydroxide" getgenv().hydroxide_branch = "main" local url = "https://git.fable.bz/" .. getgenv().hydroxide_repo .. "/raw/branch/" .. getgenv().hydroxide_branch .. "/ROGUE/rogue_ui.lua" .. "?nonce=" .. tostring(math.random()) loadstring(game:HttpGet(url, true))() end) ``` if you want my fork (main branch) you use: ``` getgenv().hydroxide_raw = "https://git.fable.bz/mike/hydroxide/raw/branch/main/" ``` the hydroxide_raw / DEFAULT_RAW is already in my (old) github fork to potentially stop people from loading the github fork (defaults to forgejo zyu/hydroxide if they try to use old hydroxide_branch / repo) also loader_script for queue functions is "globalized" and doesnt need to be rewritten each time
zyu merged commit b0363ddbdc into main 2026-08-01 04:05:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
zyu/hydroxide!1
No description provided.