[Bot Developers]A simple, but effective FSM for your bots. menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Patricker; love the additions. As I said in the original post, it's a very *very* simplistic FSM approach. It's made in a way, that you can easily add more functionality as you see fit. (As per your changes, which are awesome by the way)

    However, the Priority, was more of a 'state specific constant'. Though, if you so choose to have dynamic priorities, it's only 1 line away! (As far as the engine is concerned at least!)

    All in all, the changes are awesome. But maybe I should have named things better?

    [Bot Developers]A simple, but effective FSM for your bots.
  2. #17
    dook123's Avatar Active Member
    Reputation
    21
    Join Date
    Oct 2008
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Amazing!

    This is absolutely amazing! I knew learning FSM in class last year would be useful sometime. Thanks for explaining this it is a good read and I followed it well.

    Computer Science Major- going into my Senior year of college

    -Duke

  3. #18
    Steveiwonder's Avatar Active Member
    Reputation
    31
    Join Date
    Oct 2009
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I changed it so i can have the FSM and bot in one project.

    Can you foresee any problems with doing this?

    This is what i'm using.

    Code:
            public void LoadInternStates()
            {
                try
                {
                    // Load the assembly, and get the types contained
                    // within it.
                    //removed some path validation 
    
                    Assembly asm = Assembly.GetExecutingAssembly(); // this is only changed line 
                    Type[] types = asm.GetTypes();
    
                    foreach (Type type in types)
                    {
                        // Here's some fairly simple stuff.
                        if (type.IsClass && type.IsSubclassOf(typeof(State)))
                        {
                            // Create the State using the Activator class.
                            var tempState = (State) Activator.CreateInstance(type);
                            // Make sure we're not using two of the same state.
                            // (That would be bad!)
                            if (!States.Contains(tempState))
                            {
                                States.Add(tempState);
                            }
                        }
                    }
                }
    Thanks
    Last edited by Steveiwonder; 12-06-2010 at 09:50 AM.

  4. #19
    Shadowhunter12's Avatar Member
    Reputation
    1
    Join Date
    Sep 2012
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Removed.. I got it, thanks!
    Last edited by Shadowhunter12; 10-24-2012 at 09:07 AM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Guide] Simple but impactful tool for Demon Hunters and Chaos Blades
    By Kenneth in forum World of Warcraft Guides
    Replies: 3
    Last Post: 12-22-2016, 07:26 AM
  2. [Tutorial] Simple but effective way to capture 1 step away Pokemon
    By Kenneth in forum Pokemon GO Hacks|Cheats
    Replies: 1
    Last Post: 07-10-2016, 12:27 PM
  3. Replies: 20
    Last Post: 11-24-2013, 04:49 PM
  4. [PvE] Mogoshan Vaults - Simple but effective tips.
    By Bon in forum World of Warcraft Guides
    Replies: 8
    Last Post: 10-15-2012, 10:48 AM
All times are GMT -5. The time now is 05:46 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search