Commit Graph

1969 Commits

Author SHA1 Message Date
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 7b178e197b feat: message sender (when reading message) now links to a user 2017-10-29 13:34:05 +01:00
Martin Ambrus 69da66c410 feat: forum notification message has a user link for one who was posting 2017-10-29 13:14:33 +01:00
Martin Ambrus 2ca133f830 chore: a few more ToDos 2017-10-29 13:03:11 +01:00
Martin Ambrus 66e71ad879 refactor: this never worked... it's a minor thing, scheduling for later 2017-10-29 13:02:58 +01:00
Martin Ambrus 85a853533f fix: all requirements now checked before a building something is allowed 2017-10-29 11:22:45 +01:00
Martin Ambrus 769f5afe0e fix: admins should see all buildings, even great ones and the greatest 2017-10-29 11:01:09 +01:00
Martin Ambrus 5f4ac3bc48 fix: undefined indexes 2017-10-28 21:28:26 +02:00
Martin Ambrus 59af039d8e fix: "finish immediately" PLUS link doesn't decrease gold for demolition 2017-10-28 21:06:19 +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 e8e0cc89d3 fix: don't allow players to go back in quests 2017-10-28 19:51:14 +02:00
Martin Ambrus f5ceefebb7 fix: new /var/log folder needs to be chmodded on Linux
The /var/log game folder stores game logs (for now only access log) and
as such must be writable by the server.
2017-10-28 19:02:25 +02: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 133a5126f9 fix: Multihunter's Quest now always solvable 2017-10-28 18:54:37 +02:00
Martin Ambrus 1525771ee9 fix: correction in generation of units in oasis 2017-10-28 15:15:30 +02:00
Martin Ambrus 7907922dc8 chore: README update 2017-10-28 12:04:36 +02:00
Martin Ambrus 2340c3821c fix: undefined variables 2017-10-28 12:04:28 +02:00
Martin Ambrus 25a657e60f fix: correcting admin link 2017-10-28 11:55:39 +02:00
Martin Ambrus 06de01cdd7 fix: upkeep decreases crop usage by real usage value of Roman units 2017-10-28 11:52:55 +02:00
Martin Ambrus 48ed6ec359 fix: undefined variable 2017-10-28 11:52:12 +02:00
Martin Ambrus 6bbeb0c574 fix: session login check for admin 2017-10-28 11:25:50 +02:00
Martin Ambrus 6226412825 fix: coordinates were still generated in wrong descension 2017-10-28 11:08:35 +02:00
Martin Ambrus 2cfb84ebe2 fix: world data generation now returns the correct number of records 2017-10-28 10:30:53 +02:00
Martin Ambrus 540e69c8d1 refactor: button disable timeout should be shorter 2017-10-28 10:01:43 +02:00
Martin Ambrus 1b3d0ab4ac fix: this install redirect somehow escaped the last fix :P 2017-10-28 09:58:54 +02:00
Martin Ambrus e148b917e5 chore: version change (a lot of changes happened, so it's time :P ) 2017-10-28 09:57:44 +02:00
Martin Ambrus 4621c29e05 fix: admin session username stored in session 2017-10-28 09:40:23 +02:00
Martin Ambrus 4678fd273b fix: undefined index 2017-10-28 09:35:09 +02:00
Martin Ambrus d9f4d044c6 fix: new install version + old installed version redirected to install
Because the check changed to see if /var/installed is present (and it
would never be in the version previously installed), this caused some
pages to redirect to /install.
2017-10-28 09:32:54 +02:00
Martin Ambrus eca2c9105c fix: undefined indexes and variables 2017-10-28 02:18:00 +02:00
Martin Ambrus 6f7c70a0d7 refactor: autoprefixing class includes 2017-10-28 02:17:43 +02:00
Martin Ambrus a9bf045a82 fix: no default means no-future-proof 2017-10-28 01:18:47 +02:00
Martin Ambrus 5bae1cfd54 fix: admin DB prefixes to try and find the unfindable database 2017-10-28 00:49:00 +02:00
Martin Ambrus b906e94dcc fix: large map vertical position fix 2017-10-28 00:38:28 +02:00
Martin Ambrus 6cf2715777 chore: new regexes for new indexed queries 2017-10-27 23:05:48 +02:00
Martin Ambrus 7689e73280 refactor: new market DB index 2017-10-27 23:05:29 +02:00
Martin Ambrus 1cc610802b fix: data generation starts and continues in a different way
It goes from -100, 100 through -99, 100 all the way up to 100, -100.
Anything else breaks the map coordinates.
2017-10-27 22:44:32 +02:00
Martin Ambrus 5a967055f4 refactor: using indexed temporary table as array works speed wonders :) 2017-10-27 21:04:16 +02:00
Martin Ambrus 0d84b5f3b4 fix: MySQL variables can't be used inside IN statements as such
So, if we want to do something like "WHERE abc IN ( @ids )", where @ids
would contain a string of "1,2,3", we can't and would need to use
FIND_IN_SET() function instead.
2017-10-27 19:36:27 +02:00
Martin Ambrus 576dfdf950 chore: README update 2017-10-27 19:34:57 +02:00
Martin Ambrus 1e9098505e fix: login + logout pages redirect to install, if not installed yet 2017-10-27 19:34:47 +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 93fbba445e fix: big map not centered on screen in high resolutions
Closes #239
2017-10-26 21:07:27 +02:00
Martin Ambrus 91736e6209 fix: dang, type hinting is only for PHP7... bleee :P 2017-10-26 11:43:08 +02:00
Martin Ambrus 743a6a3f90 fix: open quote was left unattended :P 2017-10-25 23:47:22 +02:00
Martin Ambrus b12e4ef2b7 fix: show Natar villages in stats when allowed 2017-10-25 23:41:39 +02:00
Martin Ambrus 50a45cc0ac chore: a new helpful ToDo 2017-10-25 23:41:21 +02:00
Martin Ambrus 7def98f081 feat: Farms generation via Admin must be fair (= random all over map) 2017-10-25 18:42:13 +02:00