Hello!
How you fixed it??
Printable View
i have already gits a fix for the above issue and robber fix
---------- Post added at 11:14 PM ---------- Previous post was at 11:13 PM ----------
you only need to download the gameengine/automation.php from git hub and replace and you wont get that error no more
Thanks!
Good evening, everyone can tell me I pulled this version https://github.com/advocaite/Travianx admin but when I no longer appears to put natares and ww can help it is already a confusion with so many versions
I await feedback required:?::?::?:
git hub index problem
Warning: include(GameEngine/lang/en.php) [function.include]: failed to open stream: No such file or directory in /data/multiserv/users/669004/projects/1659023/www/index.php on line 18
Warning: include() [function.include]: Failed opening 'GameEngine/lang/en.php' for inclusion (include_path='.:/usr/lib/php') in /data/multiserv/users/669004/projects/1659023/www/index.php on line 18
alliance medals not work
Hi, im just wondering, when is the diplomacy village reports and protection will be fixed?
Cheers.
More especific ? Im such a newbye with travian servers :DQuote:
change 'GameEngine/lang/en.php' --> 'GameEngine/Lang/en.php' in 'index.php'
Fixed , sory for the post i dont note the "L" :D thanks.
All the coders are doing a great job !!!
The whole "really pretty index file" thing has lost me more hours than I can count. At some point parts of it, like even almost all the contents of the index.php_files directory even, vanished. I had to find them in one of my backup directories and re-commit them.
Also the moregames.php and other templates for the popcon popups vanished. I had to go find them too and make a Templates/popcon directory for all popcon popups to live in.
Finally what I have done is made index.php be a decision-maker that tries to decide which fancy graphical look-and-feel from Templates/index the settings in GameEngine/config.php are trying to tell it to use.
I was about to go look up how to check whether the decider file is itself the file set as homepage in the config, to prevent a loop from happening when it sends the brower off to whatever URL the config file has set for use as homepage.
I think though there is a confusion between the idea of a landing page, where people who arrive at the site land, which usually decides what to show them based on which search engine or traffic sharing links system etc sent the visitor, and corporate/entity homepage which each server would have a link to so the players on each of the servers can all get to the central homepage that is the home of the entity running all the servers.
I thus have added config fields to help unravel all the possible looks and feels of the landing and home etc pages so that index.php can figure out which one to use.
For corporate home I have LOGO_LINKS_TO_URL which is where the game or company logo is a link to, for different styles of fancy animations etc on front page I have Templates/index from which they can be included based on the MILIEU, GAME_NAME or even SERVER_NAME so many different looks and feels can be accommodated.
As well as being about to head off looking whether __FILE__ might be what I need to prevent a loop I was also about to research how git pushes or pull-requests work as now some other things have started to break I am so many commits ahead of the upstream repository.
-MarkM-
git hub
testing statistics Alliance
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /data/multiserv/users/669004/projects/1659023/www/GameEngine/Database/db_MYSQL.php on line 749
Warning: Invalid argument supplied for foreach() in /data/multiserv/users/669004/projects/1659023/www/Templates/Alliance/overview.tpl on line 12
xxx.com/karte.php?d=1864&c=77
at oasis .............
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in \GameEngine\Database\db_MYSQL.php on line 496
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in \GameEngine\Database\db_MYSQL.php on line 218
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in \GameEngine\Database\db_MYSQL.php on line 218
Advocaite, private message only allows 3000 characters so I could not put code pastes into a reply to private message. Here is the reply I tried to send:
I am trying to merge the fork known as "TravianX" back into the original project it forked from, without losing all the credits of the earlier authors and so on.
Here are two specific fixes that will go a huge huge way to help everything.
First, a few new constants in the config file, which you can see in the following paste of my entire install/data/constant_format.tpl
Second, have index.php decide which actual content template to use based on the MILIEU, GAME_NAME, SERVER_NAME and so on. (I say and so on because if you turn on some new non-rpduction feature like oases or whatever to test, you might like the front page to change to show that you are now running a development milieu instead of a production milieu, stuff like that).Code:<?php
############################### S T A R T ################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename config.php ##
## Version 4.8.5 ##
## Developed by: Dzoki Edited by Advocaite & Digitalis Data Services ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
//////////////////////////////////
// ***** ERROR REPORTING *****//
//////////////////////////////////
// (E_ALL ^ E_NOTICE) = enabled
// (0) = disabled
%ERROR%
//////////////////////////////////
// ***** SERVER SETTINGS *****//
//////////////////////////////////
// ***** Game
// Used instead of the word "Travian" anywhere
// the word "Travian" used to be displayed.
// Warning, different game-masters / server-admins
// who contribute code might well use it to prevent
// their mods from being inadvertently used by
// people who did not in fact opt in to having
// those mods be inherited by their server(s).
define("GAME_NAME","TravianX");
// ***** Milieu
// If you do not want to use the default terms of service,
// rules of play, quest tasks, backstory, forwardstory,
// location within a galaxy if in a galaxy or where else
// if a rogue planet not part of any galaxy, etc etc etc;
// the name of the "Milieu" to use instead, if any of the
// contributed Milieus suit you. If none do, see the extra
// settings section for a way to force the use of a
// Milieu local to your server not part of the distribution.
define("MILIEU","Vanilla");
// ***** Name
define("SERVER_NAME","%SERVERNAME%");
// ***** Domain
define("SERVER_DOMAIN","%SERVERDOMAIN%");
// ***** Started
// Defines when has server started.
define("COMMENCE","%STARTTIME%");
// ***** Language
// Choose your server language.
define("LANG","%LANG%");
// ***** Speed
// Choose your server speed. NOTICE: Higher speed, more likely
// to have some bugs. Lower speed, most likely no major bugs.
// Values: 1 (normal), 3 (3x speed) etc...
define("SPEED", "%SPEED%");
// ***** World size
// Defines world size. NOTICE: DO NOT EDIT!!
define("WORLD_MAX", "%MAX%");
// ***** Graphic Pack
// True = enabled, false = disabled
if ("MILIEU" == 'Vanilla') {
define("GP_ENABLE",false)
// Graphic pack location (default: gpack/travian_default/)
define("GP_LOCATE", "%GP_LOCATE%");
}
else {
define("GP_ENABLE",true);
// Graphic pack location (default: gpack/travian_default/)
if ("MILIEU" == "Travian") {
define("GP_LOCATE", "gpack/travian/");
}
elseif ("MILIEU" == "Villages") {
define("GP_LOCATE", "gpack/villages/");
}
else {
define("GP_LOCATE", "%GP_LOCATE%");
}
}
// ***** Troop Speed
// Values: 1 (normal), 3 (3x speed) etc...
define("INCREASE_SPEED","%INCSPEED%");
// ***** Village Expand
// 1 = slow village expanding - more Cultural Points needed for every new village
// 0 = fast village expanding - less Cultural Points needed for every new village
define("CP", %VILLAGE_EXPAND%);
// ***** Demolish Level Required
// Defines which level of Main building is required to be able to
// demolish. Min value = 1, max value = 20
// Default: 10
define("DEMOLISH_LEVEL_REQ","%DEMOLISH%");
// ***** Quest
// Ingame quest enabled/disabled.
define("QUEST",%QUEST%);
// ***** Beginners Protection
// 3600 = 1 hour
// 3600*12 = 12 hours
// 3600*24 = 1 day
// 3600*24*3 = 3 days
// You can choose any value you want!
define("PROTECTION","%BEGINNER%");
// ***** Enable WW Statistics
define("WW",%WW%);
// ***** Activation Mail
// true = activation mail will be sent, users will have to finish registration
// by clicking on link recieved in mail.
// false = users can register with any mail. Not needed to be real one.
define("AUTH_EMAIL",%ACTIVATE%);
// ***** PLUS
//Plus account lenght
define("PLUS_TIME",%PLUS_TIME%);
//+25% production lenght
define("PLUS_PRODUCTION",%PLUS_PRODUCTION%);
// ***** Great Workshop
define("GREAT_WKS",%GREAT_WKS%);
// ***** Tourn threshold
define("TS_THRESHOLD",%TS_THRESHOLD%);
//////////////////////////////////
// **** LOG SETTINGS **** //
//////////////////////////////////
// LOG BUILDING/UPGRADING
define("LOG_BUILD",%LOGBUILD%);
// LOG RESEARCHES
define("LOG_TECH",%LOGTECH%);
// LOG USER LOGIN (IP's)
define("LOG_LOGIN",%LOGLOGIN%);
// LOG GOLD
define("LOG_GOLD_FIN",%LOGGOLDFIN%);
// LOG ADMIN
define("LOG_ADMIN",%LOGADMIN%);
// LOG ATTACK REPORTS
define("LOG_WAR",%LOGWAR%);
// LOG MARKET REPORTS
define("LOG_MARKET",%LOGMARKET%);
// LOG ILLEGAL ACTIONS
define("LOG_ILLEGAL",%LOGILLEGAL%);
//////////////////////////////////
// **** LOGO SETTINGS **** //
//////////////////////////////////
// Your main logo and where it links to
// Currently the logo itself is in the css stuff
// but at least you can control here what URL it links to:
define("LOGO_LINKS_TO_URL", "%LOGOLINKSTOURL%");
//////////////////////////////////
// **** FORUM URL SETTING **** //
//////////////////////////////////
//The URL of your forum.
//Default = "http://forum.".SERVER_DOMAIN."/"
define("FORUM_URL", "http://forum.".SERVER_DOMAIN."/")
//////////////////////////////////
// **** NEWSBOX SETTINGS **** //
//////////////////////////////////
//true = enabled
//false = disabled
define("NEWSBOX1",%BOX1%);
define("NEWSBOX2",%BOX2%);
define("NEWSBOX3",%BOX3%);
///////////////////////////////////////
// **** HOME NEWSBOX SETTINGS **** //
///////////////////////////////////////
//true = enabled
//false = disabled
define("HOME1",%HOME1%);
define("HOME2",%HOME2%);
define("HOME3",%HOME3%);
//////////////////////////////////
// **** SQL SETTINGS **** //
//////////////////////////////////
// ***** SQL Hostname
// example. sql106.000space.com / localhost
// If you host server on own PC than this value is: localhost
// If you use online hosting, value must be written in host cpanel
define("SQL_SERVER", "%SSERVER%");
// ***** Database Username
define("SQL_USER", "%SUSER%");
// ***** Database Password
define("SQL_PASS", "%SPASS%");
// ***** Database Name
define("SQL_DB", "%SDB%");
// ***** Database - Table Prefix
define("TB_PREFIX", "%PREFIX%");
// ***** Database type
// 0 = MYSQL
// 1 = MYSQLi
// default: 1
define("DB_TYPE", %CONNECTT%);
////////////////////////////////////
// **** EXTRA SETTINGS **** //
////////////////////////////////////
// ***** Censore words
//define("WORD_CENSOR", "%ACTCEN%");
// ***** Words (censore)
// Choose which words do you want to be censored
//define("CENSORED","%CENWORDS%");
// ***** Limit Mailbox
// Limits mailbox to defined number of mails. (IGM's)
define("LIMIT_MAILBOX",%LIMIT_MAILBOX%);
// If enabled, define number of maximum mails.
define("MAX_MAIL","%MAX_MAILS%");
// ***** Include administrator in statistics/rank?
define("INCLUDE_ADMIN", %ARANK%);
// ***** Use local rules,manuals,tutorials & quests?
// This lets upstream rules man-pages legends etc
// not walk over your carefully crafted local milieu
// info, terms of service, rules of play, culture
// mythos milieu type stuff. A good alternative though
// would be to contribute your milieu so others too
// can use it which would happen by setting a constant
// in this file controlling which contributed milieu
// to use. Values: true or false.
define("LOCAL_MILIEU", false);
////////////////////////////////////
// **** ADMIN SETTINGS **** //
////////////////////////////////////
// ***** Admin Email
define("ADMIN_EMAIL", "%AEMAIL%");
// ***** Admin Name
define("ADMIN_NAME", "%ANAME%");
//////////////////////////////////////////
// **** DO-NOT-EDIT SETTINGS **** //
//////////////////////////////////////////
define("TRACK_USR","%UTRACK%");
define("USER_TIMEOUT","%UTOUT%");
define("ALLOW_BURST",false);
define("BASIC_MAX",1);
define("INNER_MAX",1);
define("PLUS_MAX",1);
define("ALLOW_ALL_TRIBE",false);
define("CFM_ADMIN_ACT",true);
define("SERVER_WEB_ROOT",false);
define("USRNM_SPECIAL",true);
define("USRNM_MIN_LENGTH",3);
define("PW_MIN_LENGTH",4);
define("BANNED",0);
define("AUTH",1);
define("USER",2);
define("MODERATOR",8);
define("MULTIHUNTER",8);
define("ADMIN",9);
define("COOKIE_EXPIRE", 60*60*24*7);
define("COOKIE_PATH", "/");
define("SUBDOMAIN", %SUBDOM%);
############################### E N D ##################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename config.php ##
## Version 4.8.5 ##
## Developed by: Dzoki Edited by Advocaite & Digitalis Data Services ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
?>
Here is my simplistic index.php that so far only attempts to distinguish your index page template, referred to as Templates/index/default.tpl, from mine, which currently is identical as I try to debug the problems surrounding loss of various templates such as the tutorial and the serverRegister and the serverLogin and so on that have gone missing somehow.
-MarkM-Code:<?php
error_reporting(E_ALL);
if (!file_exists('GameEngine/config.php')) {
header("Location: install/");
}
include_once("GameEngine/config.php");
include_once("GameEngine/Database.php");
include_once("GameEngine/Lang/".LANG.".php");
if (!defined("GAME_NAME")) define("GAME_NAME", 'Villages');
if (!defined("MILIEU")) define("MILIEU", 'Villages');
if (!defined("SERVER_NAME")) define("SERVER_NAME", 'Villages Online');
if (MILIEU === 'Vanilla') {
if (!file_exists('Templates/index/default.tpl')) {
header("Location: login.php");
}
} elseif (MILIEU === 'Villages') {
if (!file_exists('Templates/index/villages.tpl')) {
header("Location: login.php");
}
} else {
header("Location: login.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><?php echo SERVER_NAME; ?></title>
<link rel="stylesheet" type="text/css" href="index.php_files/compact.css"><meta name="content-language" content="au">
<meta http-equiv="imagetoolbar" content="no">
<script type="text/javascript" src="uncrypt.js"></script>
</head>
<?php
if (MILIEU === 'Vanilla') {
include_once('Templates/index/default.tpl');
} elseif (MILIEU === 'Villages') {
include_once('Templates/index/villages.tpl');
}
?>
</body>
</html>
I have a question , to all the coders , if there is a script for make the village X send an attack to the village Y automatically selecting troops.