Commit 67bd5e33 authored by Maiyannah Bishop's avatar Maiyannah Bishop

Fix up the setup script, add config to the install list

Implement Aetolia-specific install
parent 97214842
......@@ -69,7 +69,7 @@ function findValkryior()
end
-- ----------------------------------------------------------------------------
-- Function: setupValkyrior())
-- Function: setupValkyrior()
-- Install the core system packages
function setupValkryior()
valkryiorMessage("Welcome to the system! To get started, please select the <green>scripts_valkyrior.xml<reset> file after pressing <green>Enter<reset>.\n")
......@@ -87,7 +87,8 @@ function setupValkryior()
for _, file in ipairs{
"alias_combat.xml", "keybind_f5.xml",
"scripts_character.xml", "scripts_combat.xml", "scripts_room.xml", "scripts_UI.xml", "scripts_valkyrior.xml",} do
"scripts_character.xml", "scripts_combat.xml", "scripts_room.xml", "scripts_UI.xml", "scripts_valkyrior.xml",
"config.xml",} do
installModule(gitRepoLocation..file)
end
......@@ -101,9 +102,9 @@ end
-- Install the Imperian-specific modules into this profile.
function setupImperian()
valkryiorMessage("Setting up Valkyrior for play on Imperian: The Sundered Heavens\n")
if (ValkyriorLocation==nil) then
valkryiorMessage("Root Valkyrior folder not set, please specify the location of scripts_valkyrior.\n")
local location = findValkryior()
if (ValkyriorLocation==nil) then
valkryiorMessage("Root Valkyrior folder not set, please specify the location of scripts_valkyrior.\n")
local location = findValkryior()
ValkyriorLocation = location:gsub("scripts_valkyrior%.xml", '')
end
......@@ -112,6 +113,27 @@ function setupImperian()
installModule(ValkyriorLocation..file)
end
valkryiorMessage("And done. Open the Module Manager now and tick <green>sync<reset> besides all the modules.\n")
tempTimer(10, function() valkryiorMessage("Enabling sync for the mud-specific modules is the last step! \n"..
"Now whenever you make a change to the system, hit Save and Save Profile (Ctrl+S and Ctrl+Shift+S) and you can use your Git client to submit a pull request :)") end)
tempTimer(10, UI.Initialize())
end
-- ----------------------------------------------------------------------------
-- Function: setupAetolia()
-- Install the Aetolia-specific modules into this profile.
function setupAetolia()
valkryiorMessage("Setting up Valkyrior for play on Aetolia: the Midnight Age\n")
if (ValkyriorLocation==nil) then
valkryiorMessage("Root Valkyrior folder not set, please specify the location of scripts_valkyrior.\n")
local location = findValkryior()
ValkyriorLocation = location:gsub("scripts_valkyrior%.xml", '')
end
valkryiorMessage("Loading Aetolia-specific modules...")
for _, file in ipairs{"scripts_aetolia.xml", "triggers_aetolia.xml"} do
installModule(ValkyriorLocation..file)
end
valkryiorMessage("And done. Open the Module Manager now and tick <green>sync<reset> besides all the modules.\n")
tempTimer(10, function() valkryiorMessage("Enabling sync for the mud-specific modules is the last step! \n"..
"Now whenever you make a change to the system, hit Save and Save Profile (Ctrl+S and Ctrl+Shift+S) and you can use your Git client to submit a pull request :)") end)
tempTimer(10, UI.Initialize())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment