doubleshadow's DBOX2 (1.11)

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

User avatar
halo112358
Posts: 374
Joined: Thu, 16. Feb 06, 07:56
x3

Post by halo112358 » Thu, 19. Apr 07, 12:53

Thanks :D I was really wondering why my defintions were coming out wrong..
*** modified ***

[ external image ]

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Thu, 19. Apr 07, 18:04

Does this only work with certain versions of 3dsMax? I installed it with 3dsMax 7 and the plugin doesn't get loaded, or even listed as an available plugin.

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Fri, 20. Apr 07, 08:04

Graxster wrote:Does this only work with certain versions of 3dsMax? I installed it with 3dsMax 7 and the plugin doesn't get loaded, or even listed as an available plugin.
And why it should be? It's not a 3ds Max plugin. Nobody said it is a 3ds Max plugin in the last 3 years IIRC. It's a MaxScript program.

Read the readme. [3ds max]\scripts\dbox2\readme.txt

Or the FAQ.

User avatar
Graxster
Posts: 817
Joined: Sat, 14. Oct 06, 01:01
x3tc

Post by Graxster » Fri, 20. Apr 07, 17:16

Sorry, my bad. I was reading Northstar's Modding Guide, in which he says "You also need the DBOX plugin so that the bod files can be imported into your 3d editor." I guess RTFM applies here. :D

-G

HammerSun
Posts: 94
Joined: Tue, 12. Dec 06, 12:15
x4

Post by HammerSun » Tue, 1. May 07, 16:37

It's my first time to use doubleshadow's fantastic works: DBOX2.
And I read the Help file sentence by sentence, after some problem solved, now I can import .bod and scene flies,.
BUT, when i try to export .bod file <I'm SURED select file type: Body in Exporter>, it saved a file less than 1k big, and not a really .bod file.
Can anyone tell me where is the problem?
BTW, i'm using 3DsMax8.0.
Thanks for helping me.

User avatar
laux
Posts: 2609
Joined: Sun, 7. Mar 04, 11:39
x3tc

Post by laux » Tue, 1. May 07, 17:33

HammerSun wrote:It's my first time to use doubleshadow's fantastic works: DBOX2.
And I read the Help file sentence by sentence, after some problem solved, now I can import .bod and scene flies,.
BUT, when i try to export .bod file <I'm SURED select file type: Body in Exporter>, it saved a file less than 1k big, and not a really .bod file.
Can anyone tell me where is the problem?
BTW, i'm using 3DsMax8.0.
Thanks for helping me.
Can you post the entry of your file?

HammerSun
Posts: 94
Joined: Tue, 12. Dec 06, 12:15
x4

Post by HammerSun » Tue, 1. May 07, 19:05

Can you post the entry of your file?
This is exported .bod file's content:
Spoiler
Show
/# Exported with dbox2 1.8 from S37.max at 2007-5-2 1:02:26
MATERIAL6: 0; 0;
And this is Maxscript Monitor record
DBOX2> Writing data to C:\Documents and Settings\Piggy\桌面\s37.bod...
-- 在 writeStandardMaterial() 中发生错误; 文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 3936
-- 帧:
-- m: Metal_ChromeFast:Standard
-- tex: undefined
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\s37.bod> newline:"
" usingListener:false)
-- mat6: true
Last edited by HammerSun on Tue, 1. May 07, 20:55, edited 1 time in total.

User avatar
laux
Posts: 2609
Joined: Sun, 7. Mar 04, 11:39
x3tc

Post by laux » Tue, 1. May 07, 20:08

Code: Select all

/# Exported with dbox2 1.8 from S37.max at 2007-5-2 1:02:26
MATERIAL6: 0; 0; 

Code: Select all

-- m: Metal_ChromeFast:Standard  ???
I get almost the same result, if I use for example a mental ray material.

HammerSun
Posts: 94
Joined: Tue, 12. Dec 06, 12:15
x4

Post by HammerSun » Tue, 1. May 07, 20:54

laux wrote:

Code: Select all

