Commit Graph

229 Commits

Author SHA1 Message Date
novgorodschi catalin 98b3b99007 Add spanish language
Add spanish language
2026-08-04 09:19:05 +03:00
novgorodschi catalin 62be19a0fe Add part of spanish language
Add part of spanish language
2026-08-04 09:08:59 +03:00
novgorodschi catalin 10fb3beb0d add ww tribe image
add ww tribe image
2026-08-04 07:54:47 +03:00
novgorodschi catalin b515aeab47 Rearange items in Hero Page
Rearange items in Hero Page
2026-08-03 12:58:18 +03:00
novgorodschi catalin c06c13f3e8 Some fixes
Some fixes
2026-08-03 07:58:30 +03:00
novgorodschi catalin 613d800e29 Clear some dead code!
Clear some dead code!
2026-08-03 07:51:50 +03:00
novgorodschi catalin aeccc54cb9 fix mass message and sysmessage 2026-08-02 17:03:04 +03:00
novgorodschi catalin bd02642711 fix warsim 2026-08-01 17:24:51 +03:00
novgorodschi catalin 84e00c41f0 fix
some fix
2026-08-01 15:52:21 +03:00
novgorodschi catalin 523e81df07 Natars start construct ww
natats start construct their ww
2026-08-01 13:25:24 +03:00
Fabian a1a714b062 Centralize language loading with English fallback (#361) 2026-07-31 08:12:33 +03:00
novgorodschi catalin e87c8ac824 Fix #314
Fix #314 add filter on attacks
2026-07-29 08:02:23 +03:00
novgorodschi catalin 6d02a8ff03 Fix Alliance Level Require Bonus
Fix Alliance Level Require Bonus
2026-07-28 13:32:10 +03:00
novgorodschi catalin 7642151569 Add Plus Statistics
Add Plus Statistics
2026-07-28 08:48:19 +03:00
novgorodschi catalin d4a83f3b7b Add translation for bonuses 2026-07-27 16:14:01 +03:00
novgorodschi catalin 064416826e Add T4 Alliance Bonuses NEW_FUNCTION
Add T4 Alliance Bonuses NEW_FUNCTION
2026-07-27 14:52:15 +03:00
Catalin Novgorodschi f1854c1559 Add Translation to Admin Panel
Add Translation to Admin Panel
2026-07-26 07:58:41 +03:00
WikiDroneFr cc34a8dd4c Internationalize public pages and add French translations (#345) 2026-07-25 17:38:18 +03:00
novgorodschi catalin f469cd428a fix #343 #341 #340 #339 #338 2026-07-25 13:40:01 +03:00
novgorodschi catalin ef6d7c658f Some Additional T4 Hero Fix
Some Additional T4 Hero Fix
2026-07-24 11:00:40 +03:00
novgorodschi catalin 2e53094b48 Add T4 Hero Resource and some fix
Add T4 Hero Resource and some fix
2026-07-24 08:34:50 +03:00
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
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
Didiboo 47f958c430 Didiboo patch fr1.2 (#335) 2026-07-17 07:53:59 +03:00
Didiboo 1573b5a01a Update fr.php (#331) 2026-07-16 15:24:28 +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 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 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 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
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
novgorodschi catalin b24033f19a Fix WW in statistics
Fix WW in statistics
2026-07-03 10:00:53 +03:00
novgorodschi catalin 26ed89b3fa Fix translate in statistiks translate
Fix translate in statistiks translate
2026-07-03 09:57:26 +03:00
novgorodschi catalin c50239442e Milestones Translate
Milestones Translate
2026-07-01 15:01:40 +03:00
novgorodschi catalin 40e5942c25 Fix milestone onmouseover and add 8th milestone
Fix milestone onmouseover and add 8th milestone
2026-07-01 11:50:04 +03:00
novgorodschi catalin 0edb95203d Added Milestone On Install
Added Milestone On Install
2026-07-01 11:05:44 +03:00
novgorodschi catalin a998edc205 Fix #294 code for brewery
Fix #294 now brewery is fully coded!
2026-06-29 08:02:09 +03:00
novgorodschi catalin 41e0fd6313 Some fix
Some fix
2026-06-22 10:41:25 +03:00
Ferywir f581add125 feature(rally-point): mark incoming attacks + show per-troop travel time [#245] (#248) 2026-06-22 06:54:41 +03:00
Ferywir 1b978470c6 fix(session): refresh the 30s user-cache after a player's own changes (#239) 2026-06-18 14:59:44 +03:00
Ferywir cdc736839e i18n(alliance): render alliance news-feed notices in each reader's language (EN/FR/RO) (#238) 2026-06-18 10:22:15 +03:00
Ferywir d008261678 i18n: render system in-game messages in each reader's language (EN/FR/RO) (#237) 2026-06-17 18:19:24 +03:00
Ferywir 51c9cc5b2c i18n: render battle reports in each reader's language (EN/FR/RO) (#236) 2026-06-17 16:24:37 +03:00
Ferywir 4842b7edc1 Fix(i18n/fr): correct remaining old unit names in descriptions and lore
Follow-up to the unit/tribe rename: a few strings still used the old names.

- MANUAL_UDESC_11: "Les Massues" -> "Les Combattants au gourdin" (U11),
  so the in-game manual description matches the unit name.
- TZ_MACEMAN: "Massue" -> "Combattant au gourdin" (used as the U11 label in
  the alliance forum troop picker).
- Conquest help text: the loyalty-reduction units listed "COMMANDANTS, CHEFS"
  (old Teuton name) -> "CHEFS, CHEFS DE TRIBU", matching Senator/Chief/
  Chieftain (Romain/Germain/Gaulois) like the English version.
- Wonder-of-the-World lore: anglicism "Natarian" -> "natarien/natarienne"
  (empire natarien, capitale natarienne, menace natarienne), consistent with
  the Natar unit names.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 09:37:23 +03:00
Ferywir 84d736a342 Fix(i18n/fr): correct French tribe and unit names to match Travian
- Tribe 2 renamed Teutons -> Germains (the French name for this tribe),
  including all manual/tooltip/description texts and adjective forms
  (heros germain, armee germaine, troupes germaines).
- Teuton units: Massueur -> Combattant au gourdin (U11),
  Hallebardier -> Combattant a la lance (U12),
  Chevalier teutonique -> Cavalier teuton (U16), Commandant -> Chef (U19).
- Roman units: Imperial -> Imperian (U3) and official Latin cavalry names
  Equites Legati/Imperatoris/Caesaris (U4-U6).
- Gaul units: Foudre de Teutates -> Teutates accent (U24),
  Haeduen -> Hedui (U26).
- Natar units: anglicism natarian -> natarien (U46/U49/U50) and
  "artefact natarian" -> "artefact natarien" in building descriptions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 09:37:23 +03:00
Ferywir 827354a622 feat(admin): add transparent debug error-log mode
Add an admin-controlled debug mode that captures PHP errors of all
players into var/log/debug-players.log, to hunt remaining PHP 8.3 bugs
from real play sessions. Fully transparent to players: no redirect, no
gameplay change, errors are never displayed.

- DB: new debug_log table (one row), mirroring the maintenance pattern.
- Database: getDebugMode()/setDebugMode()/setDebugSettings(), defensive
  when the table is absent (no blank page).
- Session: register a custom error + shutdown handler when enabled; the
  handler runs even when php.ini error_reporting masks warnings/notices,
  so capture is complete without a Docker rebuild. Auto-disables after a
  configurable window.
- DebugErrorLogger: size-capped file with a single .log.1 rotation,
  honours the @ operator, never throws.
- Admin: new "Debug Error Log" page (levels, size cap, auto-off, on-page
  viewer, clear, download) + debugLog action mod.
- Menu: admin-only quick on/off widget (TZ_DEBUG_ON/OFF, EN/FR/RO).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 17:18:39 +03:00
Ferywir 63c94fa961 feat(preferences): apply time preference (timezone + date format) [#198]
Implement the "Time Preference" section of the player preferences (issue
#198), which until now was stored in DB but never applied in-game.

procMtime() — the central date/time formatter used across reports, messages,
notices and troop movements — now honours the per-user settings:
  - timezone: the stored value is mapped to a DateTimeZone, either a named
    DST-aware region (Europe, UK, Turkey, Kolkata, Bangkok, New York,
    Chicago, New Zealand) or a fixed UTC offset (general zones); timestamps
    are converted before formatting.
  - tformat: drives the date layout and 12h/24h clock (0=EU dd.mm.yy 24h,
    1=US mm/dd/yy 12h, 2=UK dd/mm/yy 12h, 3=ISO yy/mm/dd 24h). tformat 0
    keeps the previous EU output unchanged.

The today/yesterday sentinels are preserved (callers compare them) and are
computed in the player's timezone. The time-only path (mode 9) stays 24h
H:i:s because it feeds the live JS clock counters (unx.js), which parse
"H:i:s" by splitting on ":". A few alliance/report/farm-list rows that
combined procMtime's day part with a raw date('H:i') now take the time from
the same procMtime result, to avoid mixing timezones.

A second "local time" clock is shown next to the server-time one: a small
vanilla-JS snippet emitted once from menu.tpl finds the visible #tp1 clock
and appends a row ticking in the player's timezone (Date.now() + UTC offset),
independent of the browser timezone and of the unx.js counters. It aligns the
value under the server time, is skipped when the player's timezone matches
the server's, and lets the clock box grow so the extra row fits the frame.

Adds the LOCAL_TIME string (EN/FR/RO). When no player session is available
(admin / pre-login) procMtime falls back to the server timezone and EU
layout, i.e. the previous behaviour. Removes the last "not coded yet" tag
from the preferences form.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 16:46:33 +03:00
Ferywir 524b9e7edd fix(i18n): localize statistics page and troops Hero label [#197]
On a fresh install several strings were still hardcoded in English
(reported on the live server, RO locale):

- statistiken.php: the page <title>, the <h1> and the tab bar
  (Player / Alliances / Villages / Heroes / General) were literal English.
- Templates/Ranking/ranksearch.tpl: the "back | forward" pagination links.
- Templates/troops.tpl: the "Hero" troop-row label.

Wire them to language constants. Reuse existing ones
(STATISTICS, PLAYER, PLAYERS, VILLAGES, BACK, FORWARD, U0) and add three
new constants (ALLIANCES, HEROES, GENERAL) to en/fr/ro. WW is kept as-is
(universal acronym).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-11 18:37:22 +03:00