Commit Graph

3362 Commits

Author SHA1 Message Date
novgorodschi catalin 1e19f117ca Last fix for Hero T4 & V11
/*
|--------------------------------------------------------------------------
| FIX List
|--------------------------------------------------------------------------
|
| 1. Hero Attribute Points
|    - When adding attribute points to the hero, the page currently refreshes
|      after every click on the "+" button.
|    - Implement a faster allocation method (AJAX or similar) so multiple
|      points can be assigned without a full page refresh.
|    - The implementation must remain secure and not be exploitable
|      (validate requests server-side, prevent double submissions,
|      verify available points, etc.).
|
| 2. Hero Equipment Restrictions (Original Travian Behavior)
|    - Prevent equipping or unequipping hero items while the hero is:
|        • On an adventure.
|        • Attacking (alone or with troops).
|        • Away as reinforcements.
|
| 3. Oasis Navigation
|    - When opening an oasis (37_land.tpl), the 37_t4nav.tpl navigation
|      disappears.
|    - Include the navigation menu on the oasis page as well.
|
| 4. Auction House Redesign
|    - Redesign 37_auction.tpl to match the Merchant.png mockup.
|    - Keep the existing auction functionality exactly as it is.
|    - Only improve the UI/UX.
|    - You may crop and reuse graphics from Merchant.png.
|    - Add Gold ⇄ Silver exchange functionality.
|
| 5. Hero Item Bonuses (Highest Priority)
|    - Verify that hero equipment bonuses are applied correctly.
|    - Example:
|        • Helmet of the Ruler should reduce Barracks training time by 20%.
|        • Currently, training time remains unchanged whether the helmet
|          is equipped or not.
|    - Also verify:
|        • Stable training speed bonuses.
|        • Boots bonuses.
|        • Any other related hero equipment effects.
|
| 6. Adventures Page Redesign
|    - Redesign 37_adventures.tpl to match the Adventure.png mockup.
|    - Keep the "Expires in" column intact.
|
*/
2026-07-23 15:16:51 +03:00
Catalin Novgorodschi 34e3d88e39 Revise README for Version 11 Highlights
Updated version highlights from 10 to 11, detailing major refactors and improvements.
2026-07-23 13:28:06 +03:00
Catalin Novgorodschi 347e3dbeba Revise README with updates on project features
Updated README to reflect recent changes in automation, database cleanup, SQL indexing, and asset management.
2026-07-23 13:27:08 +03:00
novgorodschi catalin acc681f737 Some rapid fix for v11
Some rapid fix for v11
2026-07-23 12:18:46 +03:00
novgorodschi catalin 8a2d727659 Last Phase before v11 release. New Automation Cleanup
Last Phase before v11 release. New Automation Cleanup
V11
2026-07-23 11:49:27 +03:00
novgorodschi catalin 9a3f26bc93 Some full fixes before final v11 release
Some full fixes before final v11 release
2026-07-23 11:20:01 +03:00
novgorodschi catalin 62b39f4d34 Fix cron jobs and hero error
Fix cron jobs and hero error
2026-07-23 10:11:45 +03:00
novgorodschi catalin 6f80be1f4c Add Cron Jobs for Automation
Add Cron Jobs for Automation
2026-07-23 09:43:16 +03:00
novgorodschi catalin da4f203aa1 Fix Lang + Fix train troops in greatbarraks and great stable + fix ally message + refactor battle system
Fix Lang + Fix train troops in greatbarraks and great stable + fix ally message + refactor battle system #219
2026-07-23 08:25:32 +03:00
novgorodschi catalin 8db3032293 Refactor GameEngine files
fix some GameEngine bugs and new improovements
2026-07-20 07:09:06 +03:00
novgorodschi catalin 94a7a1c245 Refactor Village.php #326
Refactor Village.php #326
2026-07-17 11:58:32 +03:00
novgorodschi catalin d89ffe4482 Major refactor: Extract Database and Automation into domain-specific trait files
### Core Architecture Refactor

