[Bug] misconfigured custom scenarios "trap" client

Discussion in 'Bugs' started by neoncat, Jan 31, 2014.

  1. neoncat

    neoncat Feline Outline

    I'm consistently able to "trap" the client in a state where the in-game interface is inaccessible and the match engine has crashed, thus forcing the player to reload the game client. The console is still accessible, so it's not full client crash.

    The problem is that the match engine doesn't properly handle a custom scenario with VP scoring set to "automatic" for a player whose party contains only 0-point characters (like Reinforced Door or Human Servant Dog Boy). I have attached such a misconfigured scenario to this post.

    When the match attempts to load, the console spits out the following error:

    Code:
    Data loaded.
    Verifying data.
    Initializing battle screen
    Battle joined
    MESSAGE: Error #1125
    STACK TRACE:
    RangeError: Error #1125
        at com.cardhunter.pcclient::ScoreDisplay/refreshInternal()
        at com.cardhunter.pcclient::Displayable/refresh()
        at com.cardhunter.pcclient::Displayable/refresh()
        at com.cardhunter.pcclient::Displayable/refresh()
        at com.cardhunter.pcclient::BattleDisplay/initForBattle()
        at com.cardhunter.pcclient::BattleScreen/visual_init()
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
        at mx.core::UIComponent/addChildAt()
        at spark.components::Group/addDisplayObjectToDisplayList()
        at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()
        at spark.components::Group/addElementAt()
        at spark.components::Group/addElement()
        at com.cardhunter.pcclient::ScreenRoot/showGameScreen()
        at com.cardhunter.pcclient::BattleScreen/initialStreamingComplete()
        at flash.events::EventDispatcher/dispatchEvent()
        at com.greensock.loading.core::LoaderCore/_completeHandler()
        at com.greensock.loading::LoaderMax/_loadNext()
        at com.greensock.loading::LoaderMax/_loadPauseComplete()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.utils::Timer/tick()
    CLIENT COMMANDS:
    com.cardhunter.pcclient::AnimatedBannerCommand
    com.cardhunter.pcclient::DropInActorsCommand
    com.cardhunter.pcclient::StartBattleMusicCommand
    BATTLE COMMANDS:
    com.cardhunter.battle.commands::PlayersPresentCommand
    com.cardhunter.battle.commands::StartTurnCommand
    CLIENT VERSION: 0.2.8102
     

    Attached Files:

  2. j-wiz

    j-wiz Blue Manchu Staff Member

    This is definitely a bug with having no victory points for any of the sides of a battle. The scoring display isn't meant to handle that. It seems like the right way to handle this is probably to detect that condition when the scenario is uploaded and force it to have at least 1 VP for each side.
     
  3. j-wiz

    j-wiz Blue Manchu Staff Member

    Should be fixed up when we get the next build up on the test server. It'll default to 9 VP in that case now.
     

Share This Page