Probleme mit b_hangar_id - Problem with b_hangar_id

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Probleme mit b_hangar_id - Problem with b_hangar_id

      Auch in diesem Thread geht es wieder um einen Teil des Bot Mods für die 1.7

      Derzeit versuche ich diesen in die 1.8git einzubauen, mein problem ist folgendes:



      This thread is about the bot mod for the 1.7


      Currently Iam trying to recode this Mod for the 1.8git, my problem is the following:

      Source Code: error.log

      1. [12-May-2018 16:44:10] NOTICE: "Undefined index: b_hangar_id"
      2. File: /var/www/html/game/includes/classes/class.PlanetRessUpdate.php | Line: 310
      3. URL: https://www.gamercircle.de/game/cronjob.php?cronjobID=10 | Version: 1.8.git
      4. Stack trace:
      5. #0 /includes/classes/class.PlanetRessUpdate.php(310): errorHandler(8, 'Undefined index...', '/var/www/html/g...', 310, Array)
      6. #1 /includes/classes/class.PlanetRessUpdate.php(104): ResourceUpdate->ShipyardQueue()
      7. #2 /includes/classes/class.bot.php(380): ResourceUpdate->CalcResource(Array, Array)
      8. #3 /includes/classes/class.bot.php(248): Bot->Play()
      9. #4 /includes/classes/class.bot.php(264): Bot::playBot(Array)
      10. #5 /includes/classes/cronjob/BotCronjob.class.php(13): Bot::getBots()
      11. #6 /includes/classes/Cronjob.class.php(57): BotCronjob->run()
      12. #7 /cronjob.php(54): Cronjob::execute(10)
      13. #8 {main}
      Display All

      Die funktion in der dieser fehler auftritt ist folgende:

      The function that the error occoures is:

      PHP Source Code

      1. function GetHangerQueueInfo()
      2. {
      3. $CurrentQueue = unserialize($this->PLANET['b_hangar_id']);
      4. if (!empty($CurrentQueue))
      5. return count($CurrentQueue);
      6. else
      7. return 0;
      8. }

      Meine derzeitige class.bot.php hänge ich an da es zu viel code für ein posting ist.

      Ich weiß auch das in der class.PlanetRessUpdate.php eine funktion vorhanden ist die für genau diesen aufruf zuständig ist, doch wie ich diese zu 100% korrekt bedienen soll weiß ich noch nicht.

      I attach my current class.bot.php because there is too much code for a posting.


      I also know that in class.PlanetRessUpdate.php a function is available
      that is responsible for exactly this call, but how I use this to 100%
      correct I do not know yet.

      Ich bin für jede hilfe und jeden Hinweis dankbar!

      Thx for any help
      Files

      The post was edited 1 time, last by TheAlex ().