Commit Graph

3529 Commits

Author SHA1 Message Date
novgorodschi catalin a7bb7d8dbd Hero T4 — First Adventure Horse Reward by @Sk4r7z fix #391
The first adventure now guarantees one tier-1 Riding Horse (item ID 70), replacing the random item reward.

Behavior:
The horse is added to the player’s inventory and included in the adventure report.
Experience, silver, and resource rewards remain unchanged.
Subsequent adventures use the existing random item rewards.
Eligibility is based on the player’s completed adventure history. Selling the horse or retraining the hero does not reset eligibility.
If the hero dies on the first adventure, all loot is forfeited, including the horse. The next adventure does not receive the guaranteed reward.
This change is not retroactive for players with completed adventures.
2026-09-09 14:34:40 +03:00
novgorodschi catalin 52ff1c66e7 Alliance Bonuses — Admin Panel Update by @Sk4r7z issue #390
The admin panel now supports viewing and editing alliance bonus levels for Recruitment, Philosophy, Metallurgy, and Commerce.

Changes:
The alliance overview displays each bonus’s level, percentage, accumulated resources, and upgrade status.
The edit page allows administrators to select individual bonuses and set their levels from 0 to 5.
Changing a bonus level cancels its current upgrade while preserving accumulated resources. Setting level 5 clears the remaining resources.
Submitted levels are validated on the server, and bonus updates are recorded in the admin log.
Administrator identity is taken from the authenticated session.
Alliances without members can now be displayed.
2026-09-09 14:10:49 +03:00
novgorodschi catalin c55642e3c2 Battle Resolution Fix Report by @Sk4r7z
Battle Resolution Fix Report

The reported issue affected attacks involving more than 2,000 troops. The supplied error log identifies an invalid defender tribe value as the immediate cause of the crash, but does not establish why it occurred with that troop count.

The invalid tribe produced unit names from u-9 to u0, causing undefined array key warnings followed by an invalid SQL query in modifyUnit().

The updated AutomationBattleResolution.php includes:

Tribe validation before combat: Invalid attacker, defender, or reinforcement tribe data leaves the attack pending and logs the issue before evasion or combat changes occur.
Earlier deleted-village handling: The existing troop return logic runs before resolving the deleted village’s owner, tribe, walls, or units.
Defensive casualty checks: Invalid tribes cannot generate negative unit column names. Missing defender unit rows return a zero-loss structure without submitting an empty update.
Reinforcement validation: Invalid player tribe data is no longer automatically treated as Nature. Only reinforcement rows explicitly originating from 0 use tribe 4.
Consistent hero reporting: Reinforcement hero losses use the validated tribe.
Code comments: Changes are documented in the file.

Validation: The complete file passed a PHP 8.3 grammar check using a parser. All 33 original methods were retained; three methods were modified and three validation helpers were added.
2026-09-09 13:37:24 +03:00
novgorodschi catalin 04087b30f8 Add Global Chat Options
1. emoji
2. Poll
3. Delete message
4. Edit message
2026-09-09 11:53:14 +03:00
novgorodschi catalin fd1cbe30f7 Merge branch 'master' of https://github.com/Shadowss/TravianZ 2026-09-09 11:51:54 +03:00
novgorodschi catalin 483f0ae30c Add Global Chat Options
Add Global Chat Options

