Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

Any reliable way to go back to hero selection/pre game time?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any reliable way to go back to hero selection/pre game time?

    Hi guys. I'm developing several mods where the players have the heros resetted to level one, and others where he is invited to chose a new hero. The problems is, there is no reliable way to put the clock back to a negative countdown mod, where creps don't spawn and neither neutrals.

    Is the function ResetToHeroSelection worked, but now it simple doesn't(you get stuck when you choose a hero and try to enter the game).
    Code:
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_HERO_SELECTION'
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_HERO_SELECTION'
    [   Server               ]: PR:SetPossibleHeroSelection 0:[U:1:74712915] npc_dota_hero_abaddon(102)
    [   Server               ]: PR:SetPossibleHeroSelection 0:[U:1:74712915] npc_dota_hero_earth_spirit(107)
    [   Server               ]: PR:SetPlayerReservedState 0:[U:1:74712915] true
    [   Server               ]: PR:SetSelectedHero 0:[U:1:74712915] npc_dota_hero_earth_spirit(107)
    [   Server               ]: PR:SetSelectedHero 0:[U:1:74712915] npc_dota_hero_earth_spirit(107)
    [   Developer            ]: CLocalize::FindSafe failed to localize: #LoadoutSlot_team_showcase
    [   Entity System        ]: SERVER: npc_dota_hero_announcer(CDOTA_Unit_Announcer) 'Announcer' [954] thinking for 32.17 ms!!!
    [   Server               ]: PR:SetPlayerReservedState 0:[U:1:74712915] false
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_STRATEGY_TIME'
    [   Server               ]: PR:SetPlayerReservedState 0:[U:1:74712915] false
    [   Server               ]: PR:SetSelectedHero 0:[U:1:74712915] npc_dota_hero_earth_spirit(107)
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_PRE_GAME'
    [   General              ]: m_flPreGameStartTime set to 30.20
    [   General              ]: m_flStateTransitionTime set to 120.20
    [   Client               ]:   251: 14.960639 msec change 'OnAbilityPointsChanged()' on field m_iAbilityPoints(path=120) for ent npc_dota_hero_earth_spirit(C_DOTA_Unit_Hero_EarthSpirit) name='npc_dota_hero_earth_spirit'
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_PRE_GAME'
    [   Entity System        ]: SERVER: npc_dota_hero_earth_spirit(CDOTA_Unit_Hero_EarthSpirit) 'npc_dota_hero_earth_spirit' [251] thinking for 46.47 ms!!!
    [   Entity System        ]: SERVER: npc_dota_roshan(CDOTA_Unit_Roshan) 'npc_dota_roshan' [629] thinking for 26.19 ms!!!
    [ W General              ]: CSwapChainBase::QueuePresentAndWait() looped for 21 iterations without a present event.
    [   Entity System        ]: SERVER: npc_dota_roshan(CDOTA_Unit_Roshan) 'npc_dota_roshan' [629] thinking for 17.10 ms!!!
    [   Client               ]:   938: 0.199287 msec change 'OnUnreliableGoldChanged()' on field m_iUnreliableGold(path=1/0/2) for ent dota_data_radiant(C_DOTA_DataRadiant) name=''
    [   Entity System        ]: SERVER: npc_dota_hero_earth_spirit(CDOTA_Unit_Hero_EarthSpirit) 'npc_dota_hero_earth_spirit' [251] thinking for 55.26 ms!!!
    [   Entity System        ]: SERVER: npc_dota_tower(CDOTA_BaseNPC_Tower) 'dota_goodguys_tower3_bot' [243] thinking for 11.14 ms!!!
    [   Entity System        ]: SERVER: npc_dota_hero_earth_spirit(CDOTA_Unit_Hero_EarthSpirit) 'npc_dota_hero_earth_spirit' [251] thinking for 24.30 ms!!!
    [   Entity System        ]: SERVER: npc_dota_hero_earth_spirit(CDOTA_Unit_Hero_EarthSpirit) 'npc_dota_hero_earth_spirit' [251] thinking for 39.48 ms!!!
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_GAME_IN_PROGRESS'
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_GAME_IN_PROGRESS'
    [   Entity System        ]: SERVER: npc_dota_hero_earth_spirit(CDOTA_Unit_Hero_EarthSpirit) 'npc_dota_hero_earth_spirit' [251] thinking for 13.40 ms!!!
    [   Entity System        ]: SERVER: npc_dota_neutral_spawner(CDOTA_NeutralSpawner) '' [548] thinking for 25.07 ms!!!
    [   Client               ]:   938: 0.171062 msec change 'OnUnreliableGoldChanged()' on field m_iUnreliableGold(path=1/0/2) for ent dota_data_radiant(C_DOTA_DataRadiant) name=''
    [   Entity System        ]: SERVER: npc_dota_neutral_spawner(CDOTA_NeutralSpawner) '' [260] thinking for 51.22 ms!!!
    [   Server               ]: PR:SetSelectedHero 0:[U:1:74712915] (null)(-1)
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_HERO_SELECTION'
    [   VScript              ]: Estou acontecendo mais do que deveria
    [   Entity System        ]: SERVER: info_target(CInfoTarget) '' [990] thinking for 22.96 ms!!!
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_HERO_SELECTION'
    [   General              ]: **** Unable to localize '#DOTA_Friend_Join_Party' on panel 'InviteLabel'
    [   Entity System        ]: SERVER: npc_dota_neutral_spawner(CDOTA_NeutralSpawner) '' [548] thinking for 137.28 ms!!!
    [   Entity System        ]: SERVER: npc_dota_creep_lane(CDOTA_BaseNPC_Creep_Lane) 'npc_dota_creep_lane' [638] thinking for 29.08 ms!!!
    [   Entity System        ]: SERVER: npc_dota_creep_lane(CDOTA_BaseNPC_Creep_Lane) 'npc_dota_creep_lane' [638] thinking for 33.81 ms!!!
    [   Entity System        ]: SERVER: npc_dota_creep_lane(CDOTA_BaseNPC_Creep_Lane) 'npc_dota_creep_lane' [92] thinking for 10.93 ms!!!
    [   Server               ]: PR:SetPlayerReservedState 0:[U:1:74712915] true
    [   Server               ]: PR:SetSelectedHero 0:[U:1:74712915] npc_dota_hero_earth_spirit(107)
    [   Developer            ]: CLocalize::FindSafe failed to localize: #LoadoutSlot_team_showcase
    [   Entity System        ]: SERVER: npc_dota_creep_neutral(CDOTA_BaseNPC_Creep_Neutral) 'npc_dota_creep_neutral' [123] thinking for 38.54 ms!!!
    [   Entity System        ]: SERVER: npc_dota_creep_neutral(CDOTA_BaseNPC_Creep_Neutral) 'npc_dota_creep_neutral' [85] thinking for 46.26 ms!!!
    [   General              ]: DispatchAsyncEvent backlog, failed to dispatch all this frame. Queue depth: 72 (111 input number was)
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_STRATEGY_TIME'
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_STRATEGY_TIME'
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_PRE_GAME'
    [   General              ]: m_flPreGameStartTime set to 190.31
    [   General              ]: m_flStateTransitionTime set to 220.31
    [ W General              ]: Attempt to add duplicate item stock info! (699)
    [ W General              ]: Attempt to add duplicate item stock info! (699)
    [ W General              ]: Attempt to add duplicate item stock info! (722)
    [ W General              ]: Attempt to add duplicate item stock info! (722)
    [ W General              ]: Attempt to add duplicate item stock info! (735)
    [ W General              ]: Attempt to add duplicate item stock info! (735)
    [ W General              ]: Attempt to add duplicate item stock info! (741)
    [ W General              ]: Attempt to add duplicate item stock info! (741)
    [ W General              ]: Attempt to add duplicate item stock info! (781)
    [ W General              ]: Attempt to add duplicate item stock info! (781)
    [ W General              ]: Attempt to add duplicate item stock info! (919)
    [ W General              ]: Attempt to add duplicate item stock info! (919)
    [ W General              ]: Attempt to add duplicate item stock info! (920)
    [ W General              ]: Attempt to add duplicate item stock info! (920)
    [ W General              ]: Attempt to add duplicate item stock info! (961)
    [ W General              ]: Attempt to add duplicate item stock info! (962)
    [ W General              ]: Attempt to add duplicate item stock info! (963)
    [ W General              ]: Attempt to add duplicate item stock info! (964)
    [ W General              ]: Attempt to add duplicate item stock info! (965)
    [ W General              ]: Attempt to add duplicate item stock info! (966)
    [ W General              ]: Attempt to add duplicate item stock info! (967)
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_PRE_GAME'
    [   Server               ]: PR:SetPlayerReservedState 0:[U:1:74712915] false
    [   Client               ]:   637: 0.393015 msec change 'clientSideAnimCycleReset()' on field m_nNewSequenceParity(path=11/10) for ent npc_dota_creep_lane(C_DOTA_BaseNPC_Creep_Lane) name='npc_dota_creep_lane'
    [   Client               ]:   453: 0.155239 msec change 'playbackRateChanged()' on field m_flPlaybackRate(path=11/9) for ent npc_dota_creep_lane(C_DOTA_BaseNPC_Creep_Lane) name='npc_dota_creep_lane'
    [   Client               ]:   809: 0.129579 msec change 'OnEffectsChanged()' on field m_fEffects(path=41) for ent npc_dota_creep_lane(C_DOTA_BaseNPC_Creep_Lane) name='npc_dota_creep_lane'
    [   General              ]: S:Gamerules: entering state 'DOTA_GAMERULES_STATE_GAME_IN_PROGRESS'
    [   General              ]: C:Gamerules: entering state 'DOTA_GAMERULES_STATE_GAME_IN_PROGRESS'
    I'm trying to circunvent those problemas but some I simple can't, i need help from you valve. Do i need to set something before calling ResetToHeroSelection ? Some con var? And can you make a function to reset the game from just after the hero selection? Thanks in advance.
    What a man can get from a extinct civilisation : Atlantis' Trident Lost Treasure
Working...
X