
 Re: "AddTerrainObject = TerrainObject" Crash
 
					
						I'm having this same issue, albiet I'm not making a mod, just pasting mods
1 into base.rte to farf around with the scene editor for personal amusment. Figured I'd post here instead of making a new thread, since the problem seems to be the same, in a sense.
Some mods pasted in work perfectly fine, but a handfull result in this exact problem. Checking the ini's, they are exactly the "same" in terms of format. 
One of the mods causing this issue when transfered over is the extra bunkermodules module pack from that Ultimate Bunker Pack compilation. Something screws up on the first line of it's bunkermodules.ini (As with all others that break), which is "AddTerrainObject = TerrainObject", which is exactly the same as with other mods that do work. 
Checking the rest of the object definition, everything apears to be the same as in functional ones, so I'm at a loss as to what is screwing up with them.
Commenting out the first defintion results in the same error on the next one, 
For reference, the first definition from a non-functional and a functional mod's module.ini, as well as index.ini:
(Spaces in place of tabs are from forum formatting)Non-Functional
Code:
AddTerrainObject = TerrainObject
   PresetName = Ball
   AddToGroup = Bunker Decorations
   AddToGroup = Bunker Modules - Extra
   GoldCost = 25
   FGColorFile = ContentFile
      Path = Base.rte/Extra Bunkermodules/BallFG.bmp
   MaterialFile = ContentFile
      Path = Base.rte/Extra Bunkermodules/BallMat.bmp
   BGColorFile = ContentFile
      Path = Base.rte/Extra Bunkermodules/BallBG.bmp
Code:
   IncludeFile = Base.rte/Extra Bunkermodules/Materials.ini
   IncludeFile = Base.rte/Extra Bunkermodules/Bunkermodules.ini
Functional
Code:
AddTerrainObject = TerrainObject
   PresetName = Diagonal A
   AddToGroup = Bunker Modules - Extra
   GoldCost = 35
   FGColorFile = ContentFile
      Path = base.rte/Extramodules/DiagonalAFG.bmp
   MaterialFile = ContentFile
      Path = base.rte/Extramodules/DiagonalAMat.bmp
   BGColorFile = ContentFile
      Path = base.rte/Extramodules/DiagonalABG.bmp
Code:
   IncludeFile = base.rte/Extramodules/Modules.ini
Pre-Post Edit: Looking at everything, noticed that none of the functional mods have spaces in thier names, and all the non-functional do, however, removing the space (In everything) did not fix, shame, thought that might work. Funky coincidence.
1Copying modname.rte into base.rte, removing .rte from folder, doing a find/replace on all of the ini's contents from "modname.rte/stuff" to "base.rte/modname/stuff" in notepad, adding mod index to base index