Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Simulator not working #158

Closed
ghost opened this issue Mar 26, 2016 · 16 comments
Closed

Simulator not working #158

ghost opened this issue Mar 26, 2016 · 16 comments

Comments

@ghost
Copy link

ghost commented Mar 26, 2016

When clicking on calculate button, new window pops out, but it is blank instead of displaying the simulation.
It was working in previous old versions.(1.7.3 working, after updating to current master it is not working)
Any help please? I really do not know where is the problem.

@Jbaukens
Copy link
Contributor

if you get a blank page then you get a log in includes/error.log

Regards

@jkroepke
Copy link
Owner

Is this still valid?

@BassXX
Copy link

BassXX commented Apr 27, 2016

I think yes, because for me, I also get quite often a blank page when simulating. In the weekend I will check the error log and let you know

@jkroepke
Copy link
Owner

It is 100% reproduce? Basis on the given values, e.g...

@BassXX
Copy link

BassXX commented Apr 30, 2016

I will ask one of my users, he was able to reproduce i guess...Afterwards I will let you know

@bornhaeusser
Copy link

bornhaeusser commented May 25, 2016

This is logged each time after Calculate the BattleSimulation:

#0 /includes/pages/game/ShowBattleSimulatorPage.class.php(134): errorHandler(8, 'Undefined offse...', '/volume1/web/ga...', 134, Array)
#1 /game.php(57): ShowBattleSimulatorPage->send()
#2 {main}

@bornhaeusser
Copy link

bornhaeusser commented May 25, 2016

delete the cache in Adminmenue than it works some time......

@bornhaeusser
Copy link

got it - hope so - if i win the simulation blank page - if i lose it works.....

@bornhaeusser
Copy link

here is maybee the mistake inside (ShowBattleSimulatorPage.class.php):

if($combatResult['won'] == "a")
{
$stealResource = calculateSteal($attackers, array(
'metal' => $BattleArray[0][1][1],
'crystal' => $BattleArray[0][1][2],
'deuterium' => $BattleArray[0][1][3]
), true);

@Jbaukens
Copy link
Contributor

can whe have the complete error log

@bornhaeusser
Copy link

error.log.txt

@Jbaukens
Copy link
Contributor

File: /volume1/web/game/2moons/includes/pages/game/ShowBattleSimulatorPage.class.php | Line: 134

can i have the from 130 to 137 of your file please

@bornhaeusser
Copy link

    if($combatResult['won'] == "a")
    {
        $stealResource = calculateSteal($attackers, array(
            'metal' => $BattleArray[0][1][1],
            'crystal' => $BattleArray[0][1][2],
            'deuterium' => $BattleArray[0][1][3]
        ), true);

@Jbaukens
Copy link
Contributor

if($combatResult['won'] == "a")
{
$stealResource = calculateSteal($attackers, array(
'metal' => $BattleArray[0][1][901],
'crystal' => $BattleArray[0][1][902],
'deuterium' => $BattleArray[0][1][903]
), true);

here the fix

@bornhaeusser
Copy link

seems to work now, thx

@Jbaukens
Copy link
Contributor

your welcome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants