Commit Graph

72 Commits

Author SHA1 Message Date
Vladyslav 11ae61c013 Enable and disable display of oases
+Now during the installation (or after installation in the admin panel) you can enable or disable oasis display for villages in the player profile.

NOTE: To play this version of the game, you need to reinstall the server OR you can simply add these lines of code into your file:
GameEngine/config.php

/////////////////////////////////////////////////
//   ****  NEW MECHANICS AND FUNCTIONS  ****   //
/////////////////////////////////////////////////
define("NEW_FUNCTIONS_OASIS", True);

GameEngine/Admin/Modsconstant_format.tpl

/////////////////////////////////////////////////
//   ****  NEW MECHANICS AND FUNCTIONS  ****   //
/////////////////////////////////////////////////
define("NEW_FUNCTIONS_OASIS", %NEW_FUNCTIONS_OASIS%);

NOTICE 2: pay special attention to the fact that these are two different records !!! If the records are entered incorrectly, you will receive a non-working code!
2018-06-20 16:57:13 +03:00
iopietro 90221cf19f Natars automation system
+Natars will now spawn automatically, you can set how many day should
pass before the spawn of Natars (and artifacts), WW Villages and WW
building plans (Note: WW villages and WW building plans won't spawn
until the creation of the natar account)
+Added 3 timers under the left menu which indicate the spawn of
Natars/Artifacts, WW villages and WW building plans
+Added an option in the installation, to set the resource production of
oasis
+Fixed a bug that didn't permit to add multiple Units, Abtech and tech
rows with one query
+Added a new information to the Artifact of the fool, the next effect
reroll will now be displayed in his informations (in the treasury)
+Fixed a bug that dind't permit the correct timers flow in Dorf3.php
(Warehouse tab), they'll now flow correctly
+Timers and resources percentage of villages with a negative production
of crop will now be marked in red (in the Warehouse tab, Dorf3.php) and
will now be displayed in how much time the granary will be emptied
+Fixed a possible bug that prevented to add raids to farm lists
+Fixed a bug that didn't permit to create WW Villages from the
Multihunter control panel
+Reworked all timers, there will be only one timer field now (in
Session.php)
+Minor bug fixing and optimization

NOTE: To play this version of the game, you need to reinstall the server
OR you can simply add these lines of code into your "config.php" file:

// ***** Natars Spawn Time
define("NATARS_SPAWN_TIME",260);
define("NATARS_WW_SPAWN_TIME",260);
define("NATARS_WW_BUILDING_PLAN_SPAWN_TIME",260);

// ***** Oasis production
define("OASIS_WOOD_MULTIPLIER",40);
define("OASIS_CLAY_MULTIPLIER",40);
define("OASIS_IRON_MULTIPLIER",40);
define("OASIS_CROP_MULTIPLIER",40);
define("OASIS_WOOD_PRODUCTION",OASIS_WOOD_MULTIPLIER*SPEED);
define("OASIS_CLAY_PRODUCTION",OASIS_CLAY_MULTIPLIER*SPEED);
define("OASIS_IRON_PRODUCTION",OASIS_IRON_MULTIPLIER*SPEED);
define("OASIS_CROP_PRODUCTION",OASIS_CROP_MULTIPLIER*SPEED);

