Jump to content


Photo

problem with ini again


  • Please log in to reply
7 replies to this topic

#1 jack sparrow

jack sparrow
  • Members
  • 10 posts

Posted 28 September 2006 - 03:44 PM

hi again

can someone help me with a problem in the tutorial

whan i add this this:

IdleAnimationState
;BeginScript
; Prev = CurDrawablePrevAnimationState()
; if Prev == "BeingConstructed" then 
; Don't play completed sound when canceling build-in-progress or when
; destroyed halfway
; if not CurDrawableModelcondition( "DYING" ) then 
; CurDrawablePlaySound("CampSoldierCompleteGeneric")
; end
; end
;EndScript
End



it will given an error: unknown block "IdleAnimationState"



pls someone help me again


2playedit: added code tags. please do it yourself next time

Edited by 2playgames, 28 September 2006 - 08:16 PM.


#2 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 28 September 2006 - 04:15 PM

Could you post the rest of the code too?

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#3 jack sparrow

jack sparrow
  • Members
  • 10 posts

Posted 28 September 2006 - 04:24 PM

unknown block "IdleAnimationstate"

Error passing INI block "IdleAnimationState" in file
'Data\INI\Object\goodfaction\goodfactionbuildings.ini'

because of this severity of this error the game will now exit

#4 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 28 September 2006 - 04:36 PM

No, I meant the rest of the object's ini file. So that we can see where this is placed. Best would be just the draw module.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#5 jack sparrow

jack sparrow
  • Members
  • 10 posts

Posted 28 September 2006 - 05:24 PM

Object ElvesCampKeep
SelectPortrait = BPGCamp
; *** ART Parameters ***
Draw = W3DScriptedModelDraw ModuleTag_Draw
OkToChangeModelColor = Yes
UseStandardModelNames = Yes
DefaultModelConditionState
Model = GBCCenter
; ParticleSysBone = glowbone01 TorchGlow
; ParticleSysBone = glowbone02 furnaceSmoke
End
End
End
IdleAnimationState
;BeginScript
; Prev = CurDrawablePrevAnimationState()
; if Prev == "BeingConstructed" then
; Don't play completed sound when canceling build-in-progress or when
; destroyed halfway
; if not CurDrawableModelcondition( "DYING" ) then
; CurDrawablePlaySound("CampSoldierCompleteGeneric")
; end
; end
;EndScript
End
;------------Build Up States
;ModelConditionState = ACTIVELY_BEING_CONSTRUCTED PARTIALLY_CONSTRUCTED
; Model = GBCCenter_A
; ParticleSysBone = NONE BuildingDoughnutCloud
; ParticleSysBone = NONE BuildingContructDust
; End
ModelConditionState = ACTIVELY_BEING_CONSTRUCTED
Model = GBCCenter_A
; ParticleSysBone = NONE BuildingDoughnutCloud
ParticleSysBone = NONE BuildingContructDust
End
AnimationState = ACTIVELY_BEING_CONSTRUCTED
Animation
AnimationName = GBCCenter_A.GBCCenter_A
AnimationMode = MANUAL
End
BeginScript
CurDrawablePlaySound("GondorBarracksBeginConstruction")
CurDrawablePlaySound("BuildingTopple")
;CurDrawableHideSubObject("FIRE02")
EndScript
End

#6 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 28 September 2006 - 07:16 PM

Ohhh, sorry, you must have misunderstood my last post then. Actually it's my fault... at least partly. Remove the two ends I suggested before, otherwise you will close the draw and object, leaving the rest of the code there, plain in the ini, which leads to the error.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#7 {IP}Sauron

{IP}Sauron

    title available

  • Hosted
  • 391 posts
  • Location:Denmark
  •  Istari Productions Leader

Posted 28 September 2006 - 09:23 PM

isnt there too many ;'s?
"A still more glourious dawn awaits. Not a sunrise, but a galaxy-rise. A morning filled with 400 billion suns." - Carl Sagan
Posted Image

#8 jack sparrow

jack sparrow
  • Members
  • 10 posts

Posted 29 September 2006 - 04:04 PM

k thx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users