/# Exported with dbox2 1.8 from S37.max at 2007-5-2 1:02:26
MATERIAL6: 0; 0; 

Code: Select all

-- m: Metal_ChromeFast:Standard  ???
I get almost the same result, if I use for example a mental ray material.
Thanks for your answer, I pasted above is just picked up some model to export....... It's my fault.

Now i recorded the X3 model export error. Seems still a MATERIAL error. :cry:
Spoiler
Show
DBOX2> Writing data to C:\Documents and Settings\Piggy\桌面\argon_S37.bod...
-- 在 writeXMaterialAsMat6Big() 中发生错误; 文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 5783
-- 帧:
-- m: SM 1:X3_Material
-- matIdx: 0
-- xmat: (XMaterial6 flags:0 technique:0 Shader:"" values:#((X3MatMaterialValue name:"diffcompression" value:false), (X3MatMaterialValue name:"bumpcompression" value:false), (X3MatMaterialValue name:"speccompression" value:false), (X3MatMaterialValue name:"lightcompression" value:false), (X3MatMaterialValue name:"nofiltering" value:false), (X3MatMaterialValue name:"autofree" value:false), (X3MatMaterialValue name:"Tex2" value:false), (X3MatMaterialValue name:"TexAnimStartU" value:0.0), (X3MatMaterialValue name:"TexAnimStartV" value:0.0), (X3MatMaterialValue name:"TexAnimEndU" value:0.0), (X3MatMaterialValue name:"TexAnimEndV" value:0.0), (X3MatMaterialValue name:"TexAnimDuration" value:0.0), (X3MatMaterialValue name:"TexAnimRotation" value:0.0), (X3MatMaterialValue name:"TexAnimOriginU" value:0.5), (X3MatMaterialValue name:"TexAnimOriginV" value:0.5), (X3MatMaterialValue name:"Brightness" value:1.0), (X3MatMaterialValue name:"contrast" value:1.0), (X3MatMaterialValue name:"saturation" value:1.0), (X3MatMaterialValue name:"hue" value:0.0), (X3MatMaterialValue name:"colormatrix" value:false), ...) color_names:#("g_MatEmissiveColor", "g_LightAmbientIntensity", "g_Color_Envipaint", "LightDir_Color0"))
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- type: undefined
-- val: undefined
-- 在 writeSimpleMaterial()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 2819
-- 帧:
-- m: SM 1:X3_Material
-- matIdx: 0
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- 在 i loop中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 7376
-- 帧:
-- i: 1
-- 在 writeMaterial()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 7422
-- 帧:
-- matIdxStart: 0
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- mat: #Multi/Sub-Object:Multimaterial(X3 Material:SM 1, X3 Material:SM 2, X3 Material:SM 3, X3 Material:SM 4, X3 Material:SM 5, X3 Material:SM 6, X3 Material:SM 7, X3 Material:SM 8, X3 Material:SM 9, X3 Material:SM 10, X3 Material:SM 11, X3 Material:SM 12, X3 Material:SM 13, X3 Material:SM 14, X3 Material:SM 15, X3 Material:SM 16, X3 Material:SM 17, X3 Material:SM 18, X3 Material:SM 19, X3 Material:SM 20, X3 Material:SM 21, X3 Material:SM 22, X3 Material:SM 23, X3 Material:SM 24, X3 Material:SM 25, X3 Material:SM 26, X3 Material:SM 27, X3 Material:SM 28, X3 Material:SM 29, X3 Material:SM 30, X3 Material:SM 31, X3 Material:SM 32, X3 Material:SM 33, X3 Material:SM 34, X3 Material:SM 35, X3 Material:SM 36, X3 Material:SM 37, X3 Material:SM 38, X3 Material:SM 39, X3 Material:SM 40, X3 Material:SM 41, X3 Material:SM 42, X3 Material:SM 43, X3 Material:SM 44, X3 Material:SM 45, X3 Material:SM 46, X3 Material:SM 47, X3 Material:SM 48)
-- 在 writeNodeMaterials()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 8354
-- 帧:
-- matIdxStart: 0
-- n: $Bships\argon\argon_M6_1b
-- matOffsets: #(0)
-- usedMats: #(#Multi/Sub-Object:Multimaterial(X3 Material:SM 1, X3 Material:SM 2, X3 Material:SM 3, X3 Material:SM 4, X3 Material:SM 5, X3 Material:SM 6, X3 Material:SM 7, X3 Material:SM 8, X3 Material:SM 9, X3 Material:SM 10, X3 Material:SM 11, X3 Material:SM 12, X3 Material:SM 13, X3 Material:SM 14, X3 Material:SM 15, X3 Material:SM 16, X3 Material:SM 17, X3 Material:SM 18, X3 Material:SM 19, X3 Material:SM 20, X3 Material:SM 21, X3 Material:SM 22, X3 Material:SM 23, X3 Material:SM 24, X3 Material:SM 25, X3 Material:SM 26, X3 Material:SM 27, X3 Material:SM 28, X3 Material:SM 29, X3 Material:SM 30, X3 Material:SM 31, X3 Material:SM 32, X3 Material:SM 33, X3 Material:SM 34, X3 Material:SM 35, X3 Material:SM 36, X3 Material:SM 37, X3 Material:SM 38, X3 Material:SM 39, X3 Material:SM 40, X3 Material:SM 41, X3 Material:SM 42, X3 Material:SM 43, X3 Material:SM 44, X3 Material:SM 45, X3 Material:SM 46, X3 Material:SM 47, X3 Material:SM 48))
-- matIdx: 0
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- 在 node loop中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 8795
-- 帧:
-- node: $Bships\argon\argon_M6_1b
-- 在 b loop中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 8835
-- 帧:
-- b: (body nodes:#($Bships\argon\argon_M6_1b) LOD:100)
-- 在 writeAllMaterials()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 8840
-- 帧:
-- matIdxStart: 0
-- matOffsets: #(0)
-- usedMats: #(#Multi/Sub-Object:Multimaterial(X3 Material:SM 1, X3 Material:SM 2, X3 Material:SM 3, X3 Material:SM 4, X3 Material:SM 5, X3 Material:SM 6, X3 Material:SM 7, X3 Material:SM 8, X3 Material:SM 9, X3 Material:SM 10, X3 Material:SM 11, X3 Material:SM 12, X3 Material:SM 13, X3 Material:SM 14, X3 Material:SM 15, X3 Material:SM 16, X3 Material:SM 17, X3 Material:SM 18, X3 Material:SM 19, X3 Material:SM 20, X3 Material:SM 21, X3 Material:SM 22, X3 Material:SM 23, X3 Material:SM 24, X3 Material:SM 25, X3 Material:SM 26, X3 Material:SM 27, X3 Material:SM 28, X3 Material:SM 29, X3 Material:SM 30, X3 Material:SM 31, X3 Material:SM 32, X3 Material:SM 33, X3 Material:SM 34, X3 Material:SM 35, X3 Material:SM 36, X3 Material:SM 37, X3 Material:SM 38, X3 Material:SM 39, X3 Material:SM 40, X3 Material:SM 41, X3 Material:SM 42, X3 Material:SM 43, X3 Material:SM 44, X3 Material:SM 45, X3 Material:SM 46, X3 Material:SM 47, X3 Material:SM 48))
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- bodies: #((body nodes:#($Bships\argon\argon_M6_1b) LOD:100))
-- 在 write()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_body_writer.ms; 位置: 18211
-- 帧:
-- bodyIdx: undefined
-- matOffsets: #(0)
-- oldCmdMode: undefined
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- sizeMod: undefined
-- col: $selection
-- tmpSizeMod: undefined
-- selectionOnly: true
-- bodies: #((body nodes:#($Bships\argon\argon_M6_1b) LOD:100))
-- nodeList: undefined
-- 在 writeBod()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_writer.ms; 位置: 1441
-- 帧:
-- bRes: false
-- isCut: false
-- writer: (BodBodyWriter settings:(DBoxSettings debug_flags:0 dataRoot:"H:\X3-ship" componentsFileName:"H:\X3-ship\types\Components.txt" importer_compatibility:3 importer_createXMaterial:true importer_highestLODOnly:true importer_detachParts:false importer_loadAnims:true importer_loadSubscenes:false importer_alternateUVW:true exporter_compatibility:3 exporter_writeAnims:false exporter_sceneIgnoreSpecialParts:false exporter_resetXForm:false exporter_grabber:1))
-- os: (dboxOFileStream stream:<File:C:\Documents and Settings\Piggy\桌面\argon_S37.bod> newline:"
" usingListener:false)
-- selectionOnly: true
-- filename: "C:\Documents and Settings\Piggy\桌面\argon_S37.bod"
-- 在 exportBODFile2()中调用;文件名: D:\3dsMax8\scripts\DBOX2\bod_exporter_gui.ms; 位置: 2480
-- 帧:
-- isCut: false
-- writer: (BodWriter settings:(DBoxSettings debug_flags:0 dataRoot:"H:\X3-ship" componentsFileName:"H:\X3-ship\types\Components.txt" importer_compatibility:3 importer_createXMaterial:true importer_highestLODOnly:true importer_detachParts:false importer_loadAnims:true importer_loadSubscenes:false importer_alternateUVW:true exporter_compatibility:3 exporter_writeAnims:false exporter_sceneIgnoreSpecialParts:false exporter_resetXForm:false exporter_grabber:1))
-- selectionOnly: true
-- filename: "C:\Documents and Settings\Piggy\桌面\argon_S37.bod"
>> MAXScript卷展栏处理程序异常: -- 未知属性:“diffuseMapEnable”位于:Standard <<

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Wed, 2. May 07, 09:39

@HammerSun - I've looked at both your threads and it seems to me like you have some problem with the StandardMaterial (build-in object in MaxScript).

Even though my Chinese is not so good to decypher this:

Code: Select all

>> MAXScript卷展栏处理程序异常: -- 未知属性:“diffuseMapEnable”位于:Standard <<
I bet it's the same error as in your previous (or was it newer?) thread DBOX2 abnormal in 3DsMax.

You seem to be running Max 8.0 SP2 (from the picture you've posted). Try upgrading to SP 3. That's what I'm using.

I can't help you any further as there is no error in my code - as far as I can tell. It's either the obsolete service pack or it may have something to do with the fact that you are using Chienese Windows? (or even 3ds Max?). It's unlikely, but you are the first one with these problems, so you never know...

HammerSun
Posts: 94
Joined: Tue, 12. Dec 06, 12:15
x4

Post by HammerSun » Wed, 2. May 07, 10:44

doubleshadow wrote:@HammerSun - I've looked at both your threads and it seems to me like you have some problem with the StandardMaterial (build-in object in MaxScript).

Even though my Chinese is not so good to decypher this:

Code: Select all

>> MAXScript卷展栏处理程序异常: -- 未知属性:“diffuseMapEnable”位于:Standard <<
I bet it's the same error as in your previous (or was it newer?) thread DBOX2 abnormal in 3DsMax.

You seem to be running Max 8.0 SP2 (from the picture you've posted). Try upgrading to SP 3. That's what I'm using.

I can't help you any further as there is no error in my code - as far as I can tell. It's either the obsolete service pack or it may have something to do with the fact that you are using Chienese Windows? (or even 3ds Max?). It's unlikely, but you are the first one with these problems, so you never know...
Okay, thanks for your advice, maybe it's problem with chinese verb 3Dsmax .
And this

Code: Select all

>> MAXScript卷展栏处理程序异常: -- 未知属性:“diffuseMapEnable”位于:Standard <<
Probably means MaxScript scroll processing abnormal: --Unknow attribute :“diffuseMapEnable" at :Standard.
Why i say probably, caz the translation of chinese verb Max more intricate than ENG verb..... :cry:

HammerSun
Posts: 94
Joined: Tue, 12. Dec 06, 12:15
x4

Post by HammerSun » Thu, 3. May 07, 03:47

Hi doubleshadow, I mail my mesh file to my friend who using an ENG verb Max with chinese verb windowsXP.
And, export the body file successfully.
We now can confirm the problem caused by chinese verb of Max itself.
Maybe the double-byte code instead of single-byte code.
Anyway, thanks for shareing you DBOX.

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Thu, 3. May 07, 08:39

You can do a little test:

Open the MaxScript Listener window and type:

Code: Select all

m=standard()
press enter.

You should see

Code: Select all

Standardmaterial:Standard
Now write

Code: Select all

showProperties m
press enter.

You should see list of all properties supported by this class.
Example:

Code: Select all

.shaderType (Shader_Type) : integer
.wire : boolean
.twoSided (Two_sided) : boolean
I would like to know if they will be in English or Chinese.

Finally try to read one of the properties. Write

Code: Select all

m.diffusemapEnable
press enter.

you should see

Code: Select all

false
- or true - but not error.

User avatar
halo112358
Posts: 374
Joined: Thu, 16. Feb 06, 07:56
x3

Post by halo112358 » Thu, 3. May 07, 11:41

DBOX doesn't seem to be importing LOD meshes with proper orientation

See here:

[ external image ]
[ external image ]

The LOD meshes are not rotated to the same orientation as the LOD 0 mesh.

Code: Select all

source file: objects\stations\station_scenes\others\argon_mineA_ore_S_scene.bod

P 0; B environments\asteroids\asteroid_A_ClassMine; N Benvironments\asteroids\asteroid_A_ClassMine; b
  { 0xe082;  0; 0; 0;  0.000000;0.000000;0.000000;0.000000;0.000000;  0.342140; 0.275769; -0.875274; -0.397300;  0.000000;0.000000;0.000000;0.000000;0.000000;  3333;  1; } // 1
  { 0xc082;  0; 0; 0;  0.000000;0.000000;0.000000;0.000000;0.000000;  0.000000; 1.000000; -0.000000; 0.000000;  0.000000;0.000000;0.000000;0.000000;0.000000;  -1;  -1; } // -1
*** modified ***

[ external image ]

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Thu, 3. May 07, 13:28

@halo112358 - that doesn't surprise me. Only a mad man imports a scene with *all* LOD objects ;)

Dragonfox
Posts: 92
Joined: Wed, 28. Apr 04, 19:01
x3tc

Post by Dragonfox » Sat, 8. Dec 07, 03:54

I am useing 3ds max 7 and in the MAXScript panel there no combobox button ?
So I seem to be unable to import my bob tex file

User avatar
Moonraven
Posts: 968
Joined: Wed, 27. Aug 03, 11:13
x3

Post by Moonraven » Sat, 8. Dec 07, 06:02

If you have installed DBOX the right way, you should have a combobox labeled as utility in the maxscript-panel.

you should check, if DBOX is in the plugin-folder of Max.
Gruß Moonraven
Wer lesen kann, ist ganz klar im Vorteil.
[ external image ]

Dragonfox
Posts: 92
Joined: Wed, 28. Apr 04, 19:01
x3tc

Post by Dragonfox » Sun, 9. Dec 07, 03:32

dbox2_gen_plugin.ms and dbox2_x3material.ms are in the plugins folder.

Dragonfox
Posts: 92
Joined: Wed, 28. Apr 04, 19:01
x3tc

Post by Dragonfox » Mon, 10. Dec 07, 20:28

So how do I get the combobox button in MAXScript panel as I got dbox in the plugins.

xTemon
Posts: 996
Joined: Tue, 9. Jan 07, 20:01
x3tc

Post by xTemon » Sun, 10. Feb 08, 06:54

same problem; are you using Vista?

also; is this a recent download of gmax from turbosquid? I've noticed its become rather hard to find--my first download turned out to be microsoft SDK, then i read some threads that said it was illegal, and another that said it was available from turbosquid--mine was registered by discreet after download, so i assume no issue with legality.

perhaps an issue with later versions and the patch with vista..

I'll try a reinstall with 1.8--last known working for me--after i check out some other possiblities.
:headbang: Microsoft

Post Reply

Return to “X³: Reunion - Scripts and Modding”