From d99a81556540d29572afd8aefa39b6067b47f9e5 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 26 Jul 2026 23:32:39 +0000 Subject: [PATCH] Upload files to "RecNet" --- RecNet/AvatarItemGen.py | 27 +++++ RecNet/ConsumableGen.py | 92 +++++++++++++++ RecNet/RoomGen.py | 7 ++ RecNet/Skins.py | 52 +++++++++ RecNet/player_API.py | 42 +++++++ RecNet/room_API.py | 240 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 460 insertions(+) create mode 100644 RecNet/AvatarItemGen.py create mode 100644 RecNet/ConsumableGen.py create mode 100644 RecNet/RoomGen.py create mode 100644 RecNet/Skins.py create mode 100644 RecNet/player_API.py create mode 100644 RecNet/room_API.py diff --git a/RecNet/AvatarItemGen.py b/RecNet/AvatarItemGen.py new file mode 100644 index 0000000..b109a1e --- /dev/null +++ b/RecNet/AvatarItemGen.py @@ -0,0 +1,27 @@ +import json +import ProgramUtils +import data +import sys +import requests + + +name = f"{__name__}.py" + +def gen(writeFile: str): + print(f"[{name}] Downloadimg") + sk = requests.request("GET", f"{data.dataUrl}AvatarItems.json") + if sk.status_code != 200: + print(f"ERROR HTTP: {sk.status_code}") + input() + sys.exit() + try: + sk = sk.json() + except: + print(f"ERROR JSON: 0001") + input() + sys.exit() + + with open(writeFile, "w") as f: + json.dump(sk, f, indent=2) + + print(f"[{name}] Done") \ No newline at end of file diff --git a/RecNet/ConsumableGen.py b/RecNet/ConsumableGen.py new file mode 100644 index 0000000..c134e73 --- /dev/null +++ b/RecNet/ConsumableGen.py @@ -0,0 +1,92 @@ +import json +import data +import sys +import requests + +import ProgramUtils + +name = f"{__name__}.py" + +def gen(writeFile: str): + print(f"[{name}] Generating") + sk = requests.request("GET", f"{data.dataUrl}ConsumableCollectionRuntimeConfig.json") + if sk.status_code != 200: + print(f"ERROR HTTP: {sk.status_code}") + input() + sys.exit() + try: + sk = sk.json() + except: + print(f"ERROR JSON: 0001") + input() + sys.exit() + GenericConsumables = sk["GenericConsumables"] + HairDyeConsumables = sk["HairDyeConsumables"] + CouponConsumables = sk["CouponConsumables"] + HeadPotionConsumables = sk["HeadPotionConsumables"] + + + Consumables = [] + + num = 1 + + for GenericConsumable in GenericConsumables: + Consumable1 = { + "Ids":[num], + "CreatedAts":[ProgramUtils.getCurrentTime()], + "ConsumableItemDesc":GenericConsumable["ConsumableItemDesc"], + "Count":9999999, + "InitialCount":9999999, + "IsActive":False, + "ActiveDurationMinutes":None, + "IsTransferable":False + } + Consumables.append(Consumable1) + num += 1 + + for HairDyeConsumable in HairDyeConsumables: + Consumable1 = { + "Ids":[num], + "CreatedAts":[ProgramUtils.getCurrentTime()], + "ConsumableItemDesc":HairDyeConsumable["ConsumableItemDesc"], + "Count":9999999, + "InitialCount":9999999, + "IsActive":False, + "ActiveDurationMinutes":None, + "IsTransferable":False + } + Consumables.append(Consumable1) + num += 1 + + for CouponConsumable in CouponConsumables: + Consumable1 = { + "Ids":[num], + "CreatedAts":[ProgramUtils.getCurrentTime()], + "ConsumableItemDesc":CouponConsumable["ConsumableItemDesc"], + "Count":9999999, + "InitialCount":9999999, + "IsActive":False, + "ActiveDurationMinutes":None, + "IsTransferable":False + } + Consumables.append(Consumable1) + num += 1 + + for HeadPotionConsumable in HeadPotionConsumables: + Consumable1 = { + "Ids":[num], + "CreatedAts":[ProgramUtils.getCurrentTime()], + "ConsumableItemDesc":HeadPotionConsumable["ConsumableItemDesc"], + "Count":9999999, + "InitialCount":9999999, + "IsActive":False, + "ActiveDurationMinutes":None, + "IsTransferable":False + } + Consumables.append(Consumable1) + num += 1 + + with open(writeFile, "w") as f: + json.dump(Consumables, f, indent=2) + + print(f"[{name}] Done") \ No newline at end of file diff --git a/RecNet/RoomGen.py b/RecNet/RoomGen.py new file mode 100644 index 0000000..75c9979 --- /dev/null +++ b/RecNet/RoomGen.py @@ -0,0 +1,7 @@ +import json +import ProgramUtils + +name = f"{__name__}.py" + +def gen(readFile: str, writeFile: str): + pass \ No newline at end of file diff --git a/RecNet/Skins.py b/RecNet/Skins.py new file mode 100644 index 0000000..dabcf41 --- /dev/null +++ b/RecNet/Skins.py @@ -0,0 +1,52 @@ +import json +import data +import sys +import requests + +name = f"{__name__}.py" + +def gen(writeFile: str): + print(f"[{name}] Generating") + sk = requests.request("GET", f"{data.dataUrl}EquipmentWardrobeRuntimeConfig.json") + if sk.status_code != 200: + print(f"ERROR HTTP: {sk.status_code}") + input() + sys.exit() + try: + sk = sk.json() + except: + print(f"ERROR JSON: 0001") + input() + sys.exit() + toolSkinMaps = sk["toolSkinMaps"] + + skinlist = [] + + for toolSkinMap in toolSkinMaps: + equipment = toolSkinMap["equipment"] + skins = toolSkinMap["skins"] + for skin in skins: + FriendlyNameSkinAssetName = str(skin["skinAssetName"]) + FriendlyNameSkinAssetName = FriendlyNameSkinAssetName.replace("_Skin", "") + FriendlyNameSkinAssetName = FriendlyNameSkinAssetName.replace("Skin", "") + FriendlyNameSkinAssetName = FriendlyNameSkinAssetName.replace("_", " ") + FriendlyName = f"{FriendlyNameSkinAssetName}" + newskin1 = { + 'PrefabName': equipment["prefabName"], + 'ModificationGuid': skin["skinGuid"], + 'Favorited': False, + 'PlatformMask': -1, + 'FriendlyName': FriendlyName, + 'Tooltip': '', + 'Rarity': 50, + 'ThumbnailImageName': '3vltmrmtk3vjyyqkqeln9hdnb.jpg' + } + skinlist.append(newskin1) + + with open(writeFile, "w") as f: + json.dump(skinlist, f, indent=2) + + print(f"[{name}] Done") + +def getByPrefabNameAndModificationGuid(PrefabName: str, ModificationGuid: str): + pass \ No newline at end of file diff --git a/RecNet/player_API.py b/RecNet/player_API.py new file mode 100644 index 0000000..d88ab6c --- /dev/null +++ b/RecNet/player_API.py @@ -0,0 +1,42 @@ +import random +import ProgramUtils +import data + +createdAt = ProgramUtils.getCurrentTime() + + +def getmyPlayer(): + with open(f"{data.saveDataPath}Profile\\username.txt") as f: + username = f.read() + with open(f"{data.saveDataPath}Profile\\userid.txt") as f: + try: + userid = int(f.read()) + except: + userid = random.randint(10000,9999999999) + return { + "accountId": userid, + "username": username, + "displayName": username, + "profileImage": "3vltmrmtk3vjyyqkqeln9hdnb.jpg", + "bannerImage": "3vltmrmtk3vjyyqkqeln9hdnb.jpg", + "isJunior": False, + "platforms": 1, + "personalPronouns": 0, + "identityFlags": 0, + "createdAt": createdAt, + "isMetaPlatformBlocked": False + } + +def getcachedlogins(platform: int,PlatformId: str): + with open(f"{data.saveDataPath}Profile\\userid.txt") as f: + try: + userid = int(f.read()) + except: + userid = random.randint(10000,9999999999) + return [{ + "platform": platform, + "platformId": PlatformId, + "accountId": userid, + "lastLoginTime": createdAt, + "requirePassword": False, + }] \ No newline at end of file diff --git a/RecNet/room_API.py b/RecNet/room_API.py new file mode 100644 index 0000000..fd693b0 --- /dev/null +++ b/RecNet/room_API.py @@ -0,0 +1,240 @@ +import random +import ProgramUtils +import json +import data +import random +import sys +import requests + +from RecNet import player_API +name = f"{__name__}.py" +playerId = player_API.getmyPlayer()["accountId"] +createdAt = ProgramUtils.getCurrentTime() + +def init(): + global rooms + global unityAssets + rooms = [] + unityAssets = [] + +def loadRooms(): + print(f"[{name}] Downloading Main Rooms") + Rooms2 = requests.request("GET", f"{data.dataUrl}AGRoomRuntimeConfig.json") + if Rooms2.status_code != 200: + print(f"ERROR HTTP: {Rooms2.status_code}") + input() + sys.exit() + try: + Rooms2 = Rooms2.json() + except: + print(f"ERROR JSON: 0001") + num = 1 + subnum = 1 + Rooms2 = Rooms2["Rooms"] + for room in Rooms2: + SubRooms = [] + IsDorm = False + if room["ReplicationId"] == "68251132-5662-5c34-08b1-4a830a27955b": + IsDorm = True + temp = { + "Accessibility":1, + "CloningAllowed":False, + "CreatedAt":ProgramUtils.getCurrentTime(), + "CreatorAccountId":1, + "CustomWarning":"", + "DataBlob":None, + "Description":room["Description"], + "DisableMicAutoMute":False, + "DisableRoomComments":False, + "EncryptVoiceChat":False, + "ImageName":"DefaultRoomImage.jpg", + "IsDeveloperOwned":True, + "IsDorm":IsDorm, + "IsRRO":True, + "LoadScreenLocked":False, + "LoadScreens":[], + "MaxPlayerCalculationMode":1, + "MaxPlayers":1, + "MinLevel":0, + "Name":room["Name"], + "PromoExternalContent":[], + "PromoImages":[], + "Roles":[ + { + "AccountId":1, + "InvitedRole":0, + "Role":255 + }, + { + "AccountId":playerId, + "InvitedRole":0, + "Role":30 + } + ], + "RoomId":num, + "State":0, + "Stats":{ + "CheerCount":0, + "FavoriteCount":0, + "VisitCount":0, + "VisitorCount":0 + }, + "SupportsJuniors":True, + "SupportsLevelVoting":False, + "SupportsMobile":True, + "SupportsQuest2":True, + "SupportsScreens":True, + "SupportsTeleportVR":True, + "SupportsVRLow":True, + "SupportsWalkVR":True, + "Tags":[], + "Version":0, + "WarningMask":0 + } + for x in room["Scenes"]: + temp2 = { + "Accessibility":1, + "CurrentSave":None, + "IsSandbox":x["IsSandbox"], + "MaxPlayers":x["MaxPlayers"], + "Name":x["Name"], + "RoomId":num, + "SubRoomId":subnum, + "UnitySceneId":x["RoomSceneLocationId"] + } + SubRooms.append(temp2) + subnum += 1 + temp.update({ + "SubRooms": SubRooms + }) + num += 1 + rooms.append(temp) + print(f"[{name}] Downloading Rooms") + Rooms2 = requests.request("GET", f"{data.dataUrl}Rooms.json") + if Rooms2.status_code != 200: + print(f"ERROR HTTP: {Rooms2.status_code}") + input() + sys.exit() + try: + Rooms2 = Rooms2.json() + except: + print(f"ERROR JSON: 0001") + for room in Rooms2: + SubRooms = [] + temp = { + "Accessibility":1, + "CloningAllowed":False, + "CreatedAt":ProgramUtils.getCurrentTime(), + "CreatorAccountId":1, + "CustomWarning":"", + "DataBlob":None, + "Description":room["BHPRHUDFBWZCEIJFVQHG"], + "DisableMicAutoMute":False, + "DisableRoomComments":False, + "EncryptVoiceChat":False, + "ImageName":"DefaultRoomImage.jpg", + "IsDeveloperOwned":True, + "IsDorm":IsDorm, + "IsRRO":True, + "LoadScreenLocked":False, + "LoadScreens":[], + "MaxPlayerCalculationMode":1, + "MaxPlayers":1, + "MinLevel":0, + "Name":room["CIVPEMESQAIUBLZHXUNA"], + "PromoExternalContent":[], + "PromoImages":[], + "Roles":[ + { + "AccountId":1, + "InvitedRole":0, + "Role":255 + }, + { + "AccountId":playerId, + "InvitedRole":0, + "Role":30 + } + ], + "RoomId":num, + "State":0, + "Stats":{ + "CheerCount":0, + "FavoriteCount":0, + "VisitCount":0, + "VisitorCount":0 + }, + "SupportsJuniors":True, + "SupportsLevelVoting":False, + "SupportsMobile":True, + "SupportsQuest2":True, + "SupportsScreens":True, + "SupportsTeleportVR":True, + "SupportsVRLow":True, + "SupportsWalkVR":True, + "Tags":[], + "Version":0, + "WarningMask":0 + } + for x in room["NLZGBCXTQDCXNQYNWMSZ"]: + temp2 = { + "Accessibility":1, + "CurrentSave":{ + "SubRoomDataSaveId": subnum, + "SubRoomId": subnum, + "DataBlob": x["GKDQCTIXPBRUUTAORXFX"], + "SavedByAccountId": 1, + "SavedOnPlatform": None, + "SavedOnDeviceClass": None, + "Description": None, + "CreatedAt": ProgramUtils.getCurrentTime(), + "UnityAssetId": x["UnityAssetId"] + }, + "IsSandbox":False, + "MaxPlayers":x["DXLCSNGZJQYZCJCCHKAQ"], + "Name":x["XABBIXTJPMRVUDZURJSQ"], + "RoomId":num, + "SubRoomId":subnum, + "UnitySceneId":x["TCUGHHWOAWGHMQYQAZNY"] + } + SubRooms.append(temp2) + subnum += 1 + temp.update({ + "SubRooms": SubRooms + }) + num += 1 + rooms.append(temp) + print(f"[{name}] Done (Loaded Rooms)") + +def loadUnityAssets(): + global unityAssets + print(f"[{name}] Downloading Unity Assets") + UnityAssets = requests.request("GET", f"{data.dataUrl}UnityAssets.json") + if UnityAssets.status_code != 200: + print(f"ERROR HTTP: {UnityAssets.status_code}") + input() + sys.exit() + try: + UnityAssets = UnityAssets.json() + except: + print(f"ERROR JSON: 0001") + unityAssets = UnityAssets + print(f"[{name}] Done (Loaded Unity Assets)") + +def findRoom(RoomName: str): + for room in rooms: + if room["Name"].lower() == RoomName.lower(): + return room + return + +def findRoomId(Id: int): + for room in rooms: + if room["RoomId"] == Id: + return room + return + +def findUnityAsset(GUID: str): + for room in unityAssets: + if room["UnityAssetId"] == GUID: + return room + return \ No newline at end of file