diff --git a/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript b/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript index 8382fa7ca..119ba6066 100644 --- a/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript +++ b/Templates/BaseGame/game/tools/projectImporter/scripts/pre40/T3Dpre4ProjectImporter.tscript @@ -945,7 +945,7 @@ $rigidEntriesList = $rigidEntriesList SPC "waterWakeSound waterWakeSoundAsset"; T3Dpre4ProjectImporter::genProcessor("RigidShapeData",$rigidEntriesList); $PlayerEntriesList = "shapeFP shapeFPAsset shapeNameFP shapeFPAsset"; -$PlayerEntriesList = $PlayerEntriesList SPC "FootSoftSound FootSoftAsset FootHardSound FootHardAsset"; +$PlayerEntriesList = $PlayerEntriesList SPC "FootSoftSound FootSoftAsset FootHardSound FootHardAsset FootMetalSound FootMetal"; $PlayerEntriesList = $PlayerEntriesList SPC "FootSnowSound FootSnowAsset FootShallowSound FootShallowSplashAsset"; $PlayerEntriesList = $PlayerEntriesList SPC "FootWadingSound FootWadingAsset FootUnderwaterSound FootUnderWaterAsset"; $PlayerEntriesList = $PlayerEntriesList SPC "FootBubblesSound FootBubblesAsset movingBubblesSound MoveBubblesAsset"; diff --git a/Templates/BaseGame/game/tools/projectImporter/scripts/projectImporter.tscript b/Templates/BaseGame/game/tools/projectImporter/scripts/projectImporter.tscript index eca0e0b07..cfdd7c8bf 100644 --- a/Templates/BaseGame/game/tools/projectImporter/scripts/projectImporter.tscript +++ b/Templates/BaseGame/game/tools/projectImporter/scripts/projectImporter.tscript @@ -515,7 +515,7 @@ function testFilenameExtensions(%filename) } function processLegacyField(%line, %originalFieldName, %newFieldName) -{ +{ if(!strIsMatchExpr("*"@%originalFieldName@"=*;*", %line) && !strIsMatchExpr("*"@%originalFieldName@"[*=*;*", %line) && !strIsMatchExpr("*"@%originalFieldName@" *=*;*", %line)) @@ -603,10 +603,10 @@ function processLegacyField(%line, %originalFieldName, %newFieldName) if(!strIsMatchExpr("*\"*\"*", %originalValue)) %assetId = "\"" @ %assetId @ "\""; - //if (%assetId.getStatusString() $= "Ok") - %outLine = strReplace(%outLine, %value, %assetId); - //else - // error("Asset assignment failure:", %assetId, getStatusString()); + %firstPart = getToken(%outLine, "=", 0); + %secondPart = getToken(%outLine, "=", 1); + %secondPart = strReplace(%secondPart, %value, %assetId); + %outLine = %firstPart @ "=" @ %secondPart; } }