Jump to content


Photo

Structure Works In Game but World Builder Crashes


  • Please log in to reply
2 replies to this topic

#1 madmax_the modder

madmax_the modder
  • Members
  • 13 posts

Posted 11 April 2010 - 04:30 AM

Well here goes... seems barely anyone here anymore .. but i will hope someone reads this anyways ....

I have added in a new Structure, and its actually just a quick remake of the existing crane already found inside of the CivilianStructure.ini file. The problem is that after adding the structure to the China Side... world builder no longer loads... any ideas as to why would be great. heres the code sippet.

Strange thing is , the game itself has no problems with this structure.


--------------------------------------------------------------------

;------------------------------------------------------------------------------

Object ChinaCrane

; *** ART Parameters ***

SelectPortrait = IMG_GLACrane

ButtonImage = IMG_GLACrane

Draw = W3DModelDraw ModuleTag_01

OkToChangeModelColor = Yes

 

ConditionState = NONE
Model = CVCSTCRN
End

 

ConditionState = DAMAGED
Model = CVCSTCRN
End

 

ConditionState = REALLYDAMAGED
Model = CVCSTCRN_D
End
End

 

PlacementViewAngle = -145

; ***DESIGN parameters ***

DisplayName = OBJECT:Crane
Side = China
EditorSorting = STRUCTURE

Prerequisites
Object = ChinaPropagandaCenter
End

BuildCost = 5000
BuildTime = 1.0
EnergyProduction = 0
VisionRange = 200.0; Shroud clearing distance
ShroudClearingRange = 200

ArmorSet
Conditions = None
Armor = StructureArmor
DamageFX = StructureDamageFXNoShake
End

MaxSimultaneousOfType = 1
ExperienceValue = 100 100 100 100; Experience point value at each level

; ***AUDIO parameters ***

SoundAmbient = CraneAmbience

 

; *** ENGINEERING Parameters *** 

KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE SCORE CAPTURABLE MP_COUNT_FOR_VICTORY
Body = StructureBody ModuleTag_02
MaxHealth = 2000.0
InitialHealth = 2000.0
End

Behavior = DestroyDie ModuleTag_03
;nothing
End

Behavior = CreateObjectDie ModuleTag_04
CreationList = OCL_SmallStructureDebris
End

 

;Behavior = GrantUpgradeCreate ModuleTag_05
; UpgradeToGrant = Upgrade_CostReduction
;End

;Behavior = CostModifierUpgrade ModuleTag_CostReducer
; TriggeredBy = Upgrade_CostReduction
; EffectKindOf = STRUCTURE; [KindOf]
; Percentage = -75%; [percentage]
;End

 

Behavior = FlammableUpdate ModuleTag_06
FlameDamageLimit = 20;Catch fire if I take this much fire damage...
FlameDamageExpiration = 2000;in a span of this long
AflameDuration = 5000; If I catch fire, I'll burn for this long...
AflameDamageAmount = 25; taking this much damage...
AflameDamageDelay = 500; this often.
End


Geometry = BOX
GeometryMajorRadius = 25.0
GeometryMinorRadius = 16.0
GeometryHeight = 50.0
GeometryIsSmall = No
Shadow = SHADOW_VOLUME
BuildCompletion = PLACED_BY_PLAYER
End

Edited by Nighthawk, 11 April 2010 - 10:41 AM.
Put in code box to make it a little easier for people to read...


#2 Gen.Kenobi

Gen.Kenobi

    I'm a doc, not an...

  • Undead
  • 1,429 posts
  • Location:Brazil
  • Projects:Survive Med School
  •  Your Doc
  • Division:Revora
  • Job:Hosting Admin

Posted 11 April 2010 - 06:23 PM

Well, i think that you must add it to the Map.ini file...but i'm not a mapper, so i can't hepl you with this...sorry...

kudos to Pasidon for this awesome avvy and siggy!


#3 madmax_the modder

madmax_the modder
  • Members
  • 13 posts

Posted 11 April 2010 - 09:11 PM

Funny thing about this, i got it fixed now , but i really cant tell why its working now. I ended up removing the mod completely , and upon restarting the game mod free, it crashed again, and the error report pointed to a file that is only in my mod. I decided to erase the WB Autosaves and the tmpchunk file ... and than it loaded fine... put my mod back in , it worked fine too O.o

I dun really get it , but w/e m i guess worldbuilder just had a episode.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users