Roy Shum
5b7bc2a5c3
improve performance on updatestore
2017-11-08 14:50:49 +08:00
Martin Ambrus
5f5dfb978e
fix: here movement between villages requires hero to travel alone
...
Closes #272
2017-11-06 18:16:54 +01:00
Martin Ambrus
9514976c15
fix: attacks on oasis result in assigning them to Multihunter
2017-11-06 15:11:57 +01:00
Martin Ambrus
1301e1eb4a
fix: use strings instead of undefined constants
2017-11-06 14:17:52 +01:00
Martin Ambrus
5a929457c0
fix: unable to determine attack type
2017-11-06 14:01:24 +01:00
Martin Ambrus
ee285a4ed8
fix: units not returning from attack and staying as reinforcements
2017-11-05 09:17:43 +01:00
Martin Ambrus
57057384d3
refactor: SELECT * replaced by SELECT fieldname1, fieldname2 ...
...
So far in a few places.
2017-11-05 09:03:59 +01:00
Martin Ambrus
f485f69e0a
fix: clear all remaining village troops when conquering a village
...
Closes #269
2017-11-05 00:08:22 +01:00
Martin Ambrus
a822504706
fix: counting queries optimization
...
Closes #300
2017-11-04 15:41:35 +01:00
Martin Ambrus
962cbcc19b
fix: maximum alliance members update on building demolition
...
Now saves correct data (was saving maximum for 1 level above the
after-demolition level).
2017-11-04 10:31:45 +01:00
Martin Ambrus
c0a9e9411e
fix: undefined variable wreaking havoc
...
Closes : #249 , #264
2017-11-03 22:57:08 +01:00
Martin Ambrus
9f8fa45b1f
fix: undefined index
2017-11-03 16:53:31 +01:00
Martin Ambrus
e51aec68bd
fix: path not found erorrs for multiple-automation-lock-files
...
Closes #244
2017-11-03 13:07:37 +01:00
Martin Ambrus
2859cf1e8e
fix: village cannot be conquered if it was also destroyed
...
Closes #184
2017-11-03 12:56:24 +01:00
Martin Ambrus
90f8982245
fix: hero dying and revival doesn't work correctly with multiple heroes
2017-11-02 23:59:03 +01:00
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