Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tribes filtering #3693

Merged
merged 215 commits into from Aug 18, 2020
Merged
Show file tree
Hide file tree
Changes from 210 commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
b6d8eff
Added names.lua files so that we can register tribe map objects befor…
gunchleoc Oct 29, 2018
6d24c95
Dynamically load trie objects in TribeDescr. Shift MapObjectType to s…
gunchleoc Oct 29, 2018
baa30b6
Remove dependency on ware index order in ProductionProgram::parse_war…
gunchleoc Oct 30, 2018
2763d25
Resize workers display as well as wares.
gunchleoc Oct 30, 2018
557ec55
Localize shipnames with pgettext
gunchleoc Oct 30, 2018
1803b3a
Move postload functions into TribeDescr constructor
gunchleoc Oct 30, 2018
53eed64
Pull out helper functions from TribeDescr constructor
gunchleoc Oct 30, 2018
0347c25
Change format of names.lua for loading via C++.
gunchleoc Oct 31, 2018
33d54b4
Documentation
gunchleoc Oct 31, 2018
90e2de4
Dynamically load TribeDescr when player is created. More compact data…
gunchleoc Oct 31, 2018
05eef3c
Renamed names.lua to register.lua.
gunchleoc Nov 1, 2018
c2f64de
Cleaned up some includes
gunchleoc Nov 2, 2018
e613825
When placing a building on the map, ensure that the player's tribe ha…
gunchleoc Nov 2, 2018
f87b5e4
Save tribes subdirectories in scenarios.
gunchleoc Nov 2, 2018
311492f
Converted scenario tribes to new format
gunchleoc Nov 2, 2018
1568f64
Updated documentation
gunchleoc Nov 2, 2018
9bc45f0
Added util to rename files in bulk
gunchleoc Nov 2, 2018
10fbaf8
Fix bug in ZipFilesystem::list_directory where trailing slashes preve…
gunchleoc Nov 2, 2018
e80f970
Support for custom scenario buildings.
gunchleoc Nov 2, 2018
59aeb1b
Merge branch 'master' into tribes-filtering
gunchleoc Feb 7, 2020
b992ff1
Clean up tribes.
gunchleoc Feb 8, 2020
7117c55
Revert formatting changes to eris
gunchleoc Feb 8, 2020
5e109f0
Loader UI is now owned by EditorGameBase.
gunchleoc Feb 8, 2020
6f8e86b
Fix tribe immovables.
gunchleoc Feb 8, 2020
fd1e9d0
Fix ware/worker loading
gunchleoc Feb 8, 2020
ddbdf61
Register ferries and ferry yards
gunchleoc Feb 8, 2020
d4245d0
Fix loading building enhancements.
gunchleoc Feb 8, 2020
c93647b
Fix loading of road textures
gunchleoc Feb 8, 2020
11aad99
Add new Frisian objects
gunchleoc Feb 8, 2020
5261c46
Change bulk rename from bzr to git
gunchleoc Feb 8, 2020
7b43008
Remove unused add_custom_worker function. Zip file problem seems to b…
gunchleoc Feb 9, 2020
5b6a6c3
Fix issues with loader UI in the editor.
gunchleoc Feb 9, 2020
e56a938
Clenup NOCOM comments
gunchleoc Feb 9, 2020
332d74f
Start scripting test map for all tribes
gunchleoc Feb 9, 2020
b6656c6
Merge branch 'master' into tribes-filtering
gunchleoc Feb 12, 2020
ea6e6ce
Fix saveloading.
gunchleoc Feb 12, 2020
94317cd
Complete building placement for Barbarians.
gunchleoc Feb 12, 2020
b53dfe3
Add player 2
gunchleoc Feb 13, 2020
bea1a26
Give all militarysites a soldier.
gunchleoc Feb 13, 2020
199c3b1
Add player 2 and some debugging
gunchleoc Feb 13, 2020
e66e4bb
We now have 8 players and infrastructure for player 4
gunchleoc Feb 13, 2020
70e3750
Finish preparing map for 8 players
gunchleoc Feb 13, 2020
af80081
Add map resources and remaining tribes.
gunchleoc Feb 13, 2020
1c8fd34
Add ships + stable save
gunchleoc Feb 13, 2020
69b14e7
Add missing variable.
gunchleoc Feb 13, 2020
41790bb
Allow placing any militarysite
gunchleoc Feb 13, 2020
33bdba0
Merge branch 'master' into tribes-filtering
gunchleoc Feb 13, 2020
c200d46
Test website binaries on Travis.
gunchleoc Feb 13, 2020
bb7c225
ProgressWindow and GameTips are now managed by EditorGameGase. This a…
gunchleoc Feb 13, 2020
c0f91f5
The loader UI gets destroyed with egbase, so we don't need to do this…
gunchleoc Feb 13, 2020
2728353
Clean up includes
gunchleoc Feb 13, 2020
fb46794
9 files were automatically formatted.
actions-user Feb 13, 2020
71bce83
Fix Travis configuration
gunchleoc Feb 13, 2020
68a783a
Remove blank line
gunchleoc Feb 13, 2020
b86e1fc
Merge branch 'master' into refactor-loader-ui
gunchleoc Feb 13, 2020
1424adb
Merge branch 'master' into tribes-filtering
gunchleoc Feb 13, 2020
4eff993
Fix binary paths for Travis
gunchleoc Feb 14, 2020
722040d
Merge remote-tracking branch 'origin/refactor-loader-ui' into tribes-…
gunchleoc Feb 14, 2020
2eca619
If a scenario has no special background image, show game tips.
gunchleoc Feb 14, 2020
c98e209
'src/logic/game.cc' was automatically formatted.
actions-user Feb 14, 2020
c9bfa4b
Add asserts back in and make loader_ui_ private.
gunchleoc Feb 14, 2020
304d9f7
Remove the loader UI as early as possible. Show it during manual saves.
gunchleoc Feb 14, 2020
e8a190e
Fix Travis
gunchleoc Feb 14, 2020
21b215d
Merge branch 'refactor-loader-ui' of https://github.com/widelands/wid…
gunchleoc Feb 14, 2020
a6da313
10 files were automatically formatted.
actions-user Feb 14, 2020
0511b5e
Remove redundant asserts
gunchleoc Feb 14, 2020
fbd69af
Merge branch 'refactor-loader-ui' of https://github.com/widelands/wid…
gunchleoc Feb 14, 2020
22595cd
'src/logic/game.cc' was automatically formatted.
actions-user Feb 14, 2020
15ab2b1
Destroy the game tips along with the loader UI.
gunchleoc Feb 14, 2020
9498532
Load tribe in scenario code after game has started when necessary.
gunchleoc Feb 14, 2020
1013bec
Same for lua_bases
gunchleoc Feb 14, 2020
de9c2c3
Fix allowed building types
gunchleoc Feb 14, 2020
0543c64
Make LuaFlag::set_wares independent of wares order
gunchleoc Feb 14, 2020
3195097
Fix travis paths
gunchleoc Feb 14, 2020
1e0ca57
Fix scenario building for market test
gunchleoc Feb 14, 2020
6424378
Fix tribe persistence and clean up code
gunchleoc Feb 14, 2020
cd0978e
Fix removing loader UI in editor.
gunchleoc Feb 14, 2020
f5e0242
Fix typo in game tips for rotating to the next game tip
gunchleoc Feb 14, 2020
774d1fa
Change loader background as soon as possible
gunchleoc Feb 14, 2020
7867215
2 files were automatically formatted.
actions-user Feb 14, 2020
d47517a
Search for web binaries
gunchleoc Feb 14, 2020
7a237fb
Fix path to website binaries
gunchleoc Feb 14, 2020
91aef97
Add support for custom workers
gunchleoc Feb 14, 2020
92b548e
Add support for custom wares
gunchleoc Feb 14, 2020
25c8acd
Update documentation.
gunchleoc Feb 14, 2020
f8fae7a
Adapt test scenario so that the test suite will pick it up
gunchleoc Feb 14, 2020
25937ce
Add Saving game... string for autosaves.
gunchleoc Feb 15, 2020
3eb254c
Remove NOCOM comments.
gunchleoc Feb 15, 2020
1dc0a83
Dynamically add wares and workers for buildcost, outputs etc. Add tes…
gunchleoc Feb 15, 2020
7f935b5
Add test for placing foreign buildings when foreign tribe has been lo…
gunchleoc Feb 15, 2020
eec03d5
Add test for tribe unit replacment
gunchleoc Feb 15, 2020
64db6a7
Merge branch 'master' into tribes-filtering
gunchleoc Feb 15, 2020
1712fbb
Improved error message on duplicate object names
gunchleoc Feb 15, 2020
03bbcab
Use notifications to load dynamically, and load from within immovable…
gunchleoc Feb 16, 2020
b9872dc
Merge branch 'master' into tribes-filtering
gunchleoc Feb 16, 2020
382b08a
Support dynamic loading of attributes
gunchleoc Feb 16, 2020
4efa13b
Update Lua files to new format.
gunchleoc Feb 16, 2020
181a141
Pull out new class DescriptionManager
gunchleoc Feb 16, 2020
d10a854
Fix saveloading
gunchleoc Feb 16, 2020
b495e88
Merge branch 'master' into refactor-loader-ui
gunchleoc Feb 16, 2020
72a7ee1
Merge branch 'refactor-loader-ui' into tribes-filtering
gunchleoc Feb 16, 2020
f5a3ac8
Cleanup and add lost code.
gunchleoc Feb 16, 2020
1551e50
Fix formatting on some files
gunchleoc Feb 16, 2020
d5debca
Test triggering formatting.
gunchleoc Feb 16, 2020
2453b66
Test triggering formatting.
gunchleoc Feb 16, 2020
f53e6f4
22 files were automatically formatted.
actions-user Feb 16, 2020
e2d28d9
Fix compiler warning
gunchleoc Feb 17, 2020
2cae12b
Some renamings.
gunchleoc Feb 17, 2020
58da05e
Make creating spritesheets faster.
gunchleoc Feb 17, 2020
dbeb363
8 files were automatically formatted.
actions-user Feb 17, 2020
3814f09
Fix naming conflict in documentation
gunchleoc Feb 17, 2020
fe7869a
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Feb 17, 2020
213c88b
Fix noisy warnings.
gunchleoc Feb 17, 2020
60175b2
'src/logic/map_objects/description_manager.cc' was automatically form…
actions-user Feb 17, 2020
92fbc42
Fix statistics saveloading and tweak a log message
gunchleoc Feb 17, 2020
745d291
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Feb 17, 2020
87e3ea3
Work around conquering problems in editor
gunchleoc Feb 17, 2020
e631d1f
Merge branch 'master' into tribes-filtering
gunchleoc Feb 18, 2020
87874d2
'src/logic/game.cc' was automatically formatted.
actions-user Feb 18, 2020
867f966
Simplify help texts in test scenario
gunchleoc Feb 18, 2020
119b1c7
Add lost workareainfo code
gunchleoc Feb 18, 2020
47ea10f
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Feb 18, 2020
5a09968
3 files were automatically formatted.
actions-user Feb 18, 2020
8da9ee1
Merge branch 'master' into tribes-filtering
gunchleoc Feb 19, 2020
f3e90ec
Merge branch 'master' into tribes-filtering
gunchleoc Feb 19, 2020
7b7ea83
Reinstate tribes loading messages via Notification and clean up sendi…
gunchleoc Feb 20, 2020
9b4b378
14 files were automatically formatted.
actions-user Feb 20, 2020
9379cd7
Merge branch 'master' into tribes-filtering
gunchleoc Feb 22, 2020
179dc15
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Feb 22, 2020
54ffafc
'data/txts/translators_data.lua' was automatically formatted.
actions-user Feb 22, 2020
1cad81c
Merge branch 'master' into tribes-filtering
gunchleoc Feb 24, 2020
16787b6
Merge branch 'master' into tribes-filtering
gunchleoc Feb 27, 2020
9e86b14
Remove unused lambda captures.
gunchleoc Feb 29, 2020
0ba9169
4 files were automatically formatted.
actions-user Feb 29, 2020
5da1255
Merge branch 'master' into tribes-filtering
gunchleoc Feb 29, 2020
749fca0
Merge branch 'master' into tribes-filtering
stonerl Mar 3, 2020
1111c32
Add missing boost::format includes
gunchleoc Mar 4, 2020
c4ad9c2
Merge branch 'master' into tribes-filtering
gunchleoc Mar 4, 2020
21e7c35
Merge branch 'master' into tribes-filtering
gunchleoc Mar 7, 2020
57e0b3f
Merge branch 'master' into tribes-filtering
gunchleoc Mar 9, 2020
ce7f3c6
Merge branch 'master' into tribes-filtering
gunchleoc Mar 13, 2020
f2807bd
Merge branch 'master' into tribes-filtering
gunchleoc Mar 26, 2020
3dc4a38
Fix calls to stable_save and let tribes tests sleep longer
gunchleoc Mar 26, 2020
5e051f8
'src/logic/map_objects/tribes/tribe_descr.cc' was automatically forma…
actions-user Mar 26, 2020
f1b82a0
Merge branch 'master' into tribes-filtering
gunchleoc Mar 27, 2020
98a4486
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Mar 27, 2020
aeac2f1
Merge branch 'master' into tribes-filtering
gunchleoc Mar 29, 2020
e9634a7
2 files were automatically formatted.
actions-user Mar 29, 2020
7874396
Add some checks to immovableprogram and change error handling for eco…
gunchleoc Mar 29, 2020
31eb57e
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Mar 29, 2020
eaaddf9
2 files were automatically formatted.
actions-user Mar 29, 2020
7b02065
Delete unused functions
gunchleoc Mar 29, 2020
85bdf74
Merge branch 'master' into tribes-filtering
gunchleoc Mar 29, 2020
8fbef8e
Merge branch 'master' into tribes-filtering
gunchleoc Jul 1, 2020
5291871
Performance: Let try_load_ware_or_worker return whether we have a war…
gunchleoc Jul 1, 2020
2232645
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Jul 1, 2020
189e6a4
5 files were automatically formatted.
actions-user Jul 1, 2020
34e09e8
Merge branch 'master' into tribes-filtering
gunchleoc Jul 6, 2020
3f80912
Merge branch 'master' into tribes-filtering
gunchleoc Jul 11, 2020
50cf3f3
Add test for placing carrier2
gunchleoc Jul 11, 2020
512666c
3 files were automatically formatted.
actions-user Jul 11, 2020
7551210
Fix error handling in building buildcost. We can't catch duplicate Lu…
gunchleoc Jul 11, 2020
2f0c5a3
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Jul 11, 2020
b632570
Update copyright
gunchleoc Jul 11, 2020
c12ec72
'src/logic/map_objects/buildcost.cc' was automatically formatted.
actions-user Jul 11, 2020
82329a7
Improve exception text
gunchleoc Jul 11, 2020
e5e40ab
Fix typo + remove obsolete comment
gunchleoc Jul 11, 2020
b76b0c2
Delete duplicate comment
gunchleoc Jul 11, 2020
3a08dfa
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Jul 11, 2020
3a84ea9
Tweak loading message
gunchleoc Jul 20, 2020
1f96b06
Merge branch 'master' into tribes-filtering
gunchleoc Jul 20, 2020
ece9f68
'src/logic/map_objects/tribes/production_program.h' was automatically…
actions-user Jul 20, 2020
6bf38a2
Merge branch 'master' into tribes-filtering
gunchleoc Jul 21, 2020
6d4f4af
Merge branch 'master' into tribes-filtering
gunchleoc Jul 27, 2020
8cd4916
Merge branch 'master' into tribes-filtering
gunchleoc Aug 2, 2020
71b2769
Fix comments, more logical order of MapObjectTypes, add an exception
gunchleoc Aug 3, 2020
204b007
Merge branch 'master' into tribes-filtering
gunchleoc Aug 3, 2020
dce65a3
Remove superfluous Lua annotations from test custom unit
gunchleoc Aug 3, 2020
752e864
2 files were automatically formatted.
actions-user Aug 3, 2020
4dd57ea
Draft waterway + busy road test. There are 2 bugs in the connected_ro…
gunchleoc Aug 3, 2020
e80fe55
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Aug 3, 2020
c748054
Add missing get_ferry implementation
gunchleoc Aug 3, 2020
9583ac0
Fix placing carrier2 on roads via Lua. Spotted new bug with road text…
gunchleoc Aug 3, 2020
9598707
2 files were automatically formatted.
actions-user Aug 3, 2020
bff58fb
Fix road textures
gunchleoc Aug 3, 2020
b544473
Merge branch 'master' into tribes-filtering
gunchleoc Aug 3, 2020
f5156e0
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Aug 3, 2020
20ee405
Remove obsolete comment.
gunchleoc Aug 3, 2020
32951e3
Merge branch 'master' into tribes-filtering
gunchleoc Aug 5, 2020
219dc8c
Fix lua_testsuite
gunchleoc Aug 5, 2020
052f23f
4 files were automatically formatted.
actions-user Aug 5, 2020
4384e18
Merge branch 'master' into tribes-filtering
gunchleoc Aug 5, 2020
02a6d81
Fix variable shadowing
gunchleoc Aug 5, 2020
d40a3fd
Merge branch 'master' into tribes-filtering
gunchleoc Aug 5, 2020
49fa6f7
Merge branch 'tribes-filtering' of https://github.com/gunchleoc/widel…
gunchleoc Aug 5, 2020
47667db
Merge branch 'master' into tribes-filtering
gunchleoc Aug 6, 2020
d24f63e
'utils/check_clang_tidy_results.py' was automatically formatted.
actions-user Aug 6, 2020
7f276e2
Merge branch 'master' into tribes-filtering
gunchleoc Aug 6, 2020
86acaa4
Fix merge stuff
gunchleoc Aug 6, 2020
b06f158
'utils/check_clang_tidy_results.py' was automatically formatted.
actions-user Aug 6, 2020
4b8ea92
Even more *** variable shadowing
gunchleoc Aug 6, 2020
5bc2376
Merge branch 'master' into tribes-filtering
gunchleoc Aug 6, 2020
a4b8190
Merge branch 'master' into tribes-filtering
gunchleoc Aug 7, 2020
da2a5c4
'src/logic/map_objects/buildcost.cc' was automatically formatted.
actions-user Aug 7, 2020
3540364
Even more shadowing
gunchleoc Aug 7, 2020
40c0346
Merge branch 'master' into tribes-filtering
gunchleoc Aug 7, 2020
2675d0e
Modernize animations
gunchleoc Aug 8, 2020
939a432
Merge branch 'master' into tribes-filtering
gunchleoc Aug 8, 2020
066b864
Modernize custom units
gunchleoc Aug 9, 2020
05c3ac5
Merge branch 'master' into tribes-filtering
gunchleoc Aug 9, 2020
be4f917
Merge branch 'master' into tribes-filtering
gunchleoc Aug 12, 2020
f0fedde
Fix clang-tidy warning
gunchleoc Aug 12, 2020
1a4883b
Merge branch 'master' into tribes-filtering
gunchleoc Aug 14, 2020
815752c
Merge branch 'master' into tribes-filtering
gunchleoc Aug 17, 2020
01874f3
Remove outdated NOCOM comment
gunchleoc Aug 18, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
@@ -0,0 +1,3 @@
return {
empire_brewery1 = {},
}
@@ -0,0 +1,3 @@
return {
empire_brewery2 = {},
}
3 changes: 3 additions & 0 deletions data/campaigns/emp04.wmf/scripting/tribes/farm1/register.lua
@@ -0,0 +1,3 @@
return {
empire_farm1 = {},
}
3 changes: 3 additions & 0 deletions data/campaigns/emp04.wmf/scripting/tribes/farm2/register.lua
@@ -0,0 +1,3 @@
return {
empire_farm2 = {},
}
@@ -0,0 +1,3 @@
return {
empire_foresters_house1 = {},
}
153 changes: 74 additions & 79 deletions data/campaigns/emp04.wmf/scripting/tribes/init.lua
@@ -1,81 +1,76 @@
tribes = wl.Tribes()
include "scripting/mapobjects.lua"
-- RST
-- .. _scenario_units:
--
-- Scenario-Specific Units
-- -----------------------
--
-- When writing a scenario, you can create custom tribe objects for it.
-- At the moment, we support buildings, wares and workers.
-- If you need support for other types of tribe units, please open a new bug report.
--
-- For creating scenario-specific tribe objects, create a subdirectory
-- ``scripting/tribes`` in your map.
-- In that subdirectory, place a file called ``init.lua``.
-- This file needs to return a table listing all the objects that the tribes do
-- not have by default. For example:
--
-- .. code-block:: lua
--
-- return {
-- empire = {
-- buildings = {
-- "empire_brewery1",
-- "empire_brewery2",
-- "empire_well1",
-- "empire_temple_of_vesta"
-- }
-- workers_order = {
-- {
-- "empire_vesta_priestess"
-- },
-- },
-- wares_order = {
-- {
-- "empire_vesta_wine"
-- },
-- }
-- },
-- frisians = {
-- buildings = {
-- "frisians_warehouse1"
-- }
-- }
-- }
--
-- If you are only replacing already existing objects, you can skip adding the
-- ``init.lua`` file.
--
-- Now place your custom tribe objects into subdirectories below ``scripting/tribes``:
--
-- * In each subdirectory, there needs to be an ``init.lua`` file that adds all
-- objects for that subdirectory.
-- If an object has the same name as an already existing tribe object,
-- it will replace that tribe object.
-- * You will also need to add a ``register.lua`` file that lists the names of all
-- objects that you are adding or replacing.
-- * You can also add ``helptexts.lua`` and ``.png`` files to your subdirectories.
--
-- See :ref:`defining_tribe_units` for further details on these files.

