• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

TravianZ Official (yi12345) - bugs list

Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
=================
ADMIN PANEL
another fix
=================
file \Admin\admin.php
---------------------
find and replace:
PHP:
session_start();
include_once("../GameEngine/Database.php");
include_once ("../GameEngine/Lang/" . LANG . ".php");
include_once("../GameEngine/Admin/database.php");
include_once("../GameEngine/Data/buidata.php");
1. download file: Tpl_village.zip
unzip to \Admin\Templates\

2. download file : Mod_addTroops.zip
unzip to \GameEngine\Admin\Mods\

replace file if exist.



good job :)
ronix or cata7007 when some of you have time please review

roman horse drinking trough not working properly if the troops are reenforcement..
example.
i have 2 vilages
i make the troops in capital
send 3000 caesaris reenforcement from the capital to the second village.
after receiving troops have 4471 crop prodution,
upgrade a level of the horse drinking trough and my crop changed to 4467 :(

i will check
MisterPr0 New Quest 25 is the same as the official Travian or not?



i have one
NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums
who to fixed

FIX:
------------------------------------------------------------
file \Templates\Rangking\player_top10.tpl
------------------------------------------------------------
find and change or delete:
PHP:
    //$db_host=SQL_SERVER; $db_user=SQL_USER; $db_pass=SQL_PASS; $db_name=SQL_DB;

    //$con = mysql_connect($db_host, $db_user, $db_pass);
    //if (!$con)
    //  {
    //  die('Could not connect: ' . mysql_error());
    //  }


//mysql_select_db($db_name, $con);

//	mysql_close($con);
 
Last edited:
Newbie Spellweaver
Joined
Mar 4, 2014
Messages
13
Reaction score
2
i have a problem, i'm doing right... i think
NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums

NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
@ronix : blank page in village when click on village in Admin panel

REMOVED

[04-Mar-2014 09:01:07 Europe/Bucharest] PHP Fatal error: Call to undefined method adm_DB::calculateProduction() in /home/outlet/public_html/shadowss.ro/travian/Admin/Templates/village.tpl on line 61

Also first part of player_top10 is not the same

PHP:
    <?php
	$place = $place1 = $place2 = $place3 = "?";
    $db_host=SQL_SERVER; $db_user=SQL_USER; $db_pass=SQL_PASS; $db_name=SQL_DB;

    $con = mysql_connect($db_host, $db_user, $db_pass);
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }

    for($i=1;$i<=0;$i++) {
    echo "Row ".$i;
    }
             
    mysql_select_db($db_name, $con);

    $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE access<".(INCLUDE_ADMIN?"10":"8")." AND id > 5 AND tribe<=3 AND tribe > 0 ORDER BY ap DESC, id DESC Limit 10");
    $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = '".$session->uid."' ORDER BY ap DESC, id DESC Limit 1");
	?>
 
Last edited:
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
All good but i have a problem when i press on refresh icon for population all village and account go to 0

Population 0

Villages
Name Population Coordinates Add Troops
Downfall 0 Recount (4|16) Edit Troops
Ernst Kaltenbrunner 0 Recount (4|14) Edit Troops
Josef Kramer 0 Recount (4|13) Edit Troops
Heinrich Himmler 0 Recount (4|18) Edit Troops
Gunter dAlquen 0 Recount (4|19) Edit Troops
Max Amann 0 Recount (5|15) Edit Troops
Hans Aumeier 0 Recount (5|16) Edit Troops
Hermann Goering 0 Recount (5|17) Edit Troops
Joseph Goebbels 0 Recount (5|18) Edit Troops
Franz Stangl 0 Recount (5|19) Edit Troops
Joseph Mengele 0 Recount (4|15) Edit Troops
Reinhard Heydrich 0 Recount (3|13) Edit Troops
Der Untergang (Capital) 0 Recount (7|17) Edit Troops
Battle of Berlin 0 Recount (7|16) Edit Troops
卍 Heil Hitler ϟϟ 0 Recount (5|33) Edit Troops
Adolf Eichmann 0 Recount (4|17) Edit Troops
Führer Adolf Hitler 0 Recount (3|18) Edit Troops
Helmuth Weidling 0 Recount (3|17) Edit Troops
Walther Wenck 0 Recount (3|16) Edit Troops
Alfred Jodl 0 Recount (3|15) Edit Troops
Felix Steiner 0 Recount (3|14) Edit Troops
Karl Dönitz 0 Recount (6|16) Edit Troops
 