1. emoji
2. Poll
3. Delete message
4. Edit message
2026-09-09 11:49:59 +03:00
Frederico Luís e4573ef059 Fix global chat moderation buttons visibility (#393) 2026-09-08 17:57:54 +03:00
novgorodschi catalin 009bba0ce6 Added Chatbox
Added Chatbox
2026-09-08 12:56:02 +03:00
novgorodschi catalin 551c58fc3c Fix Support Account
Fix Support Account
2026-09-07 12:48:07 +03:00
novgorodschi catalin 33b055d5cb Merge branch 'master' of https://github.com/Shadowss/TravianZ 2026-09-07 11:43:47 +03:00
novgorodschi catalin 2b61bd72c2 Some important fixes
Some important fixes
2026-09-07 11:43:45 +03:00
Catalin Novgorodschi 130f4199f6 Update Discord link in menu template (#388) 2026-09-07 08:47:48 +03:00
novgorodschi catalin d9a7cf6475 Add index on some folder
Add index on some folder
2026-09-04 14:15:05 +03:00
novgorodschi catalin c2253bdebc Add allianz to cannot modify after winner
Add allianz to cannot modify after winner
2026-09-04 12:50:27 +03:00
novgorodschi catalin 90c8d3dee6 Fix #384 #387
Fix #384 #387
2026-09-04 12:45:00 +03:00
novgorodschi catalin 7e3ffc4c2e Some important fixes!
Some important fixes!
2026-09-04 12:39:23 +03:00
novgorodschi catalin a7bb354015 Merge branch 'master' of https://github.com/Shadowss/TravianZ 2026-09-04 07:36:50 +03:00
novgorodschi catalin bbc5ae0252 Some important fixes 2026-09-04 07:36:42 +03:00
Frederico Luís 240815a9bb Fix oasis ownership after village destruction (#386) 2026-09-04 07:36:22 +03:00
novgorodschi catalin 1bab6640d0 Some hot fixes!!!
Some hot fixes!!!
2026-09-03 13:51:05 +03:00
novgorodschi catalin b572760ee7 Fix natar start time 2026-09-03 08:10:57 +03:00
Catalin Novgorodschi 8ba9981f7c Update email recipient and sender name in mailme.php 2026-09-01 15:17:06 +03:00
novgorodschi catalin 71e73dde95 Some additional fixes
Some additional fixes
2026-09-01 07:56:14 +03:00
Ferywir 054fde6e66 chore(battle): repair double-encoded characters in comments (#381) 2026-08-25 10:14:16 +03:00
Ferywir 22477a5571 fix(combat): stop the dead hero being removed twice from the troop count [#379] (#380) 2026-08-25 10:13:24 +03:00
Catalin Novgorodschi dda489b26f Update Battle.php
Fix hero bug
2026-08-25 07:38:36 +03:00
novgorodschi catalin 0f58d238f1 Fix Natars
Fix Natars
2026-08-20 07:58:50 +03:00
Snooker Loopy 5300198c3a fix distance calculation when adding new raid in farmlist (#378) 2026-08-19 07:34:36 +03:00
novgorodschi catalin 8f14ed7647 Mark all as read
Mark all as read
2026-08-18 10:10:22 +03:00
novgorodschi catalin 971bb56efe Fix an error on paypal
Fix an error on paypal
2026-08-17 12:31:11 +03:00
novgorodschi catalin 0f81a2b25e Some additional fixes for PHP errors
Some additional fixes for PHP errors
2026-08-17 10:31:03 +03:00
novgorodschi catalin d9df87c622 Revert MASTER! STAY HERE !!! 2026-08-14 13:38:58 +03:00
Catalin Novgorodschi 35c7cffaa8 Load instance bootstrap before Admin session 2026-08-14 13:28:26 +03:00
Catalin Novgorodschi 34fd581ea2 Load instance bootstrap before Admin session 2026-08-14 13:27:22 +03:00
novgorodschi catalin 9d81c8eaa0 Fix something wrong 2026-08-14 13:22:45 +03:00
Catalin Novgorodschi af4f695289 Fix instance config writer to use existing instance API 2026-08-14 11:25:09 +03:00
Catalin Novgorodschi 6b7bb9b4f2 Start installer session before reusing canonical config form 2026-08-14 11:24:50 +03:00
Catalin Novgorodschi 7e30c74b0e Add admin account step to multi-instance installation 2026-08-14 11:24:39 +03:00
Catalin Novgorodschi bd3be223d0 Finalize named instance after account provisioning 2026-08-14 11:24:00 +03:00
Catalin Novgorodschi 0430b3ec78 Wire admin account setup into instance installer 2026-08-14 11:23:45 +03:00
Catalin Novgorodschi 0f84a4af42 Make installer account setup instance-aware 2026-08-14 11:23:28 +03:00
Catalin Novgorodschi b5a5bf0944 Complete multi-instance installer dashboard and lifecycle 2026-08-14 11:22:31 +03:00
Catalin Novgorodschi 16e3bdf31a Complete per-instance installation pipeline 2026-08-14 11:22:10 +03:00
Catalin Novgorodschi ee49c796f6 Keep instance config isolated from canonical admin template 2026-08-14 11:21:35 +03:00
novgorodschi catalin 6ae46f77dc Version change 2026-08-14 11:09:49 +03:00
novgorodschi catalin 6da9cd9c53 Restore constant_format.tpl
Restore constant_format.tpl
2026-08-14 11:05:27 +03:00
Catalin Novgorodschi 4acb822075 Restore original config template after multi-instance draft 2026-08-14 10:25:15 +03:00
Catalin Novgorodschi 53331bbb9f Make generated config instance-aware 2026-08-14 10:24:25 +03:00
novgorodschi catalin 35f4075734 Fix some atomic exploit
Fix some atomic exploit
2026-08-13 11:51:54 +03:00
novgorodschi catalin 7bad451a83 New Mileston + New SendWelcome Message
New Mileston + New SendWelcome Message
2026-08-12 14:36:39 +03:00