Bot development help? PegasusShared.GameType? Can't find PegasusShared namespace. menu

User Tag List

Results 1 to 6 of 6
  1. #1
    grindstone's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Bot development help? PegasusShared.GameType? Can't find PegasusShared namespace.

    I'm new to bot development and I'm trying to make a bot with the help of some great knowledge provided by other uers in this thread (Finding memory values?).

    I've used Mono.Cecil to inject my DLL into Assembly-CSharp.dll and have started making a very basic bot but I've hit a bit of a wall. The Curse of Naxxramas patch seem to have changed up how some background stuff works, and I'm trying to figure out how to start a ranked game after you're on the SceneMgr.Mode.TOURNAMENT scene.

    After a bit of digging around the assembly with dotPeek I found a method called FindGame(GameType type, int missionId, long deckId) in the GameMgr.cs class, which seems to be the new way to start queueing for a match.

    However, it requires a parameter of type GameType in the PegasusShared namespace which I can't find anywhere in any of the dlls the client comes with. Am I missing something? If not, is there a way around this?

    Bot development help? PegasusShared.GameType? Can't find PegasusShared namespace.
  2. #2
    spAnser's Avatar Sergeant
    Reputation
    17
    Join Date
    Jan 2011
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PegasusShared is in the Assembly-CSharp-firstpass.dll file

    Code:
    public enum GameType
    {
        GT_UNKNOWN = 0,
        GT_VS_AI = 1,
        GT_VS_FRIEND = 2,
        GT_TUTORIAL = 4,
        GT_ARENA = 5,
        GT_TEST = 6,
        GT_RANKED = 7,
        GT_UNRANKED = 8,
        GT_LAST = 14
    }
    Last edited by spAnser; 09-22-2014 at 09:08 PM.

  3. #3
    grindstone's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spAnser View Post
    PegasusShared is in the Assembly-CSharp-firstpass.dll file

    Code:
    public enum GameType
    {
        GT_UNKNOWN = 0,
        GT_VS_AI = 1,
        GT_VS_FRIEND = 2,
        GT_TUTORIAL = 4,
        GT_ARENA = 5,
        GT_TEST = 6,
        GT_RANKED = 7,
        GT_UNRANKED = 8,
        GT_LAST = 14
    }
    Ah, thanks
    Apparently I didn't look hard enough

  4. #4
    spAnser's Avatar Sergeant
    Reputation
    17
    Join Date
    Jan 2011
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    However with the possibility of Blizzard actually working on detecting bots and all current bots using this method. I would like to see someone work on a QUALITY passive bot that uses OCR and mouse movements instead of injecting into the game.

    It technically is possible to maintain the game state entirely through the logging already in the game. However it wouldn't be easy you would have to code in mechanics and stuff to keep a current running game in memory of the bot.

    The log will say CARD_XYZ attacked zone=PLAY at zonePos=5 although it wont even be that straight forward all of the logging is very vague and there is multiple ways of detecting the same thing.

  5. #5
    grindstone's Avatar Private
    Reputation
    1
    Join Date
    Sep 2014
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't looked into reading the log but it sounds like an interesting challenge
    It doesn't seem to log card attacks though which would make things difficult

    Edit:
    Looks like it does actually log attacks and hero powers, you just have to add a keyword [Power] along with the [Zone] one which keeps track of card locations
    Last edited by grindstone; 09-24-2014 at 02:23 PM.

  6. #6
    spAnser's Avatar Sergeant
    Reputation
    17
    Join Date
    Jan 2011
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by grindstone View Post
    I haven't looked into reading the log but it sounds like an interesting challenge
    It doesn't seem to log card attacks though which would make things difficult

    Edit:
    Looks like it does actually log attacks and hero powers, you just have to add a keyword [Power] along with the [Zone] one which keeps track of card locations
    Here is my full list of found logging things.
    FilePrinting can be set to false and screenprinting does nothing either set to false normally Log Level should be 1 changing to higher numbers doesn't seem to do anything even though there is 4 levels of logging in their code. Might be disabled for live builds though
    Code:
    [Asset]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [BattleNet]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Ben]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Bob]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Brian]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Cameron]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Derek]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [FaceDownCard]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [HealthyGaming]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Jay]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Kyle]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [LoadingScreen]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Mike]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Net]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Packets]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Packet]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Power]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Rachelle]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Sound]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Zone]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [JMac]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Yim]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Becca]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Henry]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [MissingAssets]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [UpdateManager]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [GameMgr]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [CardbackMgr]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true
    [Reset]
    LogLevel=4
    FilePrinting=true
    ConsolePrinting=true
    ScreenPrinting=true

Similar Threads

  1. Replies: 1
    Last Post: 08-19-2008, 10:01 AM
  2. [Help] Can't find savory deviate delight skins
    By Jrmz in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 07-10-2008, 10:36 AM
  3. [HELP] Were can i find the latest LUA files??
    By emil94 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-07-2008, 05:42 AM
  4. HELP! Can't find data file!!
    By Rekro in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 12-25-2006, 11:42 PM
All times are GMT -5. The time now is 04:48 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search