From 678bbdce133bd12df7c66db3624ba16aee5e355e Mon Sep 17 00:00:00 2001 From: filoxenace Date: Wed, 25 Mar 2026 20:06:08 -0400 Subject: [PATCH] add full face list and script to codegen `faceByBundle.luau` --- scripts/createFaceByBundle.py | 34 ++ scripts/faces.csv | 658 ++++++++++++++++++++++++++++++++++ 2 files changed, 692 insertions(+) create mode 100644 scripts/createFaceByBundle.py diff --git a/scripts/createFaceByBundle.py b/scripts/createFaceByBundle.py new file mode 100644 index 0000000..58045bc --- /dev/null +++ b/scripts/createFaceByBundle.py @@ -0,0 +1,34 @@ +import requests + +faces = [] + +# get array of face asset ids +with open("faces.csv", mode="r") as faces_file: + for row in faces_file: + faces.append(row.strip()) + +bundle_face_dict = {} + +for face in faces: + response = requests.get(url=f"https://roblox.com/catalog/{face}") + # some faces don't have bundles + redirected_to_bundle = any( + r.status_code == 302 and "/bundles/" in r.headers.get("Location", "") + for r in response.history + ) + if redirected_to_bundle: + bundle_id = response.url.split("/")[4] + else: + bundle_id = None + bundle_face_dict[face] = bundle_id + +lines = ["local faceByBundle: {[number]: number} = {"] +for face, bundle_id in bundle_face_dict.items(): + if bundle_id is not None: + lines.append(f"\t[{bundle_id}] = {face},") +lines.append("}") +lines.append("") +lines.append("return faceByBundle") + +with open("../src/faceByBundle.luau", mode="w") as f: + f.write("\n".join(lines) + "\n") diff --git a/scripts/faces.csv b/scripts/faces.csv index 1dfbdc4..21f88d4 100644 --- a/scripts/faces.csv +++ b/scripts/faces.csv @@ -3,3 +3,661 @@ 7074729 7074764 7074786 +7074814 +7074836 +7074864 +7074893 +7074944 +7074991 +7075089 +7075142 +7075434 +7075469 +7075502 +7076076 +7076110 +7076159 +7076224 +7131361 +7131541 +7131886 +7132035 +7317765 +7317769 +7317773 +7317793 +7506135 +7506136 +7506141 +7506144 +7699174 +7699177 +7699183 +7699193 +8329679 +8329682 +8329686 +8329690 +8560971 +8560975 +8560980 +8560985 +9250633 +9250643 +9250654 +9250660 +10527010 +10678407 +10678414 +10678418 +10678423 +10678427 +10770395 +10770432 +10770436 +10831390 +10831438 +10831454 +10831558 +10860384 +10860391 +10860397 +10907529 +10907531 +10907532 +10907534 +10907536 +10907541 +10907545 +10907546 +10907547 +10907549 +10907551 +11123805 +11123827 +11389372 +11389441 +11453609 +11611321 +11647296 +11647324 +11913668 +11913700 +11913734 +11956548 +12145328 +12145366 +12188176 +12467118 +12467159 +12732366 +12777646 +12908359 +13038375 +13038397 +13335647 +13478124 +13656095 +14030577 +14083380 +14127171 +14127194 +14405720 +14516578 +14721869 +14812981 +14817393 +14861743 +15013192 +15054426 +15133453 +15177601 +15324577 +15366173 +15395327 +15432080 +15470193 +15470849 +15470861 +15471035 +15637848 +15858152 +15885121 +16101765 +16132514 +16179646 +16357383 +16387711 +16413496 +16652251 +16678138 +16722419 +16723481 +16723499 +17138027 +17999992 +18151826 +19264845 +19366445 +19381787 +19396123 +19396550 +19397594 +19398554 +19399752 +19959140 +20010377 +20052135 +20298988 +20337343 +20418658 +20418682 +20612949 +20644021 +20722130 +20909103 +21024661 +21272995 +21311601 +21352013 +21392863 +21439665 +21635565 +21635583 +21755022 +21802396 +22023062 +22070623 +22119034 +22432782 +22500129 +22587828 +22587894 +22587958 +22588801 +22828351 +22877700 +22920501 +22972723 +23219981 +23261769 +23264604 +23310997 +23311761 +23644960 +23932048 +24067718 +24126147 +24441888 +24727929 +24975496 +25166274 +25267538 +25321961 +25556219 +25930613 +25975243 +26019070 +26260927 +26343188 +26424808 +26619096 +26674400 +27003636 +27052537 +27134344 +27412825 +27599954 +27725434 +27861352 +28119051 +28281786 +28878297 +28999228 +29109681 +29296146 +29348122 +29532363 +29716262 +30265169 +30394316 +30394438 +30394484 +30394594 +30394850 +30395097 +31117267 +31317701 +31616411 +32058239 +32723404 +32873408 +33321848 +34186804 +34673712 +34764447 +34871168 +35168581 +35397243 +42070576 +45084008 +45514606 +45515121 +49045351 +49493376 +51241171 +51241480 +51241522 +51241537 +51241862 +66319941 +66330060 +66330106 +66330120 +66330144 +66330165 +66330204 +66330231 +66330265 +66330295 +66330310 +66330339 +66330360 +76382978 +76383151 +76383635 +76385104 +86485370 +86485779 +86485810 +86485842 +86485881 +86485922 +86487660 +86487700 +86487722 +86487766 +91366821 +100290429 +110207437 +110207471 +110288809 +110288865 +110336757 +116042990 +116043052 +117522793 +119812659 +119812715 +119812738 +119812765 +121947053 +128992838 +130213380 +133360789 +134522901 +141728790 +141728899 +142464206 +144075659 +147144644 +147144673 +150182378 +150182466 +150182501 +159199178 +162068415 +162200633 +162200666 +162200696 +173789114 +173789324 +173789498 +180660043 +181651981 +209994074 +209994270 +209994352 +209994783 +209994875 +209994929 +209995252 +209995366 +226217449 +233616117 +236399287 +238983270 +238983378 +244160766 +244160970 +250654457 +255827175 +258198928 +260303894 +260303960 +260304187 +268603331 +274338458 +277950647 +280988393 +280988698 +293226229 +293236669 +293302465 +293303927 +293309580 +295492723 +295763789 +301826803 +301826957 +301827089 +301827157 +301827199 +301827237 +313549781 +323191430 +323191596 +323191683 +323191787 +323191979 +323192138 +323192193 +330296924 +334656210 +334656353 +334656546 +343619993 +362051405 +362051644 +362051773 +362051899 +362051999 +376809691 +376812736 +376812961 +376813144 +380754227 +383607653 +385889916 +386188363 +387256603 +391495894 +391496123 +391496223 +398675764 +398675917 +398676450 +399021751 +402304145 +406000421 +406000562 +406000730 +406000958 +406001052 +406001167 +406001308 +406001532 +406002032 +416846000 +416846143 +416846300 +419752096 +440738448 +440739240 +440739518 +440739783 +445117183 +494291269 +494299198 +554650579 +554658475 +554663025 +554663566 +583721561 +583721990 +583722710 +583722932 +599913343 +616380929 +616381207 +667681953 +743690770 +807335973 +807339121 +823012694 +835094544 +835095003 +835095306 +835095880 +878940145 +878941449 +878942257 +880469676 +880471415 +880473016 +880474146 +1016184756 +1016184964 +1016185535 +1016185809 +1016186364 +1191125008 +1191136166 +1191162013 +1191162539 +1213472762 +1384270693 +1428409936 +1428416217 +1428417334 +1428418448 +1428424821 +1665511048 +1665629400 +1665638148 +1772529256 +1772530315 +1772531407 +1772578399 +2222771916 +2222774106 +2222775067 +2222775930 +2225761296 +2274754557 +2274764091 +2409285794 +2490662812 +2492678267 +2493587489 +2493717709 +2499652255 +2499710871 +2506403983 +2506426052 +2506466407 +2506721000 +2506787960 +2510119972 +2510140104 +2510299324 +2510329394 +2517100778 +2517188619 +2517242922 +2517364030 +2517386054 +2517411290 +2528319611 +2535415411 +2535457291 +2535487974 +2535711033 +2535843445 +2553407112 +2553655919 +2568799765 +2568801198 +2568804274 +2569001052 +2569005011 +2571733048 +2571850406 +2571975661 +2573899789 +2573925976 +2585562096 +2585828360 +2606177838 +2608277633 +2608317303 +2608325060 +2610492664 +2614552625 +2620506085 +2620506513 +2620507161 +2627730985 +2627741912 +2628025496 +2628039027 +2646380181 +2648884861 +2648912542 +2648932224 +2667060123 +2739787309 +2739812348 +2761348544 +2761366151 +2761426133 +2773409880 +2803750633 +2803774919 +2807183388 +2807218396 +2830493868 +2830496106 +2830497827 +2830499980 +2830502330 +2830505884 +2830646491 +2833509821 +2845812591 +2845815452 +2845990750 +2859518465 +2859557339 +2884418268 +2907632781 +2907641479 +2907703457 +2907754927 +2936946480 +2962660233 +2979331491 +2979689790 +2979703241 +2986536321 +3013806177 +3016138770 +3016462488 +3016485270 +3016640981 +3039539480 +3040295279 +3040321462 +3091071034 +3091078801 +3116216863 +3131093524 +3141356565 +3210252000 +3210252812 +3210253450 +3210506233 +3241170900 +3241221587 +3258530517 +3258552764 +3258567315 +3258576172 +3267564334 +3267567501 +3381167752 +3410486318 +3690515434 +3993282075 +4018617474 +4018627046 +4026732747 +4416933495 +4464987905 +4637166178 +4637244809 +4637266368 +4637291815 +4643439782 +4645952767 +4645966393 +4895403676 +4895423807 +4916129740 +4927805902 +4932405134 +5122245866 +5122309127 +5122343618 +5122355742 +5238862364 +5579656306 +5702468594 +5754177103 +5762596362 +5830113805 +5832658029 +5885801791 +5893869335 +5917448278 +5917459717 +5964967476 +5965158933 +6029816756 +6531983163 +6532619915 +6590371677 +6590375198 +6652985701 +6653133806 +6711224332 +6833253272 +7243836687 +7243865988 +7243903012 +7243924005 +7243931574 +7243933492 +7389910081 +7389923463 +7657627637 +7657646351 +7657657626 +7893455671 +7893460486 +7893468574 +7987180607 +7987201392 +8247356154 +8664096393 +8666744565 +8666865667 +9062620353 +9062637857 +9156266858 +9156271739 +9156275069 +9650713776 +16570243423 +70819626386431 +76233968067050