Skip to content

Commit

Permalink
* Updated ShenmueDKSharp
Browse files Browse the repository at this point in the history
* Minor tweaks
  • Loading branch information
LemonHaze420 committed Mar 25, 2019
1 parent 956b81a commit 33dbf71
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ShenmueDKSharp
18 changes: 13 additions & 5 deletions wudecon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,19 @@ static void ExportMT5(string path, string objFilepath)
try
{
MT5 mt5 = new MT5(path);
OBJ obj = new OBJ(mt5);

/*foreach(ModelNode node in mt5.GetAllNodes())
{
if (node.BoneID == BoneID.LeftUpperArm)
node.Rotation.Y += 90.0f;
else if(node.BoneID == BoneID.RightUpperArm)
node.Rotation.Y -= 90.0f;
}*/

if(obj != null && mt5 != null)
OBJ obj = new OBJ(mt5);
if (obj != null && mt5 != null)
obj.Write(objFilepath);

if(bVerbose)
Console.WriteLine("Converted {0} to {1}", path, objFilepath);

Expand Down Expand Up @@ -769,7 +777,7 @@ static void PrintUsage()
Console.WriteLine("\twudecon --mt5 <dir with mt5's> <output dir>");
Console.WriteLine("\twudecon --mt7 <mt7 file> <obj file>");
Console.WriteLine("\twudecon [--pkf|--pks|--spr|--ipac|--gz|--afs] <source file> <output dir>");
Console.WriteLine("\twudecon --tac <tad file> <output dir>");
Console.WriteLine("\twudecon --tc <tad file> <output dir>");
Console.WriteLine("\twudecon --tacfile <file in tac to extract> <output dir>");
Console.WriteLine("\twudecon --tacfull <tad file> <tac output dir> <model output dir> <mt5/mt7>");

Expand Down Expand Up @@ -849,7 +857,7 @@ static void Main(string[] args)
ExtractAFS(args[1], args[2]);
}

if ((args[0].Contains("--tac") || args[0].Contains("-tac")))
if ((args[0].Contains("--tc") || args[0].Contains("-tc")))
{
ExtractTAC(args[1], args[2]);
}
Expand Down

0 comments on commit 33dbf71

Please sign in to comment.