Commit Graph

336 Commits

Author SHA1 Message Date
Martin Ambrus 945bb2f8c7 fix: too much gold for instant build & research
Fixes #257
2017-11-02 13:11:19 +01:00
Martin Ambrus 7c67e1e7b9 fix: only 1 hero can exist and is deleted upon new hero training start
Closes #261
2017-11-02 11:05:26 +01:00
Martin Ambrus 95438e0fe7 fix: Palace no longer auto-changes capital 2017-11-02 00:50:10 +01:00
Martin Ambrus fe011a5905 fix: undefined index 2017-11-02 00:19:31 +01:00
Martin Ambrus 8a3591a8b0 refactor: alliance and Embassy mechanics refactoring, stage 3 of 3
Battle results logic now accounts for Embassy destruction as per new
alliance and Embassies game mechanics.
2017-11-01 21:37:09 +01:00
Martin Ambrus c9038e20b8 refactor: alliance and Embassy mechanics refactoring, stage 2 of 3
Everything is now prepared for the last stage, where the code to handle
Embassy destruction during a battle will be added and tested :)

A few Embassy-demolition-related issues have been ironed-out in this
commit as well.
2017-11-01 00:16:52 +01:00
Martin Ambrus 5d91de0e14 feat: new Embassy logic for demolitions and alliance quitting 2017-10-29 23:06:25 +01:00
Martin Ambrus b0208730c9 fix: village with palace becomes capital 2017-10-29 13:51:15 +01:00
Martin Ambrus 5f4ac3bc48 fix: undefined indexes 2017-10-28 21:28:26 +02:00
Martin Ambrus 4da72fb9b9 fix: player auto-deletion after a set period of time now works
It only deleted player from the users table. Now, it deletes everything,
so basically clears everything up.
2017-10-28 20:52:15 +02:00
Martin Ambrus 48ed6ec359 fix: undefined variable 2017-10-28 11:52:12 +02:00
Martin Ambrus eca2c9105c fix: undefined indexes and variables 2017-10-28 02:18:00 +02:00
Martin Ambrus 3200cf2c3c fix: multi_query doesn't block next queries anymore 2017-10-27 19:34:19 +02:00
Martin Ambrus 1066fff9a2 refactor: installation happens at MySQL side
A lot has happened here. Here's the list:

1. autoloader was added that should prevent various "failed to open
stream" errors when trying to load new classes

2. PHP-based data generation was replaced by MySQL-based one, hopefully
fixing the installation problems when insert payload it too high and the
DB wouldn't populate with some users

3. thanks to step 2, the installation should be really almost
instantenious, instead of waiting a long time for many SQL connections
and queries to populate the world

4. World Data & Oasis generation and population is done in 1 step now
2017-10-27 18:27:03 +02:00
Martin Ambrus 30d3b9c4fa refactor: OOP code movements started :) 2017-10-25 13:38:38 +02:00
Martin Ambrus d6c517bba6 refactor: this would use a database index 2017-10-24 22:40:25 +02:00
Martin Ambrus 40ad09865c fix: a possible fix for duplicating unit IDs and creating wrong SQL 2017-10-23 17:50:13 +02:00
Martin Ambrus b8de6338bf refactor: SQL optimizations 2017-10-23 00:33:13 +02:00
Martin Ambrus 7270a69a63 fix: all location headers need to have exit after them! 2017-10-22 13:00:54 +02:00
Martin Ambrus 90db6539c1 fix: correcting Automation calculations on returning units 2017-10-22 10:25:39 +02:00
Martin Ambrus d76669cb42 fix: last batch of manual INT typecastings 2017-10-18 01:11:25 +02:00
Martin Ambrus 057f713528 fix: a LOT of manual typecastings for DB values that should be INTs 2017-10-18 00:33:03 +02:00
Martin Ambrus b7d3a0e008 fix: proper count of attacks and troops 2017-10-17 19:17:40 +02:00
Martin Ambrus ac5d3538f8 fix: mysqli_error needs MySQLi connection as parameter 2017-10-17 13:05:13 +02:00
Martin Ambrus 359f711438 fix: expect empty records 2017-10-17 12:58:38 +02:00
Martin Ambrus 4774d7965b fix: Units class cannot be used as array in PHP 7 2017-10-09 13:08:17 +02:00
Martin Ambruš 61b6d6b2e8 fix: some undefined variables
more are left here with warnings but the code is spaghetti, so it's
a lot of hide-and-seek fun for later time
2017-10-05 16:42:17 +02:00
Martin Ambrus db4c373ace fix: PHP4x + PHP5x constructors change for PHP7+ compatible ones 2017-09-19 20:40:43 +02:00
Martin Ambrus 921179012e fix: removal a crazy MySQL on-column calculation 2017-08-28 20:33:20 +02:00
Martin Ambrus 9261a4a4b2 Merge branch 'master' of https://github.com/evader1337/TravianZ into evader1337-master
# Conflicts:
#	GameEngine/Database/db_MYSQL.php
#	Templates/Build/avaliable.tpl
#	Templates/Message/inbox.tpl
2017-08-28 14:18:24 +02:00
TPLinux 3961ea2a0c Fi winner redirection 2017-06-29 16:30:40 +00:00
evader1337 5b73417956 Small changes 2016-09-14 15:05:28 +02:00
Domen Kajdič 2cf2f3c343 Trying to fix this monstrosity #1 2016-09-13 15:38:14 +02:00
uroskn 1afde368d3 GameEngine and install folders have 777 already set by default 2016-07-02 21:39:28 +02:00
Shadow 7c0aa5a21c fix testing 2016-03-08 11:21:15 +02:00
Shadow ca8fef52f7 update test 2016-03-08 11:19:00 +02:00
Shadow b80ef13676 Update Automation.php 2016-02-23 14:16:48 +02:00
Pietro 556b3959ef Update Automation.php 2015-09-04 20:05:48 +02:00
Shadow 467a2b190f fix logo 2015-08-03 10:30:59 +03:00
Shadow faef7e7602 update 2015-06-24 07:55:47 +03:00
Shadow ff5ca62a1e credits 2015-06-22 08:20:34 +03:00
Shadow 99270daa21 gpack update
Now you can implement T4 graphic in T3.6 version
2014-12-02 12:54:37 +02:00
Shadow 49dba1743e Update Automation.php 2014-05-12 09:25:12 +03:00
Shadow 3aab6b37df Update Automation.php 2014-05-09 08:33:13 +03:00
Shadow ef45f955c4 Update Automation.php 2014-02-14 11:41:51 +02:00
Shadow a960a5a50b Update Automation.php 2014-02-10 07:37:17 +02:00
Shadow 7792417362 Update Automation.php 2014-02-02 12:12:59 +02:00
Shadow 192166ffbd Merge pull request #74 from armando1980/patch-29
FIXED spies BY Armando
2014-01-29 06:40:12 -08:00
armando1980 65c9504ced I made a small mistake and fixed
I made a small mistake

and fixed
2014-01-28 17:12:25 -05:00
Shadow 985cd51fb9 Merge pull request #80 from armando1980/patch-33
fix lost troop when target delete by armando
2014-01-26 21:42:34 -08:00