Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
parniaznet
oases don´t work.
-.- pls read the posts before. There is a missing table in the databease. But oasis don´t work bugfree even so.
So just wait for oases and hero to be programmed.
and pls don´t spam here. Most of your bugs were allready fixxed or discussed even in this thread.
Re: TravianX Advocaite Revision 4.8.5 Collection
It turns out that my Templates/Alliance/overview.tpl privacy-fix doesn't actually work, I wonder if it ever really did or if the changes around MODERATOR versus MULTIHUNTER are somehow confounding it...
-MarkM-
EDIT: My bad, I didn''t notice all it removes is the colpoured dot, you still get to see the list of who is not in a real guild. I fixed only the main privacy concern not the whole lets see who is still not in a guild aspect.
-MarkM-
---------- Post added at 12:08 PM ---------- Previous post was at 11:43 AM ----------
So... to go along with pre-populating the users table, what say we also pre-populate the alliances table?
Notice this default alliancce can have more members than other alliances so we increase the range of values of the 'max' field to accomodate it.
So in install/data/sql.sql we could change the alidata table section to something like this:
Code:
--
-- Table structure for table `%PREFIX%alidata`
--
CREATE TABLE IF NOT EXISTS `%PREFIX%alidata` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
`tag` varchar(8) NOT NULL,
`leader` int(10) unsigned NOT NULL,
`coor` int(10) unsigned NOT NULL,
`advisor` int(10) unsigned NOT NULL,
`recruiter` int(10) unsigned NOT NULL,
`notice` text NOT NULL,
`desc` text NOT NULL,
`max` int(10) unsigned NOT NULL,
`ap` bigint(255) unsigned NOT NULL DEFAULT '0',
`dp` bigint(255) unsigned NOT NULL DEFAULT '0',
`Rc` bigint(255) unsigned NOT NULL DEFAULT '0',
`RR` bigint(255) unsigned NOT NULL DEFAULT '0',
`Aap` bigint(255) unsigned NOT NULL DEFAULT '0',
`Adp` bigint(255) unsigned NOT NULL DEFAULT '0',
`clp` bigint(255) unsigned NOT NULL DEFAULT '0',
`oldrank` bigint(255) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Dumping data for table `%PREFIX%alidata`
--
INSERT INTO `%PREFIX%alidata` (`id`, `name`, `tag`, `leader`, `coor`, `advisor`, `recruiter`, `notice`, `desc`, `max`)
VALUES (0, 'Support', 'Support', 0, 0, 0, 0, 'Welcome to the Support Alliance :)',
'Everyone who has not joined some other alliance is a member of this one by default.',9999999999);
-- --------------------------------------------------------
Which reminds me, do we really need to auto increment anything by some integer larger than one? I saw something being incremented in a larger increment but didn't follow suit myself as I sawe no purpose to it. It wasn't even the users table, which I can understand a marketer desiring to illusionarily inflate...
-MarkM-
---------- Post added at 12:35 PM ---------- Previous post was at 12:08 PM ----------
The subject/title of the notices you receive when you send or receive reinforcements are poor grammar. This should be a language string for translating really anyway but to make my inbox not seem so ungrammatical I favour changing a couple of lines of GameEngine/Automation.php, the two that start like
Code:
$database->addNotice($from['owner'],8,''.addslashes($from['name']).' reinforces '.addslashes($to['name']).'',$data_fail,$AttackArriv$
$database->addNotice($to['owner'],8,''.addslashes($from['name']).' reinforces '.addslashes($to['name']).'',$data_fail,$AttackArrival$
The $ at end of line is what nano (my editor) does when I try to grab into mouse buffer something that is off the right edge of the screen. You only need to see the first part anyway, see I put in "reinforces" instead of "reinforcement".
That lets me receive emails titled "Otherguysvillage reiforces Yourvillage" instead of "Otherguysvillage reinforcement Yourvillage" and "Yourvillage reinforces Othervillage" instead of "Yourvillage reinforcement Otherguysvillage".
"reinforced" would work instead of "reinforces" if you insist on viewing your inbox as past-tense instead of a timeless archive of knowledge. :)
-MarkM-
Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
Thyphoon
parniaznet are you using the last version in the repo? those white-spaces you posted in post no. 501 was fixed in the repo a while ago. Also I don't have that problem when clicking oasis in the repo.
knotwork I tested the quest and it worked fine. I had that problem a while ago and it was a white space somewhere don't remember where.
Donn already fixed the time zone problem. :)
Ok, I think the problem with the quest was due to uncryp.js, pls update your repo and try again.
i use script that is in the first post!
i it last V?
Re: Settlers adn litte fix
Small bug, when I send my settlers to found a new village along the way do not appear in the rally point, but perfectly vile village was founded.
Fix?
Little fix:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data/multiserv/users/677943/projects/1651442/www/GameEngine/Automation.php:116) in /data/multiserv/users/677943/projects/1651442/www/GameEngine/Session.php on line 53
I have the bug fixed
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename Automation.php ##
## Developed by: Dzoki & Dixie Reworked buy Advocaite ##
## Thanks to: Akakori & Elmar & G3n3s!s & TopErwin & TTMMTT ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
## ##
#################################################################################
ob_start(); <----- Add this...
class Automation {
private $bountyresarray = array();
private $bountyinfoarray = array();
private $bountyproduction = array();
private $bountyocounter = array();
private $bountyunitall = array();
private $bountypop;
sorry for my bad english.
Quote:
Originally Posted by
knotwork
What does ob_start(); do for it? The only place that has ever been used before is in Chat.php in some kind of javascript/ajax stuff.
Does the problem come back if you take that little fix back out?
I ask because it seems very possible, even likely, that the real problem was one of the whitespace glitches, that maybe you accidentally happened to fix along the way while looking for the problem?
How did ob_start() ever even enter your mind? What is it? What is it meant to do? How does it work? What does it have to do with whether the queue processing will notice you have settlers on the move? Etc...
(Why are settlers the only moving things that need this? Everything else has been moving just fine without that...)
-MarkM-
function headers (): does not allow to be present prior to his call any type of output, if this happens the function headers () to be an error.
Using the ob_start () can create a buffer memory and all output will be diverted to the buffer and sent to the client only after the execution of the script.
this is a way to solve a problem like so many faster, without having to manage all of the code. :)
for my little bug:
When I send the settlers to found a new village, do not appear in the rally point while they are in motion. Do not see the movement and arrival time.
Is there a way to solve the problem?
Re: TravianX Advocaite Revision 4.8.5 Collection
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/11115/virtual/www/s1/GameEngine/Automation.php:1) in /data/web/virtuals/11115/virtual/www/s1/GameEngine/Session.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/11115/virtual/www/s1/GameEngine/Automation.php:1) in /data/web/virtuals/11115/virtual/www/s1/GameEngine/Session.php on line 195
Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
traviankokos
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/11115/virtual/www/s1/GameEngine/Automation.php:1) in /data/web/virtuals/11115/virtual/www/s1/GameEngine/Session.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /data/web/virtuals/11115/virtual/www/s1/GameEngine/Automation.php:1) in /data/web/virtuals/11115/virtual/www/s1/GameEngine/Session.php on line 195
hi,you have whitespace end of Session.php and account.php,delete it.
also you have Session.php end of other files,find and delete all of theme.
Re: Settlers adn litte fix
Quote:
Originally Posted by
mauroalt
function headers (): does not allow to be present prior to his call any type of output, if this happens the function headers () to be an error.
Using the ob_start () can create a buffer memory and all output will be diverted to the buffer and sent to the client only after the execution of the script.
this is a way to solve a problem like so many faster, without having to manage all of the code. :)
Ahh, interesting. So there is indeed method in your apparent madness. :)
Could trailing whitespace betwen pieces of php included from files end up making the server think some output is called for, thus blowing up the eventual call to the headers routine that is used to send the browser someplace else after all the computing of where else to send it has been done?
Maybe putting ob_start(); in all the toplevel files that include the lower level files would get rid of the whitespace problems. But at what cost? It might be overkill compared to "simply" (oh if only it was) not pouring out whitespace between chuncks of php. ?
Pretty much everything that ever eventually managed to get set into movement from the rallying point or even the market went through a period of development in which although it was moving the displays about it doing so were not picking up on it. Settlers are a recent innovation, they might just be in periond where we have them moving but have not yet started reporting the movement.
You give us a very interesting clue though, as it sounds like we are maybe trying to report the movement but are trying to output the display of it before the headers stuff has been done instead of putting the display into wherever the headers thing will actually end up deciding to send the browser to next.
Presumably it is one of the _walking or movement type includes in Templates/a2b that ought to be doing the displaying of hings in motion, I believe that is where the troops of each tibe get their in motion displays for the rallying point. Maybe the in motion template for settlers isn't there yet or isn't quite up to scratch.
Very interesting little thing though that ob_start, interesting idea but maybe a bandaid except in problems that truly requirement. Like a goto. Sure one can use a goto, but some approaches to programming prefer to deprecate using them. And they maybe don't even cost as much system resources as this ob_start thing might, they are deprecated as too easy a solution too likely to lure people intpo making mess-of-spaghetti code.
(think about it from a debugging perspective. "What, we aren't actually outputting? Oh great, what file where decided to do that to us? ;))
(The frickin code is bad enough already if it has you thinking of using ob_start() to avoid unravelling it, maybe? ;))
Quote:
Originally Posted by
mauroalt
for my little bug:
When I send the settlers to found a new village, do not appear in the rally point while they are in motion. Do not see the movement and arrival time.
Is there a way to solve the problem?
I expect it is just like all the other units that once upon a time weren't shown but were in the movement table waiting for procThattypeofthing() to process their arrival at destination time.''Been through it will all the other units and didn't need ob_start() to eventually get them visible-in-motion.
----------------------------------------------
Now let me see if I recall what brought me back here to post. Hmmm...
Oh yes, Templates/Plus/7.tpl
Seeing every type of building gone through one by one each with a separate call to MySQL is scary, not only for the rapid(er) reaching of number of requests per span of time limits of hosting companies but also because enumerating eery type of thing other than the two you don't want to mention is fraught with maintenance issues. You forgot to mention the new things that will exist next year! Not to mention the ones that won't exist until the year after that!
If you mean "all buildings except the residence and the palace" it is a crying shame that the idiots who developed MySQL never thought allow you to say "and field != blah" instead of enumerating all possible "field == blah" that every might be.
Maybe even a more recent version of MySQL than the one whoever wrote that file was stuck with might have added such a functionality? I dunno, I don't actually "know" MySQL but some day I will spend some time googling it or just actually trying usng not qual to instead of equal to and see if MySQL chokes on it.
But that is just sheer shock at what I saw in the file.
What brought me there to see it again / be reminded of it was, hmm... Oh yea, it only enumerates all buildingss it knows of other than the palace and residence, yet the help pages / ads about what you are paying for claim your researches too, not just your buildings, will be completed.
Anyone want to ennumerate all possible researches or can we just tell MySQL all research where village is that village, no excections to cause us to have to learn enough MySQl to discover whether not qual to would actually work for any exceptions we might find necessary or desireable?
Anyone even know offhand what "all reasearch" would include? I am guessing maybe the rdata table, for example? Any others that come to mind?
-MarkM- (They cheated me! I paid for my scouts dammnit! ;))
1 Attachment(s)
Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
parniaznet
hi,you have whitespace end of Session.php and account.php,delete it.
also you have Session.php end of other files,find and delete all of theme.
My GameEngine:
Attachment 92476
please see
Re: TravianX Advocaite Revision 4.8.5 Collection
I suggest you to play on private travian servers, not to host them, i see no reason, why people like you should have their own server you suck in every possible way to debug and support your players. No offense.
Re: TravianX Advocaite Revision 4.8.5 Collection
Hey I am not even convinced the enumerator of all buildings actually did leave out palace and residence, I don't see two missing numbers amidst the "type"s enumerated. But maybe palace and residence are ouside the range of numbers 1 through 70, not sure offhand.
-MarkM- (I am almost positive MySQL can do less than and greater than though...)
Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
traviankokos
download it from here:
http://www.nayabprojects.com/GameEngine.zip
also you will have problem with Oasis
Re: TravianX Advocaite Revision 4.8.5 Collection
Building 27 (Treasury) is missing from GameEngine/Data/buidata.php
-MarkM-
Re: TravianX Advocaite Revision 4.8.5 Collection
aaaah
a big buge:
http://up1.iranblog.com/images/6jys9mivr9x05i9acjt4.jpg
player War & bsilent never didn`t attack to other player,unlike they was under attack from player Theodore!!!
and other buge:
http://up1.iranblog.com/images/2xh354yspj7dmsr0wies.jpg
please save me!:(:
Re: TravianX Advocaite Revision 4.8.5 Collection
Yeah about those (unread) messages, i hope its going to be done soon.:thumb:
Re: TravianX Advocaite Revision 4.8.5 Collection
other problem when i click on Alliance name:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/nayabpro/domains/nayabprojects.com/public_html/travianx1/GameEngine/Database/db_MYSQL.php on line 749
Warning: Invalid argument supplied for foreach() in /home/nayabpro/domains/nayabprojects.com/public_html/travianx1/Templates/Alliance/overview.tpl on line 12
Warning: Invalid argument supplied for foreach() in /home/nayabpro/domains/nayabprojects.com/public_html/travianx1/Templates/Alliance/overview.tpl on line 61
Warning: Invalid argument supplied for foreach() in /home/nayabpro/domains/nayabprojects.com/public_html/travianx1/Templates/Alliance/overview.tpl on line 112