Add ScriptDebugger

This commit is contained in:
Max 2021-08-09 12:22:26 -05:00
parent 712f1c438c
commit 3355c44190
6 changed files with 36 additions and 2 deletions

View File

@ -6,7 +6,6 @@ using System.Text;
using RobloxFiles.Enums; using RobloxFiles.Enums;
using RobloxFiles.DataTypes; using RobloxFiles.DataTypes;
using RobloxFiles.Utility; using RobloxFiles.Utility;
using System.Diagnostics;
using System.IO; using System.IO;
namespace RobloxFiles.BinaryFormat.Chunks namespace RobloxFiles.BinaryFormat.Chunks
@ -51,6 +50,12 @@ namespace RobloxFiles.BinaryFormat.Chunks
return; return;
} }
if (Class == null)
{
RobloxFile.LogError($"Unknown class index {ClassIndex} (@ {this})!");
return;
}
var ids = Class.InstanceIds; var ids = Class.InstanceIds;
int instCount = Class.NumInstances; int instCount = Class.NumInstances;
var props = new Property[instCount]; var props = new Property[instCount];

View File

@ -137,6 +137,14 @@ namespace RobloxFiles
} }
} }
public class AvatarImportService : Instance
{
public AvatarImportService()
{
IsService = true;
}
}
public class Backpack : Instance public class Backpack : Instance
{ {
} }
@ -2953,6 +2961,12 @@ namespace RobloxFiles
} }
} }
public class ScriptDebugger : Instance
{
public string CoreScriptIdentifier = "";
public string ScriptGuid = "";
}
public class ScriptService : Instance public class ScriptService : Instance
{ {
public ScriptService() public ScriptService()

Binary file not shown.

View File

@ -491,6 +491,15 @@ return
} }
}; };
ScriptDebugger =
{
Add =
{
CoreScriptIdentifier = "string";
ScriptGuid = "string";
}
};
Smoke = Smoke =
{ {
Add = Add =

View File

@ -16,6 +16,12 @@ local singletons =
StarterCharacterScripts = StarterPlayer:WaitForChild("StarterCharacterScripts"); StarterCharacterScripts = StarterPlayer:WaitForChild("StarterCharacterScripts");
} }
local exceptionClasses =
{
PackageLink = true;
ScriptDebugger = true;
}
local numberTypes = local numberTypes =
{ {
int = true; int = true;
@ -403,7 +409,7 @@ local function generateClasses()
end end
end end
if class.Name == "PackageLink" then if exceptionClasses[class.Name] then
registerClass = true registerClass = true
end end

Binary file not shown.