Skilled Illusionist
Joined
Feb 13, 2011
Messages
314
Reaction score
49
After lasts updates i try to reinstall script , make config etc. and i recive this :) , but database was succesful import ...

NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums



------------------------------------

i found the problem is in database sql

Code:
 `village_select` bigint(20) yes NULL,
 
Last edited:
Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
=================
ADMIN PANEL
another fix
=================
file \Admin\admin.php
---------------------
find and replace:
PHP:
session_start();
include_once("../GameEngine/Database.php");
include_once ("../GameEngine/Lang/" . LANG . ".php");
include_once("../GameEngine/Admin/database.php");
include_once("../GameEngine/Data/buidata.php");
1. download file: Tpl_village.zip
unzip to \Admin\Templates\

2. download file : Mod_addTroops.zip
unzip to \GameEngine\Admin\Mods\

replace file if exist.
-------------------

hi ronix nice work i love you

thank about bug fix's


what about this

1. download file: Tpl_village.zip
unzip to \Admin\Templates\

2. download file : Mod_addTroops.zip

what fix in this admin panel ?
that is rework, fix and add function in Admin Panel
this function for village after you click village link in map or result search player



After lasts updates i try to reinstall script , make config etc. and i recive this :) , but database was succesful import ...

NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums



------------------------------------

i found the problem is in database sql

Code:
 `village_select` bigint(20) yes NULL,

change to:
PHP:
`village_select` bigint(20) DEFAULT NULL,
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
@ronix : all fixed and pulled on github , can you make an option on admin panel for Hero ? To modify hero , all option , delete hero , change hero unit , etc. And please take a look on IGM/Reports (Report ID fix)

And please fix problem with population if i upgrade something from admin panel all village goes to 0. That problem not appears before update

yes i know that problem... solution is disable refresh icon to disable that function or fix that function.
but i think disable is my choose because that refresh pop is not important.

to get back from 0 pop.. go to that village and up 1 building or demolish 1 level

Also that problem appears when you update some buildings on admin panel goes to 0 all population

