• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Gesior Acc. Installing problem

drax skylon

o.O DrAx O.o
Joined
Sep 9, 2008
Messages
225
Reaction score
3
Hiho!

I was trying to install the Gesior Acc. Maker and on step 5 after I click on set admin password button this error appears:

STEP 5

Set Admin Account

Warning: domdocument::domdocument() expects at least 1 parameter, 0 given in C:\xampp\htdocs\classes\vocations.php on line 13

Fatal error: Call to undefined method domdocument::load() in C:\xampp\htdocs\classes\vocations.php on line 14

If somebody knows how to fix that I would appreciate...;]
 
which gesior are you using, because i use gesior my self and i dont have "classes" folder so i think if you delete that folder it should work as mine works fine without that folder :)


Repp if helped :)
 
use gesior.0.6.2 dont use 0.6.3 i had errors from that download on my steps so many times if the 0.6.2 dont work use 0.6.1 for now and work around the other bugs you have going on
 
<?php
if(!defined('INITIALIZED'))
exit;

class Vocations implements Iterator, Countable
{
private $vocations = array();
private $XML;
public $iterator = 0;

public function __construct($file)
{
$XML = new DOMDocument();
if(!$XML->load($file))
new Error_Critic('', 'Vocations::__construct - cannot load file <b>' . htmlspecialchars($file) . '</b>');

$this->XML = $XML;
$_tmp_vocations = array();

foreach($XML->getElementsByTagName('vocation') as $vocation)
{
if($vocation->hasAttribute('id') && $vocation->hasAttribute('name'))
{
$vocationData = array();
$vocationData['id'] = $vocation->getAttribute('id');
$vocationData['name'] = $vocation->getAttribute('name');
if($vocation->hasAttribute('fromvoc'))
$vocationData['fromvoc'] = $vocation->getAttribute('fromvoc');
else
$vocationData['fromvoc'] = $vocationData['id'];
if($vocation->hasAttribute('manamultiplier'))
$vocationData['manamultiplier'] = $vocation->getAttribute('manamultiplier');
else
$vocationData['manamultiplier'] = 1;

if($vocation->hasAttribute('gainhp'))
$vocationData['gainhp'] = $vocation->getAttribute('gainhp');
else
$vocationData['gainhp'] = 0;
if($vocation->hasAttribute('gainmana'))
$vocationData['gainmana'] = $vocation->getAttribute('gainmana');
else
$vocationData['gainmana'] = 0;
if($vocation->hasAttribute('gaincap'))
$vocationData['gaincap'] = $vocation->getAttribute('gaincap');
else
$vocationData['gaincap'] = 0;

if($vocation->hasAttribute('gainhpticks'))
$vocationData['gainhpticks'] = $vocation->getAttribute('gainhpticks');
else
$vocationData['gainhpticks'] = 1;
if($vocation->hasAttribute('gainhpamount'))
$vocationData['gainhpamount'] = $vocation->getAttribute('gainhpamount');
else
$vocationData['gainhpamount'] = 0;

if($vocation->hasAttribute('gainmanaticks'))
$vocationData['gainmanaticks'] = $vocation->getAttribute('gainmanaticks');
else
$vocationData['gainmanaticks'] = 1;
if($vocation->hasAttribute('gainmanaamount'))
$vocationData['gainmanaamount'] = $vocation->getAttribute('gainmanaamount');
else
$vocationData['gainmanaamount'] = 0;

if($vocation->hasAttribute('gainsoulticks'))
$vocationData['gainsoulticks'] = $vocation->getAttribute('gainsoulticks');
else
$vocationData['gainsoulticks'] = 1;

if($vocation->hasAttribute('attackspeed'))
$vocationData['attackspeed'] = $vocation->getAttribute('attackspeed');
else
$vocationData['attackspeed'] = 2000;

$_tmp_vocations[$vocation->getAttribute('id')] = $vocationData;
}
else
new Error_Critic('#C', 'Cannot load vocation. <b>id</b> or/and <b>name</b> parameter is missing');
}
/*
* Set promotion level and base vocation id
*/
foreach($_tmp_vocations as $_tmp_vocation)
{
$_tmp_vocation['promotion'] = 0;
$_tmp_vocation['base_id'] = $_tmp_vocation['id'];
$promotion_voc = $_tmp_vocation;
while($promotion_voc['fromvoc'] != $promotion_voc['id'])
{
$promotion_voc = $_tmp_vocations[$promotion_voc['fromvoc']];
$_tmp_vocation['base_id'] = $promotion_voc['id'];
$_tmp_vocation['promotion']++;
}
$this->vocations[$_tmp_vocation['id']] = new Vocation($_tmp_vocation);
}
}
/*
* Get vocation
*/
public function getVocation($base_id, $promotion = 0)
{
foreach($this->vocations as $vocation)
if($vocation->getBaseId() == $base_id && $vocation->getPromotion() == $promotion)
return $vocation;
return false;
}
/*
* Get vocation name without getting vocation
*/
public function getVocationName($base_id, $promotion = 0)
{
if($vocs = self::getVocation($base_id, $promotion))
return $vocs->getName();
return false;
}


public function current()
{
return $this->vocations[$this->iterator];
}

public function rewind()
{
$this->iterator = 0;
}

public function next()
{
++$this->iterator;
}

public function key()
{
return $this->iterator;
}

public function valid()
{
return isset($this->vocations[$this->iterator]);
}

public function count()
{
return count($this->vocations);
}

}
here is it ;]
 
post your vocations.xml
EDIT:
I search and remember gesior fixed error with is: That is wrong (there are 4 vocations and their upgrades):
Lua:
<vocation id="12" name="Name" description="a Barbarian" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="200" gainmanaticks="2" gainmanaamount="100" gainsoulticks="15" gainsoulamount="1" manamultiplier="3.0" attackspeed="225" fromvoc="16" basespeed="320" lessloss="75">
<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.1" armor="1.1"/>
<diepercent experience="4" magic="4" skill="4" equipment="4" container="100"/>
<skill id="0" multiplier="1.1"/>
<skill id="1" multiplier="1.1"/>
<skill id="2" multiplier="1.1"/>
<skill id="3" multiplier="1.1"/>
<skill id="4" multiplier="1.4"/>
<skill id="5" multiplier="1.1"/>
<skill id="6" multiplier="1.1"/>
</vocation>
<vocation id="16" name="Name" description="a Barbarian" gaincap="25" gainhp="15" gainmana="5" gainhpticks="1" gainhpamount="200" gainmanaticks="2" gainmanaamount="100" gainsoulticks="15" gainsoulamount="1" manamultiplier="3.0" attackspeed="225" fromvoc="12" basespeed="320" lessloss="75">
<formula meleeDamage="1.2" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.1" armor="1.1"/>
<diepercent experience="4" magic="4" skill="4" equipment="4" container="100"/>
<skill id="0" multiplier="1.1"/>
<skill id="1" multiplier="1.1"/>
<skill id="2" multiplier="1.1"/>
<skill id="3" multiplier="1.1"/>
<skill id="4" multiplier="1.4"/>
<skill id="5" multiplier="1.1"/>
<skill id="6" multiplier="1.1"/>
</vocation>
Vocation ID 12 is 'from' 16. Vocation 16 is 'from' 12. Acc. maker goes infinite loop, tries to get 'parent' vocations until parent vocation is equal to id.
I think that you should edit vocation 12 (and other basic versions of vocation) and it's fromvoc to it's id (to 12). Do it for vocations 9, 10, 11, 12 and acc. maker should work fine.
 
Back
Top