From 023e7754a321614ce36e3c2107164ba30ad82910 Mon Sep 17 00:00:00 2001 From: Danilo Assis Nobre dos Santos Silva Date: Thu, 9 Mar 2017 08:32:27 -0300 Subject: [PATCH] Initial commit to paste all project files. --- .gitignore | 26 ++++++++++++++++++++++++++ Assets/Anims.meta | 9 +++++++++ Assets/Blends.meta | 9 +++++++++ Assets/Scenes.meta | 9 +++++++++ Assets/Scenes/Scene.unity | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Assets/Scenes/Scene.unity.meta | 8 ++++++++ Assets/Scripts.meta | 9 +++++++++ Assets/Scripts/Editor.meta | 9 +++++++++ Assets/Scripts/Editor/BlendToBundlesConverter.cs | 270 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Assets/Scripts/Editor/BlendToBundlesConverter.cs.meta | 12 ++++++++++++ Assets/Scripts/Editor/BuildAssetBundles.cs | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Assets/Scripts/Editor/BuildAssetBundles.cs.meta | 12 ++++++++++++ Assets/Scripts/Editor/EditorScript.cs | 14 ++++++++++++++ Assets/Scripts/Editor/EditorScript.cs.meta | 12 ++++++++++++ Assets/ToBuild.meta | 9 +++++++++ CHECAGEM/merger.py | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ProjectSettings/AudioManager.asset | 14 ++++++++++++++ ProjectSettings/ClusterInputManager.asset | 6 ++++++ ProjectSettings/DynamicsManager.asset | 14 ++++++++++++++ ProjectSettings/EditorBuildSettings.asset | 9 +++++++++ ProjectSettings/EditorSettings.asset | 12 ++++++++++++ ProjectSettings/GraphicsSettings.asset | 37 +++++++++++++++++++++++++++++++++++++ ProjectSettings/InputManager.asset | 295 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ProjectSettings/NavMeshAreas.asset | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ProjectSettings/NetworkManager.asset | 8 ++++++++ ProjectSettings/Physics2DSettings.asset | 24 ++++++++++++++++++++++++ ProjectSettings/ProjectSettings.asset | 462 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ProjectSettings/QualitySettings.asset | 157 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ProjectSettings/TagManager.asset | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ ProjectSettings/TimeManager.asset | 8 ++++++++ ProjectSettings/UnityAdsSettings.asset | 11 +++++++++++ ProjectSettings/UnityConnectSettings.asset | 14 ++++++++++++++ aninames.py | 11 +++++++++++ autogen.py | 18 ++++++++++++++++++ biadroid.py | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ test/script.py | 33 +++++++++++++++++++++++++++++++++ 36 files changed, 1953 insertions(+), 0 deletions(-) create mode 100644 .gitignore create mode 100644 Assets/Anims.meta create mode 100644 Assets/Blends.meta create mode 100644 Assets/Scenes.meta create mode 100644 Assets/Scenes/Scene.unity create mode 100644 Assets/Scenes/Scene.unity.meta create mode 100644 Assets/Scripts.meta create mode 100644 Assets/Scripts/Editor.meta create mode 100644 Assets/Scripts/Editor/BlendToBundlesConverter.cs create mode 100644 Assets/Scripts/Editor/BlendToBundlesConverter.cs.meta create mode 100644 Assets/Scripts/Editor/BuildAssetBundles.cs create mode 100644 Assets/Scripts/Editor/BuildAssetBundles.cs.meta create mode 100644 Assets/Scripts/Editor/EditorScript.cs create mode 100644 Assets/Scripts/Editor/EditorScript.cs.meta create mode 100644 Assets/ToBuild.meta create mode 100644 CHECAGEM/merger.py create mode 100644 ProjectSettings/AudioManager.asset create mode 100644 ProjectSettings/ClusterInputManager.asset create mode 100644 ProjectSettings/DynamicsManager.asset create mode 100644 ProjectSettings/EditorBuildSettings.asset create mode 100644 ProjectSettings/EditorSettings.asset create mode 100644 ProjectSettings/GraphicsSettings.asset create mode 100644 ProjectSettings/InputManager.asset create mode 100644 ProjectSettings/NavMeshAreas.asset create mode 100644 ProjectSettings/NetworkManager.asset create mode 100644 ProjectSettings/Physics2DSettings.asset create mode 100644 ProjectSettings/ProjectSettings.asset create mode 100644 ProjectSettings/QualitySettings.asset create mode 100644 ProjectSettings/TagManager.asset create mode 100644 ProjectSettings/TimeManager.asset create mode 100644 ProjectSettings/UnityAdsSettings.asset create mode 100644 ProjectSettings/UnityConnectSettings.asset create mode 100644 aninames.py create mode 100644 autogen.py create mode 100644 biadroid.py create mode 100644 test/script.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dcea11a --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +/[Ll]ibrary/ +/[Tt]emp/ +/[Oo]bj/ +/[Bb]uild/ +/Bundles*/ +/LOGS/ + +*.rar +*.txt + +# Autogenerated VS/MD solution and project files +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj + +# Unity3D generated meta files +*.pidb.meta + +# Unity3D Generated File On Crash Reports +sysinfo.txt \ No newline at end of file diff --git a/Assets/Anims.meta b/Assets/Anims.meta new file mode 100644 index 0000000..2f8b7ee --- /dev/null +++ b/Assets/Anims.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 03ff5bd0844e69c4eb627f1576ee6d35 +folderAsset: yes +timeCreated: 1488894929 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Blends.meta b/Assets/Blends.meta new file mode 100644 index 0000000..6c5d965 --- /dev/null +++ b/Assets/Blends.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 242e954192e8fb3478123711c2fcf228 +folderAsset: yes +timeCreated: 1452779074 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes.meta b/Assets/Scenes.meta new file mode 100644 index 0000000..8921eea --- /dev/null +++ b/Assets/Scenes.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: ca0ec2c10adb1e041980045664f4b0dc +folderAsset: yes +timeCreated: 1442003245 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Scene.unity b/Assets/Scenes/Scene.unity new file mode 100644 index 0000000..bbc6ad9 --- /dev/null +++ b/Assets/Scenes/Scene.unity @@ -0,0 +1,87 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +SceneSettings: + m_ObjectHideFlags: 0 + m_PVSData: + m_PVSObjectsArray: [] + m_PVSPortalsArray: [] + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: .25 + backfaceThreshold: 100 +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 6 + m_Fog: 0 + m_FogColor: {r: .5, g: .5, b: .5, a: 1} + m_FogMode: 3 + m_FogDensity: .00999999978 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: .200000003, g: .200000003, b: .200000003, a: 1} + m_AmbientEquatorColor: {r: .200000003, g: .200000003, b: .200000003, a: 1} + m_AmbientGroundColor: {r: .200000003, g: .200000003, b: .200000003, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: .5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} +--- !u!157 &4 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_GIWorkflowMode: 1 + m_LightmapsMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_TemporalCoherenceThreshold: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 3 + m_Resolution: 1 + m_BakeResolution: 50 + m_TextureWidth: 1024 + m_TextureHeight: 1024 + m_AOMaxDistance: 1 + m_Padding: 2 + m_CompAOExponent: 0 + m_LightmapParameters: {fileID: 0} + m_TextureCompression: 0 + m_FinalGather: 0 + m_FinalGatherRayCount: 1024 + m_ReflectionCompression: 2 + m_LightmapSnapshot: {fileID: 0} + m_RuntimeCPUUsage: 25 +--- !u!196 &5 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentRadius: .5 + agentHeight: 2 + agentSlope: 45 + agentClimb: .400000006 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + accuratePlacement: 0 + minRegionArea: 2 + cellSize: .166666657 + manualCellSize: 0 + m_NavMeshData: {fileID: 0} diff --git a/Assets/Scenes/Scene.unity.meta b/Assets/Scenes/Scene.unity.meta new file mode 100644 index 0000000..5f53628 --- /dev/null +++ b/Assets/Scenes/Scene.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 20ba7ea935ec3e3458e99f35b292346a +timeCreated: 1434075135 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts.meta b/Assets/Scripts.meta new file mode 100644 index 0000000..340fb64 --- /dev/null +++ b/Assets/Scripts.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 9616b491457f25444966fe5fdefd2032 +folderAsset: yes +timeCreated: 1434075135 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor.meta b/Assets/Scripts/Editor.meta new file mode 100644 index 0000000..655f36e --- /dev/null +++ b/Assets/Scripts/Editor.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: fae7e192330ae5e44812c9ee1c496995 +folderAsset: yes +timeCreated: 1434076505 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/BlendToBundlesConverter.cs b/Assets/Scripts/Editor/BlendToBundlesConverter.cs new file mode 100644 index 0000000..20537c9 --- /dev/null +++ b/Assets/Scripts/Editor/BlendToBundlesConverter.cs @@ -0,0 +1,270 @@ +/* + * "C:\Program Files\Unity\Editor\Unity.exe" -quit -batchmode -projectPath C:\Workspace\wikilibras-player\playercore_blend -executeMethod BlendToBundlesConverter.convert + */ +#pragma warning disable + +using UnityEngine; +using UnityEditor; +using System; +using System.IO; +using System.Collections; +using System.Collections.Generic; +using System.Text.RegularExpressions; + +public class BlendToBundlesConverter { + + private static string blendsPath = "Assets/Blends"; + + private static string commonPath = "Comuns"; + private static string disambiguationPath = "Desambiguação"; + private static string compoundsPath = "Compostos"; + private static string checkPath = "Verificar"; + + private static string duplicatedCommonPath = "_D_Comuns"; + private static string duplicatedDisambiguationPath = "_D_Desambiguação"; + private static string duplicatedCompoundsPath = "_D_Compostos"; + private static string duplicatedCheckPath = "_D_Verificar"; + + private static string[] targets = new String[] { + "STANDALONE", "ANDROID", "WEBGL", "IOS" + }; + + private static string fileText = ""; + + private static void saveLog() + { + if ( ! String.IsNullOrEmpty(fileText)) + { + System.IO.StreamWriter file = new System.IO.StreamWriter(Application.dataPath + "/../simple_log.txt"); + file.WriteLine(fileText); + file.Close(); + } + } + + private static void mkdir(string folder) + { + if ( ! System.IO.Directory.Exists(Application.dataPath + "/" + folder)) + Directory.CreateDirectory(Application.dataPath + "/" + folder); + //AssetDatabase.CreateFolder("Assets", folder); + } + + private static void mkdir(string path, string folder) + { + if ( ! System.IO.Directory.Exists(Application.dataPath + "/" + path + "/" + folder)) + Directory.CreateDirectory(Application.dataPath + "/" + path + "/" + folder); + //AssetDatabase.CreateFolder("Assets" + "/" + path, folder); + } + + private static void createFolders() + { + if ( ! System.IO.Directory.Exists(Application.dataPath + "/Blends")) + { + log("Source folder (Assets/Blends) does not exist!"); + saveLog(); + + Application.Quit(); + System.Environment.Exit(1); + } + + mkdir("Anims"); + mkdir("../Bundles"); + + string[] folders = new String[] { + "Comuns", "Desambiguação", "Compostos" + }; + + for (int t = 0; t < targets.Length; t++) + { + mkdir("../Bundles/" + targets[t]); + + for (int f = 0; f < folders.Length; f++) + { + string dir = "../Bundles/" + targets[t]; + + mkdir(dir + "/" + folders[f]); + mkdir(dir + "/_D_" + folders[f]); + mkdir(dir + "/" + folders[f] + "/Verificar"); + mkdir(dir + "/_D_" + folders[f] + "/Verificar"); + } + } + } + + private static Queue readNames(string filename) + { + System.IO.StreamReader file = new System.IO.StreamReader( + Application.dataPath + "/../" + filename + "_aninames.txt", + System.Text.Encoding.UTF8, + true + ); + + Queue names = new Queue(); + names.Enqueue("Default Take"); + + string line; + while((line = file.ReadLine()) != null) + names.Enqueue(line); + + file.Close(); + return names; + } + + private static string getFilePath(string target, string name) + { + string folder, filePath; + bool invalid = ! name.ToUpper().Equals(name); + + if (name.Contains("(")) + folder = disambiguationPath; + + else if (name.Contains("_")) + folder = compoundsPath; + + else + folder = commonPath; + + filePath = "Bundles/" + target + "/" + folder + (invalid ? "/Verificar/" : "/") + name; + + int dID = 1; + while (File.Exists(Application.dataPath + filePath)) + { + filePath = "Bundles/" + target + "/_D_" + folder + (invalid ? "/Verificar/" : "/"); + filePath += name + (dID < 10 ? "_0" : "_") + dID; + dID++; + } + + return filePath; + } + + static void convert() + { + createFolders(); + + string[] assetsPaths = AssetDatabase.FindAssets("", new string[1] { blendsPath }); + log("How many assets in Assets/Blends: " + assetsPaths.Length); + + AssetDatabase.Refresh(); + + assetsPaths = AssetDatabase.FindAssets("", new string[1] { blendsPath }); + log("How many assets in Assets/Blends: " + assetsPaths.Length); + + HashSet converted = new HashSet(); + + foreach (string assetPathID in assetsPaths) + { + string assetPath = AssetDatabase.GUIDToAssetPath(assetPathID); + + if (assetPath.EndsWith(".blend") && ! converted.Contains(assetPath)) + { + converted.Add(assetPath); + log(assetPath); + } + } + + converted = new HashSet(); + + foreach (string assetPathID in assetsPaths) + { + string assetPath = AssetDatabase.GUIDToAssetPath(assetPathID); + + if (assetPath.EndsWith(".blend") && ! converted.Contains(assetPath)) + converted.Add(assetPath); + else + continue; + + GameObject go = AssetDatabase.LoadAssetAtPath( + assetPath, + typeof(UnityEngine.Object) + ) as GameObject; + + if (go != null) + { + Queue names = readNames(assetPath.Substring(0, assetPath.Length - 6)); + AnimationClip[] clips = AnimationUtility.GetAnimationClips(go); + + log("Starting " + assetPath.Substring(0, assetPath.Length - 6)); + log(clips.Length + " animation clips found"); + + Regex rgx = new Regex("[\\<\\>\\:\\\"\\\\\\/\\|\\?\\*]"); + + if (clips.Length > 0) + { + foreach (AnimationClip clip in clips) + { + AnimationClip newClip = new AnimationClip(); + EditorUtility.CopySerialized(clip, newClip); + + string name = rgx.Replace((string) names.Dequeue(), "_"); + string path = "Assets/Anims/" + name + ".anim"; + log("Saving " + path); + + AssetDatabase.CreateAsset(newClip, path); + AssetDatabase.SaveAssets(); + } + } + } + else log("Ignoring " + assetPath); + } + + buildBundles(); + saveLog(); + } + + private static void buildBundles() + { + string[] assetsPaths = AssetDatabase.FindAssets("", new string[1] { "Assets/Anims" }); + + log("How many assets in Assets/Anims: " + assetsPaths.Length); + + foreach (string assetPathID in assetsPaths){ + + string assetPath = AssetDatabase.GUIDToAssetPath(assetPathID); + + UnityEngine.Object asset = AssetDatabase.LoadAssetAtPath( + assetPath, + (typeof(UnityEngine.Object))) as UnityEngine.Object; + + if (asset != null) + { + string[] tokens = assetPath.Split('/'); + tokens = tokens[tokens.Length - 1].Split('.'); + + log("Building " + assetPath + " to " + getFilePath("STANDALONE", tokens[0])); + + buildBundle(asset, getFilePath("STANDALONE", tokens[0])); + buildBundle(asset, getFilePath("ANDROID", tokens[0]), BuildTarget.Android); + buildBundle(asset, getFilePath("WEBGL", tokens[0]), BuildTarget.WebGL); + buildBundle(asset, getFilePath("IOS", tokens[0]), BuildTarget.iOS); + } + else log("Ignoring " + assetPath); + } + } + + private static void buildBundle(UnityEngine.Object asset, string path, BuildTarget target) + { + BuildPipeline.BuildAssetBundle( + asset, + new UnityEngine.Object[0] {}, + path, + BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, + target + ); + } + private static void buildBundle(UnityEngine.Object asset, string path) + { + BuildPipeline.BuildAssetBundle( + asset, + new UnityEngine.Object[0] {}, + path, + BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets + ); + } + + private static int id = 1; + + private static void log(string txt) + { + Debug.Log((id++) + ". " + txt); + fileText += txt + "\n"; + } + +} \ No newline at end of file diff --git a/Assets/Scripts/Editor/BlendToBundlesConverter.cs.meta b/Assets/Scripts/Editor/BlendToBundlesConverter.cs.meta new file mode 100644 index 0000000..7bf99a2 --- /dev/null +++ b/Assets/Scripts/Editor/BlendToBundlesConverter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8467dbce9bd8dc4fbafb3a528764189 +timeCreated: 1448301823 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/BuildAssetBundles.cs b/Assets/Scripts/Editor/BuildAssetBundles.cs new file mode 100644 index 0000000..4150d6e --- /dev/null +++ b/Assets/Scripts/Editor/BuildAssetBundles.cs @@ -0,0 +1,59 @@ +#pragma warning disable + +using UnityEngine; +using UnityEditor; +public class BuildAssetBundles { + + [MenuItem ("Assets/BUILD ALL BUNDLES IN ToBuild FOLDER")] + public static void BuildBundles() + { + string path = "AssetBundles/"; + string[] assetsPaths = AssetDatabase.FindAssets("", new string[1] { "Assets/ToBuild" }); + + Debug.Log("How many assets in Assets/ToBuild: " + assetsPaths.Length); + + foreach (string assetPathID in assetsPaths) + { + string assetPath = AssetDatabase.GUIDToAssetPath(assetPathID); + + Object asset = AssetDatabase.LoadAssetAtPath( + assetPath, (typeof(UnityEngine.Object)) + ) as Object; + + if (asset != null) + { + Debug.Log("Building " + assetPath); + + string[] tokens = assetPath.Split('/'); + tokens = tokens[tokens.Length - 1].Split('.'); + + buildBundle(asset, path + "STANDALONE/" + tokens[0]); + buildBundle(asset, path + "ANDROID/" + tokens[0], BuildTarget.Android); + buildBundle(asset, path + "WEBGL/" + tokens[0], BuildTarget.WebGL); + buildBundle(asset, path + "IOS/" + tokens[0], BuildTarget.iOS); + } + else Debug.Log("Ignoring " + assetPath); + } + } + + private static void buildBundle(UnityEngine.Object asset, string path, BuildTarget target) + { + BuildPipeline.BuildAssetBundle( + asset, + new UnityEngine.Object[0] {}, + path, + BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, + target + ); + } + private static void buildBundle(UnityEngine.Object asset, string path) + { + BuildPipeline.BuildAssetBundle( + asset, + new UnityEngine.Object[0] {}, + path, + BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets + ); + } + +} \ No newline at end of file diff --git a/Assets/Scripts/Editor/BuildAssetBundles.cs.meta b/Assets/Scripts/Editor/BuildAssetBundles.cs.meta new file mode 100644 index 0000000..49a4f2a --- /dev/null +++ b/Assets/Scripts/Editor/BuildAssetBundles.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae8a295e12d6036439851a491d510fe9 +timeCreated: 1436901693 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Editor/EditorScript.cs b/Assets/Scripts/Editor/EditorScript.cs new file mode 100644 index 0000000..05b3d46 --- /dev/null +++ b/Assets/Scripts/Editor/EditorScript.cs @@ -0,0 +1,14 @@ +using UnityEngine; +using UnityEditor; + +public class MeshPostprocessor : AssetPostprocessor { + + void OnPreprocessModel (){ + + // (assetImporter as ModelImporter).globalScale = 1.0f; + (assetImporter as ModelImporter).animationType = ModelImporterAnimationType.Legacy; + (assetImporter as ModelImporter).materialName = ModelImporterMaterialName.BasedOnMaterialName; + + } + +} \ No newline at end of file diff --git a/Assets/Scripts/Editor/EditorScript.cs.meta b/Assets/Scripts/Editor/EditorScript.cs.meta new file mode 100644 index 0000000..60508cd --- /dev/null +++ b/Assets/Scripts/Editor/EditorScript.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6bc71d9094f965647963f2ca6729fff0 +timeCreated: 1434075135 +licenseType: Pro +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ToBuild.meta b/Assets/ToBuild.meta new file mode 100644 index 0000000..5e11475 --- /dev/null +++ b/Assets/ToBuild.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 7735701d3fb2777488f3e6233d7c1c42 +folderAsset: yes +timeCreated: 1459196848 +licenseType: Pro +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/CHECAGEM/merger.py b/CHECAGEM/merger.py new file mode 100644 index 0000000..175adea --- /dev/null +++ b/CHECAGEM/merger.py @@ -0,0 +1,56 @@ +import sys +import os +import shutil +from sets import Set + +ignoredFiles = Set(['Default Take', '_configMaoDir', '_configMaoEsq', '_orientacaoDir', '_orientacaoEsq', '_pontoArticula_Dir', '_pontoArticula_Esq', 'CDA:ObIpo.001', 'DOWN_', 'Facial', 'PosePadraoNova','_2vl_CONTATO','POSE-NEUTRA']) +platformFolders = Set(['ANDROID', 'IOS', 'STANDALONE', 'WEBGL']) + +def moveFiles(destiny, path): + for maindir, subdirs, files in os.walk(path): + print 'Checking ' + maindir + ' files' + for file in files: + filePath = path + '/' + file + fileDestiny = destiny + '/' + file + + if file in ignoredFiles: + os.remove(filePath) + 'Deleting ' + filePath + + elif not os.path.isfile(fileDestiny): + print '\t' + filePath + os.rename(filePath, destiny + '/' + file) + + + print 'Checking ' + maindir + ' folders' + for dir in subdirs: + if dir in platformFolders: + moveFiles(destiny + '/' + dir, maindir + '/' + dir) + else: + moveFiles(destiny, maindir + '/' + dir) + + if deleteIfEmpty(maindir + '/' + dir): + print 'Deleting ' + maindir + '/' + dir + + break + +def deleteIfEmpty(path): + for maindir, subdirs, files in os.walk(path): + if len(subdirs) == 0 and len(files) == 0: + shutil.rmtree(path) + return True + + return False + +if __name__ == '__main__': + folder = sys.argv[1] + destiny = 'merge_' + folder + + if not os.path.isdir(destiny): + os.mkdir(destiny) + os.mkdir(destiny + '/ANDROID') + os.mkdir(destiny + '/IOS') + os.mkdir(destiny + '/STANDALONE') + os.mkdir(destiny + '/WEBGL') + + moveFiles(destiny, folder) \ No newline at end of file diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..c7a0ae1 --- /dev/null +++ b/ProjectSettings/AudioManager.asset @@ -0,0 +1,14 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 0 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_DisableAudio: 0 diff --git a/ProjectSettings/ClusterInputManager.asset b/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 0000000..e7886b2 --- /dev/null +++ b/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..dd3756e --- /dev/null +++ b/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,14 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + m_Gravity: {x: 0, y: -9.81000042, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: .00499999989 + m_DefaultContactOffset: .00999999978 + m_SolverIterationCount: 6 + m_RaycastsHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..ff687ac --- /dev/null +++ b/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: + - enabled: 1 + path: Assets/Scenes/Scene.unity diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..5fcf984 --- /dev/null +++ b/ProjectSettings/EditorSettings.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 3 + m_ExternalVersionControlSupport: Hidden Meta Files + m_SerializationMode: 2 + m_WebSecurityEmulationEnabled: 0 + m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d + m_DefaultBehaviorMode: 0 + m_SpritePackerMode: 2 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..794c061 --- /dev/null +++ b/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,37 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_ShaderSettings: + useScreenSpaceShadows: 0 + m_BuildTargetShaderSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDirSeparate: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepDynamicDirSeparate: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..0a69793 --- /dev/null +++ b/ProjectSettings/InputManager.asset @@ -0,0 +1,295 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: .00100000005 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: .00100000005 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left cmd + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: .100000001 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: .100000001 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: .100000001 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: .189999998 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: .189999998 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: .00100000005 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..a04f35c --- /dev/null +++ b/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,71 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshAreas: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..5dc6a83 --- /dev/null +++ b/ProjectSettings/NetworkManager.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!149 &1 +NetworkManager: + m_ObjectHideFlags: 0 + m_DebugLevel: 0 + m_Sendrate: 15 + m_AssetToPrefab: {} diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..5418c58 --- /dev/null +++ b/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,24 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + m_Gravity: {x: 0, y: -9.81000042} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: .200000003 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_MinPenetrationForPenalty: .00999999978 + m_BaumgarteScale: .200000003 + m_BaumgarteTimeOfImpactScale: .75 + m_TimeToSleep: .5 + m_LinearSleepTolerance: .00999999978 + m_AngularSleepTolerance: 2 + m_RaycastsHitTriggers: 1 + m_RaycastsStartInColliders: 1 + m_ChangeStopsCallbacks: 0 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..1997ea0 --- /dev/null +++ b/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,462 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 8 + AndroidProfiler: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: LAViD + productName: VLibrasPlayer + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_ShowUnitySplashScreen: 0 + m_VirtualRealitySplashScreen: {fileID: 0} + defaultScreenWidth: 640 + defaultScreenHeight: 480 + defaultScreenWidthWeb: 640 + defaultScreenHeightWeb: 480 + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + m_MobileMTRendering: 0 + m_Stereoscopic3D: 0 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosAppInBackgroundBehavior: 0 + displayResolutionDialog: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + disableDepthAndStencilBuffers: 0 + defaultIsFullScreen: 0 + defaultIsNativeResolution: 1 + runInBackground: 0 + captureSingleScreen: 0 + Override IPod Music: 0 + Prepare IOS For Recording: 0 + submitAnalytics: 0 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + resizableWindow: 0 + useMacAppStoreValidation: 0 + gpuSkinning: 0 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 0 + allowFullscreenSwitch: 1 + macFullscreenMode: 2 + d3d9FullscreenMode: 1 + d3d11FullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + n3dsDisableStereoscopicView: 0 + n3dsEnableSharedListOpt: 1 + n3dsEnableVSync: 0 + uiUse16BitDepthBuffer: 0 + ignoreAlphaClear: 0 + xboxOneResolution: 0 + ps3SplashScreen: {fileID: 0} + videoMemoryForVertexBuffers: 0 + psp2PowerMode: 0 + psp2AcquireBGM: 1 + wiiUTVResolution: 0 + wiiUGamePadMSAA: 1 + wiiUSupportsNunchuk: 0 + wiiUSupportsClassicController: 0 + wiiUSupportsBalanceBoard: 0 + wiiUSupportsMotionPlus: 0 + wiiUSupportsProController: 0 + wiiUAllowScreenCapture: 1 + wiiUControllerCount: 0 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleIdentifier: com.Company.ProductName + bundleVersion: 1.0 + preloadedAssets: [] + metroEnableIndependentInputSource: 0 + metroEnableLowLatencyPresentationAPI: 0 + xboxOneDisableKinectGpuReservation: 0 + virtualRealitySupported: 0 + productGUID: 337d486bd080bd046a98a1104f14a673 + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 9 + AndroidPreferredInstallLocation: 1 + aotOptions: + apiCompatibilityLevel: 1 + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + iPhoneBuildNumber: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + preloadShaders: 0 + StripUnusedMeshComponents: 0 + VertexChannelCompressionMask: + serializedVersion: 2 + m_Bits: 238 + iPhoneSdkVersion: 988 + iPhoneTargetOSVersion: 22 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + iPhoneSplashScreen: {fileID: 0} + iPhoneHighResSplashScreen: {fileID: 0} + iPhoneTallHighResSplashScreen: {fileID: 0} + iPhone47inSplashScreen: {fileID: 0} + iPhone55inPortraitSplashScreen: {fileID: 0} + iPhone55inLandscapeSplashScreen: {fileID: 0} + iPadPortraitSplashScreen: {fileID: 0} + iPadHighResPortraitSplashScreen: {fileID: 0} + iPadLandscapeSplashScreen: {fileID: 0} + iPadHighResLandscapeSplashScreen: {fileID: 0} + appleTVSplashScreen: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSLargeIconLayers: [] + tvOSTopShelfImageLayers: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSDeviceRequirements: [] + AndroidTargetDevice: 0 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidTVCompatibility: 1 + AndroidIsGame: 1 + androidEnableBanner: 1 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + resolutionDialogBanner: {fileID: 0} + m_BuildTargetIcons: + - m_BuildTarget: + m_Icons: + - serializedVersion: 2 + m_Icon: {fileID: 2800000, guid: 98a8d3ec5bfc6ef4bacfcc810c9edf5a, type: 3} + m_Width: 128 + m_Height: 128 + m_BuildTargetBatching: + - m_BuildTarget: WebGL + m_StaticBatching: 1 + m_DynamicBatching: 1 + m_BuildTargetGraphicsAPIs: [] + webPlayerTemplate: APPLICATION:Default + m_TemplateCustomTags: {} + wiiUTitleID: 0005000011000000 + wiiUGroupID: 00010000 + wiiUCommonSaveSize: 4096 + wiiUAccountSaveSize: 2048 + wiiUOlvAccessKey: 0 + wiiUTinCode: 0 + wiiUJoinGameId: 0 + wiiUJoinGameModeMask: 0000000000000000 + wiiUCommonBossSize: 0 + wiiUAccountBossSize: 0 + wiiUAddOnUniqueIDs: [] + wiiUMainThreadStackSize: 3072 + wiiULoaderThreadStackSize: 1024 + wiiUSystemHeapSize: 128 + wiiUTVStartupScreen: {fileID: 0} + wiiUGamePadStartupScreen: {fileID: 0} + wiiUProfilerLibPath: + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + locationUsageDescription: + XboxTitleId: + XboxImageXexPath: + XboxSpaPath: + XboxGenerateSpa: 0 + XboxDeployKinectResources: 0 + XboxSplashScreen: {fileID: 0} + xboxEnableSpeech: 0 + xboxAdditionalTitleMemorySize: 0 + xboxDeployKinectHeadOrientation: 0 + xboxDeployKinectHeadPosition: 0 + ps3TitleConfigPath: + ps3DLCConfigPath: + ps3ThumbnailPath: + ps3BackgroundPath: + ps3SoundPath: + ps3NPAgeRating: 12 + ps3TrophyCommId: + ps3NpCommunicationPassphrase: + ps3TrophyPackagePath: + ps3BootCheckMaxSaveGameSizeKB: 128 + ps3TrophyCommSig: + ps3SaveGameSlots: 1 + ps3TrialMode: 0 + ps3VideoMemoryForAudio: 0 + ps3EnableVerboseMemoryStats: 0 + ps3UseSPUForUmbra: 0 + ps3EnableMoveSupport: 1 + ps3DisableDolbyEncoding: 0 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 1 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutResolution: 4 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4SocialScreenEnabled: 0 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4IncludedModules: [] + monoEnv: + psp2Splashimage: {fileID: 0} + psp2NPTrophyPackPath: + psp2NPSupportGBMorGJP: 0 + psp2NPAgeRating: 12 + psp2NPTitleDatPath: + psp2NPCommsID: + psp2NPCommunicationsID: + psp2NPCommsPassphrase: + psp2NPCommsSig: + psp2ParamSfxPath: + psp2ManualPath: + psp2LiveAreaGatePath: + psp2LiveAreaBackroundPath: + psp2LiveAreaPath: + psp2LiveAreaTrialPath: + psp2PatchChangeInfoPath: + psp2PatchOriginalPackage: + psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui + psp2KeystoneFile: + psp2MemoryExpansionMode: 0 + psp2DRMType: 0 + psp2StorageType: 0 + psp2MediaCapacity: 0 + psp2DLCConfigPath: + psp2ThumbnailPath: + psp2BackgroundPath: + psp2SoundPath: + psp2TrophyCommId: + psp2TrophyPackagePath: + psp2PackagedResourcesPath: + psp2SaveDataQuota: 10240 + psp2ParentalLevel: 1 + psp2ShortTitle: Not Set + psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF + psp2Category: 0 + psp2MasterVersion: 01.00 + psp2AppVersion: 01.00 + psp2TVBootMode: 0 + psp2EnterButtonAssignment: 2 + psp2TVDisableEmu: 0 + psp2AllowTwitterDialog: 1 + psp2Upgradable: 0 + psp2HealthWarning: 0 + psp2UseLibLocation: 0 + psp2InfoBarOnStartup: 0 + psp2InfoBarColor: 0 + psmSplashimage: {fileID: 0} + spritePackerPolicy: + scriptingDefineSymbols: {} + metroPackageName: VLibrasWeb + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: VLibrasWeb + wsaImages: {} + metroTileShortName: + metroCommandLineArgsFile: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 1 + metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} + metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + metroCompilationOverrides: 1 + blackberryDeviceAddress: + blackberryDevicePassword: + blackberryTokenPath: + blackberryTokenExires: + blackberryTokenAuthor: + blackberryTokenAuthorId: + blackberryCskPassword: + blackberrySaveLogPath: + blackberrySharedPermissions: 0 + blackberryCameraPermissions: 0 + blackberryGPSPermissions: 0 + blackberryDeviceIDPermissions: 0 + blackberryMicrophonePermissions: 0 + blackberryGamepadSupport: 0 + blackberryBuildId: 0 + blackberryLandscapeSplashScreen: {fileID: 0} + blackberryPortraitSplashScreen: {fileID: 0} + blackberrySquareSplashScreen: {fileID: 0} + tizenProductDescription: + tizenProductURL: + tizenSigningProfileName: + tizenGPSPermissions: 0 + tizenMicrophonePermissions: 0 + n3dsUseExtSaveData: 0 + n3dsCompressStaticMem: 1 + n3dsExtSaveDataNumber: 0x12345 + n3dsStackSize: 131072 + n3dsTargetPlatform: 2 + n3dsRegion: 7 + n3dsMediaSize: 0 + n3dsLogoStyle: 3 + n3dsTitle: GameName + n3dsProductCode: + n3dsApplicationId: 0xFF3FF + stvDeviceAddress: + stvProductDescription: + stvProductAuthor: + stvProductAuthorEmail: + stvProductLink: + stvProductCategory: 0 + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneIsContentPackage: 0 + XboxOneEnableGPUVariability: 0 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + intPropertyNames: + - Android::ScriptingBackend + - Metro::ScriptingBackend + - Standalone::ScriptingBackend + - WP8::ScriptingBackend + - WebGL::ScriptingBackend + - WebGL::audioCompressionFormat + - WebGL::exceptionSupport + - WebGL::memorySize + - iOS::Architecture + - iOS::EnableIncrementalBuildSupportForIl2cpp + - iOS::ScriptingBackend + Android::ScriptingBackend: 0 + Metro::ScriptingBackend: 2 + Standalone::ScriptingBackend: 0 + WP8::ScriptingBackend: 2 + WebGL::ScriptingBackend: 1 + WebGL::audioCompressionFormat: 4 + WebGL::exceptionSupport: 0 + WebGL::memorySize: 256 + iOS::Architecture: 0 + iOS::EnableIncrementalBuildSupportForIl2cpp: 0 + iOS::ScriptingBackend: 0 + boolPropertyNames: + - WebGL::analyzeBuildSize + - WebGL::dataCaching + - WebGL::useEmbeddedResources + - XboxOne::enus + WebGL::analyzeBuildSize: 0 + WebGL::dataCaching: 0 + WebGL::useEmbeddedResources: 0 + XboxOne::enus: 1 + stringPropertyNames: + - WebGL::emscriptenArgs + - WebGL::template + - additionalIl2CppArgs::additionalIl2CppArgs + WebGL::emscriptenArgs: + WebGL::template: APPLICATION:Default + additionalIl2CppArgs::additionalIl2CppArgs: + cloudProjectId: + projectName: + organizationId: + cloudEnabled: 0 diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..687ded7 --- /dev/null +++ b/ProjectSettings/QualitySettings.asset @@ -0,0 +1,157 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 5 + m_QualitySettings: + - serializedVersion: 2 + name: Fastest + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: .300000012 + maximumLODLevel: 0 + particleRaycastBudget: 4 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Fast + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: .400000006 + maximumLODLevel: 0 + particleRaycastBudget: 16 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Simple + pixelLightCount: 1 + shadows: 1 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: .699999988 + maximumLODLevel: 0 + particleRaycastBudget: 64 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Good + pixelLightCount: 2 + shadows: 2 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 1 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + particleRaycastBudget: 256 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Beautiful + pixelLightCount: 3 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 2 + softParticles: 1 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + particleRaycastBudget: 1024 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Fantastic + pixelLightCount: 4 + shadows: 2 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowCascade2Split: .333333343 + shadowCascade4Split: {x: .0666666701, y: .199999988, z: .466666639} + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 2 + antiAliasing: 4 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 1 + billboardsFaceCameraPosition: 1 + vSyncCount: 0 + lodBias: 2 + maximumLODLevel: 0 + particleRaycastBudget: 4096 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 0 + BlackBerry: 0 + Samsung TV: 0 + Standalone: 5 + Tizen: 0 + WP8: 0 + Web: 0 + WebGL: 0 + Windows Store Apps: 0 + iPhone: 0 diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..96cb2eb --- /dev/null +++ b/ProjectSettings/TagManager.asset @@ -0,0 +1,48 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: + - avatar + - inspetor + - RESBOX + - FADENEEDED + - BUTTONS + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..f0e494b --- /dev/null +++ b/ProjectSettings/TimeManager.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: .0199999996 + Maximum Allowed Timestep: .333333343 + m_TimeScale: 1 diff --git a/ProjectSettings/UnityAdsSettings.asset b/ProjectSettings/UnityAdsSettings.asset new file mode 100644 index 0000000..224050c --- /dev/null +++ b/ProjectSettings/UnityAdsSettings.asset @@ -0,0 +1,11 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!292 &1 +UnityAdsSettings: + m_ObjectHideFlags: 0 + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_EnabledPlatforms: 4294967295 + m_IosGameId: + m_AndroidGameId: diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 0000000..9b7a578 --- /dev/null +++ b/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,14 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_TestEventUrl: + m_TestConfigUrl: diff --git a/aninames.py b/aninames.py new file mode 100644 index 0000000..809afeb --- /dev/null +++ b/aninames.py @@ -0,0 +1,11 @@ +import os +import bpy +import codecs + +# write names into a file next to the blend +file = codecs.open(os.path.splitext(bpy.data.filepath)[0] + '_aninames.txt', 'w', 'utf-8') + +for obj in bpy.data.actions: + file.write("%s\n" % (obj.name)) + +file.close() \ No newline at end of file diff --git a/autogen.py b/autogen.py new file mode 100644 index 0000000..55e0e1e --- /dev/null +++ b/autogen.py @@ -0,0 +1,18 @@ +import os +import biadroid + + +root = raw_input('Folder: ') + +for dirname, dirnames, filenames in os.walk(root): + for dirn in dirnames: + blends = dirname + "\\" + dirn + print "\n\nAUTOGEN " + blends + "\n\n" + + biadroid.gen(blends, False) + print dirn + + if os.path.isdir('Bundles'): + os.rename("Bundles", "Bundles_" + dirn) + + break \ No newline at end of file diff --git a/biadroid.py b/biadroid.py new file mode 100644 index 0000000..40431c0 --- /dev/null +++ b/biadroid.py @@ -0,0 +1,91 @@ +import os +import subprocess +from subprocess import call +import sys +import re +import shutil + +def clearBlends(): + print('Cleaning Assets/Blends...') + for dirname, dirnames, filenames in os.walk('Assets/Blends'): + for filename in filenames: + os.remove(os.path.join(dirname, filename)) + for dirn in dirnames: + shutil.rmtree(os.path.join(dirname, dirn)) + print('Assets/Blends is empty.') + + +root = os.path.dirname(os.path.realpath(__file__)) + + +def gen(blends, prompt): + if os.path.isdir('Assets/Blends'): + numFiles = len([name for name in os.listdir('Assets/Blends')]) + + if numFiles > 0: + if prompt: + answer = raw_input('Assets/Blends (alguns files/dirs) will be cleared, prompt y/Y to continue or anything to quit: ') + if (answer != 'y' and answer != 'Y'): + sys.exit() + else: + clearBlends() + else: + clearBlends() + else: + os.mkdir('Assets/Blends') + print('Assets/Blends created!') + + + + if not os.path.isdir('LOGS'): + os.mkdir('LOGS') + print('LOGS created!') + + print('Checking ' + blends + '...') + + for dirname, dirnames, filenames in os.walk(blends): + for filename in filenames: + if filename.endswith('.blend'): + print('') + print('Found: ' + filename) + path = os.path.join(dirname, filename) + + blendpath = root + '/Assets/Blends/' + filename + print('Moving ' + path + ' to ' + blendpath + '...') + os.rename(path, blendpath) + + animspath = root + '/Assets/Anims' + if os.path.isdir(animspath): + print 'Removing ' + animspath + shutil.rmtree(animspath) + + print('Getting animation names...') + call(['blender', blendpath, '--background', '--python', 'aninames.py']) + + print('Running converter...') + call([ + 'C:\Program Files\Unity\Editor\Unity.exe', + '-quit', + '-batchmode', + '-logFile', + root + '\LOGS\LOG__' + filename[:-6] + '.txt', + '-projectPath', + root, + '-executeMethod', + 'BlendToBundlesConverter.convert' + ]) + + print('Success!') + clearBlends() + + filepath = 'C:\Workspace\\babc\Assets\Bundles\\' + subprocess.Popen('explorer /select,"' + filepath + '"') + + +if __name__ == '__main__': + blendsDir = raw_input('Folder: ') + + yesPattern = re.compile('[yY]') + toContinue = '' + + gen(blends, True) \ No newline at end of file diff --git a/test/script.py b/test/script.py new file mode 100644 index 0000000..5330065 --- /dev/null +++ b/test/script.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- + +import os +from sets import Set + +bundlesNames = [] + +for dirname, dirnames, filenames in os.walk('listas'): + for filename in filenames: + print 'Reading: ' + filename + + file = open('listas/' + filename) + lines = file.readlines() + + for i in xrange(2, len(lines)): + if lines[i] == '\n': + break + else: + bundlesNames.append(lines[i][0:-1]) + +print bundlesNames + +bundles = Set(bundlesNames) +print len(bundles) + +for dirname, dirnames, filenames in os.walk('sinais'): + for filename in filenames: + if filename in bundles: + os.rename('sinais/' + filename, 'checados/' + filename) + bundles.remove(filename) + +print '\nNao encontrados:' +print bundles \ No newline at end of file -- libgit2 0.21.2