Skip to content

Commit

Permalink
Made mods load in specified order rather than alphabetical.
Browse files Browse the repository at this point in the history
  • Loading branch information
Putnam3145 committed Mar 26, 2014
1 parent ecadad8 commit 8d48f10
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions hack/mods/fortress defense bonus/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local G=_G
local _ENV={}

loadnum=3
name="FD Bonus"
raws_list={"creature_fdbonus.txt","entity_fdbonus.txt"}

Expand Down
3 changes: 2 additions & 1 deletion hack/mods/fortress defense challenge/init.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
local G=_G
local _ENV={}

name="Fortress Defense Challenge"
loadnum=2
name="FD Challenge"
raws_list={"creature_fdchallenge.txt","entity_fdchallenge.txt"}

author="darkflagrance"
Expand Down
1 change: 1 addition & 0 deletions hack/mods/fortress defense/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local G=_G
local _ENV={}

loadnum=1
name="Fortress Defense"
raws_list={"body_fdbody.txt","building_fdreactors.txt","creature_fortdefense.txt","entity_fortdefense.txt",
"inorganic_stone_vaporstonefd.txt","item_armor_fd.txt","reaction_fdmetals.txt"}
Expand Down
2 changes: 1 addition & 1 deletion hack/scripts/gui/mod-manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function manager:init(args)
if v~="." and v~=".." then
local f,modData=pcall(dofile,dfhack.getHackPath().."/mods/".. v .. "/init.lua")
if f then
mods[modData.name]=modData
mods[modData.loadnum]=modData
modData.guard=modData.guard or {">>"..modData.name.." patch","<<End "..modData.name.." patch"}
modData.guard_init={"--"..modData.guard[1],"--"..modData.guard[2]}
modData.path=dfhack.getHackPath()..'/mods/'..v..'/'
Expand Down

0 comments on commit 8d48f10

Please sign in to comment.