push_textdomain("scenario_emp04.wmf")

-- ===================================
-- Campaign Specific Data
-- ===================================
print_loading_message(_("Loading campaign-specific tribe units"), function()
-- ===================================
-- Empire Mission 4
-- ===================================
include "map:scripting/tribes/brewery2.lua"
include "map:scripting/tribes/brewery1.lua"
include "map:scripting/tribes/farm2.lua"
include "map:scripting/tribes/farm1.lua"
include "map:scripting/tribes/foresters_house1.lua"
include "map:scripting/tribes/lumberjacks_house1.lua"
include "map:scripting/tribes/mill2.lua"
include "map:scripting/tribes/mill1.lua"
include "map:scripting/tribes/trainingcamp1.lua"
include "map:scripting/tribes/well1.lua"
include "map:scripting/tribes/temple_of_vesta.lua"
end)

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_brewery1",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_brewery2",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_farm1",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_farm2",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_foresters_house1",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_lumberjacks_house1",
return {
empire = {
buildings = {
"empire_brewery1",
"empire_brewery2",
"empire_farm1",
"empire_farm2",
"empire_foresters_house1",
"empire_lumberjacks_house1",
"empire_mill1",
"empire_mill2",
"empire_trainingcamp1",
"empire_well1",
"empire_temple_of_vesta"
}
}
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_mill1",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_mill2",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_trainingcamp1",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_well1",
}

