mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 04:15:36 +00:00
Merge branch 'Preview4_0' of https://github.com/TorqueGameEngines/Torque3D into Preview4_0
This commit is contained in:
commit
9a809dfb6b
10 changed files with 102 additions and 57 deletions
|
|
@ -1,10 +1,6 @@
|
|||
$Core::windowIcon = "data/icon.png";
|
||||
$Core::splashWindowImage = "data/splash.png";
|
||||
|
||||
// Display a splash window immediately to improve app responsiveness before
|
||||
// engine is initialized and main window created.
|
||||
displaySplashWindow($Core::splashWindowImage);
|
||||
|
||||
// Console does something.
|
||||
setLogMode(6);
|
||||
|
||||
|
|
@ -20,6 +16,13 @@ ModuleDatabase.setModuleExtension("module");
|
|||
ModuleDatabase.scanModules( "core", false );
|
||||
ModuleDatabase.LoadExplicit( "CoreModule" );
|
||||
|
||||
// Display a splash window immediately to improve app responsiveness before
|
||||
// engine is initialized and main window created.
|
||||
if ($Server::Dedicated == false)
|
||||
displaySplashWindow($Core::splashWindowImage);
|
||||
else
|
||||
$Video::forceDisplayAdapter = -1;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Load any gameplay modules
|
||||
ModuleDatabase.scanModules( "data", false );
|
||||
|
|
@ -42,6 +45,7 @@ else
|
|||
}
|
||||
}
|
||||
|
||||
closeSplashWindow();
|
||||
if ($Server::Dedicated == false)
|
||||
closeSplashWindow();
|
||||
|
||||
echo("Engine initialized...");
|
||||
|
|
@ -919,7 +919,7 @@ T3Dpre4ProjectImporter::genProcessor("DebrisData", "shape shapeAsset shapeFile s
|
|||
T3Dpre4ProjectImporter::genProcessor("DecalData", "material materialAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("ExplosionData", "explosionShape explosionShapeAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("ParticleData", "texture textureAsset textureName textureAsset textureExt textureExtAsset textureExtName textureExtAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("PrecipitationData", "drop dropAsset dropTexture dropAsset splash splashAsset splashTexture splashAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("PrecipitationData", "drop dropAsset dropTexture dropAsset splash splashAsset splashTexture splashAsset soundProfile soundAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("SplashData", "texture textureAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("LightFlareData", "flareTexture flareTextureAsset");
|
||||
T3Dpre4ProjectImporter::genProcessor("PhysicsDebrisData", "shape shapeAsset shapeFile shapeAsset");
|
||||
|
|
|
|||
|
|
@ -556,23 +556,49 @@ function processLegacyField(%line, %originalFieldName, %newFieldName)
|
|||
%targetFilename = sanitizeFilename(%value);
|
||||
|
||||
if(isObject(%targetFilename))
|
||||
{
|
||||
if(%originalFieldName $= "soundProfile")
|
||||
{
|
||||
//likely a material name, so handle it that way
|
||||
%assetId = MaterialAsset::getAssetIdByMaterialName(%targetFilename);
|
||||
$ProjectImporter::assetQuery.clear();
|
||||
%foundAssets = AssetDatabase.findAssetName($ProjectImporter::assetQuery, %targetFilename);
|
||||
if(%foundAssets != 0)
|
||||
{
|
||||
%assetId = $ProjectImporter::assetQuery.getAsset(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//likely a material name, so handle it that way
|
||||
%assetId = MaterialAsset::getAssetIdByMaterialName(%targetFilename);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!isFile(%targetFilename))
|
||||
{
|
||||
error("Legacy Project Importer - file described in line could not be found/is not valid");
|
||||
return %line;
|
||||
}
|
||||
|
||||
$ProjectImporter::assetQuery.clear();
|
||||
%foundAssets = AssetDatabase.findAssetLooseFile($ProjectImporter::assetQuery, %targetFilename);
|
||||
if(%foundAssets != 0)
|
||||
{
|
||||
%assetId = $ProjectImporter::assetQuery.getAsset(0);
|
||||
{
|
||||
if(%originalFieldName $= "soundProfile")
|
||||
{
|
||||
$ProjectImporter::assetQuery.clear();
|
||||
%foundAssets = AssetDatabase.findAssetName($ProjectImporter::assetQuery, %targetFilename);
|
||||
if(%foundAssets != 0)
|
||||
{
|
||||
%assetId = $ProjectImporter::assetQuery.getAsset(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
error("Legacy Project Importer - file described in line could not be found/is not valid");
|
||||
return %line;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$ProjectImporter::assetQuery.clear();
|
||||
%foundAssets = AssetDatabase.findAssetLooseFile($ProjectImporter::assetQuery, %targetFilename);
|
||||
if(%foundAssets != 0)
|
||||
{
|
||||
%assetId = $ProjectImporter::assetQuery.getAsset(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue