Skip to content

NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

Description

@Shadowss

We must add 4 tribes (already added images in gpack in folder u-units and folder q-quest and g-buildings but partial [without walls]) as a NEW_FUNCTION_TRIBE on install (1 tribe or 2 tribe or 3 tribe or 4 tribe) (let admin/installer chose what tribe he want to install)

  • Huns
  • Egipteans
  • Spartans
  • Vikings
Image Image Image Image

As a propose we have the next timeline :

Huns (TRIBE 6) — extreme cavalry, almost no infantry:
u51 Hun Warrior (infantry) · u52 Scout Rider · u53 Horse Archer · u54 Steppe Rider · u55 Hun Lancer · u56 Elite Rider · u57 Ram · u58 Catapult · u59 Tribal Chief · u60 Settler

Building 44 — Wild Horse Camp: reduces cavalry training time per level (not upkeep, to avoid duplicating Horse Drinking Trough).

Egyptians (TRIBE 7) — economy/defense, chariot warfare:
u61 Armed Slave · u62 Egyptian Fighter · u63 Temple Guardian (strong defense) · u64 Horse Scout · u65 Chariot · u66 Royal Chariot · u67 Ram · u68 Catapult · u69 Nomarch · u70 Settler

Building 45 — Waterworks: grants a percentage bonus to resource production per level (faithful to the original theme in Travian Kingdoms).

Spartans (TRIBE 8) — elite infantry, very limited cavalry:
u71 Spartan Hoplite · u72 Agoge Warrior · u73 Homoioi (elite) · u74 Perioikoi Scout · u75 Spartan Rider · u76 Hippeis (elite cavalry) · u77 Ram · u78 Catapult · u79 Ephor · u80 Settler

Building 46 — Agoge: grants a percentage defense bonus per level.

Vikings (TRIBE 9) — aggressive infantry, strong raiding and balanced offense, limited cavalry:
u81 Viking Raider (infantry) · u82 Viking Scout · u83 Axeman · u84 Berserker (elite infantry) · u85 Viking Rider · u86 Huscarl (elite) · u87 Ram · u88 Catapult · u89 Jarl · u90 Settler

Building 48 — Mead Hall: grants a percentage bonus to infantry attack per level, emphasizing the Vikings' raiding and warrior culture.

The files that must be modified :

  • First (Data Files from GameEngine/Data) : buidata.php, hero_full.php and unitdata.php [u51-u60 Huni, u61-u70 (Egipteans) + u71-u80 (Spartans), u81-u90 (Vikings)]
  • Second (GameEngine folder) : Account.php (add tribe permission), Automation.php (Merchants capacity, cleanUser, etc.), Database.php (ranking, map, etc.), Battle.php (add walls and SPARTAN AGOGE defense bonus), Building.php (add buildings : Building 44 — Wild Horse Camp, Building 45 — Waterworks, Building 46 — Agoge, Building 48 — Mead Hall), Market.php (add market carry) and Technology.php (time bonus cavalery for Huns), Ranking.php (all tribe <= 3 must include tribe 6,7,8,9 and exclude tribe 5 natars)
  • Third : GameEngine/Lang (must add translation to en.php, fr.php and ro.php)
  • Forth : Templates/Build: must add 44.tpl, 45.tpl, 46.tpl and 48.tpl file for each building, must add in avaliable.tpl and also in Templates/Build/avaliable and Templates/Build/soon folder add egyptianbuilding.tpl, hunbuilding.tpl, spartanbuilding.tpl and vikingsbuilding.tpl, also all walls we must to create *.tpl file for each tribe HUNS, EGIPTEAN, SPARTAN and VIKINGS like 31.tpl 32.tpl and 33.tpl for (Romans, Teutons and Gauls) and also in avaliable.tpl and we must to implement units trainging in BLACKSMITH (12.tpl and 12_upgrades.tpl) and ARMOURY (13.tpl and 13_upgrades.tpl) and ACADEMY must create 4 files 22_6.tpl for HUNS, 22_7.tpl for EGIPTEAN, 22_8.tpl for SPARTAN and 22_9.tpl for VIKINGS.
  • Fifth : compact.css from gpack\travian_default\lang\en (in this file are display units images from rally point and dorf1.php), ATENTION MUST MODIFIED also this for statistics:

div.statistics div#submenu2 img.btn_v6 {
background-image: url("../../img/s/v6.gif");
}
div.statistics div#submenu2 img.btn_v7 {
background-image: url("../../img/s/v7.gif");
}
div.statistics div#submenu2 img.btn_v8 {
background-image: url("../../img/s/v8.gif");
}
div.statistics div#submenu2 img.btn_v9 {
background-image: url("../../img/s/v9.gif");
}

And this for units :

/* HUNS (51-60), EGYPTIANS (61-70), SPARTANS (71-80), VIKINGS (81-90) /
/
Individual 16x16 files (not a shared sprite sheet), same pattern as the u98/u99 rules above. */
img.u51 {
background-image: url("../../img/u-units/u51.gif");
}
img.u52 {
background-image: url("../../img/u-units/u52.gif");
}
img.u53 {
background-image: url("../../img/u-units/u53.gif");
}
img.u54 {
background-image: url("../../img/u-units/u54.gif");
}
img.u55 {
background-image: url("../../img/u-units/u55.gif");
}
img.u56 {
background-image: url("../../img/u-units/u56.gif");
}
img.u57 {
background-image: url("../../img/u-units/u57.gif");
}
img.u58 {
background-image: url("../../img/u-units/u58.gif");
}
img.u59 {
background-image: url("../../img/u-units/u59.gif");
}
img.u60 {
background-image: url("../../img/u-units/u60.gif");
}
img.u61 {
background-image: url("../../img/u-units/u61.gif");
}
img.u62 {
background-image: url("../../img/u-units/u62.gif");
}
img.u63 {
background-image: url("../../img/u-units/u63.gif");
}
img.u64 {
background-image: url("../../img/u-units/u64.gif");
}
img.u65 {
background-image: url("../../img/u-units/u65.gif");
}
img.u66 {
background-image: url("../../img/u-units/u66.gif");
}
img.u67 {
background-image: url("../../img/u-units/u67.gif");
}
img.u68 {
background-image: url("../../img/u-units/u68.gif");
}
img.u69 {
background-image: url("../../img/u-units/u69.gif");
}
img.u70 {
background-image: url("../../img/u-units/u70.gif");
}
img.u71 {
background-image: url("../../img/u-units/u71.gif");
}
img.u72 {
background-image: url("../../img/u-units/u72.gif");
}
img.u73 {
background-image: url("../../img/u-units/u73.gif");
}
img.u74 {
background-image: url("../../img/u-units/u74.gif");
}
img.u75 {
background-image: url("../../img/u-units/u75.gif");
}
img.u76 {
background-image: url("../../img/u-units/u76.gif");
}
img.u77 {
background-image: url("../../img/u-units/u77.gif");
}
img.u78 {
background-image: url("../../img/u-units/u78.gif");
}
img.u79 {
background-image: url("../../img/u-units/u79.gif");
}
img.u80 {
background-image: url("../../img/u-units/u80.gif");
}
img.u81 {
background-image: url("../../img/u-units/u81.gif");
}
img.u82 {
background-image: url("../../img/u-units/u82.gif");
}
img.u83 {
background-image: url("../../img/u-units/u83.gif");
}
img.u84 {
background-image: url("../../img/u-units/u84.gif");
}
img.u85 {
background-image: url("../../img/u-units/u85.gif");
}
img.u86 {
background-image: url("../../img/u-units/u86.gif");
}
img.u87 {
background-image: url("../../img/u-units/u87.gif");
}
img.u88 {
background-image: url("../../img/u-units/u88.gif");
}
img.u89 {
background-image: url("../../img/u-units/u89.gif");
}
img.u90 {
background-image: url("../../img/u-units/u90.gif");
}

  • a2b.php from root and also Templates/a2b/attack.tpl, newdorf.tpl, search.tpl, sendback.tpl, units_1.tpl to units_5.tpl and create units_6.tpl to units_9.tpl for each tribe and check all tribe dependent!
  • warsim.php and all Templates/Simulator folder must add all tribes and modify all *.tpl and add new .tpl (att_6.tpl to att_9.tpl, def_6.tpl to def_9.tpl, res_6.tpl to res_9.tpl, res_a6.tpl to res_a9.tpl and res_d6.tpl to res_d9.tpl) and also check def_end.tpl and return.tpl if is tribe dependent!
  • Sixth : add Manuals for each tribe
  • Also in Templates/Profile must modified file overview.tpl with new tribe like this: $tribeArrays = [TRIBE1, TRIBE2, TRIBE3, TRIBE4, TRIBE5, TRIBE6, TRIBE7, TRIBE8, TRIBE9];
  • Also in Templates/Ranking file overvierw.tpl must be modified with new tribe like TRIBE6, TRIBE7, TRIBE8, TRIBE9 and must create new tpl file for each tribe with player_6.tpl, player_7.tpl, player_8.tpl, player_9.tpl and also modify player_top10.tpl to add new tribe all with (ATENTION MUST ADD NEW_FUNCTION_TRIBE_HUNS / NEW_FUNCTION_TRIBE_EGIPTEANS / NEW_FUNCTION_TRIBE_SPARTANS / NEW_FUNCTION_TRIBE_VIKINGS)
  • In folder Templates/Map modify file vilview.tpl to add TRIBE6, TRIBE7, TRIBE8, TRIBE9.
  • We must modify in Admin Panel server_info.tpl, online.tpl, playerinfo.tpl and editUser.tpl (and backend editUser.php from GameEngine/Admin/Mods) to add/view new tribe.
  • We must modify in Templates folder troops.tpl file because is unit dependent limited at unit 50
  • IMPORTANT !!! : All this tribe must be added by wish on install page with NEW_FUNCTION_TRIBE_HUNS / NEW_FUNCTION_TRIBE_EGIPTEANS / NEW_FUNCTION_TRIBE_SPARTANS / NEW_FUNCTION_TRIBE_VIKINGS

PS : eg. Templates/quest.tpl is not tribe dependent (should not be modified) also rallypoint (16.tpl and all other rally point file is not tribe dependent)

Metadata

Metadata

Labels

EnhancementNew feature or requestHelp wantedExtra attention is needed

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions