View Full Version : Map.ini problem
rich19
07-21-2007, 03:55 PM
I'm trying to remove the particle FXs from the dam object, as well as making it unselectable and making the geometry extremely small. My map.ini file is causing a crash! Does anyone know why?
;------------------------------------------------------------------------------
Object Dam
ReplaceModule ModuleTag_01
Draw = W3DModelDraw ModuleTag_01_Override
ConditionState = NONE
Model = CBDam
End
End
KindOf = STRUCTURE IMMOBILE
Geometry = BOX
GeometryMajorRadius = 0 ; 25.0
GeometryMinorRadius = 0 ; 16.0
GeometryHeight = 0 ; 50.0
End
Me Myself & Pi
07-21-2007, 05:57 PM
It's simple really, you forgot one of the "End"s in your INI file. So change your INI file from:
-ReplaceModule ModuleTag_01
--Draw = W3DModelDraw ModuleTag_01_Override
----ConditionState = NONE
------Model = CBDam
----End
-END
To:
-ReplaceModule ModuleTag_01
--Draw = W3DModelDraw ModuleTag_01_Override
----ConditionState = NONE
------Model = CBDam
----End
--End
-END
The dashes represent spaces, because this forum shoves all the words to the right ignoring the space there.
Also, unlike much of the other structures, the dam has "Selectable" checked in the object properties in the world builder. All you have to do is uncheck it & the dam won't be selectable. You don't need to do it in an INI file.
Since your removing the water animation, you might want to remove the sound the dam makes too, you can do this in the object properties too, just select "(None)" in the Attached sound.
Why do you have the dam geometry down to zero? You can see the dam when you do that.
rich19
07-21-2007, 06:41 PM
Thanks, got it fixed now. I had it down to zero because I have a land bridge with a dam at each side (so you can take units over the dam), but the large size was causing pathfinding problems. I didn't realise it disappeared at zero. I've got it at 1 now, and it's working fine.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.