P.S: from the next version, the possibility to add manual WWs, WW
building plans and to create the natar account will be REMOVED.
2018-05-10 17:45:27 +02:00
Martin Ambrus 312507fe9f feat: MySQL port into installation options
Closes #279
2017-11-07 12:30:32 +01:00
Martin Ambrus f5c3e029b5 feat: access log config setting and a real get-post-cookie logger
This is a very naive and primitive logger of user requests to the game.
To be used on systems where access to webserver's log data is not
available (especially if the webserver doesn't store POST data as well).
2017-10-28 18:59:16 +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 30cd0158c3 chore: 2 more indexes 2017-10-24 22:42:05 +02:00
Martin Ambrus 961a11d16a fix: raidable admin in installation script configured properly 2017-10-24 21:29:18 +02:00
Martin Ambrus 19cb9e230c fix: SQL duplication of key 2017-10-24 21:04:33 +02:00
Martin Ambrus 1f4c7768d4 chore: one more SQL optimization to go 2017-10-24 20:54:05 +02:00
Martin Ambrus 042c6012d4 chore: SQL optimizations, indexes 2017-10-24 19:17:26 +02:00
Martin Ambrus adb1aaa860 chore: SQL optimizations, indexes 2017-10-24 13:29:00 +02:00
Martin Ambrus 8cef188fa8 refactor: more SQL optimizations and regexes 2017-10-23 20:26:41 +02:00
Martin Ambrus f6c7128148 chore: more SQL optimizations and regexes for the tool 2017-10-23 19:20:15 +02:00
Martin Ambrus e3ce9427e0 refactor: market SQL optimization 2017-10-23 18:09:41 +02:00
Martin Ambrus 5567bcd85d refactor: DB optimizations 2017-10-23 17:50:33 +02:00
Martin Ambrus 12687766b6 refactor: much speedier installation process 2017-10-23 13:38:32 +02:00
Shadow 50eb34db57 install fix 2017-10-23 12:28:51 +03:00
Martin Ambrus b8de6338bf refactor: SQL optimizations 2017-10-23 00:33:13 +02:00
Martin Ambrus 71ad4307e1 refactor: counting users on homepage uses indexes
... and some intelligent queries for a change :P
2017-10-22 21:44:33 +02:00
Martin Ambrus 53f54ce9e9 feat: Admins can be attacked, raided and traded with via config option 2017-10-22 20:28:03 +02:00
Martin Ambrus a163206782 feat: forum post notifications into mailbox 2017-10-22 19:16:43 +02:00
Martin Ambrus 965ba37f67 feat: Admins can see Support messages if set in config 2017-10-22 14:47:27 +02:00
Martin Ambrus f4021d1452 feat: MD5 passwords exchanged for bcrypt ones 2017-10-20 12:31:27 +02:00
Martin Ambrus 42a5a7ce33 chore: index to speed up searching for empty square (new registration) 2017-10-13 20:56:02 +02:00
Martin Ambrus 4a2bf99b04 chore: add missing MySQL index on movement table 2017-10-05 14:42:51 +02:00
Martin Ambrus 450b1890d9 fix: missing quotes for plus config values 2017-10-04 09:20:29 +02:00
Martin Ambrus 3eae6f4adc fix: missing quotes for plus config values 2017-10-04 09:17:51 +02:00
Martin Ambrus 6e7ca63cc1 fix: missing quotes for plus config values 2017-10-04 09:17:31 +02:00
Martin Ambrus 8a1ca0960f feat: PLUS packages configurable during installation 2017-10-04 09:15:40 +02:00
Martin Ambrus 60bd2d4059 chore: inactive users now being auto-logged-out after 1 hour 2017-08-28 23:06:21 +02:00
Martin Ambrus 0dffbda620 chore: some SQL indexes fell out of place :P 2017-08-28 22:47:20 +02:00
Martin Ambrus d8f349d2f3 chore: first wave of SQL updates, mostly adding indexes 2017-08-28 22:07:33 +02:00
Martin Ambrus 192b45bc05 fix: missing auto-clear constant 2017-08-28 17:38:52 +02:00
Martin Ambrus a486ac115d chore: restoring installation folder 2017-08-28 17:37:08 +02:00
Martin Ambrus 1c51f2eec0 chore: HTML fixes from Eclipse 2017-08-28 17:31:55 +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
Shadow ef3aecf81e fix 2017-01-14 11:46:05 +02:00
Domen Kajdič 2cf2f3c343 Trying to fix this monstrosity #1 2016-09-13 15:38:14 +02:00
TienTN 5e1fe56772 Fix installation data, because the old script not be able to run with new MySQL 2016-08-31 23:01:44 +07:00
uroskn 9a6748528a Added date field (timestamp, updated by MySQL) on all log tables that didn't have it already 2016-07-03 00:15:04 +02:00
uroskn 1afde368d3 GameEngine and install folders have 777 already set by default 2016-07-02 21:39:28 +02:00
Shadow be5ec25060 Delete sql_old.sql 2016-03-16 13:01:53 +02:00
Shadow e90cab8505 medal fix 2016-03-16 12:15:45 +02:00
Shadow 231a78c486 Update sql.sql 2016-02-22 12:59:45 +02:00
Shadow cdcc6a3e0f fix sql 2016-02-22 11:20:47 +02:00
Shadow 8aed9e760e fix something 2016-02-07 10:43:47 +02:00
Shadow 0cc534bc65 remove sql 2015-06-23 09:44:25 +03:00
Shadow 24568df609 Merge remote-tracking branch 'origin/master'
Conflicts:
	install/data/sql_good.sql
2015-06-23 09:41:27 +03:00
Shadow f57b138871 fix sql 2015-06-23 09:37:23 +03:00
Shadow 4310b8b6bb fix quest time db 2015-06-23 09:28:09 +03:00