Game Development Community

Problem loading DIF TGEA 1.0.2 and Constructor 1.0.3

by Andy Hawkins · in Torque Game Engine Advanced · 08/16/2007 (9:25 pm) · 3 replies

So I export as DIF with Constructor 1.0.3 and import into TGEA 1.0.2 - huge crash!

I export as ... Map2Dif_plus_tse and it spawns an error

Interior::read: incompatible file version found.
Unable to read detail level 0 in interior resource

Question is, how can I export out of Constructor 1.0.3 in a format that TGEA 1.0.2 can read please?

#1
08/16/2007 (10:34 pm)
Hmm... sorry to waste people's time. I think I may have been running TGEA 1.0.1. I couldn't find a version number but I did a winmerge (after I installedl a fresh copy of 1.0.2 exported from Constructor 1.0.3 using the default DIF and it worked) and saw many file changes. Here's an example. I'm not sure what version of TGEA I was running.

Old code in tsStatic.cpp
F32 invScale = (1.0f/getMax(getMax(mObjScale.x,mObjScale.y),mObjScale.z));
      DetailManager::selectPotentialDetails(mShapeInstance,dist,invScale);
      if (mShapeInstance->getCurrentDetail()<0)
         return false;
New code...
DetailManager::selectPotentialDetails(mShapeInstance,getRenderTransform(),state);
      if (mShapeInstance->getCurrentDetail()<0)
         return false;
#2
08/17/2007 (6:41 am)
Have you tried just exporting to DIF rather than map2dif for TGEA? I did that yesterday and it seemed to work fine.
#3
08/17/2007 (7:27 am)
Fixed it. Upgraded to TGEA 1.0.2 and Constructor 1.0.3 - Load map into Constructor -> File->Export DIF.