slinker0 : is a server problem not a source problem. HERE IS A TOPIC ONLY FOR BUGS.
Welduae Khalid : for me i don`t receive that error. Please update to the last version.
xtreme17 : database updated , also install updated
Macf : first please delete my email. Second on paypal user your merchant id : hosted_button_id=BGLEQTERM5HAL
 
Last edited:
Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
Yes this true not working for me !

please fix this robnix :X

and
please unzip database.zip and replace to: \GameEngine\Admin\database.php



ronix : all fixed and pulled on github , can you make an option on admin panel for Hero ? To modify hero , all option , delete hero , change hero unit , etc. And please take a look on IGM/Reports (Report ID fix)

And please fix problem with population if i upgrade something from admin panel all village goes to 0. That problem not appears before update

Also that problem appears when you update some buildings on admin panel goes to 0 all population

recount pop not yet fix... soon
hero modify at admin panel :
my option is:
1. Modify or reduce hero Experience point
2. Modify or reduce hero level of Offence/Deffence/Off Bonus/Def Bonus etc..
3. Change Hero unit in same tribe
4. Delete/Kill Hero
 
Newbie Spellweaver
Joined
May 1, 2012
Messages
12
Reaction score
0
I got some troubles with troops.. Look at this..

ev22G19 - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums



And this one, 50 heroes?

NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums




Another bug found!

When you are timing attacks from 2 different villages, you can clone/dupe troops.

For example..

I send 10k catas to an oasis, as they have a long walk time. They will arrive at 20:00:01. From another village, I do send 2 another attacks. Clubswingers, 100 each attack, they arrive at 20:00:01 and 20:00:02, then the clubs of the last attack, at 20:00:02 will double up, and ill recieve 300 clubs as reinforcement, instead of 200 ;)

Maybe something to fix?
 
Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
========================
ADMIN PANEL
Fix Recount POP/CP
========================
file \GameEngine\Admin\database.php
------------------------------------
find and replace this code:
PHP:
if(isset($gameinstall) && $gameinstall == 1){
include_once("../../GameEngine/config.php");
include_once("../../GameEngine/Data/buidata.php");
}else{
include_once("../GameEngine/Data/unitdata.php");
include_once("../GameEngine/Technology.php");
include_once("../GameEngine/Data/buidata.php");
}
find and replace function
PHP:
	function recountPop($vid){
	global $database;
	$fdata = $database->getResourceLevel($vid);
	$popTot = 0;
	for ($i = 1; $i <= 40; $i++) {
        $lvl = $fdata["f".$i];
        $building = $fdata["f".$i."t"];
		if($building>0 && $lvl>0){
			$popTot += $this->buildingPOP($building,$lvl);
        }
    }

	$q = "UPDATE ".TB_PREFIX."vdata set pop = $popTot where wref = $vid";
	mysql_query($q, $this->connection);
  }
  
	function recountCP($vid){
	global $database;
	$fdata = $database->getResourceLevel($vid);
	$popTot = 0;
	for ($i = 1; $i <= 40; $i++) {
		$lvl = $fdata["f".$i];
		$building = $fdata["f".$i."t"];
		if($building>0 && $lvl>0){
			$popTot += $this->buildingCP($building,$lvl);
        }
	}
	$q = "UPDATE ".TB_PREFIX."vdata set cp = $popTot where wref = $vid";
	mysql_query($q, $this->connection);
	}

  function buildingPOP($f,$lvl){
    $name = "bid".$f;
	global $$name;
    $popT = 0;
    $dataarray = $$name;

    for ($i = 1; $i <= $lvl; $i++) {
        $popT += $dataarray[$i]['pop'];
    }
    return $popT;
  }
  
	function buildingCP($f,$lvl){
		$name = "bid".$f;
		global $$name;
		$popT = 0;
		$dataarray = $$name;
		
		for ($i = 1; $i <= $lvl; $i++) {
			$popT += $dataarray[$i]['cp'];
		}
		return $popT;
	}
------------------------------------
file \GameEngine\Admin\function.php
------------------------------------
find replace function:
PHP:
  function Act($get){
	global $admin,$database;

	switch($get['action']){
	  case "recountPop":
		$admin->recountPop($get['did']);
		$admin->recountCP($get['did']);
	  break;
	  case "recountPopUsr":
		$admin->recountPopUser($get['uid']);
	  break;
	  case "StopDel":
		//stop deleting
	  break;
	  case "delVil":
		if($get['mode'] != 1){
		$admin->DelVillage($get['did']);
		}else{
		$admin->DelVillage($get['did'], 1);
		}
	  break;
	  case "delBan":
		$admin->DelBan($get['uid'],$get['id']);
		//remove ban
	  break;
	  case "addBan":
		if($get['time']){$end = time()+$get['time']; }else{$end = '';}

		  if(is_numeric($get['uid'])){
		  $get['uid'] = $get['uid'];
		  }else{
		  $get['uid'] = $database->getUserField(addslashes($get['uid']),'id',1);
		  }

		$admin->AddBan($get['uid'],$end,$get['reason']);
		//add ban
	  break;
	  case "delOas":
		//oaza
	  break;
	  case "logout":
		$this->LogOut();
	  break;
	}
	if($get['action'] == 'logout'){
	  header("Location: admin.php");
	}else{
	  header("Location: ".$_SERVER['HTTP_REFERER']);
	}
  }

  function Act2($post){
	global $admin,$database;
	  switch($post['action']){
	  case "DelPlayer":
		$admin->DelPlayer($post['uid'],$post['pass']);
		header("Location: ?p=search&msg=ursdel");
	  break;
	  case "punish":
		$admin->Punish($post);
		header("Location: ".$_SERVER['HTTP_REFERER']);
	  break;
	  case "addVillage":
		$admin->AddVillage($post);
		header("Location: ".$_SERVER['HTTP_REFERER']);
	  break;
	  }
  }
---------------------------------------------
file \GameEngine\Admin\Mods\editBuildings.php
---------------------------------------------
download file: editBuildings.zip

unzip to \GameEngine\Admin\Mods\editBuildings.php

replace file exist
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
@F6Q : sorry , now works good , repaired in github and updated with all updates.
Djurres : that error with 4 miliard troops not exist anymore. Update your server or reinstall it.
ronix : please post hero admin panel option :D

I update all github with all , please install source and take a look on admin panel , on Player reports and IGM Search , maybe you can arrange
 
Last edited:
  • Like
Reactions: F6Q
Junior Spellweaver
Joined
Feb 25, 2012
Messages
172
Reaction score
21
In the new version of T3.6 thats on github (Shadowss), the map is not correct ?

See here
NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums


Also, the coords not working ?
Can it be corrected ?

Also quest Task 11 (normal t3.6 version (Q25_11) is not working, it sill loads the page ?

Thanks

ps: I am working on a Dutch translation, will post it here when it is finished, also on istallation, you can then choose for Europe/Amsterdam
 
Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
When people like you help more and ask this less :damnmate: :mad::mad::mad: this post is for Bugs not for this type of question.

Ronix, Cata, F6Q keep going that are already really close.

Ronix this option What do you think of it?
5. heal/revive hero
For the heros panel.
yes very nice, I would put the option



Also quest Task 11 (normal t3.6 version (Q25_11) is not working, it sill loads the page ?

Thanks

ps: I am working on a Dutch translation, will post it here when it is finished, also on istallation, you can then choose for Europe/Amsterdam

try find and replace in \GameEngine\Lang\en.php this code:
PHP:
define("Q25_11_DESC","Every time something important happens to your account you will receive a report.<br \/><br \/>You can see these by clicking on the left half of the 5th button (from left to right). Read the report and come back here.");
it's working or not?
 
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
Github updated , all script works perfectly. Check all I say ronix .

And maybe you can make an option on server settings on news box to modify news box from admin panel :D
 
Last edited:
Skilled Illusionist
Joined
Mar 9, 2011
Messages
391
Reaction score
120
I test now wait and i`ll tell you what is the problem.

