mimikri Administrator

  • 36
  • from Berlin
  • Member since Sep 12th 2016
Last Activity
, Reading thread Buildings slots

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

  • Pesadilla -

    good morning sorry if I bother you from very early but there is something that I really liked your designs but I could not install it I would like if you can help me or give me a link to download a better installation of 2moons-war-of-alliance-master

    • mimikri -

      war of allience ist made by thisishowwedoit, for help with it, please ask him

  • Pesadilla -

    who can give me the installation of 2moons-was-of-alliance-master that is an installation to be able to mount it

  • Pesadilla -

    Hola alguien me puede ayudar como resolver este error en la administración de alianzas
    Fatal error: Cannot redeclare class FlyingFleetHandler in /srv/www/www.xnova.nat.cu/htdocs/includes/classes/class.FlyingFleetHandler.php on line 18

  • Pesadilla -

    Me gustaría saber si alguien a detectado un bugs con el espionaje que que es e siguiente al realizar un ataque a un jugador y este a la vez es apoyado por un compañero pero sus naves na ha llegado a su hangar y lo espiamos ya le aparece dicha flota en su hagan cunado aun vienen de camino

  • Pesadilla -

    Buenos días yo tengo montado un serve la versión 1.8 pero se ha dado el caso de que están explotando un bugs que reducen el tiempo de vuelo de las flotas y a la vez las mueven instantánea mente hacia otro otro planeta alguien me puede dar alguna solución por favor espero atentamente de su ayuda.

    • mimikri -

      das klingt komisch, ohne fehlermeldung oder kann ich dir nicht sagen was da los ist.
      fehler findest du unter "includes/error.log"
      wenn du code verändert hast, wäre es hilfreich zu posten was du wie verändert hast.
      auch gibt es im adminpanel eine infos seite, in dieser stehen grundlegende informationen, die das finden eines fehlers erleichtern können.

    • Pesadilla -

      Lo malo es eso que no muestra un error a la hora de realizar el bugs por eso estoy corto de información al respecto por el momento pero se ha esta explotando el cual no he podido solucionar dicho error lamento que no pueda aportar mas información al respecto para que me puedan ayudar pero voy trabajar en ellos para así me puedan ayudar

  • yamilrh -

    es normal que mandes mega-recicladores a una expedicion y regresen con 30 millones de recursos? pasa los mismo con el resto de las naves traen bastante recuersos

    • Qwa -

      en la expedicion, los recursos son calculados con base en lo custo de recursos de las naves enviadas.

    • yamilrh -

      oka, tengo otro bug que estan usando es que esta reduciendo el tiempo de vuelo de las flotas, algo para resolver esto

    • Qwa -

      como asi?

  • yamilrh -

    hola, no me funciona el codigo del destructor, :(

  • sromantr -

    hey i m need help

    give this error

    Message: Undefined index: computer_tech
    Line: 55

    $clevel = ($PLANET[$resource[$id]] * 1) + ($PLANET[$resource[$id]] * 1);

    what i do

    i try to

    $clevel = (isset($PLANET[$resource[$id]])) ? ($PLANET[$resource[$id]] * 1) : ($USER[$resource[$id]] * 1) + ($PLANET[$resource[$id]] * 1);

    but not work

    • mimikri -

      computer_tech is in $USER cause researches are saved in uni1_users, fleet and buildinge in $PLANETS (uni1_planets)

    • sromantr -

      I'm trying to do something like this

      resimag.com/i/507eec898bc

      <?php

      /**
      * 2Moons
      * Copyright (C) 2012 Jan Kröpke
      *
      * This program is free software: you can redistribute it and/or modify
      * it under the terms of the GNU General Public License as published by
      * the Free Software Foundation, either version 3 of the License, or
      * (at your option) any later version.
      *
      * This program is distributed in the hope that it will be useful,
      * but WITHOUT ANY WARRANTY; without even the implied warranty of
      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
      * GNU General Public License for more details.
      *
      * You should have received a copy of the GNU General Public License
      * along with this program. If not, see <gnu.org/licenses/>.
      *
      * @package 2Moons
      * @author Jan Kröpke <info@2moons.cc>
      * @copyright 2012 Jan Kröpke <info@2moons.cc>
      * @license gnu.org/licenses/gpl.html GNU GPLv3 License
      * @version 1.7.3 (2013-05-19)
      * @info $Id: class.ShowTechtreePage.php 2632 2013-03-18 19:05:14Z slaver7 $
      * @link 2moons.cc/
      */


      class ShowTechDataPage extends AbstractPage
      {
      public static $requireModule = MODULE_TECHTREE;

      function __construct()
      {
      parent::__construct();
      $this->setWindow('popup');
      $this->initTemplate();
      }

      private function get_req($id,$from = '-1',$req = 1){
      global $requeriments,$LNG,$USER ,$PLANET,$resource,$n;

      $get_req = "";
      if(isset($requeriments[$id]))
      {
      //See if this item has requirements, if so give it space for the +/-
      if(is_array($requeriments[$id])){ $h = 55; }else{ $h = 46; }
      }else{
      $h = 46;
      }

      //See if we have met this requirement, get curent level
      $clevel = (isset($PLANET[$resource[$id]])) ? ($PLANET[$resource[$id]] * 1) : ($USER[$resource[$id]] * 1) + ($PLANET[$resource[$id]] * 1);

      //Have we beet the requirement?
      if($clevel >= $req){
      $colour = 'lime';
      $req_txt = $req;
      }else{
      $colour = 'red';
      $req_txt = $clevel.'/'.$req;
      }

      //Add the item to the subtree
      $get_req .= "\t\t\t\t".'myTree.add('.$n.','.$from.',"<a><img src=\'styles/theme/gow/img/small/small_'.$id.'.jpg\' style=\'border:1px solid '.$colour.';\' /><span class=\'mrtooltip\' style=\'color:'.$colour.'\'>'.$req_txt.' - '.$LNG['tech'][$id].'</span></a>",46,'.$h.');'."\n";

      //Note this element then move onto the next.
      $from = $n; $n++;

      if(isset($requeriments[$id])) {
      //If there are requirements.
      if(is_array($requeriments[$id])){
      //Then do the same for each of its requirements.
      foreach($requeriments[$id] as $nid => $req){
      $get_req .= $this->get_req($nid,$from,$req);
      }
      }
      }
      return $get_req;
      }

      function show()
      {
      }

      function tree()
      {
      global $LNG;

      $parse = $LNG;
      $Element = HTTP::_GP('gid', 0);
      $ElementName = $LNG['tech'][$Element];
      $heightajusts = array(
      43 => 60,
      214 => 100,
      );
      $divheightajusts = array(
      1 => 100,
      2 => 100,
      3 => 100,
      4 => 100,
      12 => 160,
      14 => 100,
      15 => 160,
      21 => 100,
      22 => 100,
      23 => 100,
      24 => 100,
      31 => 100,
      33 => 310,
      34 => 100,
      41 => 100,
      42 => 100,
      43 => 360,
      44 => 100,

      106 => 100,
      108 => 100,
      109 => 100,
      110 => 160,
      111 => 100,
      113 => 100,
      114 => 370,
      115 => 160,
      117 => 160,
      118 => 360,
      120 => 160,
      121 => 370,
      122 => 810,
      123 => 560,
      124 => 410,
      199 => 100,

      202 => 300,
      203 => 300,
      204 => 300,
      205 => 400,
      206 => 700,
      207 => 300,
      208 => 300,
      209 => 500,
      210 => 400,
      211 => 1100,
      212 => 100,
      213 => 700,
      214 => 920,
      215 => 1100,

      401 => 100,
      402 => 400,
      403 => 400,
      404 => 600,
      405 => 500,
      406 => 900,
      407 => 300,
      408 => 300,

      502 => 200,
      503 => 500,
      );
      if(!in_array($Element,array_keys($heightajusts))){
      $heightajusts[$Element] = 10;
      }
      if(!in_array($Element,array_keys($divheightajusts))){
      $divheightajusts[$Element] = 800;
      }

      $pages = "
      <script type=\"text/javascript\" src=\"./scripts/game/ECOTree.js\"></script>
      <link type=\"text/css\" rel=\"stylesheet\" href=\"./styles/resource/css/ingame/ECOTree.css\" />
      <link type=\"text/css\" rel=\"stylesheet\" href=\"./styles/resource/css/ingame/madnessred.css\" />
      <link rel='stylesheet' type='text/css' href='./styles/theme/gow/css/ogame.css' media='screen' />
      <xml:namespace ns=\"urn:schemas-microsoft-com:vml\" prefix=\"v\"/>
      <style>v\:*{ behavior:url(#default#VML);}</style>
      <style>
      .copy {
      font-family : \"Verdana\";
      font-size : 10px;
      color : #CCCCCC;
      }
      </style>
      <script type='text/javascript'>
      var myTree = null;
      function CreateTree() {
      myTree = new ECOTree('myTree','myTreeContainer');
      //myTree.config.linkType = 'B';
      myTree.config.iRootOrientation = ECOTree.RO_LEFT;
      myTree.config.topXAdjustment = ".$heightajusts[$Element].";
      myTree.config.linkColor = \"#FFFFFF\";
      myTree.config.nodeColor = \"#FFFFFF\";
      myTree.config.nodeBorderColor = \"FFFFFF\";
      myTree.config.useTarget = false;
      myTree.config.selectMode = ECOTree.SL_SINGLE;

      ".$this->get_req($Element)."

      myTree.UpdateTree();

      }

      </script>
      <body onload=\"CreateTree();\" style=\"height:".($divheightajusts[$Element] + 50)."px; width: 667px;overflow:none;\">
      <div class=\"overlayDiv\">
      <ul class=\"subsection_tabs\">
      <li>
      <a class=\"overlay reiter active\" href=\"#\" onclick=\"return Dialog.TechData(".$Element.");\">
      <span>
      Teknoloji A.
      </span>
      </a>
      </li>
      <li>
      <a class=\"overlay reiter\" href=\"?page=infos&amp;gid=".$Element."\">
      <span>
      Teknikbilgi
      </span>
      </a>
      </li>
      <li>
      <a href=\"http://dark-space.ga/game.php?page=techtree&ajax=1\" class=\"overlay tooltipRight js_hideTipOnMobile \" target=\"_self\" title=\"Teknik\">
      <span>
      Teknoloji
      </span>
      </a>
      </li>
      </ul>
      <div onload=\"CreateTree();\" id=\"myTreeContainer\" style=\"height:".($divheightajusts[$Element] + 50)."px;overflow:none;\"></div></div>
      </body>";

      $this->tplObj->assign_vars(array(
      'pages' => $pages,
      ));

      $this->display('techdata_body.tpl');

      }
      }

    • mimikri -

      $clevel = isset($PLANET[$resource[$id]]) ? $PLANET[$resource[$id]] : $USER[$resource[$id]];

    • mimikri -

      with

      if(BuildFunctions::isTechnologieAccessible($USER, $PLANET, $id)){
      do something...
      }

      you can check if the requirements are met.

    • sromantr -

      oki thnx

  • Hiro -

    hallo Mimi
    kannst du mir bitte weiter helfen in sachen meines Post?
    lg
    Hacky

  • Abyss -

    We cannot see records separately in records in two universes. How can we separate records as if each universe will see their own records. Yardımcı olabilirmisin?

    I need to process these 3 files, but it does not

    - includes/classes/class.statbuilder.php

    - includes/pages/game/ShowRecordsPage.class.php

    - -styles/templates/game/page.records.default.tpl

    2Moons 1.8

    • mimikri -

      i don't know that since i never used several unis in one db.

    • Abyss -

      I've solved everything, only records left.

    • Qwa -

      you solve it by adding a column "uni" into uni1_records and modify to multi key array for records on class.statbuilder.php

    • Abyss -

      but we did not, you can give the application as a code

  • Abyss -

    do you have a chance to send relocate mode, thank you, master

  • zrotec -

    Ihave a problem look at left menu I don't open admin account in menu
    hizliresim.com/Rgy87n
    lock/block or permissions?
    help me pls

  • Abyss -

    When you manage the Alliance, it gets this error message.

    Fatal error: Cannot declare class FlyingFleetHandler, because the name is already in use in /home/ogameturkey/public_html/includes/classes/class.FlyingFleetHandler.php on line 18

    • mimikri -

      you can replace line 871 of includes/game/ShowAlliancePage.class.php with:
      if (!class_exists('FlyingFleetHandler', false)) { require_once('includes/classes/class.FlyingFleetHandler.php'); }

    • mimikri -

      it is a 'quick n dirty', but should do it's job, i didn't dig for the cause, why it is loaded twice.

    • Abyss -

      thanks

  • Abyss -

    hello to 2moons 1.8 wonder if you have mine collecting mod

  • Russoll -

    Thanks ...looks to be good now

  • Russoll -

    hey when i log in the system will not let me go to the dashboard....says im not authorized

  • Estevez -

    Necesito saber porque no puedo colonizar otros planetas me dicen los mensajes que la tecnologia no es suficiente en cada colonizador que envio

    • Qwa -

      do u have the expedition research?

      tienes la tecnologia de expediciones?

  • Russoll -

    Do I need to put in the database tables under mods

  • Russoll -

    And the users

  • Russoll -

    Yup I updated the tech.php

  • Russoll -

    hey just a question....i get this error when i put in the racemod
    Undefined index: race
    File: /includes/pages/game/class.ShowRacePage.php (Line 55)


    $seite .= "<div style=\"height: 100vh; text-align:center;\";>Wähle mit bedacht, die Klasse kann nur alle 3 Monate gewechselt werden.<br>"; if(($USER['race_date']) > time()){ $seite .= "Die Klasse kann ab dem " . date( 'd.m.Y , H:i:s' ,($USER['race_date'])) . " wieder gewechselt werden.<br>"; } $seite .= "
    Deine Klasse ist:<br> <img src=\"styles/theme/gow/img/race".$USER['race'] .".jpg\"> <br>" . $LNG['tech']['80'.$USER['race']];




    i have updated the uni1_vars, the language files and the sql for users

    • mimikri -

      have you defined language/en/tech.php ? entrys like 800 => 'Klassen',
      802 => 'Miner',
      803 => 'Krieger',
      801 => 'Forscher',

    • mimikri -

      or you forgot to update uni1_users?

    • Qwa -

      seems he did not added to uni1_users table, undefined index from a global var ($USER), unless you are calling a $race and this $race is not defined

  • Ignity -

    /edit/ thank you i got it :)

  • Russoll -

    i was using it as an example for reference point found it but no joy just trying to finish an attack alarm, spy alarm , i got the attack alarm in the ingame, and show scanpage, but having problems with the spy alarm

  • Russoll -

    looking into it thanks

  • Russoll -

    i got the beta7 version

  • Russoll -

    ty

  • Russoll -

    ty i was looking in the ingame but couldnt find any thing

    • mimikri -

      don't know your version but may its in the db, when its not on the folders, with an editor like notepad++ or atom etc you can serach the whole code for a string. or you use windowssearch for searching Ingame.php

    • mimikri -

      if you are lucky this works in xterium 2moons.de/index.php?thread/340…es-methods-and-functions/ (take the last version)
      with it you can explore the envierement loaded, when your file is called. also you can see wich files are called.

  • Russoll -

    k ty

  • Russoll -

    hey quick questions for the indicators, i am almost finished but i run into a snag...i cant find in xterium version in the language folders were it is placed do you know were?

    • mimikri -

      they should be loaded already look for $LNG may write
      echo '<pre>';
      print_r($LNG);
      echo '</pre>';
      and look at the output if you request the site. may you have to define it as
      global $LNG;
      at the begin of your function