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

[Bug] Fleet? Error #300

Open
Hexeus opened this issue Jun 2, 2017 · 4 comments
Open

[Bug] Fleet? Error #300

Hexeus opened this issue Jun 2, 2017 · 4 comments

Comments

@Hexeus
Copy link

Hexeus commented Jun 2, 2017

NOTICE
Message: Undefined index: universe
File: /includes/classes/class.PlanetRessUpdate.php
Line: 96
URL: https://2moons.hexeus.com/game.php
PHP-Version: 5.6.30
PHP-API: litespeed
MySQL-Client-Version: 5.6.35
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/classes/class.PlanetRessUpdate.php(96): errorHandler(8, 'Undefined index...', 'FILEPATH ...', 96, Array)
#1 /includes/classes/missions/MissionCaseDestruction.class.php(84): ResourceUpdate->CalcResource(Array, false, true, '1496354016')
#2 /includes/classes/class.FlyingFleetHandler.php(80): MissionCaseDestruction->TargetEvent()
#3 /includes/FleetHandler.php(31): FlyingFleetHandler->run()
#4 /includes/common.php(140): require('FILEPATH ...')
#5 /game.php(24): require('FILEPATH ...')
#6 {main}

@Jbaukens
Copy link
Contributor

Hello,

You have to verify if a moon still exist on that spot, before starting the mission

@jkroepke
Copy link
Owner

The problem is if 2 players start a destruction mission and the first missions destory the moon, the 2nd mission will hit this error above.

@Jbaukens
Copy link
Contributor

Yes i know, thats why i told him to check if planet still exist., i have the fix since long time, will pr it after rl work

@xpowert
Copy link

xpowert commented Feb 10, 2019

Can you share the fix please ?

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