To install an add-on please go to the title screen of Battle for Wesnoth. Select "Add-ons" from the menu and click "OK" to connect to add-ons.wesnoth.org. Select the add-on you want to install from the list and click "OK". The download will commence immediately. Wesnoth will then automatically install and load the add-on so you can use it. Remember that not all add-ons are campaigns!
Note: Hover over the type field to see an explanation of the type and over an icon to see the description of the add-on.
""") if url: w("""PS: If you really have to download an add-on from here uncompress it to the userdata/data/add-ons/ directory for wesnoth to find it. """) am_dir = os.path.dirname(__file__) + "/" for name in ["style.css", "jquery.js", "tablesorter.js", "asc.gif", "bg.gif", "desc.gif"]: Popen(["cp", "-u", am_dir + name, path]) campaigns = data.get_all(tag = "campaigns")[0] w("
%s | " % header) w("||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Scenario single player scenario After install the scenario will show up in the list you get when choosing "Campaign" in the main menu. (Basically it's just a campaign with only one scenario.) | """)
elif type == "campaign":
w("""\
Campaign single player campaign After install the campaign will show up in the list you get when choosing "Campaign" in the main menu. | """)
elif type == "campaign_sp_mp":
w("""\
SP/SP Campaign single/multi player campaign After install the campaign will show up both in the list you get when choosing "Campaign" in the main menu, and in the map list in the multiplayer "Create Game" dialog. | """)
elif type == "campaign_mp":
w("""\
MP Campaign multiplayer campaign After install the first scenario of the campaign will be available in the map list in the multiplayer "Create Game" dialog. | """)
elif type == "scenario_mp":
w("""\
MP Scenario multiplayer scenario After install the scenario will be available in the map list in the multiplayer "Create Game" dialog. | """)
elif type == "map_pack":
w("""\
MP map-pack multiplayer map pack After install the maps/scenarios will be available in the map list in the multiplayer "Create Game" dialog. | """)
elif type == "era":
w("""\
MP era multiplayer era After install the included era(s) will be available in the multiplayer "Create Game" dialog. | """)
elif type == "faction":
w("""\
MP faction multiplayer faction Usually comes with an era or is dependency of another add-on. | """)
elif type == "mod_mp":
w("""\
MP modification multiplayer modification After install the included MP gameplay modification(s) will be available in the multiplayer "Create Game" dialog. | """)
elif type == "media":
w("""\
Resources miscellaneous content/media Unit packs, terrain packs, music packs, etc. Usually a (perhaps optional) dependency of another add-on. | """)
else: w(('%s | ') % type) w(('%s %s | ' % (
name, described))
w("%s " % name) w("Version: %s " % v("version", "unknown")) w("Author: %s | " % v("author", "unknown"))
MiB = 1024 * 1024
w("%d%.2fMiB" % (size, size / MiB))
if url:
link = url.rstrip("/") + "/" + v("name") + ".tar.bz2"
w(" download | " % link)
else:
w("")
downloads = int(v("downloads", "0"))
w("%d down " % (downloads)) w("%s up | " % v("uploads", "unknown"))
timestamp = int(v("timestamp", "0"))
t = time.localtime(timestamp)
w("%d%s | " % (timestamp, time.strftime("%b %d %Y", t))) w("%s | " % (", ".join(languages))) w("