Yeah we have a problem with quests. In config file :

Quest Type TravianZ Extended

But on real server is TravianZ Official (25 quests)

In config is selected TravianZ Exteded but in real server quest_core25.tpl is the file that view server.

If you have selected TravianZ Exteded server must select quest_core.tpl but that don`t happend

The option changed in config.php works good in here but not works in real don`t change quest_core.tpl with quest_core25.tpl

Also the Quest 11 problem comes from here

thrown in /home/outlet/public_html/shadowss.ro/travian/login.php on line 26
[07-Mar-2014 12:06:22 Europe/Bucharest] PHP Fatal error: Call to undefined method MYSQL_DB::getUnViewNotice() in /home/outlet/public_html/shadowss.ro/travian/Templates/Ajax/quest_core25.tpl on line 531

Because function getUnViewNotice is not defined in db_MYSQL.php
 
Last edited:
Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
================
fix quest 25_11
================
file \GameEngine\Database\db_MYSQL.php
-----------------------------------------------------------
add this function:
PHP:
function getUnViewNotice($uid) {
		$q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid AND viewed=0";
		$result = mysql_query($q, $this->connection);
		return $this->mysql_fetch_all($result);
	}
sorry for miss updated
 
Junior Spellweaver
Joined
Feb 25, 2012
Messages
172
Reaction score
21
@ronix

there is a bug on line 392 (/GameEngine/Lang/en.php)

================
fix quest 25_17
================
file \GameEngine\Lang\en.php
-----------------------------------------------------------
change this line:

PHP:
define("Q15_17_RESP","Well done. The main building level 3 has been completed.<br><br>With this upgrade your master builders can construct more types of buildings and also do so faster.");

change it to

PHP:
define("Q25_17_RESP","Well done. The main building level 3 has been completed.<br><br>With this upgrade your master builders can construct more types of buildings and also do so faster.");

================
fix quest 25_22
================
file \GameEngine\Lang\en.php
-----------------------------------------------------------
change this line:

PHP:
define("Q25_22_RESP",";The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.");

change it to

PHP:
define("Q25_22_RESP","The Marketplace has been completed. Now you can make offers of your own and accept foreign offers! When creating your own offers, you should think about offering what other players need most to get more profit.");
 
Last edited:
Junior Spellweaver
Joined
Feb 25, 2012
Messages
172
Reaction score
21
There is one problem ?

as you can see in the picture, the question, houw much gold you get to invite a friend, you do not see the gold picture.

NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums


This is whats in the en.php language file

PHP:
<?php $gold; ?>

Also problem, if task is ended

NarcisRO - TravianZ Official (yi12345) - bugs list - RaGEZONE Forums
 
