Game Development Community

TGE 1.5.2 and Constructor 1.0.3 crash

by Andy Hawkins · in Constructor · 09/30/2007 (9:32 am) · 3 replies

When I use file->export dif and load an interior into TGE 1.5.2 it crashes. Am I supposed to be using Legacy DIF or something? Which version of map2dif will work?

#1
09/30/2007 (11:37 am)
I think I've had that happen once. I cannot remember what was causing it, only that it was easily fixed (in my case). I may have just re-exported it. Is there anything unusual or complex about it? And are you saving it as .CSX or .MAP?

(I'd also suggest sticking with regular as opposed to legacy DIF.)
#2
09/30/2007 (10:26 pm)
Fixed it.

It was opening .map files that didn't contain world spawn data.

I realised this when I looked at the .txt file generated after the export.

C:/Torque/TGE_1_5_2/example/game/data/interiors/Buildings/BuildingA/bda.dif

Constructor Version: 1.0.3

Date: 2007/10/01 12:57:10

Detail Level 0

  Zones:         1
  Points:        0
  Surfaces:      0
  Null Surfaces: 0
  BSP Nodes:     0

  Textures From Brushes:
    -- None --

  Static Meshes and Textures:
    -- None --

I selected a brush from a working cube I made, and in the properties for the object in Constructor it said Structural.

I check all brushes from the original building and they were all set to 'other'

I selected all and changed to 'Structural', the parent changes to 'worldspawn', I then exported and I got this...(the clue that it's working it takes longer to export)

C:/Torque/TGE_1_5_2/example/game/data/interiors/Buildings/BuildingA/bda.dif

Constructor Version: 1.0.3

Date: 2007/10/01 13:00:24

Detail Level 0

  Zones:         1
  Points:        7668
  Surfaces:      3404
  Null Surfaces: 0
  BSP Nodes:     7057

  Textures From Brushes:
    CONCRET3
    RTBRICB_DK
    CONCRETE4A
    RTBRICB_DKTR
    CRETE32B
    CRETE41
    RTBRICB_DKPIE
    RTBRICB_TRIMMLE
    B_03
    CRUSTDOOR2
    ALG-BRICK
    METWALL02A

  Static Meshes and Textures:

    -- None --

Almost working - no LOD - ... so I went to the source and did this...

Open the .map file in notepad and add "classname" "worldspawn"
right after the first {
..for all map files (LOD) _0, _1, _2 and _3

Then I exported using File->Export Dif - and I got a building but faces were flipped and LOD wasn't happening.

So finally I used File->Export->Map2Dif supplied with Constructor 1.0.3. Initially I tried to run it from where Constructor was installed but it said "can't find Program..." meaning it couldn't handle spaces to locations such as "C:\Program Files"

So I moved map2difplus to C:\Utils remapped the location by editing it in Constructor, ran it and got a working dif with LOD. Whew!!!

This was done to port Tim Aste's combo pack 2. So I'll copy this info there too.
#3
10/01/2007 (8:48 am)
Thats some pretty interesting stuff there. Thanks for passing the info on.


James-