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

CMsgBotWorldState, Protobufs, and You

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

  • lenlrx
    replied
    great, gona try it later

    Leave a comment:


  • nostrademous
    replied
    Works for me, just tested yesterday with a bot game and I was getting the protobufs and saw some of the fixes I posted.

    EDIT:
    To be clear, all I did is basically use my open-source github pydota2 codebase. If you read the README.md I just ran the pydota2/bin/proto_ingest.py with configuration as specified.
    https://github.com/pydota2/pydota2
    Last edited by nostrademous; 06-27-2018, 09:37 AM.

    Leave a comment:


  • lenlrx
    replied
    why my dota2 crash every time when i just connected to the port of protobuf?
    is this function still working now?

    Leave a comment:


  • nostrademous
    replied
    Also, apparently they added Talents into the ability list and fixes the "generic_hidden" I mentioned on pages 2 & 3.

    Leave a comment:


  • nostrademous
    replied
    Well, they seemed to have fix the "items" not being in the protobuf message at some point. Interesting. Seems someone is working on this stuff still just not posting here.

    Leave a comment:


  • apoorvumang
    replied
    Ok, thanks! I was able to solve the freeze thing by just polling for 1 byte at a time, not sure if it's the ideal solution though

    Leave a comment:


  • nostrademous
    replied
    I don't think the protobufs are implemented/work for custom games.

    Leave a comment:


  • apoorvumang
    replied
    Thanks for the quick response! Well I'm having the freeze problem too, so maybe it's not just on your side... for custom game I'm using
    Code:
    dota_launch_custom_game my_custom_game dota
    in VConsole to launch the game. I can see with netstat that the TCP server is running on 12121, and the python script connects to it, but doesn't receive any bytes.

    Leave a comment:


  • nostrademous
    replied
    I did solve the freeze problem long ago (forget how now b/c it was so long ago, but problem was on my side).

    Regarding Workshop Tools, the API is slightly different so chances are you are using the in-game Bot API to connect (which seems to still be a valid function call, but one that does nothing) and instead should be using the Workshop API.

    Leave a comment:


  • apoorvumang
    replied
    Hi, complete newbie to dota scripting here. @nostrademous Did you manage to solve the freeze problem after the first proto message is received from the server? Also when I run a custom game through Dota 2 Workshop Tools, I can connect to the server but it doesn't even send the first packet. Any tips on how to solve these issues? Thanks

    Leave a comment:


  • nostrademous
    replied
    @ChrisC - and yet another thing... items seem not to be provided at all. I see abilities and modifiers.

    Code:
    		repeated Ability	abilities = 90;
    		repeated Ability	items = 91;
    		repeated Modifier	modifiers = 92;

    Leave a comment:


  • nostrademous
    replied
    @ChrisC - another issue with the protobuf, how do I know what "talents" the player has leveled? I assumed that once they are leveled they would appear in the "abilities" list for the unit (if hero type) but that does not seem to be the case.

    Leave a comment:


  • The Nomad
    replied
    Incorrect indeed. 6325 is Nimbus. But you can see my logic
    However now that I think back, the last few patches added Ability Draft fixes (including extra slots for exotic spells). Each hero got 2 extra slots for 4-ability heroes. This may be an impact from that patch and the first hidden is Nimbus and the second hidden is... well hidden since zeus doesn't have a 6th ability. And then we have the ultimate that is missing.

    TLDR: the extra hidden ability slots from the AD fix seem to impact the protobuff.

    Leave a comment:


  • nostrademous
    replied
    Incorrect, they are presented in slot order apparently. Good thought though. Check the npc_abilities.txt provided by Valve to map ability ID numbers to ability names.

    Leave a comment:


  • The Nomad
    replied
    I believe the last one would be Nimbus, not Wrath. Which is why it's "hidden".

    Leave a comment:

Working...
X