Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Local colors

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
8/3/2014 10:30:14 AMUAranklamer before revert after revert
8/2/2014 11:44:26 PMUAranklamer before revert after revert
Before After
1 Necroing thread. 1 Necroing thread.
2 Could someone please fix this: 2 Could someone please fix this:
3 \n 3 \n
4 {{{ 4 {{{
5 if VFS.FileExists("Luaui/Configs/LocalColors.lua") then -- user override 5 if VFS.FileExists("Luaui/Configs/LocalColors.lua") then -- user override
6 colorCFG = VFS.Include("Luaui/Configs/LocalColors.lua") 6 colorCFG = VFS.Include("Luaui/Configs/LocalColors.lua")
7 Spring.Echo("Loaded local team color config.") 7 Spring.Echo("Loaded local team color config.")
8 elseif VFS.FileExists("Luaui/Configs/ZKTeamColors.lua") then 8 elseif VFS.FileExists("Luaui/Configs/ZKTeamColors.lua") then
9 colorCFG = VFS.Include("Luaui/Configs/ZKTeamColors.lua") 9 colorCFG = VFS.Include("Luaui/Configs/ZKTeamColors.lua")
10 else 10 else
11 error("missing file: Luaui/Configs/LocalColors.lua") 11 error("missing file: Luaui/Configs/LocalColors.lua")
12 end 12 end
13 }}} 13 }}}
14 \n 14 \n
15 to something like this: 15 to something like this:
16 \n 16 \n
17 {{{ 17 {{{
18 if VFS.FileExists(LUAUI_DIRNAME .. "Configs/LocalColors.lua") then -- user override 18 if VFS.FileExists(LUAUI_DIRNAME .. "Configs/LocalColors.lua") then -- user override
19 colorCFG = VFS.Include(LUAUI_DIRNAME .. "Configs/LocalColors.lua") 19 colorCFG = VFS.Include(LUAUI_DIRNAME .. "Configs/LocalColors.lua")
20 Spring.Echo("Loaded local team color config.") 20 Spring.Echo("Loaded local team color config.")
21 elseif VFS.FileExists(LUAUI_DIRNAME .. "Configs/ZKTeamColors.lua") then 21 elseif VFS.FileExists(LUAUI_DIRNAME .. "Configs/ZKTeamColors.lua") then
22 colorCFG = VFS.Include(LUAUI_DIRNAME .. "Configs/ZKTeamColors.lua") 22 colorCFG = VFS.Include(LUAUI_DIRNAME .. "Configs/ZKTeamColors.lua")
23 else 23 else
24 error("missing file: " .. LUAUI_DIRNAME .. "Configs/LocalColors.lua") 24 error("missing file: " .. LUAUI_DIRNAME .. "Configs/LocalColors.lua")
25 end 25 end
26 }}} 26 }}}
27 \n 27 \n
28 It appears LUAUI_DIRNAME == LuaUI\, and VFS is case sensetive ( at least under linux) . Its just not funny to have 2 different folders Luaui and LuaUI :( 28 It appears LUAUI_DIRNAME == LuaUI\, and real file system part of VFS ( virtual file system i presume) is case sensetive ( at least under linux) . Its just not funny to have 2 different folders Luaui and LuaUI :(
29 \n 29 \n
30 Bug relevant to v1.2.7.7 (and prior) 30 Bug relevant to v1.2.7.7 (and prior)