Last edited:
Skilled Illusionist
Joined
Jun 24, 2010
Messages
351
Reaction score
360
@ColdSubzero - try this
==================
fix quest 25
==================
file \GameEngine\Lang\en.php
find and replace:
PHP:
define("Q25_27","Task 23: Friends.");
define("Q25_27_DESC","As single player it is hard to compete with attackers. It is to your advantage if your neighbours like you.<br \/><br \/>It is even better if you play together with friends. Did you know that you can earn <img src='img/x.gif' class='gold' alt='Gold' title='Gold'> by inviting friends?");
define("Q25_27_ORDER","Order:<\/p>How much <img src='img/x.gif' class='gold' alt='Gold' title='Gold'> do you earn for inviting a friend?");
define("Q25_27_RESP","Correct! You get 50 <img src='img/x.gif' class='gold' alt='Gold' title='Gold'> if your invited friend have 2 village.");
------------------------
images quest
download file: quest_img.zip
unzip to \gpack\travian_default\img\q

------------------------------------------------
file \gpack\travian_default\lang\en\compact.css
------------------------------------------------
find this line code:
PHP:
div.quest div.wood {
    background-image: url("../../img/q/wood.jpg");
    height: 237px;
}
and add this line:
PHP:
div.quest div.report {
    background-image: url("../../img/q/report.jpg");
    height: 179px;
}
div.quest div.gold {
    background-image: url("../../img/q/gold.jpg");
    height: 234px;
}
div.quest div.granary {
    background-image: url("../../img/q/granary.jpg");
    height: 179px;
}
div.quest div.embassy{
    background-image: url("../../img/q/embassy.jpg");
    height: 234px;
}
div.quest div.ally {
    background-image: url("../../img/q/alliance.jpg");
    height: 179px;
}
div.quest div.rally {
    background-image: url("../../img/q/rally.jpg");
    height: 242px;
}
------------------------------------------------
file \gpack\travian_default\lang\en\compact.css
------------------------------------------------
PHP:
//find this line
div.village2 div#village_map img.red {
    background-image: url("../../img/special/NewyearRocket_red_1a.gif");
}

//and add this code:
div.village2 div#village_map img.dark {
    background-image: url("../../img/special/NewyearRocket_dark_1a.gif");
}
-------------------------
file \Templates\dorf2.tpl
-------------------------
find and replace:
PHP:
//set event last quest
    if (($_SESSION['qst']==38 && QTYPE==37) || ($_SESSION['qst']==31 && QTYPE==25)){
    	if ($i<8) {
            $dte=array("tur","purp","yell","oran","green","red","dark");
    		$im=$dte[$i-1];
            echo "<img src=\"img/x.gif\" class=\"building e$i rocket $im\" alt=\"$text\" />";
    	}
    }

---------------------------
file \Templates\quest.tpl
--------------------------
replace this code:
PHP:
<?php 

#################################################################################
##              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 ##
## --------------------------------------------------------------------------- ##
##  Filename       quest.tpl                                                   ##
##  Developed by:  Dzoki                                                       ##
##  Rework by:     ronix                                                       ##
##  License:       TravianZ Project                                            ##
##  Copyright:     TravianZ (c) 2010-2013. All rights reserved.                ##
##                                                                             ##
#################################################################################
$_SESSION['qtyp']=QTYPE;
if (($_SESSION['qst']<38 && QTYPE==37 && QUEST==true) || ($_SESSION['qst']<31 && QTYPE==25 && QUEST==true)) {?>
<div id="anm" style="width:120px; height:140px; visibility:hidden;"></div>
			<div id="qge">
				<?php if ($_SESSION['qst']==0 or (isset($_SESSION['qstnew']) && $_SESSION['qstnew']==1)){ ?>
				<img onclick="qst_handle();" src="<?php echo GP_LOCATE; ?>img/q/l<?php echo $session->userinfo['tribe'];?>g.jpg" title="to the task" style="height:174px" alt="to the task" />
				<?php }else{?>
				<img onclick="qst_handle();" src="<?php echo GP_LOCATE; ?>img/q/l<?php echo $session->userinfo['tribe'];?>.jpg" title="to the task" style="height:174px" alt="to the task" />
				<?php } ?>
			</div>
			<script type="text/javascript">
				<?php if ($_SESSION['qst']==0){ ?>
				quest.number=null;
				<?php }else{ ?>
				quest.number=0;
				<?php } if ($_SESSION['qst']<38 && QTYPE==37){?>
				quest.last = 37;
				<?php } else {?>
				quest.last = 30;
				<?php }?>
				cache_preload = new Image();
				cache_preload.src = "img/x.gif";
				cache_preload.className = "wood";
			</script>						
<?php } ?>
 
Back
Top