A fatal error has occured. Director will quit now.

Ask a Question related to Macromedia Director 3D, Design and Development.

  1. #1

    Default A fatal error has occured. Director will quit now.

    I use havok and I have problem:
    'A fatal error has occured. Director will quit now.'
    Which one is wrong?

    Please check this script:

    --I wrote all property ofcourse, in my script

    on beginSprite me
    pSprite = sprite(me.spriteNum)
    pMember = pSprite.member
    pHavok = member("HavokMember")

    pMember.resetWorld()

    pCamera = pSprite.camera
    me.setupCamera()
    end

    on enterFrame me
    me.createPhysicalObjects()
    end

    on createPhysicalObjects me
    --motor
    m = pMember.model("gMerah")
    m.addModifier(#meshdeform)
    rb = pHavok.makeMovableRigidBody(m.name, 100)

    --road
    m = pMember.model("jalan")
    m.addModifier(#meshdeform)
    rb = pHavok.makeFixedRigidBody(m.name)

    --boundary
    m = pMember.model("pagar")
    m.addModifier(#meshdeform)
    rb = pHavok.makeFixedRigidBody(m.name)

    end

    on setupCamera me
    pModel = pMember.model("gMerah")
    newCam = pMember.newCamera("hangCamera")
    newCam.transform.position = pModel.transform.position + vector(40.000, 22.000,
    -1.000)

    newCam.transform.rotation = vector(0.000, 90.000, 0.000)

    pSprite.camera = pMember.camera("hangCamera")

    pModel.addChild(pMember.camera("hangCamera"), #preserveParent)

    end

    Please let me know.
    Thanks in advance. :grin;

    rul_a Guest

  2. Similar Questions and Discussions

    1. Error Occured While Processing Document
      I just installed ColdFusion 6.1 today on a Windows 2000 Server running IIS 5.0. I configured it to use IIS as the external server. The installation...
    2. Error occured while loading np-ppc-dir-shockwave
      I have installed the newest version of shockwave from the macromedia website on an eMac running 10.3.9. When I go to this website, ...
    3. Getting the last query when an error occured
      HI ! Well, another one ! :) Yes, once again a little question for the newsgroup ! So i begin my explanation : with ESQL/C As all my "C"...
    4. fatal error Director will close now
      Hi there, I wanted to know why I am getting a fatal error when I try to do this movie script. Here's the code... on startMovie cardWidth =...
    5. Exception occured error
      I'm getting an Exception occured error on line 4 (For i =1...) <% Function ProperCase(strIn) strOut = "" boolUp = True For i = 1 To Len(strIn)...
  3. #2

    Default Re: A fatal error has occured. Director will quit now.

    Did you debug it? Does it happen at the same spot every time, or more randomly?

    Your createPhysicalObjects() on enterFrame looks most suspect to me... I would
    think you want to setup the physics only once on beginsprite.

    tedalde2 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139