Fixed log spam while exporting MP3 + fixed world asset name being generated incorrectly

This commit is contained in:
Aruki 2017-04-30 23:45:56 -06:00
parent 88c11555c0
commit 3fc35b7c09
7 changed files with 19 additions and 10 deletions

View File

@ -80,7 +80,7 @@ void GenerateAssetNames(CGameProject *pProj)
{ {
// Set world name // Set world name
CWorld *pWorld = (CWorld*) It->Load(); CWorld *pWorld = (CWorld*) It->Load();
TWideString WorldName = L'!' + pWorld->Name().ToUTF16() + L"_Master"; TWideString WorldName = pWorld->Name().ToUTF16();
TWideString WorldDir = kWorldsRoot + WorldName + L'\\'; TWideString WorldDir = kWorldsRoot + WorldName + L'\\';
TWideString WorldMasterName = L"!" + WorldName + L"_Master"; TWideString WorldMasterName = L"!" + WorldName + L"_Master";
@ -405,7 +405,7 @@ void GenerateAssetNames(CGameProject *pProj)
if (pAnimDataEntry) if (pAnimDataEntry)
{ {
TWideString AnimDataName = TString::Format(L"%s_animdata", *CharName); TWideString AnimDataName = TWideString::Format(L"%s_animdata", *CharName);
ApplyGeneratedName(pAnimDataEntry, SetDir, AnimDataName); ApplyGeneratedName(pAnimDataEntry, SetDir, AnimDataName);
} }
} }

View File

@ -89,7 +89,7 @@ void CAnimationParameters::Write(IOutputStream& rSCLY)
} }
else else
{ {
rSCLY.WriteLong(0xFFFFFFFF); CAssetID::skInvalidID32.Write(rSCLY);
rSCLY.WriteLong(0); rSCLY.WriteLong(0);
rSCLY.WriteLong(0xFFFFFFFF); rSCLY.WriteLong(0xFFFFFFFF);
} }
@ -105,7 +105,7 @@ void CAnimationParameters::Write(IOutputStream& rSCLY)
else else
{ {
rSCLY.WriteLongLong(CAssetID::skInvalidID64.ToLongLong()); CAssetID::skInvalidID64.Write(rSCLY);
rSCLY.WriteLong(0xFFFFFFFF); rSCLY.WriteLong(0xFFFFFFFF);
} }
} }

View File

