IS there information aviable about the changes of the recorded game file format? (new civs and units id's, etc)
if ($ext == 'mgl') {
$this->_isMgl = true;
$this->_isMgx = false;
}
elseif ($ext == 'mgx') {
$this->_isMgx = true;
$this->_isMgl = false;
}
elseif ($ext == 'mgz') {
$this->_isMgx = true;
$this->_isMgl = false;
}
else {
throw new RecAnalystException('Wrong file extension, file format is not supported',
RecAnalystException::FILEFORMAT_NOT_SUPPORTED);
}
/**
* Determines if the archive is open.
* @var bool
*/
protected $_open;
const MGX_EXT = 'mgx';
const MGL_EXT = 'mgl';
const MGZ_EXT = 'mgz';
// skip useless files
$ext = strtolower(pathinfo($stat['name'], PATHINFO_EXTENSION));
if ($ext != self::MGX_EXT && $ext != self::MGZ_EXT && $ext != self::MGL_EXT) {
continue;
}
public static $CIVS = array(
array('', ''),
array('Britons', 'britons'),
array('Franks', 'franks'),
array('Goths', 'goths'),
array('Teutons', 'teutons'),
array('Japanese', 'japanese'),
array('Chinese', 'chinese'),
array('Byzantines', 'byzantines'),
array('Persians', 'persians'),
array('Saracens', 'saracens'),
array('Turks', 'turks'),
array('Vikings', 'vikings'),
array('Mongols', 'mongols'),
array('Celts', 'celts'),
array('Spanish', 'spanish'),
array('Aztecs', 'aztecs'),
array('Mayans', 'mayans'),
array('Huns', 'huns'),
array('Koreans', 'koreans'),
array('Italians', 'italians'),
array('Indians', 'indians'),
array('Incas', 'incas'),
array('Magyars', 'magyars'),
array('Slavs', 'slavs')
);
final class Civilization {
const NONE = 0;
const BRITONS = 1;
const FRANKS = 2;
const GOTHS = 3;
const TEUTONS = 4;
const JAPANESE = 5;
const CHINESE = 6;
const BYZANTINES = 7;
const PERSIANS = 8;
const SARACENS = 9;
const TURKS = 10;
const VIKINGS = 11;
const MONGOLS = 12;
const CELTS = 13;
const SPANISH = 14;
const AZTECS = 15;
const MAYANS = 16;
const HUNS = 17;
const KOREANS = 18;
const ITALIANS = 19;
const INDIANS = 20;
const INCAS = 21;
const MAGYARS = 22;
const SLAVS = 23;
private function __construct(){}
}
......................
49 => array('Berserkergang', 'unique_tech'),
526 => array('Hunting Dogs', 'hunting_dogs'),
521 => array('Imperial Camel', 'imperial_camel'),
517 => array('Couriers', 'unique_tech'),
516 => array('Andean Sling', 'unique_tech2'),
515 => array('Recurve Bow', 'unique_tech'),
514 => array('Mercenaries', 'unique_tech2'),
513 => array('Druzhina', 'unique_tech'),
512 => array('Orthodoxy', 'unique_tech2'),
507 => array('Shatagni', 'unique_tech'),
506 => array('Sultans', 'unique_tech2'),
499 => array('Silk Road', 'unique_tech'),
494 => array('Pavise', 'unique_tech2'),
493 => array('Chivalry', 'unique_tech2'),
492 => array('Inquisition', 'unique_tech2'),
491 => array('Sipahi', 'unique_tech2'),
490 => array('Madrasah', 'unique_tech2'),
489 => array('Ironclad', 'unique_tech2'),
488 => array('Boiling Oil', 'unique_tech2'),
487 => array('Nomads', 'unique_tech2'),
486 => array('Panokseon', 'unique_tech2'),
485 => array('Tlatoani', 'unique_tech2'),
484 => array('Marauders', 'unique_tech2'),
483 => array('Stronghold', 'unique_tech2'),
464 => array('Greek Fire', 'unique_tech2'),
463 => array('Chieftains', 'unique_tech2'),
462 => array('Great Wall', 'unique_tech2'),
461 => array('Warwolf', 'unique_tech2'),
460 => array('Atlatl', 'unique_tech2'),
384 => array('Eagle Warrior', 'heavy_eagle_warrior'),
494 => array('Gillnets', 'gillnets'),
509 => array('Elite Kamayuk', 'kamayuk'),
504 => array('Elite Boyar', 'boyar'),
481 => array('Elite Elephant Archer', 'elephant_archer'),
472 => array('Elite Magyar Huszar', 'magyar_huszar'),
468 => array('Elite Genoese Crossbowman', 'genoese_crossbowman')
);
......................
832 => array('Elite Turtle Ship', 'turtle_ship'),
866 => array('Genoese Crossbowman', 'genoese_crossbowman'),
868 => array('Elite Genoese Crossbowman', 'genoese_crossbowman'),
886 => array('Tarkan', 'tarkan'),
887 => array('Elite Tarkan', 'tarkan'),
882 => array('Condottiero', 'condottiero'),
184 => array('Condottiero', 'condottiero'),
879 => array('Kamayuk', 'kamayuk'),
881 => array('Elite Kamayuk', 'kamayuk'),
876 => array('Boyar', 'boyar'),
878 => array('Elite Boyar', 'boyar'),
873 => array('Elephant Archer', 'elephant_archer'),
875 => array('Elite Elephant Archer', 'elephant_archer'),
869 => array('Magyar Huszar', 'magyar_huszar'),
871 => array('Elite Magyar Huszar', 'magyar_huszar'),
753 => array('Eagle Warrior', 'eagle_warrior'),
207 => array('Imperial Camel', 'imperial_camel'),
185 => array('Slinger', 'slinger')
);
......................
792 => array('Palisade Gate', 'palisade_gate'),
796 => array('Palisade Gate', 'palisade_gate'),
800 => array('Palisade Gate', 'palisade_gate'),
804 => array('Palisade Gate', 'palisade_gate')
);
Up?I will upload the gifs later today ([function.imagecreatefromgif] will throw a lot of errors without them)
Just installed it. Everything looks fine. I'll reply here, if i'll find any bugs.
add: what about game version? analyser says it's 1.0c.
Are there another name changes?In case of naming conflicts (Eagle warrior renamed to Eagle scout in AoFE)...
mandrake88 said:Just installed it. Everything looks fine. I'll reply here, if i'll find any bugs.
add: what about game version? analyser says it's 1.0c.
yep, that is what i said above. They need to change the version ID of the mgz format, is using the same value that 1.0c (int value 4)
You can use something like this:
http://recanalyst.svn.sourceforge.net/v ... 1=52&r2=53
http://recanalyst.svn.sourceforge.net/v ... 1=52&r2=53
Hi,
I have read "@Cysion" post "Jan 3, 2013" date which was related to .mgz so I have followed their guid means changes in code but not working for .mgz file, and getting "Caught exception: Cannot decompress header section" error, any one can help me regarding this.
I have fount a script from https://sourceforge.net/projects/recanalyst/ and use demo folder.
Thanks,
Mukesh
https://github.com/happyleavesaoc/aoc-mgz is a working implementation
Thanks for your help, I think your provided link is related to python and my code written in php. (I am using "https://sourceforge.net/projects/recanalyst/" code of demo folder).
If you or any other know any solution in php so please let me know it would be helpful for me
Thanks.