2moons 2.0 Dev

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

    • 2moons 2.0 Dev

      2moons 2.0 OPEN
      Thank you to send by ticket or message or via the forum in the part made for this purpose for all problems.

      The design of the login page is the ingame part will change soon.

      Our main focus is on code adaptation for php 7.2

      So thanks for telling me any mistake you make on the game that I can change the code as quickly as possible.

      Cordially.

      Download version 2.0 here


      v2.0.0 Danter14 xx.xx.2018

      [Modules] :
      • Percentage with bar and text for real-time resources
      • Number of players connect
      • Planet change with arrows
      [Bugs] :
      • Fix of the language buddyList
      [Improvements] :
      • Ability to make high speed server
      [Optimization] :
      • Switching to php version 7.2
      [Design] :
      • Redesign of the bootstrap 4 login page
      • Redesign Ingame by Danter14
      [Panel administration] :
      • none
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading
    • при отправке предложения дружбы

      PHP Source Code: error

      1. Message: Undefined variable: language
      2. File: /includes/pages/game/ShowBuddyListPage.class.php
      3. Line: 122
      4. URL: https://2moons.fr/game.php?page=buddyList&mode=send&ajax=1
      5. PHP-Version: 7.2.1
      6. PHP-API: fpm-fcgi
      7. 2Moons Version: 2.0.git
      8. Debug Backtrace:
      9. #0 /includes/pages/game/ShowBuddyListPage.class.php(122): errorHandler(8, 'Undefined varia...', 'FILEPATH ...', 122, Array)
      10. #1 /game.php(57): ShowBuddyListPage->send()
      11. #2 {main}
      Display All
      Кто к нам с чем зачем, тот от того и того! :D
    • технологии: исследовать и строить можно что угодно, требований просто нет. Не знаю намеренно это сделано или не
      Кто к нам с чем зачем, тот от того и того! :D
    • Thank you for rewriting you do not have to install everything
      Bug should no longer have places
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading
    • Logically he will not have any more but you never know
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading
    • в технологиях исправилось:
      а вот ошибка при запросе дружбы на мест
      Кто к нам с чем зачем, тот от того и того! :D
    • Thank you to repeat a test this should be corrected
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading
    • да без проблем, пожалуйста удали мне исследования которые я сделал
      Кто к нам с чем зачем, тот от того и того! :D
    • Hello Danter.

      I either suggest you to delete PT language or take last INGAME.php from Jan's 2moons [i guess updated veryr recently].

      "Message: Array to string conversion - File: /language/pt/INGAME.php"

      The double $$LNG that has been there for almost an year on original 2moons.
      Looking for good VPS to host your game? Use DigitalOcean and get 100$ bonus credit for 2 months!

      Stellaron Reborn - new summer update

      I can build any mod. Need my service? Contact me via PM
    • Hello I will modify it with the one you put on it

      thanks
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading
    • As soon as the login and ingame design will be finished, I will have my files on github
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading
    • the standard error since the times of version 1.6 can and did not know before. The essence of this is in battle, the shields and armor are mixed up and we look at the code

      PHP Source Code: calculateAttack.php

      1. $attTech = (1 + (0.1 * $attacker['player']['military_tech']) + $attacker['player']['factor']['Attack']);
      2. $defTech = (1 + (0.1 * $attacker['player']['defence_tech']) + $attacker['player']['factor']['Defensive']); //armor technology
      3. $shieldTech = (1 + (0.1 * $attacker['player']['shield_tech']) + $attacker['player']['factor']['Shield']); // shield technology
      4. $attackers[$fleetID]['techs'] = array($attTech, $defTech, $shieldTech);
      5. foreach ($attacker['unit'] as $element => $amount) {
      6. $thisAtt = $amount * ($CombatCaps[$element]['attack']) * $attTech * (rand(80, 120) / 100);
      7. $thisDef = $amount * ($CombatCaps[$element]['shield']) * $defTech ; //shield technology???
      8. $thisShield = $amount * ($pricelist[$element]['cost'][901] + $pricelist[$element]['cost'][902]) / 10 * $shieldTech; //armor????
      9. $attArray[$fleetID][$element] = array('def' => $thisDef, 'shield' => $thisShield, 'att' => $thisAtt);
      10. $attackDamage[$fleetID] += $thisAtt;
      11. $attackDamage['total'] += $thisAtt;
      12. $attackShield[$fleetID] += $thisDef;//armor????
      13. $attackShield['total'] += $thisDef;//armor????
      14. $attackAmount[$fleetID] += $amount;
      15. $attackAmount['total'] += $amount;
      16. }
      Display All
      Кто к нам с чем зачем, тот от того и того! :D
    • чтобы не быть голословным вот полный путь этой путаницы

      PHP Source Code: calculateAttack.php

      1. $attTech = (1 + (0.1 * $attacker['player']['military_tech']) + $attacker['player']['factor']['Attack']);
      2. $defTech = (1 + (0.1 * $attacker['player']['defence_tech']) + $attacker['player']['factor']['Defensive']); //armor technology
      3. $shieldTech = (1 + (0.1 * $attacker['player']['shield_tech']) + $attacker['player']['factor']['Shield']); // shield technology
      4. $attackers[$fleetID]['techs'] = array($attTech, $defTech, $shieldTech);// обращаем внимание что в массиве последним элементом идет щитовая технология

      далее

      PHP Source Code: GenerateReport.php

      1. 'tech' => array($player['techs'][0] * 100, $player['techs'][1] * 100, $player['techs'][2] * 100), // щитовая технология остается последней...

      а вот уже в в отчете

      HTML Source Code: shared.mission.raport.tpl

      1. {$LNG.sys_ship_weapon} {$PlayerInfo.tech[0]}% - {$LNG.sys_ship_shield} {$PlayerInfo.tech[1]}% - {$LNG.sys_ship_armour} {$PlayerInfo.tech[2]}%
      2. <!-- как видим последний элемент в массиве уже стал броней судя по переводу))) -->
      [Blocked Image: http://skrinshoter.ru/p/070218/JRyD5M.png]


      Вообщем путаница там просто сумасшедшая, может и я что то напутал во всем этом, если что не пинайте
      Кто к нам с чем зачем, тот от того и того! :D

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

    • IMHO this confusion must be corrected in the root, otherwise it will simply continue to go all this neponyatka with shields and armor
      Кто к нам с чем зачем, тот от того и того! :D
    • the sources will be available as soon as the design is finished
      I remain at your disposal on the forum for any questions or help.

      A help is of course not a creation of a mod



      -------------------------------------------------------
      My game Ounivers
      Project 2moons3.0 / Downloading