Skip to content

Commit

Permalink
v1.0.28alpha (#129)
Browse files Browse the repository at this point in the history
* Added Mariner Skills and River Hobbit racial (#128)

* fixing comment bug

* 1.0.27 metadata

* u36 metadata

* Added Mariner Skills and River Hobbit racial

* Add missing descriptions

* Add River Hobbit Key

* Fix map window indexes

* Add translations

---------

Co-authored-by: wduda <[email protected]>

* Add U38 metadata to TravelWindowII.plugincompendium

* Added U38 metadata to TravelWindowII.plugin

* Update CHANGELOG.md

* Update credits.md

* fixed bug that would have happened if hunter skills get removed from the game

* sorted indexdictionaryEN toi my liking

* created release notes

* fixed some whitespace

* added mariner skills to dictionaries in cleaned up fashion

---------

Co-authored-by: Michael DuBose <[email protected]>
  • Loading branch information
wduda and mhdubose authored Oct 27, 2023
1 parent 2e89ce4 commit 21e713d
Show file tree
Hide file tree
Showing 14 changed files with 265 additions and 27 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.0.28
- added support for Mariner Sail skills in EN/DE/FR
- added support for River Hobbits racial travel
- fixed rare bug in hunter skills sorting
## v1.0.27
- fixed typo in init.lua causing crash on load
## v1.0.26
Expand Down Expand Up @@ -129,4 +133,4 @@
- fixed Eriador/Rhovannion/Eriador maps with overlays
- fixed High Elf racial travel skill that was broken since U28.2
- cleaned up a few English and German translations
- started reorganizing code
- started reorganizing code
4 changes: 2 additions & 2 deletions TravelWindowII.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Information>
<Name>Travel Window II</Name>
<Author>Hyoss</Author>
<Version>v1.0.27</Version>
<Version>v1.0.28alpha</Version>
<Description>
This plugin creates a single window that contains all the available travel skills, including the race, class and reputation skills.
It is a further development of Travel Window, that has been worked on by multiple authors before.
Expand All @@ -14,4 +14,4 @@ Please report bugs and feature requests at Lotrointeface or GitHub.
</Information>
<Package>TravelWindowII.src.Main</Package>
<Configuration Apartment="TravelWindowII"/>
</Plugin>
</Plugin>
2 changes: 1 addition & 1 deletion TravelWindowII.plugincompendium
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PluginConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Id>1113</Id>
<Name>Travel Window II</Name>
<Version>v1.0.27</Version>
<Version>v1.0.28alpha</Version>
<Author>Hyoss</Author>
<InfoUrl>http://www.lotrointerface.com/downloads/info1113</InfoUrl>
<DownloadUrl>http://www.lotrointerface.com/downloads/download1113</DownloadUrl>
Expand Down
3 changes: 2 additions & 1 deletion doc/credits.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ Hyoss
Thaliruth
Drogo
Adra
Lossensinome
Lossensinome
mhdubose
6 changes: 4 additions & 2 deletions doc/lotroforums.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
A new version is available!

v1.0.27
- fixed typo in init.lua causing crash on load
v1.0.28alpha
- added support for Mariner Sail skills in EN/DE/FR
- added support for River Hobbits racial travel
- fixed rare bug in hunter skills sorting

Download it at [url=https://www.lotrointerface.com/downloads/fileinfo.php?id=1113]Lotrointerface[/url], [url=https://github.com/wduda/TravelWindowII/releases]GitHub[/url], via [url=https://github.com/JeremyStepp/OneLauncher]OneLauncher[/url] or via [url=https://www.lotrointerface.com/downloads/info663-LOTROPluginCompendium.html]Plugin Compendium[/url].
6 changes: 4 additions & 2 deletions doc/lotrointerface.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Use the mousewheel while hovering over the travel skill icon to change the selec
[/LIST]

Version history:
v1.0.27
- fixed typo in init.lua causing crash on load
v1.0.28alpha
- added support for Mariner Sail skills in EN/DE/FR
- added support for River Hobbits racial travel
- fixed rare bug in hunter skills sorting

Rest of changelog found [URL="https://github.com/wduda/TravelWindowII/blob/master/CHANGELOG.md"]here[/URL].
39 changes: 39 additions & 0 deletions src/EriadorMapWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function EriadorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Andrath
{-1, -1}, -- Swanfleet
{-1, -1}, -- Cardolan
{-1, -1}, -- Carn Dûm
{-1, -1}, -- Clegur
{-1, -1}, -- Pelargir

-- Warden skills
{725, 400}, -- Ost Guruth
Expand Down Expand Up @@ -144,6 +147,25 @@ function EriadorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Andrath
{-1, -1}, -- Swanfleet
{-1, -1}, -- Cardolan
{-1, -1}, -- Carn Dûm
{-1, -1}, -- Clegur
{-1, -1}, -- Pelargir

-- Mariner skills
{-1, -1}, -- Celondim
{-1, -1}, -- Brown Lands
{-1, -1}, -- Trader's Wharf
{-1, -1}, -- after-battle Osgiliath
{-1, -1}, -- Lake-town
{-1, -1}, -- Mirk-eaves
{-1, -1}, -- Tinnundir
{-1, -1}, -- Dol Amroth
{-1, -1}, -- Buckland
{-1, -1}, -- Pelegir
{-1, -1}, -- Sûri-kylä
{-1, -1}, -- Lothlórien
{-1, -1}, -- Tharbad
{-1, -1}, -- Snowbourn

-- Reputation skills
{305, 330}, -- Thorin's Hall
Expand Down Expand Up @@ -196,6 +218,10 @@ function EriadorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Swanfleet
{-1, -1}, -- Cardolan
{-1, -1}, -- Tracery Archive
{-1, -1}, -- Carn Dûm
{-1, -1}, -- Clegur
{-1, -1}, -- Glân Vraig
{-1, -1}, -- Pelargir

-- Racial skills
{620, 400}, -- Bree
Expand All @@ -205,6 +231,7 @@ function EriadorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Grimbeorn's House
{-1, -1}, -- Caras Galadhon
{330, 330}, -- Thorin's Gate
{-1, -1}, -- Lyndelby
-- Moors Map
{815, 300} -- Ettenmoors
};
Expand Down Expand Up @@ -253,6 +280,18 @@ function EriadorMapWindow:AddShortcuts()
counter = counter + 1;
end

-- mariner locations
for i = 1, travelCount[7], 1 do

-- add mariner locations if they should be on this map
if (self.mapLocations[counter][1] > 0 and self.PlayerClass == Turbine.Gameplay.Class.Corsair and
self:IsShortcutEnabled(marinerLocations:IdAtIndex(i)) == 1) then
self:AddSingleShortcut(counter, Turbine.UI.Lotro.Shortcut(6.0, marinerLocations:IdAtIndex(i)));
end

counter = counter + 1;
end

-- reputation locations
for i = 1, travelCount[4], 1 do

Expand Down
41 changes: 39 additions & 2 deletions src/GondorMapWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function GondorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Andrath
{-1, -1}, -- Swanfleet
{-1, -1}, -- Cardolan
{-1, -1}, -- Carn Dûm
{-1, -1}, -- Clegur
{-1, -1}, -- Pelargir

-- Muster skills
{-1, -1}, -- Ost Guruth
Expand Down Expand Up @@ -144,6 +147,25 @@ function GondorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Andrath
{-1, -1}, -- Swanfleet
{-1, -1}, -- Cardolan
{-1, -1}, -- Carn Dûm
{-1, -1}, -- Clegur
{-1, -1}, -- Pelargir

-- Mariner skills
{-1, -1}, -- Celondim
{-1, -1}, -- Brown Lands
{-1, -1}, -- Trader's Wharf
{-1, -1}, -- after-battle Osgiliath
{-1, -1}, -- Lake-town
{-1, -1}, -- Mirk-eaves
{-1, -1}, -- Tinnundir
{-1, -1}, -- Dol Amroth
{-1, -1}, -- Buckland
{-1, -1}, -- Pelegir
{-1, -1}, -- Sûri-kylä
{-1, -1}, -- Lothlórien
{-1, -1}, -- Tharbad
{-1, -1}, -- Snowbourn

-- Reputation skills
{-1, -1}, -- Thorin's Hall
Expand Down Expand Up @@ -196,6 +218,10 @@ function GondorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Swanfleet
{-1, -1}, -- Cardolan
{-1, -1}, -- Tracery Archive
{-1, -1}, -- Carn Dûm
{-1, -1}, -- Clegur
{-1, -1}, -- Glân Vraig
{-1, -1}, -- Pelargir

-- Racial skills
{-1, -1}, -- Bree
Expand All @@ -204,8 +230,8 @@ function GondorMapWindow:Constructor(parent, class, race, shortcuts)
{-1, -1}, -- Rivendell
{-1, -1}, -- Grimbeorn's House
{-1, -1}, -- Caras Galadhon
{-1, -1} -- Thorin's Hall

{-1, -1}, -- Thorin's Hall
{-1, -1} -- Lyndelby
};
self:AddShortcuts();

Expand Down Expand Up @@ -250,6 +276,17 @@ function GondorMapWindow:AddShortcuts()
counter = counter + 1;
end

-- mariner locations
for i = 1, travelCount[7], 1 do

-- add mariner locations if they should be on this map
if (self.mapLocations[counter][1] > 0 and self.PlayerClass == Turbine.Gameplay.Class.Corsair and
self:IsShortcutEnabled(marinerLocations:IdAtIndex(i)) == 1) then
self:AddSingleShortcut(counter, Turbine.UI.Lotro.Shortcut(6.0, marinerLocations:IdAtIndex(i)));
end
counter = counter + 1;
end

-- reputation locations
for i = 1, travelCount[4], 1 do

Expand Down
39 changes: 36 additions & 3 deletions src/IndexedDictionaryDe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ function TravelDictionaries:Constructor()
racialLocations = IndexedDictionary();
repLocations = IndexedDictionary();
creepLocations = IndexedDictionary();
marinerLocations = IndexedDictionary();

-- a table to store the number of each type of travel skill
travelCount = { 0, 0, 0, 0, 0, 0 };
travelCount = { 0, 0, 0, 0, 0, 0, 0 };
LocationsTotal = 0;

self:CreateDictionaries();
Expand All @@ -91,8 +92,9 @@ function TravelDictionaries:GetCounts()
travelCount[4] = repLocations:GetCount();
travelCount[5] = racialLocations:GetCount();
travelCount[6] = creepLocations:GetCount();
travelCount[7] = marinerLocations:GetCount();

LocationsTotal = travelCount[1] + travelCount[2] + travelCount[3] + travelCount[4] + travelCount[5];
LocationsTotal = travelCount[1] + travelCount[2] + travelCount[3] + travelCount[4] + travelCount[5] + travelCount[6] + travelCount[7];
end

-- function to return the count of a specific type of travel
Expand All @@ -107,7 +109,7 @@ end

-- function to return the 5 tables containing the travel skills
function TravelDictionaries:GetLocations()
return genLocations, hunterLocations, wardenLocations, racialLocations, repLocations;
return genLocations, hunterLocations, wardenLocations, racialLocations, repLocations, creepLocations, marinerLocations;
end

-- add the data to custom dictionaries to maintain the order
Expand Down Expand Up @@ -217,13 +219,29 @@ function TravelDictionaries:CreateDictionaries()
wardenLocations:AddSkill("Appell in Clegur", "0x70064F4D", "Clegur (Appell)");
wardenLocations:AddSkill("Heerschau in Pelargir", "0x700658E8", "Pelargir (Appell)");

marinerLocations:AddSkill("Segelt nach Celondim", "0x70066100", "Celondim (Segeln)")
marinerLocations:AddSkill("Segelt in die Braunen Lande", "0x70066101", "die Braunen Lande (Segeln)")
marinerLocations:AddSkill("Segelt zum Händlerkai", "0x70066105", "Händlerkai (Segel)")
marinerLocations:AddSkill("Segelt ins schlachtgezeichnete Osgiliath", "0x70066109", "schlachtgezeichnete Osgiliath (Segeln)")
marinerLocations:AddSkill("Segelt nach Seestadt", "0x7006610C", "Seestadt (Segeln)")
marinerLocations:AddSkill("Segelt zur Dunkelsenke", "0x7006610E", "Dunkelsenke (Segeln)")
marinerLocations:AddSkill("Segelt nach Tinnudir", "0x7006610F", "Tinnundir (Segeln)")
marinerLocations:AddSkill("Segelt nach Dol Amroth", "0x70066117", "Dol Amroth (Segeln)")
marinerLocations:AddSkill("Segelt nach Bockland", "0x7006611A", "Bockland (Segeln)")
marinerLocations:AddSkill("Segelt nach Pelargir", "0x7006611B", "Pelargir (Segeln)")
marinerLocations:AddSkill("Segelt nach Sûri-kylä", "0x7006611C", "Sûri-kylä (Segeln)")
marinerLocations:AddSkill("Segelt nach Lothlórien", "0x7006611E", "Lothlórien (Segeln)")
marinerLocations:AddSkill("Segelt zur Sarnfurt", "0x70066120", "Sarnfurt (Segeln)")
marinerLocations:AddSkill("Segelt nach Schneegrenze", "0x70066121", "Schneegrenze (Segeln)")

racialLocations:AddSkill("Rückkehr nach Bree", "0x700062F6", "Bree (Rasse)");
racialLocations:AddSkill("Rückkehr ins Auenland", "0x700062C8", "Michelbinge (Rasse)");
racialLocations:AddSkill("Rückkehr zu Thorins Tor", "0x70006346", "Thorins Tor (Rasse Zwerg)");
racialLocations:AddSkill("Rückkehr nach Bruchtal", "0x7000631F", "Bruchtal (Rasse)");
racialLocations:AddSkill("Zum 1. Heim zurückkehren", "0x70041A22", "Grimbeorns Hütte (Rasse)");
racialLocations:AddSkill("Reise nach Caras Galadhon in Lothlórien", "0x70048C8C", "Caras Galadhon (Rasse)");
racialLocations:AddSkill("Reise zu Thorins Halle", "0x70053C0F", "Thorins Halle (Rasse Starkaxt)");
racialLocations:AddSkill("Kehrt zu Lyndelby zurück", "0x70066D31", "Lyndelby (Rasse)")

genLocations:AddSkill("Zum 1. Heim zurückkehren", "0x700256BA", "1. Markstein");
genLocations:AddSkill("Zum 2. Heim zurückkehren", "0x70025792", "2. Markstein");
Expand Down Expand Up @@ -317,4 +335,19 @@ function TravelDictionaries:CreateDictionaries()
creepLocations:AddSkill("Gute Karte zur Feste Lugazag", "0x70028BB5");
creepLocations:AddSkill("Gute Karte zur Feste Tirith Rhaw", "0x70028BB0");
creepLocations:AddSkill("Gute Karte zum Grimmwald", "0x70028BBD");

marinerLocations:AddSkill("Segelt nach Celondim", "0x70066100", "Celondim (Segenl)")
marinerLocations:AddSkill("Segelt in die Braunen Lande", "0x70066101", "die Braunen Lande (Segeln)")
marinerLocations:AddSkill("Segelt zum Händlerkai", "0x70066105", "Händlerkai (Segel)")
marinerLocations:AddSkill("Segelt ins schlachtgezeichnete Osgiliath", "0x70066109", "schlachtgezeichnete Osgiliath (Segeln)")
marinerLocations:AddSkill("Segelt nach Seestadt", "0x7006610c", "Seestadt (Segeln)")
marinerLocations:AddSkill("Segelt zur Dunkelsenke", "0x7006610e", "Dunkelsenke (Segeln)")
marinerLocations:AddSkill("Segelt nach Tinnudir", "0x7006610f", "Tinnundir (Segeln)")
marinerLocations:AddSkill("Segelt nach Dol Amroth", "0x70066117", "Dol Amroth (Segeln)")
marinerLocations:AddSkill("Segelt nach Bockland", "0x7006611a", "Bockland (Segeln)")
marinerLocations:AddSkill("Segelt nach Pelargir", "0x7006611b", "Pelargir (Segeln)")
marinerLocations:AddSkill("Segelt nach Sûri-kylä", "0x7006611c", "Sûri-kylä (Segeln)")
marinerLocations:AddSkill("Segelt nach Lothlórien", "0x7006611e", "Lothlórien (Segeln)")
marinerLocations:AddSkill("Segelt zur Sarnfurt", "0x70066120", "Sarnfurt (Segeln)")
marinerLocations:AddSkill("Segelt nach Schneegrenze", "0x70066121", "Schneegrenze (Segeln)")
end
42 changes: 35 additions & 7 deletions src/IndexedDictionaryEn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ function TravelDictionaries:Constructor()
racialLocations = IndexedDictionary();
repLocations = IndexedDictionary();
creepLocations = IndexedDictionary();
marinerLocations = IndexedDictionary();

-- a table to store the number of each type of travel skill
travelCount = { 0, 0, 0, 0, 0, 0 };
travelCount = { 0, 0, 0, 0, 0, 0, 0 };
LocationsTotal = 0;

self:CreateDictionaries();
Expand All @@ -91,20 +92,29 @@ function TravelDictionaries:GetCounts()
travelCount[4] = repLocations:GetCount();
travelCount[5] = racialLocations:GetCount();
travelCount[6] = creepLocations:GetCount();
travelCount[7] = marinerLocations:GetCount();

LocationsTotal = travelCount[1] + travelCount[2] + travelCount[3] + travelCount[4] + travelCount[5] + travelCount[6] + travelCount[7];
end

-- function to return the count of a specific type of travel
function TravelDictionaries:GetCount(index)
return travelCount[index];
end

-- function to get the total number of travel skills
function TravelDictionaries:GetTotalCount()
return LocationsTotal;
end

-- function to return the 5 tables containing the travel skills
function TravelDictionaries:GetLocations()
return genLocations, hunterLocations, wardenLocations, racialLocations, repLocations;
return genLocations, hunterLocations, wardenLocations, racialLocations, repLocations, creepLocations, marinerLocations;
end

-- add the data to custom dictionaries to maintain the order
function TravelDictionaries:CreateDictionaries()
-- add the hunter locations
hunterLocations:AddSkill("Return to Camp", "0x7000A2C1", "Return to Camp");
hunterLocations:AddSkill("Guide to Bree", "0x70003F42", "Bree (Guide)");
hunterLocations:AddSkill("Guide to Thorin's Hall", "0x70003F41", "Thorin's Hall (Guide)");
Expand Down Expand Up @@ -161,6 +171,7 @@ function TravelDictionaries:CreateDictionaries()
hunterLocations:AddSkill("Guide to Clegur", "0x70064F4C", "Clegur (Guide)");
hunterLocations:AddSkill("Guide to Pelargir", "0x700658EA", "Pelargir (Guide)");

-- add the Warden locations
wardenLocations:AddSkill("Muster in Ost Guruth", "0x70014786", "Ost Guruth (Muster)");
wardenLocations:AddSkill("Muster in Esteldín", "0x70014798", "Esteldín (Muster)");
wardenLocations:AddSkill("Muster in Evendim", "0x7001478E", "Evendim (Muster)");
Expand Down Expand Up @@ -210,14 +221,31 @@ function TravelDictionaries:CreateDictionaries()
wardenLocations:AddSkill("Muster at Clegur", "0x70064F4D", "Clegur (Muster)");
wardenLocations:AddSkill("Muster at Pelargir", "0x700658E8", "Pelargir (Muster)");

-- add the Mariner locations
marinerLocations:AddSkill("Sail to Celondim", "0x70066100", "Celondim (Sail)")
marinerLocations:AddSkill("Sail to the Brown Lands", "0x70066101", "Brown Lands (Sail)")
marinerLocations:AddSkill("Sail to Trader's Wharf", "0x70066105", "Trader's Wharf (Sail)")
marinerLocations:AddSkill("Sail to after-battle Osgiliath", "0x70066109", "After-battle Osgiliath (Sail)")
marinerLocations:AddSkill("Sail to Lake-town", "0x7006610C", "Lake-town (Sail)")
marinerLocations:AddSkill("Sail to the Mirk-eaves", "0x7006610E", "Mirk-eaves (Sail)")
marinerLocations:AddSkill("Sail to Tinnudir", "0x7006610F", "Tinnudir (Sail)")
marinerLocations:AddSkill("Sail to Dol Amroth", "0x70066117", "Dol Amroth (Sail)")
marinerLocations:AddSkill("Sail to Buckland", "0x7006611A", "Buckland (Sail)")
marinerLocations:AddSkill("Sail to Pelargir", "0x7006611B", "Pelargir (Sail)")
marinerLocations:AddSkill("Sail to Sûri-kylä", "0x7006611C", "Sûri-kylä (Sail)")
marinerLocations:AddSkill("Sail to Lothlórien", "0x7006611E", "Lothlórien (Sail)")
marinerLocations:AddSkill("Sail to Tharbad", "0x70066120", "Tharbad (Sail)")
marinerLocations:AddSkill("Sail to Snowbourn", "0x70066121", "Snowbourn (Sail)")

-- add the racial travel skills
racialLocations:AddSkill("Return to Bree", "0x700062F6", "Bree (Racial)");
racialLocations:AddSkill("Return to the Shire", "0x700062C8", "Shire (Racial)");
racialLocations:AddSkill("Return to Bree", "0x700062F6", "Bree (Racial)"); -- human
racialLocations:AddSkill("Return to the Shire", "0x700062C8", "Shire (Racial)"); -- hobbit
racialLocations:AddSkill("Return to Thorin's Gate", "0x70006346", "Thorin's Gate (Racial)"); -- dwarf
racialLocations:AddSkill("Return to Rivendell", "0x7000631F", "Rivendell (Racial)");
racialLocations:AddSkill("Return Home", "0x70041A22", "Beorning Home (Racial)");
racialLocations:AddSkill("Travel to Caras Galadhon in Lothlórien", "0x70048C8C", "Caras Galadhon (Racial)");
racialLocations:AddSkill("Return to Rivendell", "0x7000631F", "Rivendell (Racial)"); --elf
racialLocations:AddSkill("Return Home", "0x70041A22", "Beorning Home (Racial)"); -- beorning
racialLocations:AddSkill("Travel to Caras Galadhon in Lothlórien", "0x70048C8C", "Caras Galadhon (Racial)"); -- high-elf
racialLocations:AddSkill("Travel to Thorin's Hall", "0x70053C0F", "Thorin's Hall (Racial)"); -- stoutaxe
racialLocations:AddSkill("Return to Lyndelby", "0x70066D31", "Lyndelby (Racial)") -- river hobbit

-- add the Return Home and housing skills
genLocations:AddSkill("Return Home", "0x700256BA", "Return Home");
Expand Down
Loading

0 comments on commit 21e713d

Please sign in to comment.