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
Martin Ambrus
b5a0789ff2
fix: we could really use autoloader... later, later...
2017-10-25 18:17:46 +02:00
Martin Ambrus
df5400be79
fix: unstupiding my own stupidity :-D
2017-10-25 17:18:40 +02:00
Martin Ambrus
099a7307e3
fix: new DB class to consider installation
2017-10-25 14:54:23 +02:00
Martin Ambrus
30d3b9c4fa
refactor: OOP code movements started :)
2017-10-25 13:38:38 +02:00
Martin Ambrus
ab461e5945
chore: new ToDos
2017-10-25 08:08:50 +02:00
Martin Ambrus
dc0e6b6941
fix: undefined index
2017-10-25 08:08:49 +02:00
Martin Ambruš
dcde4f9c4d
feat: end screen should contain chmod info
2017-10-25 06:55:21 +02:00
Martin Ambrus
8b8d9b839e
chore: mysql slow query log reveals which queries do not use indexes ;)
2017-10-24 22:42:40 +02:00
Martin Ambrus
30cd0158c3
chore: 2 more indexes
2017-10-24 22:42:05 +02:00