Re: TravianX Advocaite Revision 4.8.5 Collection
The travel queues - and actually other queues too if I recall correctly - get jammed up without heavy useage making too many things happen too fast.
A bunch of the logic in build.php and a2b.php using $_GET and $_POST variables was messed up, plus some placces supposed to set such variable for capture by, potentially, the Automation object, were just cuts and pastes or even, I sometimes suspected, pirated client-side html/javascript from actual Travian to which someone had made some WAGs (Wild Assed Guesses) as to what kind of PHP might have been behind the scenes to potentially explain the html and javascript that the client saw.
I am not positive of that, but for example some of the hard coded magic numbers that trigger some actions looked to me like they may originally have been random sequences Travian has put into a particular oneshot send of a form in order to check that "the same instance of the form" was being received when the form got submitted.
So anyway, after many hours of trying to figure out what was actual intent and what was a WAG or even just a blind cut and paste without any grasp of what the code pasted actually meant, I seem to have pretty much got rid of all those cases in which something added an event to a queue that never came to the attention of the code that was supposed to catch it, make it do its thing at the correct time, and then remove it from the queue.
The leftover stuff in the queue seems to me to have been what caused the queue to block. Make sure everything that actually manages to successfully get onto a queue also manages to get taken back off.
I did so much around this issue and various others that unfortunately I have to be quite careful about adopting any code that I haven't already gone through all that with. I am pretty sure I had to "extrapolate" a form variable pattern at least once and not sure how many times, and follow through the $_GET and $_POST logic mostly in build.php and a2b.php to figure out which value was meant to mean what or, at least, which value actually got picked up on and processed by one of the various procThis, procThat automation stuff.
I am concerned that *if* all the stuff I fixed has in fact also been fixed by others, their extrapolations might have interpreted things differently from mine, resulting in their using some different indicator value than mine, which would bring back those annoying queue jams to my server if it sneaks by me.
-MarkM-
Re: TravianX Advocaite Revision 4.8.5 Collection
akira2081 the warning is fixed, don't know about the other error.
Re: TravianX Advocaite Revision 4.8.5 Collection
What is PHP version mee not work on PHP 5.3 :(
---------- Post added at 03:59 PM ---------- Previous post was at 03:50 PM ----------
I change hosting and have problem:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /data/web/virtuals/11115/virtual/www/GameEngine/Automation.php:1) in /data/web/virtuals/11115/virtual/www/GameEngine/Session.php on line 53
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data/web/virtuals/11115/virtual/www/GameEngine/Automation.php:1) in /data/web/virtuals/11115/virtual/www/GameEngine/Session.php on line 53
Re: TravianX Advocaite Revision 4.8.5 Collection
I host it in 5.3.5 and have no warning like you do.
Re: TravianX Advocaite Revision 4.8.5 Collection
hi
after install i have this erore for register:
hi after install i have this eror on register:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: Cannot modify header information - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Account.php on line 98
you can see in my site:
http://www.travianx2.nayabprojects.com/
Re: TravianX Advocaite Revision 4.8.5 Collection
the problem with the cache en session.php
now the problem is solved
thx guys
Re: TravianX Advocaite Revision 4.8.5 Collection
parniaznet: please re download from repo and try again.
Re: TravianX Advocaite Revision 4.8.5 Collection
Re: TravianX Advocaite Revision 4.8.5 Collection
Hi. I have a few bugs which need fixes.
No.1 : I have wrong time on my server. Is there any way to manually change it?
No.2 : Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /opt/lampp/htdocs/travian/GameEngine/Database/db_MYSQL.php on line 507 OR 229 - When looking on unoccupied oasis.
Thanks for your help guys. This clone is the best.
Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
JustArchi
Hi. I have a few bugs which need fixes.
No.1 : I have wrong time on my server. Is there any way to manually change
Someone hard-coded the timezone for Amsterdam in the top of GameEngine/Village.php then someone else commented it out and instead of putting it in the config file where it probably more properly belongs they hard-coded it for Australia. Some people's kids, eh.
There is a major license problem with this stuff, does github even allow free git hosting for proprietary software?
Someone who seems to be claiming to be the author of the whole kit and kaboodle warns on a donation page of the intent to steal everyon'es work by I guess maybe having conned the free open source code developers into letting some of this guy's proprietary, not free open source, code into the thing, seemingly with the intent to poison the entire project's code?
Such people's contributions probably should simply not be accepted, and a firm license should be agreed upon and written down, whether it be GPL or Perl-Poetic or MIT or whatever, a license that clearly makes it free open source software.
(Otherwise the guy just basically steals all your work, claiming it as his own, it appears.)
Maybe even the GNU Affero (sp?) license would be appropriate to make sure anyone who uses it has to make the source of any changes their runnign version incorporates freely available? That might be a little harsh for the script kiddies who want to hack at it but don't want to maintain a full copy of their currently running source online for all to look at and download though I guess. But at the least it should be made totally clear that it is not proprietary, anyone is free to use it and derive derivative works from it and so on...
If that particular guy will not agree, we should simply not include his contributions into the codebase.
(The version I am using seems to date back before the thief came along and started pasting his claims all over it, and already included some fixes that only more recently made it into the version he polluted.)
-MarkM-
---------- Post added at 07:50 PM ---------- Previous post was at 07:40 PM ----------
Quote:
Originally Posted by
Daveykeuh
the problem with the cache en session.php
now the problem is solved
thx guys
A large part errors was included files that themselves include config.php over again. This is what include_once is for, so I changed include to include-once all over the place until all the duplicate constants from config.php went away, leaving only the quest 5 constants from GameEngine/Lang/en.php to clean up.
I did also encounter the weird problem of php not liking whitespace at the end of config.php
-MarkM-
Re: TravianX 4.8.5 Best realease so far
Quote:
Originally Posted by
advocaite
ill get on that
as for troops disapering when attacking oases ive never seen that happen before and ive attacked and raided a heap of them same with nartars i made.
ill test this a bit more could have to revert back to older version before i put in some ragezone fixes
---------- Post added at 01:16 PM ---------- Previous post was at 01:02 PM ----------
ok stable bug is a parse error just a typo on my behalf you may see it in settlers and workshop too but fix is easy
on line 11 find
Code:
.(.${'u'.$i}['wood']
REPLACE WITH
Code:
.(${'u'.$i}['wood']
FIND
REPLACE WITH
make that change to all files needed with parse error and it is fixed and plus feature for troop will work only change the line 11 nothing else
Which file?
Re: TravianX Advocaite Revision 4.8.5 Collection
hi
i re download and install ragezone.rar but still i have this eror:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: Cannot modify header information - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Account.php on line 98
but when i install https://github.com/advocaite/Travianx i dont have any problem
please help
Re: TravianX Advocaite Revision 4.8.5 Collection
PHP thought there was something wrong with the end of GameEngine/Market.php, turned out the last line was not just ?> but in fact had some kind of whitespace, appearing to me in nano editor as a space, after the > character.
Removing that made the glitch go away.
I happened on the glitch while testing using gold to finish building, during which experiment I discovered that the end of Templates/Plus/3.tpl needs
<div class="footer-stopper">
in order to prevent the footer from colliding with the table when option 7 (instant build) is used. Adding it to the end of the 7.tpl didn't do the trick, I had to put it at the end of the 3.tpl
Meanwhile, on things to do list, we need a way for a game-admin type of person to tell the game what *their* logo is (or logos are), as I suspect a lot of game-admin types aren't about to create a whole skin, or even index.php_files/gpack, or both, just to get their own logo on their game.
In my case, the logo I want is a We Accept Bitcoins logo. I never did find out yet how to get such a logo to be clickable when it is in the gpack-provided footer, on the "you are not currently logged in" pages that have their own footer code right in the page I could make the footer logo clickable but how the heck does one do that for .css "background image"? Does background really mean background in such a case, like in the ancient days of HTML 1 or so when background images could not be clickable?
I also put the SERVER_NAME as the default "copyright 2011" holder, on the theory that they at the very least hopefully authored the unique juxtaposition consisting of their server's name and "our" layouts images etc (which, presumably, exist for the actual purpose of highlighting *their* server and it's name and logo...)
SO some easy way for a virtually-computer-illiterate to inform the system "this is the logo I want, this is the pretty picture I want that says me instead of saying travian, this is my paypal address and/or the port to connect to my peer to peer cryptocurrency daemon at" and all that kind of stuff that makes the individual game-admin's game stand out and also not coincidentally allows their wallet to receive income...
-MarkM-
---------- Post added at 11:05 PM ---------- Previous post was at 11:03 PM ----------
Quote:
Originally Posted by
parniaznet
hi
i re download and install ragezone.rar but still i have this eror:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: Cannot modify header information - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Account.php on line 98
but when i install
https://github.com/advocaite/Travianx i dont have any problem
please help
Help of what kind? You just said you got rid of the problem. So what needs help? You want to upload the github version somewhere as a ragezone.rar so others won't fall for the old ragezone.rar version? Or you just want to rar the working version to move to another server? Or what?
tl;dr: if its working, whats to fix?
-MarkM-
Re: TravianX Advocaite Revision 4.8.5 Collection
[/COLOR]
Help of what kind? You just said you got rid of the problem. So what needs help? You want to upload the github version somewhere as a ragezone.rar so others won't fall for the old ragezone.rar version? Or you just want to rar the working version to move to another server? Or what?
tl;dr: if its working, whats to fix?
-MarkM-[/QUOTE]
i said when i install script that i download it from ragezone.rar, i have this eror for register and login:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Session.php on line 49
Warning: Cannot modify header information - headers already sent by (output started at /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Ranking.php:526) in /home/nayabpro/domains/nayabprojects.com/public_html/travianx2/GameEngine/Account.php on line 98
but when i install script that i download it from https://github.com/advocaite/Travianx, it work fine and i dont have problem
now can you give me a new link for download script with all fixs and updates please?
(all download link for script with fixs and updates is deleted)
Re: TravianX Advocaite Revision 4.8.5 Collection
Quote:
Originally Posted by
parniaznet
[/COLOR]
but when i install script that i download it from
https://github.com/advocaite/Travianx, it work fine and i dont have problem
now can you give me a new link for download script with all fixs and updates please?
(all download link for script with fixs and updates is deleted)
The github link you just provided is the place where all the fixes go. Github has a download button that offers you either a .tar.gz or a .zip, your choice, of the latest complete enture thing with all the fixes so far done there.
Your error could I suppose be some field or table not in your already existing database if your game was already up and running with some older set of scripts.
But, I am thinking the "no newline at end of file" thing might sometimes cause problems, depending what the first line of the file the no-newline-at-end-of-file include-file is included in.
Basically there might be some lines of code that wouldn't like starting on the same line as a previous line that didn't end with a semicolon, or something like that.
When I have been "fixing" the end of file whitespace problems I have been making sure that I *do* end with a newline.
The stuff I grabbed from github included at least one file that nano claimed was Mac format, so I slathered mac2unix (another name for dos2unix, a name that tells it implicitly I'd like it to do Mac to unix instead of Dos to unix) all over it all but still had that glitch I mentioned above about market.
It might not have been the "something that looks like a space to the naked eye" on the same line as the ending ?> that caused the problem, it might have been the fact that that was it, no newline at end of that line.
I am getting ready to re-do the work I had already done toward a more "open" market, since the market database isn't an array of a limited numbewr of types of things to trade but, conveniently, just a number indicating the type of thing you want and a number indicating the type of thing you will give in return for it.
Thus I am adding Crystal and Deuterium (a la Ogame clones; I take Iron to be Metal) as things that could be stashed in a village and be lootable; and Gold, Bitcoins, Martian Botcoins, General Mining Corp cryptocoins, General Retirement Fund cryptocoins, United Kingdom Britcoins, Devcoins, Groupcoins, etc etc as things that cannot be looted but which players can trade.
This will need to be config-optioned on or off, probably on a per item basis, and best of course would be to allow admin to specify a name and image for reach lootable resource and each non-lootable resource.
Heck, some folks actually prefer that gold be lootable, so maybe a flag per thing indicating if it is lootable or not...
-MarkM-
---------- Post added at 01:15 AM ---------- Previous post was at 12:36 AM ----------
The github version still has the "Celts are not being shown their cranny's actual capacity" problem, fixed in my version of Templates/Build/23.tpl, here shown in full:
Code:
<div id="build" class="gid23"><a href="#" onClick="return Popup(23,4);" class="build_logo">
<img class="building g23" src="img/x.gif" alt="Cranny" title="Cranny" />
</a>
<h1>Cranny <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
<p class="build_desc">The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen.</p>
<table cellpadding="1" cellspacing="1" id="build_value">
<tr>
<th>Currently hidden units per resource:</th>
<?php
$cpcty = $bid23[$village->resarray['f'.$id]]['attri'];
if ($session->tribe == 3) $cpcty *= 2;
?>
<td><b><?php echo $cpcty; ?></b> units</td>
</tr>
<tr>
<?php
if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
$cpcty = $bid23[$village->resarray['f'.$id]+1]['attri'];
if ($session->tribe == 3) $cpcty *= 2;
?>
<th>Hidden units per resource at level <?php echo $village->resarray['f'.$id]+1; ?>:</th>
<td><b><?php echo $cpcty; ?></b> units</td>
<?php
}
?>
</tr>
</table>
<?php
include("upgrade.tpl");
?>
</p></div>
-MarkM-