• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • So if I were to make a bot base, must I never set the navigator to Gaia on Startup?

    Discussion in 'Community Developer Forum' started by Neverdyne, Dec 9, 2014.

    1. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      Just to clarify, if I were making a Bot Base, is it safe to instantiate Gaia on Startup once, and then set the Navigator to null on Shutdown? Or is that going to get me banned still? I'm guessing when you make an instance on Gaia it'll make a request to the server, and the problem is making too many requests to the server. But bot bases have to create an instance at least once no?
       
    2. kagamihiiragi17

      kagamihiiragi17 Community Developer

      Joined:
      Jun 24, 2014
      Messages:
      873
      Likes Received:
      25
      Trophy Points:
      0
      Use it something like this:

      Code:
              public override void Start()
              {
                  Navigator.NavigationProvider = new GaiaNavigator(2f);
              }
      And don't forget to dispose it at the end or the bot won't kill the connection, you'll run into lots of problems:

      Code:
              public override void Stop()
              {
                  (Navigator.NavigationProvider as GaiaNavigator).Dispose();
              }
       
    3. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      Ah ok, thanks a lot Kaga!
       
    4. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,343
      Likes Received:
      383
      Trophy Points:
      83
      2f is huge do not use that. Don't pass a variable, just use the default empty constructor.
       
    5. Neverdyne

      Neverdyne Community Developer

      Joined:
      Sep 12, 2014
      Messages:
      649
      Likes Received:
      18
      Trophy Points:
      18
      Thanks for the replies.
       

    Share This Page