Remagen Ironbridge collision problem
Posted: Tue Feb 27, 2018 2:37 am
Hi guys, the other day I tried to visit the http://www.smig.name website to download a few models, but apparently the site is down.
By luck, I managed to find a web archive that contained a RFA file with all the models, textures included. The only thing missing were the CON files to define the objects and the geometries of the objects.
So I tried to make those CON files from scratch for one object which I really wanted to have on my map, the Remagen Ironbridge. That bridge model used to be available on Smig's site, and it looks amazing. It is a long iron bridge with two rail road tracks. I have tried to make an Objects.con for it with the following code:
ObjectTemplate.create Bundle Remagen_Ironbridge
ObjectTemplate.geometry Remagen_IronBridge_Comp1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.addTemplate Remagen_IronBridge_Comp2
ObjectTemplate.addTemplate Remagen_IronBridge_Comp3
ObjectTemplate.create SimpleObject Remagen_IronBridge_Comp2
ObjectTemplate.geometry Remagen_IronBridge_Comp2
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.create SimpleObject Remagen_IronBridge_Comp3
ObjectTemplate.geometry Remagen_IronBridge_Comp3
ObjectTemplate.HasCollisionPhysics 1
My Geometries.con file looks like this:
GeometryTemplate.create StandardMesh Remagen_IronBridge_Comp1
GeometryTemplate.file Remagen_IronBridge_Comp1
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300
GeometryTemplate.create StandardMesh Remagen_IronBridge_Comp2
GeometryTemplate.file Remagen_IronBridge_Comp2
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300
GeometryTemplate.create StandardMesh Remagen_IronBridge_Comp3
GeometryTemplate.file Remagen_IronBridge_Comp3
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300
The bridge object appears in Editor42 and in game without any issue, but it has no collision, it's basically just a ghost object. I don't have 3dsMax installed right now and was wondering if anyone would like to open the model in Max and give it a collision. I think the MatIDs are correctly assigned, just without collisions.
If you can help me, simply send me a PM and I'll attach the model in RS and SM formats.
By luck, I managed to find a web archive that contained a RFA file with all the models, textures included. The only thing missing were the CON files to define the objects and the geometries of the objects.
So I tried to make those CON files from scratch for one object which I really wanted to have on my map, the Remagen Ironbridge. That bridge model used to be available on Smig's site, and it looks amazing. It is a long iron bridge with two rail road tracks. I have tried to make an Objects.con for it with the following code:
ObjectTemplate.create Bundle Remagen_Ironbridge
ObjectTemplate.geometry Remagen_IronBridge_Comp1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.addTemplate Remagen_IronBridge_Comp2
ObjectTemplate.addTemplate Remagen_IronBridge_Comp3
ObjectTemplate.create SimpleObject Remagen_IronBridge_Comp2
ObjectTemplate.geometry Remagen_IronBridge_Comp2
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.create SimpleObject Remagen_IronBridge_Comp3
ObjectTemplate.geometry Remagen_IronBridge_Comp3
ObjectTemplate.HasCollisionPhysics 1
My Geometries.con file looks like this:
GeometryTemplate.create StandardMesh Remagen_IronBridge_Comp1
GeometryTemplate.file Remagen_IronBridge_Comp1
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300
GeometryTemplate.create StandardMesh Remagen_IronBridge_Comp2
GeometryTemplate.file Remagen_IronBridge_Comp2
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300
GeometryTemplate.create StandardMesh Remagen_IronBridge_Comp3
GeometryTemplate.file Remagen_IronBridge_Comp3
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300
The bridge object appears in Editor42 and in game without any issue, but it has no collision, it's basically just a ghost object. I don't have 3dsMax installed right now and was wondering if anyone would like to open the model in Max and give it a collision. I think the MatIDs are correctly assigned, just without collisions.
If you can help me, simply send me a PM and I'll attach the model in RS and SM formats.