Hey Vagos, first wanted to say AWSOME SCRIPT DUDE.. i was wondering if you could help me out for a second please.
Im trying to have a go at importing some of the island sections but something is going horribly wrong.
I know the script itself is working as ive imported a couple of cars and its half importing island sections too but something isnt right..
i decided to try loading the same section as you posted images for ( back on page 11 ) section 0-3-4-5. This is what it looks like....
As you can see things didnt go quite like yours. the landscape seems to have no detail whatsoever just a couple of flat sheets,If you look in the bottom right corner of the image there seems to be some buildings but they are all mashed up together.
This is what it said in my MAXscript listener window...
"D:\Game Model Ripping\TDU2\euro\level\ibiza\area-0\area-0-3\sector-0-3-4-5"
"Meshes loaded!"
"49 materials found."
"Materials Loaded!"
-- Error occurred in i loop; filename: D:\Graphix\Autodesk\3ds Max 2010\Scripts\TDU2_mesh_import v2.mcr; position: 7039; line: 241
-- Frame:
-- i: 83
-- called in buildScene(); filename: D:\Graphix\Autodesk\3ds Max 2010\Scripts\TDU2_mesh_import v2.mcr; position: 7082; line: 242
-- Frame:
-- INSAsize: 16336
-- insanum: 84
-- hierarchy: #((hierarchytable name:"DYNAMIC" offset:23536 parent:undefined parentoffset:0 level:1 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])), (hierarchytable name:"BLOCK" offset:23568 parent:"DYNAMIC" parentoffset:23536 level:2 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])), (hierarchytable name:"NETWORK" offset:23600 parent:"DYNAMIC" parentoffset:23536 level:2 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])), (hierarchytable name:"SPECIFIC" offset:23632 parent:"DYNAMIC" parentoffset:23536 level:2 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0])), (hierarchytable name:"SB_BG_I" offset:25616 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [-0.521744,0,0.853102] [-0.0318873,0.999301,-0.0195018] [-0.852506,-0.0373781,-0.521379] [387.421,2.03839,495.09])), (hierarchytable name:"SB_BG_J" offset:25552 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.242552,0,0.970138] [0,1,0] [-0.970138,0,0.242552] [395.776,2.41525,466.434])), (hierarchytable name:"SB_BG_C" offset:25744 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [-0.792871,0,0.609389] [0,1,0] [-0.609389,0,-0.792871] [187.39,2.08566,685.454])), (hierarchytable name:"—F_WSETA" offset:26192 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0,0,0.930703] [0,0.930703,0] [-0.930703,0,0] [311.955,25.4789,762.563])), (hierarchytable name:"˜F_WSETA" offset:26224 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [-1,0,0] [0,1,0] [0,0,-1] [272.261,25.4478,762.392])), (hierarchytable name:"FU_SBOTA" offset:24880 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.560812,-0.0235261,-0.827609] [-0.0927652,0.991517,-0.0910459] [0.82273,0.127833,0.553872] [376.54,0.121651,486.296])), (hierarchytable name:"¥…SBOTA" offset:24848 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [-0.214905,-0.0129004,-0.97655] [-0.125895,0.991936,0.0146015] [0.968487,0.126081,-0.214796] [387.338,1.76624,468.751])), (hierarchytable name:"¥…‘SBOTA" offset:24816 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [-0.270812,-0.113118,-0.955963] [-0.181193,0.981311,-0.0647879] [0.945426,0.155668,-0.286247] [377.259,0.668373,218.752])), (hierarchytable name:"FU_SBOTB" offset:24784 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [367.473,-0.0882887,440.065])), (hierarchytable name:"¥…SBOTB" offset:24656 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.29687,0,-0.954918] [0,1,0] [0.954918,0,0.29687] [335.814,-0.0882887,189.474])), (hierarchytable name:"SB_BG_G" offset:25520 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.556675,0,0.830731] [0,1,0] [-0.830731,0,0.556675] [387.678,1.98923,446.106])), (hierarchytable name:"”F_WSETC" offset:26128 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [-0.00801966,0.0886389,0.996032] [0.000713663,0.996064,-0.088636] [-0.999968,0,-0.00805135] [256.434,25.3849,721.94])), (hierarchytable name:"•F_WSETC" offset:25776 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.989386,0.145312,0] [-0.145312,0.989386,0] [0,0,1] [348.491,25.488,697.113])), (hierarchytable name:"–F_WSETC" offset:25904 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.99974,0.0227914,0] [-0.0227914,0.99974,0] [0,0,1] [319.69,23.5591,697.076])), (hierarchytable name:"•¥ˆSETC" offset:25808 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.985087,-0.0148461,-0.171417] [0.0146263,0.99989,-0.00254515] [0.171436,0,0.985195] [280.688,23.5319,697.027])), (hierarchytable name:"–¥ˆSETC" offset:25936 parent:"SPECIFIC" parentoffset:23632 level:3 matrix:(matrix3 [0.999886,-0.0151186,0] [0.0151186,0.999886,0] [0,0,1] [300.246,23.1158,697.076])), ...)
-- path: #("D:\Game Model Ripping\TDU2\euro\level\ibiza\area-0\area-0-3\sector-0-3-4-5\sector-0-3-4-5-o.3dd", "D:\Game Model Ripping\TDU2\euro\level\ibiza\area-0\area-0-3\sector-0-3-4-5\sector-0-3-4-5.3dd")
-- maxLevel: 6
-- type: "HIEA"
-- filename: "D:\Game Model Ripping\TDU2\euro\level\ibiza\area-0\area-0-3\sector-0-3-4-5"
-- f: <BinStream:D:\Game Model Ripping\TDU2\euro\level\ibiza\area-0\area-0-3\sector-0-3-4-5\sector-0-3-4-5-o.3dd>
-- instances: #((instancestable name:"BLOCK" offset:7376 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0]) materialsoffset:32 meshname:"BLOCK"), (instancestable name:"DYNAMIC" offset:7200 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0]) materialsoffset:undefined meshname:undefined), (instancestable name:"SB_BG_C" offset:13360 matrix:(matrix3 [-0.792871,0,0.609389] [0,1,0] [-0.609389,0,-0.792871] [187.39,2.08566,685.454]) materialsoffset:1824 meshname:"›B_BG_C_"), (instancestable name:"SB_BG_G" offset:12656 matrix:(matrix3 [0.556675,0,0.830731] [0,1,0] [-0.830731,0,0.556675] [387.678,1.98923,446.106]) materialsoffset:1296 meshname:"›B_BG_G_"), (instancestable name:"SB_BG_I" offset:13008 matrix:(matrix3 [-0.521744,0,0.853102] [-0.0318873,0.999301,-0.0195018] [-0.852506,-0.0373781,-0.521379] [387.421,2.03839,495.09]) materialsoffset:1616 meshname:"›B_BG_I_"), (instancestable name:"SB_BG_J" offset:12832 matrix:(matrix3 [0.242552,0,0.970138] [0,1,0] [-0.970138,0,0.242552] [395.776,2.41525,466.434]) materialsoffset:1456 meshname:"›B_BG_J_"), (instancestable name:"NETWORK" offset:7552 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0]) materialsoffset:160 meshname:"NETWORK"), (instancestable name:"—F_WSETA" offset:14240 matrix:(matrix3 [0,0,0.930703] [0,0.930703,0] [-0.930703,0,0] [311.955,25.4789,762.563]) materialsoffset:2080 meshname:"—¥§WSETA"), (instancestable name:"˜F_WSETA" offset:14416 matrix:(matrix3 [-1,0,0] [0,1,0] [0,0,-1] [272.261,25.4478,762.392]) materialsoffset:2144 meshname:"˜¥§WSETA"), (instancestable name:"FU_SBOTA" offset:17056 matrix:(matrix3 [0.560812,-0.0235261,-0.827609] [-0.0927652,0.991517,-0.0910459] [0.82273,0.127833,0.553872] [376.54,0.121651,486.296]) materialsoffset:1104 meshname:"¥_SBOTA"), (instancestable name:"¥…SBOTA" offset:16880 matrix:(matrix3 [-0.214905,-0.0129004,-0.97655] [-0.125895,0.991936,0.0146015] [0.968487,0.126081,-0.214796] [387.338,1.76624,468.751]) materialsoffset:1104 meshname:"¥_SBOTA"), (instancestable name:"¥…‘SBOTA" offset:11952 matrix:(matrix3 [-0.270812,-0.113118,-0.955963] [-0.181193,0.981311,-0.0647879] [0.945426,0.155668,-0.286247] [377.259,0.668373,218.752]) materialsoffset:1104 meshname:"¥_SBOTA"), (instancestable name:"˜F_WSETB" offset:10368 matrix:(matrix3 [-0.589527,0,0.807749] [0,1,0] [-0.807749,0,-0.589527] [755.887,52.0563,420.063]) materialsoffset:704 meshname:"˜¥§WSETB"), (instancestable name:"FU_SBOTB" offset:16704 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [367.473,-0.0882887,440.065]) materialsoffset:896 meshname:"¥_SBOTB"), (instancestable name:"¥…SBOTB" offset:11248 matrix:(matrix3 [0.29687,0,-0.954918] [0,1,0] [0.954918,0,0.29687] [335.814,-0.0882887,189.474]) materialsoffset:896 meshname:"¥_SBOTB"), (instancestable name:"SPECIFIC" offset:7728 matrix:(matrix3 [1,0,0] [0,1,0] [0,0,1] [0,0,0]) materialsoffset:undefined meshname:undefined), (instancestable name:"”F_WSETC" offset:13888 matrix:(matrix3 [-0.00801966,0.0886389,0.996032] [0.000713663,0.996064,-0.088636] [-0.999968,0,-0.00805135] [256.434,25.3849,721.94]) materialsoffset:1984 meshname:"”¥§WSETC"), (instancestable name:"•F_WSETC" offset:13536 matrix:(matrix3 [0.989386,0.145312,0] [-0.145312,0.989386,0] [0,0,1] [348.491,25.488,697.113]) materialsoffset:1888 meshname:"•¥§WSETC"), (instancestable name:"–F_WSETC" offset:13712 matrix:(matrix3 [0.99974,0.0227914,0] [-0.0227914,0.99974,0] [0,0,1] [319.69,23.5591,697.076]) materialsoffset:1936 meshname:"–¥§WSETC"), (instancestable name:"•¥ˆSETC" offset:20576 matrix:(matrix3 [0.985087,-0.0148461,-0.171417] [0.0146263,0.99989,-0.00254515] [0.171436,0,0.985195] [280.688,23.5319,697.027]) materialsoffset:1888 meshname:"•¥§WSETC"), ...)
-- MBNAsize: 2192
-- OBJAsize: 3616
-- called in anonymous codeblock; filename: D:\Graphix\Autodesk\3ds Max 2010\Scripts\TDU2_mesh_import v2.mcr; position: 1603; line: 40
-- Frame:
-- modelpath: "D:\Game Model Ripping\TDU2\euro\level\ibiza\area-0\area-0-3\sector-0-3-4-5"
-- convertTex: false
>> MAXScript MacroScript Error Exception: -- No "">"" function for undefined <<
i know that last line is regarding hierarchy which would probably explain why the buildings are all mashed in the corner together, if the hierarchy has failed in some way it doesnt know how to distribute the objects anymore. while it would be nice to get that sorted too my main concern is the landscape not loading with any kind of detail.
If you have any idea what could be happening or how i can get around this, then the help would be greatly appreciated.