i am also kind of a beginner to python
also why not use a set path instead? roblox has a set versions path folder
as i am beginner i cant contribute much : (
although use this piece of broken code for some idea of what to do
import pathlib
import os
import shutil
cwd = os.path.expanduser('~\Desktop\ClassImages.png')
versions = os.path.join(os.getenv("programfiles(x86)"),"C:\Program Files (x86)\Roblox\Versions")
def GetRobloxImage():
for path in os.listdir(versions):
for path2 in os.listdir(versions +"\\" + path + "content" + '\\' + "textures"):
if (path2 == "RobloxStudioBeta.exe"):
return path + "\\"
location = versions + GetRobloxImage()
shutil.copyfile(cwd,location)
print('check if it works , it might require you to restart studio')
input('Press ENTER to exit')
edit it as you like because if you dont edit it then well
Not necessarily, thereās a load of uncompressed images files inside Studioās EXE. Cloneās client tracker github repo actually extracts these under the folder /QtResources.
The Script Editor icons are stored inside the exe with the names local_script, module_script and server_script respectively tied to what youād expect.
Cc: @Maximum_ADHD, how do you actually extract tree information from the exe such as file names and folders
one google search told me that something called āresource hackerā is used and i am out of mind of it but you can edit tree information and stuff with it and now i understand what you did :
you opened the exe file using resource hacker or smthn
you replaced the local ,scrpt and module images
and you saved
and complete
Itās not trivial, but it has a lot of potential flexibility on the plus side since QResource supports compression. I use an implementation by axstin on GitHub with a LuaJIT runtime in my client tracker. It effectively does a brute force search against the executable for a pattern used by the QResource type.