- Split the `Database.php` class into domain-specific traits under `GameEngine/Database/`.
- Split the `Automation` class into domain-specific traits under `GameEngine/Automation/`.
- Grouped methods by functional domain for improved maintainability and navigation.
- Preserved 100% backward compatibility.
- No logic or behavioral changes.
- Pure structural refactor.
2026-07-17 11:03:27 +03:00
novgorodschi catalin 0c9d2a6667 Fix general in statistics
Fix general in statistics
2026-07-17 08:42:13 +03:00
novgorodschi catalin 3d4d5e5cef Fix Command Center Capital Change #329
Fix Command Center Capital Change #329 , Fix forum units, fix trooplist on raidlist,
2026-07-17 08:24:13 +03:00
Didiboo 47f958c430 Didiboo patch fr1.2 (#335) 2026-07-17 07:53:59 +03:00
Didiboo 2264a6be61 Pictures Vikings (Manual) (#334) 2026-07-17 07:51:15 +03:00
Didiboo 6b0ef8a2f2 Account.php (#333) 2026-07-17 07:49:20 +03:00
Didiboo 1573b5a01a Update fr.php (#331) 2026-07-16 15:24:28 +03:00
novgorodschi catalin 7b2af2c265 Fix hero T4
Fix hero T4
2026-07-16 15:03:33 +03:00
novgorodschi catalin 96ab919865 Fix (ACP) Quest & Other
Fix (ACP) Quest & Other
2026-07-16 14:08:05 +03:00
novgorodschi catalin 24ce9a039d Fix (quest_core.tpl) unit we finish ACP edit future
Fix (quest_core.tpl) unit we finish ACP edit future
2026-07-16 12:21:35 +03:00
novgorodschi catalin c7ba50036f Add (Admin Panel) : Multi-account detection, Push protection, Heatmap, Gold Shop and Blacklist user names
Add (Admin Panel) : Multi-account detection, Push protection, Heatmap, Gold Shop (redem codes), Blacklist user names and Quest Editor + fix some php notice

Fix quest_core for mission 33,36, train 2 units, etc (NEW TRIBE)

There are some temporary bugs that will be fixed in next commit (pagination for new heatmap, quest reward)
2026-07-16 11:09:48 +03:00
novgorodschi catalin 37e845a4d6 Fix quest 33 add command center
Fix quest 33 add command center
2026-07-15 15:22:01 +03:00
novgorodschi catalin ae6defad69 fix config
fix config
2026-07-15 14:38:25 +03:00
novgorodschi catalin b87cf27396 Add MultiAccount Detection, Add Push Protection Detection, Add register Default Gold
Add MultiAccount Detection, Add Push Protection Detection, Add register Default Gold
2026-07-15 14:23:05 +03:00
novgorodschi catalin 1925f45001 Add Egipteans Detailed For Oasis Waterworks
Add Egipteans Detailed For Oasis Waterworks
2026-07-15 11:20:41 +03:00
novgorodschi catalin 7fdad592e5 Fix edit new function for new tribes
Fix edit new function for new tribes & add viking image
2026-07-15 08:43:56 +03:00
novgorodschi catalin 4407fdd8df Fix level 1 main building conquest
Fix level 1 main building conquest
2026-07-15 08:20:55 +03:00
novgorodschi catalin 0f4f575a5c Add items for new tribes (temporary)
Add items for new tribes (temporary)
2026-07-15 08:07:38 +03:00
novgorodschi catalin 28c0bb5065 Fix Huns Command Center Conquest + Fix hero on Huns attack lost + Add NEW TRIBE HERO ITEMS
Fix Huns Command Center Conquest + Fix hero on Huns attack lost + Add NEW TRIBE HERO ITEMS
2026-07-15 07:54:07 +03:00
novgorodschi catalin ef52bddf9a New Register Page With 3 Step Wizard
New Register Page With 3 Step Wizard
2026-07-14 14:49:23 +03:00
novgorodschi catalin aa689ccc4a Add translate for NEW TRIBE in romanian
Add translate for NEW TRIBE in romanian
2026-07-14 14:31:51 +03:00
novgorodschi catalin 47a740308e FIX WALL NAMES FOR QUEST NEW TRIBE
FIX WALL NAMES FOR QUEST NEW TRIBE
2026-07-14 14:28:27 +03:00
novgorodschi catalin b34bb62e5b Fix Settler Quest for NEW TRIBE
Fix Settler Quest for NEW TRIBE
2026-07-14 14:22:22 +03:00
novgorodschi catalin 089d1df0ff Fix 3 bugs (spy dont die, hero error battle report and hospital cost)
1. Spies — real bug, found. In calculateBattle, the block that calculates the attack power of spies had the hardcoded condition if ($i == 4 || $i == 14 || $i == 23 || $i == 44). Scouts of new tribes (52/64/74/82) did not enter the branch → attack power 0, so they all died no matter how many there were. Now the condition is in_array($i, $unitsbytype['scout']). With this, all four lists in Battle (cavalry, catapults, rams, scouts on attack + scouts on defense) are derived from unitsbytype.
2. Defender hero. I rebuilt the report CSV with dummy values ​​and confirmed that the indexes in Notice/1.tpl are correct (272 = hero present, 273 = hero dead) — so the problem was that $deadhero was ending up as 0 in the report, even though deadherodef was 1 in the battle result (that's why the hero actually died in the DB). Now $deadhero is taken directly from the battle result ($battlepart['deadherodef']), with $owndead['hero'] only as a fallback.
3. "Free" healing. The code called modifyResource(..., mode 0) exactly like training, so the resources were low — but at 100x speed and full storage (8M/8M in your captures) the difference is instantly invisible. I did find a real bug in this area though: modifyResource caps at 0 instead of failing, so if you don't have resources you heal for free. Now procHeal checks the stock and, if there are insufficient resources, automatically reduces the quantity to what you can afford (or cancels).
2026-07-14 14:03:31 +03:00
novgorodschi catalin 138ab1a91c Add image for new tribes in profile
Add image for new tribes in profile
2026-07-14 12:23:14 +03:00
novgorodschi catalin 13d3244e28 Add 4 tribes for addUser Admin CP
Add 4 tribes for addUser Admin CP
2026-07-14 11:07:26 +03:00
novgorodschi catalin 585fe3af5a Fix CSS TOP 10
Fix CSS TOP 10
2026-07-14 10:54:09 +03:00
novgorodschi catalin 25c8925ef6 NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327
NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

Please be advised, is not fully tested so if you activate on install maybe is not fully working
2026-07-14 09:25:26 +03:00
Catalin Novgorodschi 60a2d3b206 Fix cage and animal release for hero T4
Fix cage and animal release for hero T4
2026-07-10 13:35:30 +03:00
novgorodschi catalin 77a004d441 Add Hero T4 Item Description
Add Hero T4 Item Description
2026-07-10 10:48:20 +03:00
novgorodschi catalin 72af9eb7a3 Fix T4 hero Adventure & Auction by tribe
Fix T4 hero Adventure & Auction by tribe
2026-07-10 09:24:08 +03:00
novgorodschi catalin 3c99623a33 Add T4 Hero System (configurable on install)
Add T4 Hero System (configurable on install with TRUE/FALS) part of #285

-Adventures
-Merchants
-Equipment
2026-07-10 09:15:42 +03:00
Catalin Novgorodschi ed325b6d99 Create SECURITY.md for security policy
Added a security policy document outlining supported versions and vulnerability reporting.
2026-07-07 08:04:31 +03:00
novgorodschi catalin c57122b5da Restore commit
Restore commit
2026-07-03 15:07:42 +03:00
novgorodschi catalin d8ff747ca1 Fix Milestone 1000 pop (invalidate cache for count pop)
Fix Milestone 1000 pop (invalidate cache for count pop)
2026-07-03 15:00:36 +03:00
novgorodschi catalin 8eeee03ca9 Fix (vulnerability) HTTP_HOST
Fix vulnerability (HTTP_HOST)
2026-07-03 14:30:31 +03:00
novgorodschi catalin 575a0f9e57 Remove Monsters from acp
Remove Monsters from acp
2026-07-03 14:22:44 +03:00
novgorodschi catalin 4bd3079c97 Add some translation file
Add some translation file
2026-07-03 14:15:19 +03:00
novgorodschi catalin 367421f278 Remove monster units
Remove monster units
2026-07-03 13:10:26 +03:00