tribes:add_custom_building {
tribename = "empire",
buildingname = "empire_temple_of_vesta",
}

pop_textdomain()
@@ -0,0 +1,3 @@
return {
empire_lumberjacks_house1 = {},
}
3 changes: 3 additions & 0 deletions data/campaigns/emp04.wmf/scripting/tribes/mill1/register.lua
@@ -0,0 +1,3 @@
return {
empire_mill1 = {},
}
3 changes: 3 additions & 0 deletions data/campaigns/emp04.wmf/scripting/tribes/mill2/register.lua
@@ -0,0 +1,3 @@
return {
empire_mill2 = {},
}
Expand Up @@ -7,7 +7,7 @@ tribes:new_warehouse_type {
name = "empire_temple_of_vesta",
-- TRANSLATORS: This is a building name used in lists of buildings
descname = pgettext("empire_building", "Temple of Vesta"),
helptext_script = "campaigns/emp04.wmf/scripting/tribes/vesta_helptexts.lua",
helptext_script = path.dirname(__file__) .. "helptexts.lua",
icon = dirname .. "menu.png",
size = "medium",

Expand Down
@@ -0,0 +1,3 @@
return {
empire_temple_of_vesta = {},
}
@@ -0,0 +1,3 @@
return {
empire_trainingcamp1 = {},
}
3 changes: 3 additions & 0 deletions data/campaigns/emp04.wmf/scripting/tribes/well1/register.lua
@@ -0,0 +1,3 @@
return {
empire_well1 = {},
}
18 changes: 9 additions & 9 deletions data/campaigns/fri02.wmf/scripting/tribes/init.lua
@@ -1,11 +1,11 @@
tribes = wl.Tribes()
include "scripting/mapobjects.lua"
-- ===================================
-- Campaign Specific Data
-- ===================================

print_loading_message("Loading campaign-specific tribe units", function()
include "map:scripting/tribes/warehouse_empire.lua"
end)

tribes:add_custom_building {
tribename = "frisians",
buildingname = "frisians_warehouse_empire",
return {
frisians = {
buildings = {
"frisians_warehouse_empire",
}
}
}
@@ -0,0 +1,3 @@
return {
frisians_warehouse_empire = {},
}
2 changes: 2 additions & 0 deletions data/tribes/atlanteans.lua
Expand Up @@ -66,6 +66,8 @@
-- }
--

tribes = wl.Tribes()

image_dirname = path.dirname(__file__) .. "images/atlanteans/"

tribes:new_tribe {
Expand Down
2 changes: 2 additions & 0 deletions data/tribes/barbarians.lua
@@ -1,3 +1,5 @@
tribes = wl.Tribes()

image_dirname = path.dirname(__file__) .. "images/barbarians/"

tribes:new_tribe {
Expand Down
@@ -0,0 +1,3 @@
return {
atlanteans_castle = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_guardhall = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_guardhouse = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_tower = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_tower_high = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_tower_small = {},
}
@@ -0,0 +1,3 @@
return {
barbarians_barrier = {},
}
@@ -0,0 +1,3 @@
return {
barbarians_citadel = {},
}
@@ -0,0 +1,3 @@
return {
barbarians_fortress = {},
}
@@ -0,0 +1,3 @@
return {
barbarians_sentry = {},
}
@@ -0,0 +1,3 @@
return {
barbarians_tower = {},
}
@@ -0,0 +1,3 @@
return {
empire_barrier = {},
}
@@ -0,0 +1,3 @@
return {
empire_blockhouse = {},
}
@@ -0,0 +1,3 @@
return {
empire_castle = {},
}
@@ -0,0 +1,3 @@
return {
empire_fortress = {},
}
@@ -0,0 +1,3 @@
return {
empire_outpost = {},
}
@@ -0,0 +1,3 @@
return {
empire_sentry = {},
}
3 changes: 3 additions & 0 deletions data/tribes/buildings/militarysites/empire/tower/register.lua
@@ -0,0 +1,3 @@
return {
empire_tower = {},
}
@@ -0,0 +1,3 @@
return {
frisians_fortress = {},
}
@@ -0,0 +1,3 @@
return {
frisians_outpost = {},
}
@@ -0,0 +1,3 @@
return {
frisians_sentinel = {},
}
@@ -0,0 +1,3 @@
return {
frisians_tower = {},
}
@@ -0,0 +1,3 @@
return {
frisians_wooden_tower = {},
}
@@ -0,0 +1,3 @@
return {
frisians_wooden_tower_high = {},
}
@@ -0,0 +1,3 @@
return {
constructionsite = {},
}
@@ -0,0 +1,3 @@
return {
dismantlesite = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_armorsmithy = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_bakery = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_barracks = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_blackroot_farm = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_charcoal_kiln = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_coalmine = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_crystalmine = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_farm = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_ferry_yard = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_fishbreeders_house = {},
}
@@ -0,0 +1,3 @@
return {
atlanteans_fishers_house = {},
}