matthewdean / roblox-global-variable-enumerator Goto Github PK
View Code? Open in Web Editor NEWLists all RBX.Lua global variables
License: MIT License
Lists all RBX.Lua global variables
License: MIT License
So today I needed a list of all global variables for a specific reason, and I found this. Unfortunately, there are a few problems with this app that prevent it from working, here's my workarounds for anyone in the future!
This is because the system registry lookup is wrong to get the version hash, change line 18 to the following:
var studioVersionHash = (string) Registry.GetValue(@"HKEY_CURRENT_USER\Software\ROBLOX Corporation\Environments\roblox-studio", "version", null);
Microsoft seemed to just move this library to a Nuget package called "[microsoft-web-helpers](Install-Package microsoft-web-helpers -Version 2.1.20710.2)". Installing that package seems to be equivalent to having the assembly.
To install this, just run
Install-Package microsoft-web-helpers -Version 2.1.20710.2
in the package manager view (you should be able to open this via the bottom left of your screen)!
Not sure why this is happening, maybe some things internally in Roblox have changed. Anyway, there is a way around!
The app will still create the JSON file of all possible candidates in your InstalledPlugins folder (This is accessible by going to file explorer and navigating to
%localappdata%/Roblox/InstalledPlugins/0
and then opening the settings.json file.
Now, open a baseplate file and create a ModuleScript in ServerScriptService. First, type
return [[
and then paste that big long JSON file into the script. it will probably lag, you just have to endure the pain. Once it's pasted, go to the end of the file and close the JSON data with another ```lua
]]
The script should now look like the following:
```lua
return [[{"Candidates": [LOTS_OF_STUFF]}]]
Now, run this script in command bar:
local candidates = game.HttpService:JSONDecode(require(game.ServerScriptService.ModuleScript:Clone()))
local globalEnvironment = getfenv()
local globalVariables = {}
for _, identifier in pairs(candidates.Candidates) do
if globalEnvironment[identifier] ~= nil then
table.insert(globalVariables, identifier)
end
end
local str = ''
for _, global in pairs(globalVariables) do
str = str..global..' = '..global..','
end
str = str:sub(1, #str-1)
print(str)
this should print all the globals available, comma separated!
I should be active on my GitHub account for a few more years, so please comment on this issue, or contact me on other social media platforms if you have a question regarding this app!
To @matthewdean, you might want to consider fixing some of those problems above. As this is an old repository, it's understandable if you want to leave it in it's current state!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.