Commit Graph

80 Commits

Author SHA1 Message Date
Ferywir 1b978470c6 fix(session): refresh the 30s user-cache after a player's own changes (#239) 2026-06-18 14:59:44 +03:00
novgorodschi catalin 878ecec687 Added Account transactions with History
Added Account transactions with History
2026-05-21 11:23:45 +03:00
novgorodschi catalin ca4afdf7eb Revert "Undo"
This reverts commit 23d779dd9f.
2026-05-18 09:26:19 +03:00
novgorodschi catalin 23d779dd9f Undo
undo
2026-05-18 09:22:24 +03:00
novgorodschi catalin 55e6dd60b5 Refactor + BugFix
1. Fix a bug in Admin Panel that you can edit by yourself your rank, now you cannot edit your rank anymore.

2. Now Alliance Leader can edit his own Position

3. Fix negative value on Demolition Building, now in database at lvl is appear new level not -1

4. Refactor Ajax map, now all is alligned (Ajax folder and Map folder)

5. Fix bug from Palace (when change capital now Automation recount population automaticaly on old capital and new capital)
2026-05-18 09:18:35 +03:00
Catalin Novgorodschi 3804498ad9 Incremental Refactor Automation & Database (cache)
Incremental Refactor Automation (starvation split in more methods) & Database (cache & checkAllianceEmbassiesStatus refactor), Fix a bug in Alliance.php (now you cannot kick alliance leader)
2026-05-14 15:05:32 +03:00
Catalin Novgorodschi a004f5352b For incremental refactor + some credits 2026-05-12 13:39:10 +03:00
Catalin Novgorodschi c8d9fae4b4 Incremental refactor Generator/Logging/Multisort
Incremental refactor Generator/Logging/Multisort
2026-05-12 13:22:51 +03:00
Catalin Novgorodschi ed0fc6be2c Incremental refactor Building and Ranking
Incremental refactor Building and Ranking
2026-05-12 11:35:15 +03:00
hdmaniak2 e83985e7f7 Fix parallel building exploit via race condition (#141)
Co-authored-by: hdmaniak <bombo15.forum@gmail.com>
2026-03-24 08:48:54 +02:00
levi a0ef06a35f chore: harden php8 compatibility, optimize installer/croppers, and refresh docs/admin ux 2026-03-14 16:50:27 -03:00
Shadow 4c68d8dd39 Update to version 8.3.5
Many Fixes
2022-02-18 13:56:17 +02:00
Shadow 4c116aefea update 2019-05-06 09:18:20 +03:00
iopietro 77136a9784 Artifacts update and optimizations
+Added the "Artifacts" section in the Admin Panel, which contains two
options: return a deleted artifact to the Natars and create new
Artifacts, assigned to a specified player
+Return to Natars coded, in the village section of the Admin Panel
+Moved a lot of functions and costants from Automation.php to the "new"
class Artifacts.php
+Optimized a lot the whole Natars creation process, decreased the number
of query of about 600
+Optimized a lot the function which deletes a player's account, it's now
executed almost instantly, even with players with a lot of villages
+Redesigned the map spawn system, using a more Travian-like village
distribution
+Fixed a bug that did show a broken village in the artifact chronology,
if that village was destroyed
+Reduced the amount of redundant code (about 230 lines) for
27_1.tpl/27_2.tpl and 27_3.tpl
+Fixed a bug that permitted to build the Great Granary and the Great
Warehouse in the whole account, with only a village effect artifact
+Fixed a bug in the Admin Panel map that didn't permit to show village
informations, if that village contained single quotes in its name
2018-07-24 03:04:25 +02:00
iopietro 79eb6a73d6 General fixes
+Removed almost all "BANNED" controls to template and .php UI files. The
control will be done only once and in the Session class
2018-06-11 02:22:22 +02:00
iopietro d96259afd8 General fixes
+You can no longer build WW if your and your alliance building plans
aren't active yet
+You can no longer remove the WW from the village if you remove it from
the building queue
+Spies from every tribe will now consume crop correctly, when returning
from a scouting attacks
+Spies from every tribe will now be displayed correctly, in the "Troops"
tab of dorf3.php, when returning from a scouting attack
+Building levels will now not be downgraded by 1 level, when conquering
a Natars' village
+Natars' villages with an artifact inside, will now be deleted if the
artifact is conquered (even if the pop isn't 0)
2018-06-09 03:03:01 +02:00
iopietro a8d6b9c357 General fixes
+Fixed a bug that didn't permit to change the name or the Tag of the
alliance individually
+Fixed a bug that didn't count the population growth sometimes
+Fixed a bug that didn't halve the population consumption in WW villages
2018-06-08 19:15:39 +02:00
iopietro fca22ac98b General fixes
+Fixed a bug that didn't permit to attack with catapults with the new
automation system
+Fixed a warning that could have been displayed in certain cases
2018-05-23 17:36:16 +02:00
iopietro 0322a0ae49 General fixes
+Fixed a bug that permitted to see troops movement with a 0 level rally
point
+Fixed a bug that permitted to send attacks, enforcements, etc. with a 0
level rally point
+Fixed a bug that counted the moral bonus for attacks against WW
villages
+Fixed a bug that didn't permit to finish all buildings/researches, etc.
without a plus account
+Recoded part of Natars timer for being more generic
+Natars/Artifacts spawn, WW villages spawn, WW building plans spawn are
now based on the start date of the server and not on the installation
date
+Better indentation of some code
2018-05-18 15:46:15 +02:00
iopietro 95cc6180a9 Fixed a catapult bug
+Fixed a bug that didn't recount building time for in waiting loop
buildings
+Fixed a bug that didn't remove a building from the waiting loop, if the
previous was destroyed by catapults
2018-05-15 20:20:38 +02:00
iopietro 43cbd60f78 General fixes
+Added an image in: Natars/Artifacts spawn message, WW villages spawn
message and WW building plans spawn message
+Fixed a wrong time calculation when removing a building from the
construction queue, if there was present a master builder order
2018-05-13 00:21:07 +02:00
iopietro 950fc61f8a General fixes
+A method in Building.php is now static
+Fixed timers in the market
+Fixed a bug that did take in account a wrong tournament square when
calculating the returning time of the troops
2018-05-10 20:50:29 +02:00
iopietro 44fc912616 Fixed a building bug
+Fixed a bug that permitted to build two buildings or two resources
field concurrently, without a plus account, as a Roman
+Some clean-up
2018-05-01 19:05:17 +02:00
iopietro 56e280f436 Artifacts fixes part 4
Completely fixed the artifact of the fool and fixed all kind of
artifact:

+Deleted some useless .tpl files and merged into one (Stable)
+The artifact of the fool effect won't be displayed if not active
+Fixed a bug that permitted to have a great and a unique artefacts
active at the same moment
+Big reductions of code in a lot of files
+Created some new methods to support artifacts
+Fixed a bug that prevented the effect of the "Rivals confusion" to work
correctly
+Fixed a bug that prevented "The eagles eyes" artifact to work correctly
for the attacker
+Fixed the artifact of the fool of every kind, now it's calculated with
a new method
+Fixed the cranny capacity when a "Rivals confusion" artifact is active
+Some minor bug fixing , improovements and optimization
2018-04-26 20:37:47 +02:00
Pietro f41be6dff7 Fixed some bugs
Automation.php: 
Fixed a bug that could happened if two attacks hit two different targets (one with some traps and the other with 0 traps) at the same second.

Building.php: 
Fixed the possibility to build a residence and a palace with the waiting loop (the previous fix wasn't working and $tid was used as a $id and viceversa).
Fixed the possibility to build in the id reserved to walls (id 40).
2018-04-04 20:01:58 +02:00
Pietro a5778c39be Fixed a building bug
You can only build one palace in the whole account.
2018-04-04 18:25:48 +02:00
Pietro 757b41143d Fixed some building bugs
Fixed an error that could have shown if you had tried to build a not buildable building.
Buildings can no longer be built if in demolition.
Buildings can no longer be built above the max level (the previous fix was still hackable, through the waiting loop).
2018-04-03 15:39:48 +02:00
Pietro b1069edf1d A little forgetfullness 2018-04-03 14:41:19 +02:00
Pietro 09ec695997 Fixed some building bugs
Fixed a bug that allowed to build resource fields in the village (the previous fix was still hackable)
Fixed a bug that allowed to build everything with the master builder (even the WW)
Fixed a bug that allowed to build over the twentieth level with the master builder
Fixed a bug that allowed to build level 0 building with the master builder by removing them from the construction queue
2018-04-02 18:55:10 +02:00
Pietro 27bef26315 Fixed an exploit in Building.php
With this exploit you can build "infinite" building of the same type.
Reduced the file size from 1274 lines to 1072 lines.
Removed some unused variables.
Corrected some building requirements (Embassy, Academy, Stable, Walls).
2018-04-02 17:22:09 +02:00
Martin Ambrus 65f6eb2da1 fix: WW building plans must be in player's village to start building WW
#337
2017-12-01 11:08:41 +01:00
Martin Ambrus 7c6ab4c1f5 fix: no need for WW Building Plan to start building a WW
#337
2017-11-30 20:37:59 +01:00
Martin Ambrus cb60226297 fix: cannot build fields and buildings
#383
2017-11-26 19:02:55 +01:00
Martin Ambrus a4bcf0bdfe fix: unable to build with master 2017-11-26 15:17:21 +01:00
Martin Ambrus ec81cb70b8 fix: residence and palace being built together check did not always work 2017-11-26 14:23:01 +01:00
Martin Ambrus 43b7e6c9b0 fix: ww can be built to 51 without construction plan in a loop
#337
2017-11-26 14:11:55 +01:00
Martin Ambrus 72599065a9 fix: disallow building non-existing buildings 2017-11-26 12:26:02 +01:00
Martin Ambrus 1169b4febb fix: not able to build new buildings 2017-11-25 13:11:22 +01:00
Martin Ambrus bc450c686e fix: not able to upgrade woodcutter fields 2017-11-25 13:01:09 +01:00
Martin Ambrus 3196ee9242 fix: possible to build above max level or change standing building type 2017-11-25 12:21:07 +01:00
Martin Ambrus 997b32e174 fix: great warehouse & great granary can be built with right artefact 2017-11-25 11:53:14 +01:00
Martin Ambrus abfcde6e9a fix: build check for village vs non-village buildings 2017-11-25 11:26:10 +01:00
Martin Ambrus ddb8614b14 fix: construction of a palace and a residence in one village
#323
2017-11-22 14:35:33 +01:00
Martin Ambrus 2a68b07704 refactor: last of foreach loops optimized
#313
2017-11-19 14:32:00 +01:00
Martin Ambrus d17d1f9b32 refactor: last round of database values caching
#313
2017-11-17 19:40:34 +01:00
Martin Ambrus 4e5e52f421 fix: immediate finish (PLUS) allows master builder to build 2 levels 2017-11-09 22:35:29 +01:00
Martin Ambrus 19770a5418 fix: master builder auto-increments building level with low resources
When we don't have enough resources, the building level still got
increased when using master builder in the queue and then using instant
build.

Relates to #290
Relates to #257
2017-11-07 19:48:32 +01:00
Martin Ambrus f7d8da5a41 fix: Master builder can build above warehouse/granary requirements
Closes #290
2017-11-06 18:49:03 +01:00
Martin Ambrus 18b5665b7d fix: master builder takes no resources in insta-build
Closes #270
2017-11-05 15:48:22 +01:00
Martin Ambrus 8933b0b55f fix: master builder doesn't subtract gold but insta-builds anyway 2017-11-05 15:04:20 +01:00