Page 5 of 5 FirstFirst ... 3 4 5
Results 41 to 49 of 49

Thread: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

  1. #41
    Reloading! Terin's Avatar
    Join Date
    May 2007
    Posts
    830

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    I remade the map, and now I get a different error. It says "Runtime Error -- Mesh operation on Non-Mesh: Editable Poly" That seems like an error on my part, but I'm pretty sure I did everything right.

    local xyz = in coordsys local (getVert objs[j] uniqueVert_vertIndex[v])

    That's the line it stops on.

    Quote Originally Posted by Listener
    -- Error occurred in V loop; filename: C:\Program Files\Autodesk\3ds Max 9\scripts\startup\ASS-Exporter_v1-0-0.ms; position: 9987
    -- Frame:
    -- uv: undefined
    -- ijk: undefined
    -- xyz: undefined
    -- V: 1
    -- called in j loop; filename: C:\Program Files\Autodesk\3ds Max 9\scripts\startup\ASS-Exporter_v1-0-0.ms; position: 10396
    -- Frame:
    -- j: 2
    -- numUniqueVerts: 36
    -- face_shader_index: #(1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2)
    -- uvw: #()
    -- ijk: #()
    -- vertIndex_uniqueVert_map: #(#(1, 6, 13, 18, 32), #(2, 17, 19, 24), #(5, 28, 29), #(3, 4, 23, 25), #(7, 12, 14, 31), #(11, 15, 16, 20), #(8, 27, 30), #(9, 10, 21, 22, 26), #(33), #(34), #(35), #(36))
    -- face_vert_indices: #(#(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), #(27, 28, 25), #(29, 30, 31), #(31, 32, 29), #(33, 34, 35), #(35, 36, 33))
    -- material_index: undefined
    -- en: Edit_Normals:Edit Normals
    -- xyz: #()
    -- tmesh: TriMesh
    -- uniqueVert_tvertUV: #([0.00249758,0.00249878], [4.9975,0.00249758], [4.9975,4.9975], [4.9975,4.9975], [0.00249878,4.9975], [0.00249758,0.00249878], [0,0], [0,1], [1,1], [1,1], [1,0], [0,0], [0,0], [0,1], [1,1], [1,1], [1,0], [0,0], [0,0], [0,1], ...)
    -- uniqueVert_normalID: #(1, 2, 3, 5, 6, 7, 9, 10, 11, 13, 14, 15, 17, 18, 19, 21, 22, 23, 25, 26, ...)
    -- uniqueVert_vertIndex: #(1.0, 2.0, 4.0, 4.0, 3.0, 1.0, 5.0, 7.0, 8.0, 8.0, 6.0, 5.0, 1.0, 5.0, 6.0, 6.0, 2.0, 1.0, 2.0, 6.0, ...)
    -- numfaces: 14
    -- called in export_button.pressed(); filename: C:\Program Files\Autodesk\3ds Max 9\scripts\startup\ASS-Exporter_v1-0-0.ms; position: 10814
    -- Frame:
    -- sub_slot_name: #("", "")
    -- output_name: "C:\Program Files\Microsoft Games\Halo 2 Map Editor\data\file.ASS"
    -- numInstances: undefined
    >> MAXScript Rollout Handler Exception: -- Runtime error: Mesh operation on non-mesh: Editable Poly <<
    Is it a problem with the script? Or a problem with my geometry? Or something else?
    Reply With Quote

  2. #42
    The One and Only TheGhost's Avatar
    Join Date
    Aug 2006
    Location
    San Francisco, CA
    Posts
    2,727

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    Your geometry isn't of the type "editable mesh" or with the modifier "edit mesh"
    Reply With Quote

  3. #43

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    I really want a gmax exporter :hyper:
    Reply With Quote

  4. #44
    Reloading! Terin's Avatar
    Join Date
    May 2007
    Posts
    830

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    So I just need to convert it to an editable mesh?

    Hey, it worked! Thank you for the help, and thank you for making this script. Maybe next you can listen to Mr. Spastic above me and make it work with Gmax, too? :P

    EDIT: Great, I did some editing to the geometry, moved the frame, and now I have that same error as before.

    Quote Originally Posted by Listener
    -- Error occurred in f loop; filename: C:\Program Files\Autodesk\3ds Max 9\scripts\startup\ASS-Exporter_v1-0-0.ms; position: 9621
    -- Frame:
    -- matID: 2
    -- tverts: [1,33,34]
    -- verts: [1,2,3]
    -- f: 1
    -- vert_indices: #(1, 2, 3)
    -- called in j loop; filename: C:\Program Files\Autodesk\3ds Max 9\scripts\startup\ASS-Exporter_v1-0-0.ms; position: 9651
    -- Frame:
    -- uvw: #()
    -- ijk: #()
    -- vertIndex_uniqueVert_map: #(#(1), #(2), #(3))
    -- face_vert_indices: #(#(1, 2, 3))
    -- material_index: undefined
    -- en: Edit_Normals:Edit Normals
    -- xyz: #()
    -- tmesh: TriMesh
    -- uniqueVert_tvertUV: #([0,1], [0,0.9375], [0.03125,0.9375])
    -- uniqueVert_normalID: #(1, 2, 3)
    -- uniqueVert_vertIndex: #(1.0, 2.0, 3.0)
    -- numfaces: 960
    -- j: 1
    -- numUniqueVerts: 3
    -- face_shader_index: #()
    -- called in export_button.pressed(); filename: C:\Program Files\Autodesk\3ds Max 9\scripts\startup\ASS-Exporter_v1-0-0.ms; position: 10814
    -- Frame:
    -- sub_slot_name: #("", "")
    -- output_name: "C:\Program Files\Microsoft Games\Halo 2 Map Editor\data\scenarios\multi\mylevel\structure\myle vel.ASS"
    -- numInstances: undefined
    >> MAXScript Rollout Handler Exception: -- No ""get"" function for undefined <<
    What would I need to do to fix this?
    Last edited by Terin; July 27th, 2007 at 04:19 PM.
    Reply With Quote

  5. #45
    The One and Only TheGhost's Avatar
    Join Date
    Aug 2006
    Location
    San Francisco, CA
    Posts
    2,727

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    What line of the script is highlighted?
    Reply With Quote

  6. #46
    Reloading! Terin's Avatar
    Join Date
    May 2007
    Posts
    830

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    face_shader_index[f] = (findItem materials objs[j].material[matID]), I remember.

    But I recently deleted the frame (the script selected it after the error happened) and recreated it, and it seemed to export. I think it was because I had somehow turned it into an Editable Poly.
    Reply With Quote

  7. #47
    The One and Only TheGhost's Avatar
    Join Date
    Aug 2006
    Location
    San Francisco, CA
    Posts
    2,727

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    Well it's trying to figure out what shader goes on the frame, so you've set something up wrong. The frame isn't part of the geometry so it shouldn't be trying to figure out what material goes on it. I'll probably be re-writing the script that's more user-friendly and will also work with gmax.
    Reply With Quote

  8. #48
    The One and Only TheGhost's Avatar
    Join Date
    Aug 2006
    Location
    San Francisco, CA
    Posts
    2,727

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    I've gone through a number of threads for this and past exporters, and it seems the number one spot people get errors is with not setting up materials correctly. I'll try to put some catches in there so that the script won't fail if the user sets up the materials incorrectly or does not set one up at all.

    Anyways, the new version 1.1.0 is coming along nicely. The code was fully re-written, and while it takes a bit longer to create the file, the code is much cleaner and should be better overall. Possible support for gmax and instance geometry.
    Reply With Quote

  9. #49

    Re: [Script] BlueStreak .ASS Exporter for 3ds max v6.0+

    i am having a problem and i didnt see you explain this error and how to fix it

    Code:
    -- Error occurred in f loop; filename: C:\Program Files (x86)\Autodesk\3ds Max 9\Scripts\ASS-Exporter_v1-0-0.ms; position: 9621
    --  Frame:
    --   tverts: [1,33,34]
    --   verts: [1,2,3]
    --   vert_indices: #(1, 2, 3)
    --   matID: 2
    --   f: 1
    --   called in j loop; filename: C:\Program Files (x86)\Autodesk\3ds Max 9\Scripts\ASS-Exporter_v1-0-0.ms; position: 9651
    --  Frame:
    --   vertIndex_uniqueVert_map: #(#(1), #(2), #(3))
    --   j: 1
    --   xyz: #()
    --   material_index: undefined
    --   uvw: #()
    --   uniqueVert_vertIndex: #(1.0, 2.0, 3.0)
    --   numfaces: 960
    --   uniqueVert_tvertUV: #([0,1], [0,0.9375], [0.03125,0.9375])
    --   face_shader_index: #()
    --   tmesh: TriMesh
    --   numUniqueVerts: 3
    --   ijk: #()
    --   uniqueVert_normalID: #(1, 2, 3)
    --   face_vert_indices: #(#(1, 2, 3))
    --   en: Edit_Normals:Edit Normals
    --   called in export_button.pressed(); filename: C:\Program Files (x86)\Autodesk\3ds Max 9\Scripts\ASS-Exporter_v1-0-0.ms; position: 10814
    --  Frame:
    --   numInstances: undefined
    --   output_name: "C:\Program Files (x86)\Microsoft Games\Halo 2 Map Editor\data\scenarios\multi\ravien\structure\ravien.ASS"
    --   sub_slot_name: #("", "", "", "")
    >> MAXScript Rollout Handler Exception: -- No ""get"" function for undefined <<
    "face_shader_index[f] = (findItem materials objs[j].material[matID])"
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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