Remove bccad test and update readme

This commit is contained in:
EliyaFishman 2022-12-07 14:28:49 +02:00
parent 3d8b9c541d
commit 6e0af782eb
3 changed files with 2 additions and 86 deletions

View file

@ -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<string>();
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);
}*/
}
}
}

View file

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: af00b07ba074d9c44ab931b3b98e5605
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -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