diff --git a/src/Core/GameProject/AssetNameGeneration.cpp b/src/Core/GameProject/AssetNameGeneration.cpp
index e753f300..53a045d9 100644
--- a/src/Core/GameProject/AssetNameGeneration.cpp
+++ b/src/Core/GameProject/AssetNameGeneration.cpp
@@ -80,7 +80,7 @@ void GenerateAssetNames(CGameProject *pProj)
{
// Set world name
CWorld *pWorld = (CWorld*) It->Load();
- TWideString WorldName = L'!' + pWorld->Name().ToUTF16() + L"_Master";
+ TWideString WorldName = pWorld->Name().ToUTF16();
TWideString WorldDir = kWorldsRoot + WorldName + L'\\';
TWideString WorldMasterName = L"!" + WorldName + L"_Master";
@@ -405,7 +405,7 @@ void GenerateAssetNames(CGameProject *pProj)
if (pAnimDataEntry)
{
- TWideString AnimDataName = TString::Format(L"%s_animdata", *CharName);
+ TWideString AnimDataName = TWideString::Format(L"%s_animdata", *CharName);
ApplyGeneratedName(pAnimDataEntry, SetDir, AnimDataName);
}
}
diff --git a/src/Core/Resource/Animation/CAnimationParameters.cpp b/src/Core/Resource/Animation/CAnimationParameters.cpp
index d3369474..4ea015ed 100644
--- a/src/Core/Resource/Animation/CAnimationParameters.cpp
+++ b/src/Core/Resource/Animation/CAnimationParameters.cpp
@@ -89,7 +89,7 @@ void CAnimationParameters::Write(IOutputStream& rSCLY)
}
else
{
- rSCLY.WriteLong(0xFFFFFFFF);
+ CAssetID::skInvalidID32.Write(rSCLY);
rSCLY.WriteLong(0);
rSCLY.WriteLong(0xFFFFFFFF);
}
@@ -105,7 +105,7 @@ void CAnimationParameters::Write(IOutputStream& rSCLY)
else
{
- rSCLY.WriteLongLong(CAssetID::skInvalidID64.ToLongLong());
+ CAssetID::skInvalidID64.Write(rSCLY);
rSCLY.WriteLong(0xFFFFFFFF);
}
}
diff --git a/src/Core/Resource/Factory/CMaterialLoader.cpp b/src/Core/Resource/Factory/CMaterialLoader.cpp
index 0cdde2b3..08aa9de9 100644
--- a/src/Core/Resource/Factory/CMaterialLoader.cpp
+++ b/src/Core/Resource/Factory/CMaterialLoader.cpp
@@ -358,10 +358,11 @@ CMaterial* CMaterialLoader::ReadCorruptionMaterial()
pPass->mPassType = mpFile->ReadLong();
pPass->mSettings = (CMaterialPass::EPassSettings) mpFile->ReadLong();
+ // Skip passes that don't have a texture. Honestly don't really know what to do with these right now
u64 TextureID = mpFile->ReadLongLong();
if (TextureID == 0xFFFFFFFFFFFFFFFF)
{
- Log::FileWarning(mpFile->GetSourceString(), mPassOffsets.back(), "Skipping " + pPass->mPassType.ToString() + " pass with no texture");
+ //Log::FileWarning(mpFile->GetSourceString(), mPassOffsets.back(), "Skipping " + pPass->mPassType.ToString() + " pass with no texture");
delete pPass;
continue;
}
@@ -555,7 +556,7 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
if (mHas0x400) pPass->SetEnabled(false);
}
- // Bloom
+ // Bloom Incandescence
else if (Type == "BLOI")
{
pPass->SetColorInputs(eZeroRGB, eZeroRGB, eZeroRGB, ePrevRGB);
@@ -570,6 +571,12 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
pPass->SetAlphaOutput(ePrevReg);
}
+ // Bloom Diffuse
+ else if (Type == "BLOD")
+ {
+ // Not supported yet
+ }
+
// X-Ray - since we don't support X-Ray previews, no effect
else if (Type == "XRAY")
{
@@ -601,6 +608,7 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
else
{
+ //
Log::FileError(mpFile->GetSourceString(), mPassOffsets[iPass], "Unsupported material pass type: " + Type.ToString());
pPass->mEnabled = false;
}
diff --git a/templates/mp3/Script/Effect.xml b/templates/mp3/Script/Effect.xml
index f35b551c..2a7bebca 100644
--- a/templates/mp3/Script/Effect.xml
+++ b/templates/mp3/Script/Effect.xml
@@ -3,7 +3,7 @@
Effect
-
+
true
diff --git a/templates/mp3/Script/FlyingPirate.xml b/templates/mp3/Script/FlyingPirate.xml
index 88096895..7a415b48 100644
--- a/templates/mp3/Script/FlyingPirate.xml
+++ b/templates/mp3/Script/FlyingPirate.xml
@@ -117,7 +117,7 @@
-
+
50.0
@@ -139,7 +139,7 @@
-
+
10.0
diff --git a/templates/mp3/Script/ShipProxy.xml b/templates/mp3/Script/ShipProxy.xml
index 1034772b..7f0aec20 100644
--- a/templates/mp3/Script/ShipProxy.xml
+++ b/templates/mp3/Script/ShipProxy.xml
@@ -3,6 +3,7 @@
ShipProxy
+
diff --git a/templates/mp3/Structs/GandraydaData.xml b/templates/mp3/Structs/GandraydaData.xml
index 4d7579d3..1c5447fe 100644
--- a/templates/mp3/Structs/GandraydaData.xml
+++ b/templates/mp3/Structs/GandraydaData.xml
@@ -120,7 +120,7 @@
-
+
20.0