Changeset 3218
- Timestamp:
- 01/16/10 19:06:39 (8 months ago)
- Location:
- trunk
- Files:
-
- 5 added
- 6 modified
-
config/iris.filter.lua (added)
-
config/shards/zwischenwelt.xml (modified) (1 diff)
-
config/uoam (added)
-
config/uoam/EMPTY (added)
-
lua/config_declarations.lua (modified) (4 diffs)
-
lua/lib.compass.lua (modified) (2 diffs)
-
lua/lib.macrolist.lua (modified) (1 diff)
-
lua/lib.mainmenu.lua (modified) (2 diffs)
-
lua/main.lua (modified) (4 diffs)
-
tmp (added)
-
tmp/EMPTY (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/shards/zwischenwelt.xml
r3074 r3218 6 6 <string key="gPassword"></string> 7 7 <string key="gLoginServerIP">zwischenwelt.org</string> 8 <string key="gCustomArtFilterFile">iris.filter.lua</string> 8 9 <table key="gMaps" keytype="string"> 9 10 <table key="0" keytype="number"> -
trunk/lua/config_declarations.lua
r3127 r3218 144 144 gShardList = {} 145 145 146 147 146 --~ preset shards now loaded from config/shards/*.xml 148 149 --[[150 gShardList["localhost"] = {151 gLoginname = "admin", -- Loginname152 gPassword = "admin", -- Password153 gLoginServerIP = "localhost",154 gLoginServerPort = 2593,155 gServerSeed = hex2num("0xFFFFFFFF"),156 gPolServer = false157 }158 159 gShardList["vetus-mundus"] = {160 gLoginname = "", -- Loginname161 gPassword = "", -- Password162 gLoginServerIP = "shard.vetus-mundus.de",163 gLoginServerPort = 2594,164 gWalkMinDiagonalBlock = 2,165 gServerSeed = hex2num("0xFFFFFFFF"),166 gPolServer = false167 }168 169 gShardList["Jarrys (chinese)"] = {170 gLoginname = "", -- Loginname171 gPassword = "", -- Password172 gLoginServerIP = "login.uofans.com",173 gLoginServerPort = 2593,174 gServerSeed = 1,175 gPolServer = false176 }177 178 -- demise admins banned iris =( http://www.uodemise.com/forum/showthread.php?p=477997179 --~ gShardList["uodemise.com"] = {180 --~ gLoginname = "", -- Loginname181 --~ gPassword = "", -- Password182 --~ gLoginServerIP = "login.uodemise.com",183 --~ gLoginServerPort = 2593,184 --~ gServerSeed = hex2num("0xFFFFFFFF"),185 --~ gPolServer = false186 --~ }187 188 gShardList["uogamers.com"] = {189 gLoginname = "", -- Loginname190 gPassword = "", -- Password191 gLoginServerIP = "login.uogamers.com",192 gLoginServerPort = 2593,193 gServerSeed = hex2num("0xFFFFFFFF"),194 gPolServer = false,195 --~ gbAutoClickItems = true -- preaos (causes lag)196 }197 198 gShardList["defianceuo.com"] = {199 gLoginname = "", -- Loginname200 gPassword = "", -- Password201 gLoginServerIP = "dfi.defianceuo.com",202 gLoginServerPort = 2593,203 gServerSeed = hex2num("0xFFFFFFFF"),204 gPolServer = false205 }206 ]]--207 208 -- in config.lua you can add shards like this:209 -- gShardList["myshard"] = { ..... }210 211 -- in config.lua you can set login infos like this: (not recommended for security reasons)212 -- gShardList["uogamers.com"].gLoginname = "YOUR_USERNAME"213 -- gShardList["uogamers.com"].gPassword = "YOUR_PASSWORD"214 215 -- for pol servers use this:216 -- gShardList["localhost"].gPolServer=true217 -- gShardList["localhost"].gLoginServerPort=5003218 -- gShardList["localhost"].gGameServerPort=5003219 220 -- you can specify a specialised filter file for your shard221 -- gShardList["localhost"].gCustomArtFilterFilePath = "config\\iris.filter.lua"222 147 223 148 … … 226 151 gConfig:DeclareBoolean("gStartGameWithoutNetwork", "client", "start without network", 'TODO', false) 227 152 gConfig:DeclareBoolean("gStartInDebugMode", "client", "start in debug mode", 'TODO', false) 228 229 gConfig:DeclareString("gCustomArtFilterFilePath", "path", "art filter path", 'TODO', "")230 153 231 154 gServerEmulator=0 … … 495 418 gConfig:DeclareBoolean("gEnableGotoOnClick", "input", "goto on click", 'TODO', false) 496 419 497 gMarkFile = "../data/uoam/mark.uoam" 420 -- UOAM Server support 421 gConfig:DeclareBoolean("gUOAMEnabled", "protocol", "Enabled UOAM", 'TODO', false) 498 422 499 423 gConfig:DeclareBoolean("gTileFreeWalkDiagonalOptimization", "input", "diagonal walk optimize", 'experimental code for faster diagonal movement (tries to avoid stair effect)', true) … … 518 442 519 443 gConfig:DeclareFloat("gMaxFPS", "gfx", "max fps", 'upper fps limit', 50) 520 521 444 522 445 -
trunk/lua/lib.compass.lua
r3214 r3218 60 60 61 61 function MarkCurrentPosition (name) 62 if g MarkFilethen63 local fp = io.open(g MarkFile,"a")62 if gUoamMarkFilePath then 63 local fp = io.open(gUoamMarkFilePath,"a") 64 64 if (fp) then 65 65 local x,y,z = MacroRead_GetPlayerPosition() … … 70 70 end 71 71 gPositionMarkers = {} 72 LoadUOAutomapFiles( "../data/uoam/", gPositionMarkers)73 end 74 75 LoadUOAutomapFiles( "../data/uoam/", gPositionMarkers)72 LoadUOAutomapFiles(gUOAMDir, gPositionMarkers) 73 end 74 75 LoadUOAutomapFiles(gUOAMDir, gPositionMarkers) 76 76 77 77 function SetPositionMarker(mapindex,name,xloc,yloc,r,g,b,a) -
trunk/lua/lib.macrolist.lua
r3214 r3218 1284 1284 local shard = gShardList[shardname] assert(shard) 1285 1285 gShardName = shardname 1286 LoadShardfilter(shard.gCustomArtFilterFile Path) -- todo : revert on error or back-button ?1286 LoadShardfilter(shard.gCustomArtFilterFile) -- todo : revert on error or back-button ? 1287 1287 1288 1288 -- load global config from shard -
trunk/lua/lib.mainmenu.lua
r3191 r3218 89 89 -- ***** ***** ***** ***** ***** Shardfilter 90 90 91 function LoadShardfilter (filterfile path)92 if (filterfile path) then93 if (file_exists(g MainWorkingDir..filterfilepath) ) then94 print("Load custom shard-specific Filter: "..g MainWorkingDir..filterfilepath)95 dofile(g MainWorkingDir..filterfilepath)91 function LoadShardfilter (filterfile) 92 if (filterfile) then 93 if (file_exists(gConfigPath..filterfile) ) then 94 print("Load custom shard-specific Filter: "..gConfigPath..filterfile) 95 dofile(gConfigPath..filterfile) 96 96 else 97 print("Shard-specific Filter not found: "..g MainWorkingDir..filterfilepath)97 print("Shard-specific Filter not found: "..gConfigPath..filterfile) 98 98 end 99 99 end … … 106 106 MainMenuStopAllMenus() 107 107 108 LoadShardfilter(shard.gCustomArtFilterFile Path) -- todo : revert on error or back-button ?108 LoadShardfilter(shard.gCustomArtFilterFile) -- todo : revert on error or back-button ? 109 109 110 110 -- load global config from shard -
trunk/lua/main.lua
r3217 r3218 3 3 --############################### 4 4 5 5 -- Iris2 Directories/Files 6 6 gMainWorkingDir = GetMainWorkingDir and GetMainWorkingDir() or "" 7 7 datapath = gMainWorkingDir.."data/" 8 8 libpath = gMainWorkingDir.."lua/" 9 lugreluapath = (file_exists(gMainWorkingDir.."mylugre") and gMainWorkingDir.."mylugre/lua/" or GetLugreLuaPath())10 9 gMacroPathFallback = gMainWorkingDir.."lua/config_macros_declarations.lua" 11 10 gMainPluginDir = gMainWorkingDir.."plugins/" 11 gIrisWidgetDir = libpath.."widgets/" 12 13 lugreluapath = (file_exists(gMainWorkingDir.."mylugre") and gMainWorkingDir.."mylugre/lua/" or GetLugreLuaPath()) -- this is should also in USERHOME dir 14 15 -- User Directories/Files 16 gTempPath = gMainWorkingDir.."tmp/" 17 gUoamMarkFile = "mark.uoam" 18 gUoamMarkFilePath = gTempPath..gUoamMarkFile 19 gScreenshotDir = gMainWorkingDir.."screenshots/" 12 20 gConfigPath = gMainWorkingDir.."config/" 13 gScreenshotDir = gMainWorkingDir.."screenshots/" 21 gConfigFile = "config.lua" 22 gConfigPathFile = gConfigPath..gConfigFile 23 gConfigPathFile_old = datapath..gConfigFile -- only as Fallback for old users 14 24 gMacroFile = "mymacros.lua" 15 25 gMacroPathFile = gConfigPath..gMacroFile 16 26 gMacroPathFile_old = datapath..gMacroFile -- only as Fallback for old users 17 gConfigFile = "config.lua"18 gConfigPathFile = gConfigPath..gConfigFile19 gConfigPathFile_old = datapath..gConfigFile -- only as Fallback for old users20 gIrisWidgetDir = libpath.."widgets/"21 27 gDesktopDir = gConfigPath.."desktop/" -- old was data/desktop/ 22 gTempPath = datapath.."tmp/"23 28 gPacketVideoFileName_folderpath = gMainWorkingDir.."videos/" 29 gUOAMDir = gConfigPath.."uoam/" 30 24 31 gSecondsSinceLastFrame = 0 25 26 32 gInGameStarted = false 27 33 gNet_State = false … … 39 45 if (not home) then return end 40 46 41 if (WIN32) then home = home .. "/Anwendungsdaten" end 47 if (WIN32) then home = home .. "/Anwendungsdaten" end -- TODO: other Languages!!! 42 48 43 49 gHomeIrisPath = home.."/.iris/" … … 49 55 gDesktopDir = gConfigPath.."desktop/" 50 56 gPacketVideoFileName_folderpath = gHomeIrisPath.."videos/" -- todo : text='will be saved as .ipv files in iris/videos/' 57 gUOAMDir = gConfigPath.."uoam/" 51 58 52 53 if (not file_exists(g HomeIrisPath)) then59 -- check if config.lua is already copied 60 if (not file_exists(gConfigPathFile)) then 54 61 print("initializing "..gHomeIrisPath) 55 62 mkdir(gHomeIrisPath) … … 59 66 mkdir(gDesktopDir) 60 67 mkdir(gPacketVideoFileName_folderpath) 68 mkdir(gUOAMDir) 61 69 62 70 print("Copy config from: " .. gMainWorkingDir.."config/" .. " to: " .. gConfigPath)
