Help - Search - Members - Calendar
Full Version: Pillbox from Shockwave 1.1
SWR Productions Forum > Game Modding and Development > Generals/Zerohour Modding
Oliver
It only happens only when you put the pillbox with 25% health in snow and in normal conditions....

It appear this (it also appears in shockwave)...

Click to view attachment

And here is the code of the model.... What is the problem?

CODE
  Draw = W3DModelDraw ModuleTag_01
    OkToChangeModelColor = Yes

    DefaultConditionState
      Model             = ABPillBox
      Animation         = ABPillBox.ABPillBox
      AnimationMode     = ONCE_BACKWARDS
      Flags             = START_FRAME_FIRST
      HideSubObject     = MG OBJECT01
      Turret            = TURRET
      WeaponLaunchBone  = PRIMARY   Muzzle
      WeaponLaunchBone  = SECONDARY Muzzle
      WeaponLaunchBone  = TERTIARY  Muzzle
      WeaponFireFXBone  = PRIMARY   Muzzle
      WeaponFireFXBone  = SECONDARY Muzzle
      WeaponFireFXBone  = TERTIARY  Muzzle
      WeaponMuzzleFlash = PRIMARY   MuzzleFX
    End
    
    ConditionState      = DAMAGED
      Model             = ABPillBox_D
      Animation         = ABPillBox_D.ABPillBox_D
    End
    
    ConditionState      = REALLYDAMAGED RUBBLE
      Model             = ABPillBox_E
      Animation         = ABPillBox_E.ABPillBox_E
    End
    
    ConditionState      = SNOW
      Model             = ABPillBox_S
      Animation         = ABPillBox_S.ABPillBox_S
    End
    
    ConditionState      = DAMAGED SNOW
      Model             = ABPillBox_SD
      Animation         = ABPillBox_SD.ABPillBox_SD
    End
    
    ConditionState      = REALLYDAMAGED RUBBLE SNOW
      Model             = ABPillBox_SE
      Animation         = ABPillBox_SE.ABPillBox_SE
    End

;;;;with gunner    
    ConditionState      = WEAPONSET_PLAYER_UPGRADE
      Model             = ABPillBox
      Animation         = ABPillBox.ABPillBox
      AnimationMode     = ONCE
      ShowSubObject     = MG OBJECT01
      Flags             = START_FRAME_LAST
    End
    
    ConditionState      = WEAPONSET_PLAYER_UPGRADE DAMAGED
      Model             = ABPillBox_D
      Animation         = ABPillBox_D.ABPillBox_D
      AnimationMode     = ONCE
      ShowSubObject     = MG OBJECT01
      Flags             = START_FRAME_LAST
    End
    
    ConditionState      = WEAPONSET_PLAYER_UPGRADE REALLYDAMAGED RUBBLE
      Model             = ABPillBox_E
      Animation         = ABPillBox_E.ABPillBox_E
      AnimationMode     = ONCE
      ShowSubObject     = MG OBJECT01
      Flags             = START_FRAME_LAST
    End

    ConditionState      = WEAPONSET_PLAYER_UPGRADE SNOW
      Model             = ABPillBox_S
      Animation         = ABPillBox_S.ABPillBox_S
      AnimationMode     = ONCE
      ShowSubObject     = MG OBJECT01
      Flags             = START_FRAME_LAST
    End

    ConditionState      = WEAPONSET_PLAYER_UPGRADE DAMAGED SNOW
      Model             = ABPillBox_SD
      Animation         = ABPillBox_SD.ABPillBox_SD
      AnimationMode     = ONCE
      ShowSubObject     = MG OBJECT01
      Flags             = START_FRAME_LAST
    End

    ConditionState      = WEAPONSET_PLAYER_UPGRADE REALLYDAMAGED RUBBLE SNOW
      Model             = ABPillBox_SE
      Animation         = ABPillBox_SE.ABPillBox_SE
      AnimationMode     = ONCE
      ShowSubObject     = MG OBJECT01
      Flags             = START_FRAME_LAST
    End

    ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED
      Model              = ABPillBox
      Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
    End

    ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED SNOW
      Model              = ABPillBox_S
      Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
    End

    ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED
      Model              = ABPillBox_D
      Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
    End

    ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED DAMAGED SNOW
      Model              = ABPillBox_SD
      Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
    End

    ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED
      Model              = ABPillBox_E
      Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
    End
    
    ConditionState       = AWAITING_CONSTRUCTION PARTIALLY_CONSTRUCTED ACTIVELY_BEING_CONSTRUCTED REALLYDAMAGED SNOW
      Model              = ABPillBox_SE
      Flags              = ADJUST_HEIGHT_BY_CONSTRUCTION_PERCENT
    End

    ConditionState       = AWAITING_CONSTRUCTION
      Model              = NONE
    End
    AliasConditionState  = AWAITING_CONSTRUCTION DAMAGED
    AliasConditionState  = AWAITING_CONSTRUCTION REALLYDAMAGED
    AliasConditionState  = AWAITING_CONSTRUCTION SNOW
    AliasConditionState  = AWAITING_CONSTRUCTION SNOW DAMAGED
    AliasConditionState  = AWAITING_CONSTRUCTION SNOW REALLYDAMAGED
    AliasConditionState  = SOLD DAMAGED
    AliasConditionState  = SOLD REALLYDAMAGED
    AliasConditionState  = SOLD SNOW
    AliasConditionState  = SOLD SNOW DAMAGED
    AliasConditionState  = SOLD SNOW REALLYDAMAGED
  End
n5p29
just press Ignore. it's not something bad or something that could crashes the game. it's just the WB debugger being nitpick.

like the debugger said, there is an ambiguous condition state(s) in the draw module. usually because in the code defined ConditionState = REALLYDAMAGED RUBBLE while there's also ConditionState = "..." REALLYDAMAGED and/or ConditionState = "..." RUBBLE defined ("..." is any other condition states).
this makes the WB (and actually the game) kind of confused which model that should be used on REALLYDAMAGED RUBBLE condition. should it use the REALLYDAMAGED, or the RUBBLE one?

while this error doesn't do any real harm, it could be prevented by separating the REALLYDAMAGED RUBBLE condition state into two condition states. one for REALLYDAMAGED and another one for RUBBLE.
and apparently doing this also reduce the game lag a bit, although modders prefer to not bother it because you need to trim the codes to search these errors.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.