@ -358,10 +358,11 @@ CMaterial* CMaterialLoader::ReadCorruptionMaterial()
pPass->mPassType = mpFile->ReadLong(); pPass->mPassType = mpFile->ReadLong();
pPass->mSettings = (CMaterialPass::EPassSettings) 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(); u64 TextureID = mpFile->ReadLongLong();
if (TextureID == 0xFFFFFFFFFFFFFFFF) 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; delete pPass;
continue; continue;
} }
@ -555,7 +556,7 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
if (mHas0x400) pPass->SetEnabled(false); if (mHas0x400) pPass->SetEnabled(false);
} }
// Bloom // Bloom Incandescence
else if (Type == "BLOI") else if (Type == "BLOI")
{ {
pPass->SetColorInputs(eZeroRGB, eZeroRGB, eZeroRGB, ePrevRGB); pPass->SetColorInputs(eZeroRGB, eZeroRGB, eZeroRGB, ePrevRGB);
@ -570,6 +571,12 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
pPass->SetAlphaOutput(ePrevReg); pPass->SetAlphaOutput(ePrevReg);
} }
// Bloom Diffuse
else if (Type == "BLOD")
{
// Not supported yet
}
// X-Ray - since we don't support X-Ray previews, no effect // X-Ray - since we don't support X-Ray previews, no effect
else if (Type == "XRAY") else if (Type == "XRAY")
{ {
@ -601,6 +608,7 @@ void CMaterialLoader::CreateCorruptionPasses(CMaterial *pMat)
else else
{ {
//
Log::FileError(mpFile->GetSourceString(), mPassOffsets[iPass], "Unsupported material pass type: " + Type.ToString()); Log::FileError(mpFile->GetSourceString(), mPassOffsets[iPass], "Unsupported material pass type: " + Type.ToString());
pPass->mEnabled = false; pPass->mEnabled = false;
} }

View File

@ -3,7 +3,7 @@
<name>Effect</name> <name>Effect</name>
<properties> <properties>
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/> <struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
<property ID="0x0A479D6F" type="asset" extensions="PART,ELSC,SWHC"/> <property ID="0x0A479D6F" type="asset" extensions="PART,ELSC,SPSC,SWHC"/>
<property ID="0x3217DFF8" type="bool"> <property ID="0x3217DFF8" type="bool">
<default>true</default> <default>true</default>
</property> </property>

View File

@ -117,7 +117,7 @@
<property ID="0xEF485DB9" type="asset" extensions="WPSC"/> <property ID="0xEF485DB9" type="asset" extensions="WPSC"/>
<struct ID="0x337F9524" template="Structs/DamageInfo.xml"/> <struct ID="0x337F9524" template="Structs/DamageInfo.xml"/>
<property ID="0xA55DACF6" type="asset" extensions="CAUD"/> <property ID="0xA55DACF6" type="asset" extensions="CAUD"/>
<property ID="0xE9C8E2BD" type="asset" extensions="PART"/> <property ID="0xE9C8E2BD" type="asset" extensions="PART,ELSC"/>
<property ID="0x86FFB3F6" type="asset" extensions="CAUD"/> <property ID="0x86FFB3F6" type="asset" extensions="CAUD"/>
<property ID="0xFF77C96F" type="float"> <property ID="0xFF77C96F" type="float">
<default>50.0</default> <default>50.0</default>
@ -139,7 +139,7 @@
<property ID="0xF0D25256" type="asset" extensions="WPSC"/> <property ID="0xF0D25256" type="asset" extensions="WPSC"/>
<property ID="0x645E8CC5" type="asset" extensions="WPSC"/> <property ID="0x645E8CC5" type="asset" extensions="WPSC"/>
<struct ID="0x337F9524" template="Structs/DamageInfo.xml"/> <struct ID="0x337F9524" template="Structs/DamageInfo.xml"/>
<property ID="0xE9C8E2BD" type="asset" extensions="PART"/> <property ID="0xE9C8E2BD" type="asset" extensions="PART,ELSC"/>
<property ID="0x86FFB3F6" type="asset" extensions="CAUD"/> <property ID="0x86FFB3F6" type="asset" extensions="CAUD"/>
<property ID="0x053AE4A7" type="float"> <property ID="0x053AE4A7" type="float">
<default>10.0</default> <default>10.0</default>

View File

@ -3,6 +3,7 @@
<name>ShipProxy</name> <name>ShipProxy</name>
<properties> <properties>
<struct ID="0x255A4580" template="Structs/EditorProperties.xml"/> <struct ID="0x255A4580" template="Structs/EditorProperties.xml"/>
<property ID="0xA3D63F44" type="character"/>
</properties> </properties>
<states/> <states/>
<messages/> <messages/>

View File

@ -120,7 +120,7 @@
<properties> <properties>
<property ID="0x459AE4A8" type="asset" extensions="WPSC"/> <property ID="0x459AE4A8" type="asset" extensions="WPSC"/>
<struct ID="0x337F9524" template="Structs/DamageInfo.xml"/> <struct ID="0x337F9524" template="Structs/DamageInfo.xml"/>
<property ID="0xE9C8E2BD" type="asset" extensions="PART"/> <property ID="0xE9C8E2BD" type="asset" extensions="PART,ELSC"/>
<property ID="0x86FFB3F6" type="asset" extensions="CAUD"/> <property ID="0x86FFB3F6" type="asset" extensions="CAUD"/>
<property ID="0x2F79B3D0" type="float"> <property ID="0x2F79B3D0" type="float">
<default>20.0</default> <default>20.0</default>