Git Product home page Git Product logo

Comments (8)

Nusuminat avatar Nusuminat commented on July 20, 2024

Message: Undefined offset: 113
File: /includes/pages/game/ShowResearchPage.class.php
Line: 48
URL: http://xxxxxxxx.xxx/2Moons/game.php?page=research
PHP-Version: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1
PHP-API: apache2handler
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/pages/game/ShowResearchPage.class.php(48): errorHandler(8, 'Undefined offse...', 'FILEPATH ...', 48, Array)
#1 /includes/pages/game/ShowResearchPage.class.php(329): ShowResearchPage->CancelBuildingFromQueue()
#2 /game.php(57): ShowResearchPage->show()
#3 {main}

Line: 48
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId] + 1);

from 2moons.

Para0234 avatar Para0234 commented on July 20, 2024

Did you add some things? Like, some special researches?

I had this mistake when I modded it myself.

I'd advise you to try to change the language and to check the translation file because for what it seems, it looks like said translations are missing...

Does the same problem appear when you go in "technology"?

from 2moons.

jkroepke avatar jkroepke commented on July 20, 2024

$PLANET[$elementId] looks wrong for me. It should be $PLANET[$resource[$elementId]]

Can you do this change locally and test if the error still exists?

from 2moons.

jkroepke avatar jkroepke commented on July 20, 2024

@Nusuminat did it help?

from 2moons.

mimikri avatar mimikri commented on July 20, 2024

it is about research and researches are saved under prefix_users. so it should be $USER[$resource[$elementId]]

from 2moons.

Nusuminat avatar Nusuminat commented on July 20, 2024

gentlemen, I did it ... and everything works perfect ...;) as for me because why you have to return raw materials;)

$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId] = 0);

from 2moons.

jkroepke avatar jkroepke commented on July 20, 2024

You should do this:

a6392d7#diff-a639f1032499d4c506b2a28ff191033fR61

from 2moons.

Nusuminat avatar Nusuminat commented on July 20, 2024

👍

from 2moons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.