From 6e0af782eb3b25996e1c97f13a4d466ab5a919d0 Mon Sep 17 00:00:00 2001 From: EliyaFishman <45822259+EliyaFishman@users.noreply.github.com> Date: Wed, 7 Dec 2022 14:28:49 +0200 Subject: [PATCH] Remove bccad test and update readme --- Assets/Editor/bread2unity/BccadTest.cs | 73 --------------------- Assets/Editor/bread2unity/BccadTest.cs.meta | 11 ---- Assets/Editor/bread2unity/README.md | 4 +- 3 files changed, 2 insertions(+), 86 deletions(-) delete mode 100644 Assets/Editor/bread2unity/BccadTest.cs delete mode 100644 Assets/Editor/bread2unity/BccadTest.cs.meta diff --git a/Assets/Editor/bread2unity/BccadTest.cs b/Assets/Editor/bread2unity/BccadTest.cs deleted file mode 100644 index e6f869af7..000000000 --- a/Assets/Editor/bread2unity/BccadTest.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using UnityEngine; - -namespace Bread2Unity -{ - public static class BccadTest - { - public static void TestBccad() - { - const string folderPath = - "C:\\Users\\Eliya\\games\\3DS\\PackEnglishV12\\PackEnglishV12\\PackHack\\ExtractedRomFS\\cellanim"; - var allFiles = Directory.GetFiles(folderPath, "*.bccad", SearchOption.AllDirectories); - // var problematicFiles = new HashSet(); - foreach (var file in allFiles) - { - var bccad = BCCAD.Read(File.ReadAllBytes(file)); - var name = Path.GetFileName(file); - /*for (var spriteIndex = 0; spriteIndex < bccad.sprites.Count; spriteIndex++) - { - var sprite = bccad.sprites[spriteIndex]; - for (var partIndex = 0; partIndex < sprite.parts.Count; partIndex++) - { - var part = sprite.parts[partIndex]; - if (part.Multicolor != Color.white) - Debug.Log($"multycolor not white at {name} sprite: {spriteIndex} part: {partIndex}"); - - if (part.ScreenColor != Color.black) - Debug.Log($"screen color not black at {name} sprite: {spriteIndex} part: {partIndex}"); - } - }*/ - - for (var animIndex = 0; animIndex < bccad.animations.Count; animIndex++) - { - var anim = bccad.animations[animIndex]; - // if (anim.Interpolated) Debug.Log($"interpolated {name} anim: {animIndex}"); - if(anim.Steps.Select(step => step.TranslateX).Distinct().Count() > 1) - Debug.Log($"translation x changes at {name} anim: {animIndex}"); - if(anim.Steps.Select(step => step.TranslateY).Distinct().Count() > 1) - Debug.Log($"translation y changes at {name} anim: {animIndex}"); - /*for (var stepIndex = 0; stepIndex < anim.Steps.Count; stepIndex++) - { - var step = anim.Steps[stepIndex]; - /*if(step.Color != Color.white) - Debug.Log($"step color not white at {name} anim: {animIndex} step: {stepIndex}");#1# - /*if (step.Opacity != 255) - Debug.Log($"step opacity not 255 at {name} anim: {animIndex} step: {stepIndex}");#1# - /*if (Math.Abs(step.StretchX - 1f) > 0.0000001) - { - Debug.Log($"stretch x at {name} anim: {animIndex} step: {stepIndex}"); - } - if (Math.Abs(step.StretchY - 1f) > 0.0000001) - { - Debug.Log($"stretch y at {name} anim: {animIndex} step: {stepIndex}"); - }#1# - /*if (step.Rotation > 0) - { - Debug.Log($"rotation at {name} anim: {animIndex} step: {stepIndex}"); - }#1# - }*/ - - } - } - - /*foreach (var filename in problematicFiles) - { - Debug.Log(filename); - }*/ - } - } -} \ No newline at end of file diff --git a/Assets/Editor/bread2unity/BccadTest.cs.meta b/Assets/Editor/bread2unity/BccadTest.cs.meta deleted file mode 100644 index 06a766ca3..000000000 --- a/Assets/Editor/bread2unity/BccadTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: af00b07ba074d9c44ab931b3b98e5605 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Editor/bread2unity/README.md b/Assets/Editor/bread2unity/README.md index 9a78586cc..355286cfa 100644 --- a/Assets/Editor/bread2unity/README.md +++ b/Assets/Editor/bread2unity/README.md @@ -17,8 +17,8 @@ Rhythm Heaven animation to Unity animation converter - [X] add scale from steps - [x] add translation from steps -- [ ] remove bccad test - +- [X] remove bccad test +- [ ] add default line for bcaad data - [ ] change window height and width - [ ] write a normal readme