From cff4b1ad5ca46a18f469806afdbf8f3e28af3440 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 18 Feb 2022 15:45:42 -0600 Subject: [PATCH] 0.514.0.5140398 + Enum XML encoding bugfix --- Generated/Classes.cs | 30 ++++++++++++---- Generated/Enums.cs | 11 +++++- Plugins/GenerateApiDump.rbxm | Bin 16227 -> 16338 bytes Plugins/GenerateApiDump/PropertyPatches.lua | 38 +++++++++++--------- Tokens/Enum.cs | 17 +++++++-- 5 files changed, 70 insertions(+), 26 deletions(-) diff --git a/Generated/Classes.cs b/Generated/Classes.cs index 3e8a9f2..e31bcda 100644 --- a/Generated/Classes.cs +++ b/Generated/Classes.cs @@ -1,5 +1,5 @@ // Auto-generated list of creatable Roblox classes. -// Updated as of 0.513.0.5130420 +// Updated as of 0.514.0.5140398 using System; @@ -471,6 +471,14 @@ namespace RobloxFiles } } + public class HSRDataContentProvider : CacheableContentProvider + { + public HSRDataContentProvider() + { + IsService = true; + } + } + public class MeshContentProvider : CacheableContentProvider { public MeshContentProvider() @@ -1911,13 +1919,13 @@ namespace RobloxFiles public class HumanoidDescription : Instance { - public string AccessoryBlob = ""; + public string AccessoryBlob = "[]"; public string BackAccessory = ""; public float BodyTypeScale = 0.3f; public long ClimbAnimation; public float DepthScale = 1; - public string EmotesDataInternal = ""; - public string EquippedEmotesDataInternal = ""; + public string EmotesDataInternal = "[]"; + public string EquippedEmotesDataInternal = "[]"; public long Face; public string FaceAccessory = ""; public long FallAnimation; @@ -2022,8 +2030,6 @@ namespace RobloxFiles public abstract class ManualSurfaceJointInstance : JointInstance { - public int Surface0 = -1; - public int Surface1 = -1; } public class ManualGlue : ManualSurfaceJointInstance @@ -2711,7 +2717,6 @@ namespace RobloxFiles public class Model : PVInstance { public ModelLevelOfDetail LevelOfDetail = ModelLevelOfDetail.Automatic; - public CFrame ModelInPrimary = new CFrame(); public CFrame ModelMeshCFrame = new CFrame(); public SharedString ModelMeshData = SharedString.FromBase64("yuZpQdnvvUBOTYh1jqZ2cA=="); public Vector3 ModelMeshSize = new Vector3(); @@ -3730,6 +3735,13 @@ namespace RobloxFiles { } + public class TextChatCommand : Instance + { + public bool Enabled = true; + public string PrimaryAlias = ""; + public string SecondaryAlias = ""; + } + public class TextChatMessageProperties : Instance { } @@ -3740,6 +3752,10 @@ namespace RobloxFiles { IsService = true; } + + public ChatVersion ChatVersion = ChatVersion.LegacyChatService; + public bool CreateDefaultCommands = true; + public bool CreateDefaultTextChannels = true; } public class TextService : Instance diff --git a/Generated/Enums.cs b/Generated/Enums.cs index 222e30e..98e1a97 100644 --- a/Generated/Enums.cs +++ b/Generated/Enums.cs @@ -1,5 +1,5 @@ // Auto-generated list of Roblox enums. -// Updated as of 0.513.0.5130420 +// Updated as of 0.514.0.5140398 namespace RobloxFiles.Enums { @@ -62,6 +62,9 @@ namespace RobloxFiles.Enums Idle, Movement, Action, + Action2, + Action3, + Action4, Core = 1000 } @@ -153,6 +156,12 @@ namespace RobloxFiles.Enums Orbital } + public enum ChatVersion + { + LegacyChatService, + TextChatService + } + public enum ClientAnimatorThrottlingMode { Default, diff --git a/Plugins/GenerateApiDump.rbxm b/Plugins/GenerateApiDump.rbxm index 91c9d42d960a70a5925e1399b4a7de4713531bc9..75f8db0b8c45600b545626f5cab5a05826dfdd1b 100644 GIT binary patch delta 3680 zcmW+(32+?cnSI~i*YsRH8d>)-t&y$6NaGnDw&nPeG_oyU61r@!F;;7)CABr`8O>o^ zc3+1fyWBH7v^o87QL!4}2-W~!#U zdZxSn?|-h2Jwv1`Rs7eae=;BU9#o6jdY@w3doqv=96VUpN&_Py6#MH~k%LB5CJ z2OYv6)ZRqG%;nPA#lBQ}Dv70g_f10k4wxK*R)kw@hU+ONH$6b0#S1P^ZU z7WJ@Y=T~-JQr6=Ray3w3`{$mRWzRfHQVqH8WT(c=#H^i8rDtvwJ(63lh40(4`~@j) zL5_koE9yJ4Tn9be)~^}!86$5^-B{wf8R8fTZ%YBAQ45UylgJK0x(I26Ci~NN-n2(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T@Cf9aU=G2*crh@=Yfo#ZbXMMqgHN2 zkGeq(4>fvX;>w6RGk>dk!I}&$CCaRC!lz=ewfW_`;o6l8tAh26Tg0ZB`OLcF>S`@> zHzK;Z%^w&z8nHO8ECDr%#777kGv6x~o(6v>Kpg%Ww0XHH?tXCRK-VEP5PMb-8k(C| zE(B{zlr0b|`{Gy7Sf@rm37O~p<*a{|`M$s2h9+k-WB=tdy+uu=nmt9GzWG*6fZM`Y zHI$nqvOCw9CyN@YUR|S%Gm_RJP;YVCF~+2yajXk?5K?7}vyyo>pQtgf7Ok$l|F&?= zOw9nX^9-|$&$Y5TD0h(i%i3(Zb|$9HHm^0?idP11-iE0*)D=G8m(l0bwX0UC(ZoXt zTLl}poar|6aIw+(%_^(}KS342T0azP#I>d??oN2N7O&eF>x=G&gnNKy^3;NG4s4N- zSX-^O-_>T#jZ|lm-dt5uZa?0l)lQ|1>Ah>sZ6)D`>f5mo5o;qSR;ul1TX3{Ryvn$^ z#e(S|*ABW5be8Zt#$ExQDKeig2?&9yT5#s&lB$}&Z-Ct`{s5M8u*U>`%X(bpJgJN1 znH4ZQRi|3XJ4t-ltSHR{j-rQ}wc)VI1DjL&fHcrQc=e8_aB3 zCHsrtJXN-x-P>XQPuUvwM!s25KE^IKnET3G9lvT&6Y)nHe6>GqHqVuBpiSnD^19OB zRD^5esSwyngy)U;-D^ClDyMLR^UgnBYHkdyWiNJ{2LiS1?k@9*z(&_X7yGzeX#l+4 l$GgmHfw(6*oeuTu2a+F0!s(rnp&m1)4$<}(&Z`B1{|94SFZ}=j diff --git a/Plugins/GenerateApiDump/PropertyPatches.lua b/Plugins/GenerateApiDump/PropertyPatches.lua index 0e45a51..e418cf1 100644 --- a/Plugins/GenerateApiDump/PropertyPatches.lua +++ b/Plugins/GenerateApiDump/PropertyPatches.lua @@ -287,6 +287,13 @@ return EmotesDataInternal = "string"; EquippedEmotesDataInternal = "string"; }; + + Defaults = + { + AccessoryBlob = "[]"; + EmotesDataInternal = "[]"; + EquippedEmotesDataInternal = "[]"; + } }; InsertService = @@ -349,21 +356,6 @@ return }; }; - ManualSurfaceJointInstance = - { - Add = - { - Surface0 = "int"; - Surface1 = "int"; - }; - - Defaults = - { - Surface0 = -1; - Surface1 = -1; - } - }; - MeshPart = { Redirect = { MeshID = "MeshId" } @@ -373,7 +365,6 @@ return { Add = { - ModelInPrimary = "CFrame"; ModelMeshCFrame = "CFrame"; ModelMeshData = "SharedString"; ModelMeshSize = "Vector3"; @@ -556,10 +547,16 @@ return StarterPlayer = { + Add = + { + LoadCharacterLayeredClothing = "Enum:LoadCharacterLayeredClothing"; + }; + Defaults = { GameSettingsAvatar = Enum.GameAvatarType.R15; GameSettingsR15Collision = Enum.R15CollisionType.OuterBox; + LoadCharacterLayeredClothing = Enum.LoadCharacterLayeredClothing.Default; GameSettingsScaleRangeHead = NumberRange.new(0.95, 1.00); GameSettingsScaleRangeWidth = NumberRange.new(0.70, 1.00); @@ -628,6 +625,15 @@ return SmoothGrid = "AQU="; }; }; + + TextChatService = + { + Defaults = + { + CreateDefaultCommands = true; + CreateDefaultTextChannels = true; + } + }; TriangleMeshPart = { diff --git a/Tokens/Enum.cs b/Tokens/Enum.cs index eeaf262..3109346 100644 --- a/Tokens/Enum.cs +++ b/Tokens/Enum.cs @@ -42,8 +42,21 @@ namespace RobloxFiles.Tokens Contract.Requires(prop != null && node != null); object rawValue = prop.Value; - int signed = (int)rawValue; - uint value = (uint)signed; + if (!(rawValue is uint value)) + { + Type type = rawValue.GetType(); + + if (type.IsEnum) + { + var signed = (int)rawValue; + value = (uint)signed; + } + else + { + value = 0; + RobloxFile.LogError($"Raw value for enum property {prop} could not be casted to uint!"); + } + } node.InnerText = value.ToInvariantString(); }