Login   Register  
PHP Classes
elePHPant
Icontem

File: implementations/Xgp/README.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of jstar88  >  OPBE  >  implementations/Xgp/README.md  >  Download  
File: implementations/Xgp/README.md
Role: Documentation
Content type: text/plain
Description: Documentation
Class: OPBE
Ogame probabilistic battle engine
Author: By
Last change: improved portability
fixed a wrong path in the README.
fixed an old call to toString($resource) method, now replaced with __toString()
Update README.md
Date: 10 months ago
Size: 565 bytes
 

Contents

Class file image Download
Replace all content of function includes/classes/class.FlyingFleetHandler.php::missionCaseAttack() with 

   ```php
      $opbePath = XGP_ROOT.'includes'.DIRECTORY_SEPARATOR.'battle_engine'.DIRECTORY_SEPARATOR; // XGP 2.10.x
      //$opbePath = $GLOBALS['xgp_root'].'includes'.DIRECTORY_SEPARATOR.'libs'.DIRECTORY_SEPARATOR.'opbe'.DIRECTORY_SEPARATOR; // XGP 2.9.x
      require_once($opbePath.'implementations'.DIRECTORY_SEPARATOR.'Xgp'.DIRECTORY_SEPARATOR.'missionCaseAttack.php'); 
   ```

where $opbePath is the path where you uploaded the battle engine pack.