Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force
- #Include %A_ScriptDir%\HttpQueryInfo.ahk
- ; Application type and code started :
- ; 15th October 2014 by Baoulettes aka Joffrey Panisset
- ; Joffrey.panisset@hotmail.com
- ; Unauthorized use is forbidden.
- ; Lib used that isn't writen by Me remain to author and Authorization pending.
- ;This script use "Runfirst" from :
- ;
- ;http://www.activeplus.com/Products/RunFirst
- ;
- ; Gamemode Game <-> Dev console will be writen in Option.ini. No need to provide it in "L2OSCheckFileList.ini"
- ; Options modifier Is there to produce same effect than In game just with few little tweak:
- ; Change Fullscreen mode, Play on server or Dev console to discover Items, Map.
- ; I suggest to Manualy update "L2OSConfig.ini"
- ; And put it in the Launcher file check ini.
- ; And so it will be better to see both version and that easier to manage.
- ; Also "L2OSServer.ini" and "L2OSConfig.ini" is the same files only name change.
- ; In case of Launcher update it can happen, check Global variables to change Version.
- ; AppAuthor is there only as copyright things and it never seen on the application itself.
- ; The source of code is provided to show I do but it can be used for learning process.
- ; A pure copy paste of the code isn't a learning process that is why I comment all part I could to explain how this work and help you later.
- ; Running this software as it will be useless for you but it can be modified to work on ANY game system or update system without requiring FTP access.
- ; So in case of hack/flaw in the code all your credencial are safe as it require NONE! :)
- ; Security first.
- ; Data Used on compilation change path your path -(can't be variable path !)
- ; RunFirst is used only if "AltTabFix" is checked!
- FileInstall, D:\Softwares\AutoHotkey\L2 OS Launcher\runfirst.exe, %L2OSDIR%/System/runfirst.exe,1
- ; Global variable set / read from DLL :
- Appname = Lineage ][ OS Launcher
- Appversion = 0.0.0b
- AppAuthor = Baoulettes
- CurrentStatut = Client Ready to play
- IniRead, LogoURL, L2OSLConf.dll, Setup, LogoUrl
- IniRead, ServerRoot, L2OSLConf.dll, Setup, ServerRoot
- IniRead, ServerFileCheckVersion, L2OSLConf.dll, Setup, ServerFileCheckVersion
- IniRead, Changelogsfiles, L2OSLConf.dll, Setup, Changelogsfiles
- IniRead, Checkfilelist, L2OSLConf.dll, Setup, Checkfilelist
- ; ServerRoot = http://baoulettesgalerie.site11.com
- ; ServerFileCheckVersion = http://baoulettesgalerie.site11.com/L2OSServer.ini
- ; Changelogsfiles = http://baoulettesgalerie.site11.com/L2OSlastlogs.ini
- ; Checkfilelist = http://baoulettesgalerie.site11.com/L2OSCheckFileList.ini
- ; All "If" there check if the dll is present and correct. else just close the app.
- If ServerRoot = ERROR
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If ServerRoot =
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If ServerFileCheckVersion = ERROR
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If ServerFileCheckVersion =
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If Changelogsfiles = ERROR
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If Changelogsfiles =
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If Checkfilelist = ERROR
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- If Checkfilelist =
- {
- Msgbox Required dll is missing or conrupted : L2OSLConf.dll, App now fail to load.
- ExitApp
- }
- ; Function to force player to select Lineage II Directory if that a first launch or if install conrupted.
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- If L2OSDIR = ERROR
- {
- FileSelectFolder, L2OSDIR,, 3, Select Lineage II Folder
- IniWrite, %L2OSDIR%, L2OSConfig.ini, GameDirectory, Loc
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- GuiControl,, L2OSdirtext, %L2OSDIR%.
- Loop {
- If L2OSDIR =
- {
- FileSelectFolder, L2OSDIR,, 3, Select Lineage II Folder
- IniWrite, %L2OSDIR%, L2OSConfig.ini, GameDirectory, Loc
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- GuiControl,, L2OSdirtext, %L2OSDIR%.
- } else {
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- break
- }
- }
- } else {
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- }
- If L2OSDIR =
- {
- FileSelectFolder, L2OSDIR,, 3, Select Lineage II Folder
- IniWrite, %L2OSDIR%, L2OSConfig.ini, GameDirectory, Loc
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- GuiControl,, L2OSdirtext, %L2OSDIR%.
- Loop {
- If L2OSDIR =
- {
- FileSelectFolder, L2OSDIR,, 3, Select Lineage II Folder
- IniWrite, %L2OSDIR%, L2OSConfig.ini, GameDirectory, Loc
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- GuiControl,, L2OSdirtext, %L2OSDIR%.
- } else {
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- break
- }
- }
- } else {
- IniRead, L2OSDIR, L2OSConfig.ini, GameDirectory, Loc
- }
- ; Download require files :
- UrlDownloadToFile, %ServerFileCheckVersion%, %L2OSDIR%\L2OSServer.ini
- UrlDownloadToFile, %Changelogsfiles%, %L2OSDIR%\L2OSlastlogs.ini
- IfNotExist %L2OSDIR%\banner-logo.png
- {
- UrlDownloadToFile, %LogoUrl%, %L2OSDIR%\banner-logo.png
- }
- ; Initial read to provide importante information.
- IniRead, Serverversion, %L2OSDIR%\L2OSServer.ini, GameVersion, Version
- ; If initial read failed due to network error or Server error throw an Error message to informe the user.
- If Serverversion = ERROR
- {
- ; We set a variable that will be used by the Gui to show the user about the error.
- Serverversion = /!\ No Network connection /!\
- MsgBox We cannot check the server required game version.`nBe sure to be connected to internet.`nAlso be sure to run this application in Admin rights and check Firewall/Anti-virus exception.
- }
- else
- {
- ; If all goes fine show the download server required game version.
- Serverversion = %Serverversion%
- ; Delete the files used to know server requirement.
- FileDelete, %L2OSDIR%\L2OSServer.ini
- }
- ; Read local game version from files.
- IniRead, Gameversion, %L2OSDIR%\L2OSConfig.ini, GameVersion, Version
- ; If the game show no version throw an error and assume it to be in "1.0.0" and force the player to update.
- If Gameversion = ERROR
- {
- ; Force game to be in version 1.0.0 and create file version for it.
- IniWrite, 1.0.0, %L2OSDIR%\L2OSConfig.ini, GameVersion, Version
- ; Re-read the file to refresh variable.
- IniRead, Gameversion, %L2OSDIR%\L2OSConfig.ini, GameVersion, Version
- ; Put variable to show in gui later to the user that he/she have to update!
- CurrentStatut = Client NOT Ready to play, Please check files !
- ; Force diable button play (it will be unable if the user update the game.)
- GuiControl, disable, btnPlay
- }
- else
- {
- ; If all goes fine then show in gui the current game version.
- Gameversion = %Gameversion%
- }
- ;File read to get the change logs !
- FileRead, L2OSChangelogs, %L2OSDIR%\L2OSlastlogs.ini
- ; If change log file happen to be missing on server throw an error to informe the user.
- If L2OSChangelogs = ERROR
- {
- L2OSChangelogs = /!\ No Network connection /!\
- MsgBox We cannot check the server required Change logs.`nBe sure to be connected to internet.`nAlso be sure to run this application in Admin rights and check Firewall/Anti-virus exception.
- }
- else
- {
- ; If all goes fines delete the changelog temporary files and place the text in the placeholder
- L2OSChangelogs = %L2OSChangelogs%
- FileDelete, %L2OSDIR%\L2OSlastlogs.ini
- }
- ; Gui Creation.
- ; Logo placeholder creation
- Gui, 1:Add, Picture, x0 y0 w485 h110 , %L2OSDIR%\banner-logo.png
- ; Game & Server game required version text place holder
- Gui, 1:Add, Text, x11 y107 w140 h20 , Game version : %Gameversion%
- Gui, 1:Add, Text, x161 y107 w320 h20 , Server Game version : %Serverversion%
- ; Progress & Launcher status
- Gui, 1:Add, Text, vDllFiles x11 y257 w350 h20 , %CurrentStatut%
- ; Progress Bars creation.
- Gui, 1:Add, Progress, x11 y287 w350 h20 , 25
- Gui, 1:Add, Progress, x11 y317 w350 h20 , 25
- ; Buttons Creation
- Gui, 1:Add, Button, vbtnPlay gbtnPlay x371 y327 w100 h30 , Play
- Gui, 1:Add, Button, vbtnUpdate gcheckfiles x371 y287 w100 h30 , Check Files
- Gui, 1:Add, Button, vbtnOptions gbtnoption x371 y247 w100 h30 , Options
- ; Change Log place holder
- Gui, 1:Add, Text, x11 y127 w460 h120 , %L2OSChangelogs%
- ; Copyright in the button of the launcher %Appname% is a variable see the header.
- Gui, 1:Add, Text, x11 y347 w350 h20 , %Appname% - %Appversion%
- ; Show the current created Gui.
- Gui, 1:Show, x203 y214 h379 w485, %Appname% - %Appversion%
- Return
- ; Global action used for the button "checkfiles"
- checkfiles:
- ; Disabling Button play, Option, Check Files
- GuiControl, disable, btnPlay
- GuiControl, disable, btnOptions
- GuiControl, disable, btnUpdate
- ; Download list of the files to check (see header for url.)
- UrlDownloadToFile, %Checkfilelist%, %L2OSDIR%\L2OSCheckFileList.ini
- ; Loop read the files per line !
- Loop, read, %L2OSDIR%\L2OSCheckFileList.ini
- {
- ; Simple Variable to form the url used later.
- url = %ServerRoot%/%A_LoopReadLine%
- ; Call Function "HttpQueryInfo" with variable url and param 5 (file size)
- Version1 :=HttpQueryInfo(url, 5)
- ; Check local files size.
- FileGetSize, Version2, %A_LoopReadLine%
- ; If local files size is Zero Or negative for it to be 0
- If Version2 =
- {
- ; Here is where it for it to be "Zero"
- Version2 = 0
- }
- ; check if both files size is the same
- If (%Version2%=%Version1%)
- {
- ; If is is the same then download nothing just update the gui to show "Skipping - FILENAME.EXT"
- GuiControl,,DllFiles,Skipping - %A_LoopReadLine%
- }
- Else
- {
- ; Used to form the url used later
- url3 = %ServerRoot%/%A_LoopReadLine%
- ; Download files in "url3" variable and put it in the same folder as the launcher.
- UrlDownloadToFile, %url3%, %L2OSDIR%\%A_LoopReadLine%
- ; Update gui to show "Downloading - FILENAME.EXT"
- GuiControl,,DllFiles,Downloading - %A_LoopReadLine%
- }
- }
- ; Delete the file download in the begining to check the list of files to be checked.
- FileDelete, %L2OSDIR%\L2OSCheckFileList.ini
- ; Update gui to show "Client Ready to play" (Variable set in header!)
- GuiControl,,DllFiles,%CurrentStatut%
- ; Re-enable buttons !
- GuiControl, Enable, btnPlay
- GuiControl, Enable, btnOptions
- GuiControl, Enable, btnUpdate
- Return
- ; Function used to create gui the same way as we did for main gui but on 2 process (internal process not multiple ".exe")
- btnoption:
- ; Destroy older Gui 2 (in case user had an exploit to bypass windows caption system
- Gui, 2:Destroy
- ; Creating Gui base to allow later use (Needed for Checkbox to make them working between tabs)
- ; Simple logic as it :
- ; Button creation (Default Cancel and Apply that is present on ALL tabs so it is created before the tabs itself.
- ; Then Tab creation and then what the tab need to load and create.
- Gui, 2:Add, Button, gdefaultgui2 x11 y477 w70 h20 , Default
- Gui, 2:Add, Button, gcancelgui2 x91 y477 w70 h20 , Cancel
- Gui, 2:Add, Button, gapplygui2 x171 y477 w70 h20 , Confirm
- Gui, 2:Add, Tab, x0 y0 w2410 h770 , Video|Audio|Game
- ; Set default variable in case Option.ini is missing!
- IfNotExist %L2OSDIR%/System/Option.ini
- {
- StartupFullScreenDD = True
- AltTabFixDD = False
- GammaDD = 3
- TextureDetailDD = 0
- ModelDetailDD = 0
- SkipAnimDD = 1
- PawnShadowDD = False
- RenderDecoDD = False
- TerrainDD = 6.000000
- PawnDD = 2.000000
- RenderActorLimitedDD = 3
- IsUseEffectDD = False
- AntiAliasingDD = 0
- GlowDD = False
- UseTrilinearDD = True
- UseColorCursorDD = True
- LowDetailDD = False
- SoundVolumeDD = 0.600000
- MusicVolumeDD = 0.600000
- WavVoiceVolumeDD = 0.600000
- OggVoiceVolumeDD = 0.600000
- TransparencyModeDD = True
- GameModeDD = Original
- MyNameDD = True
- NPCNameDD = True
- GroupNameDD = True
- PledgeMemberNameDD = True
- PartyMemberNameDD = True
- OtherPCNameDD = True
- EnterChattingDD = False
- AutoTrackingPawnDD = True
- OldChattingDD = True
- IsNativeDD = True
- ArrowModeDD = True
- UseJoystickDD = False
- ScreenShotQualityDD = 0
- PartyLootingDD = 1
- LocalMapDD = Entry.unr
- }
- ; Reading LineageII Options.ini properties in the order it show on the window !
- ; Get info Tab "Video"
- IniRead, StartupFullScreen, %L2OSDIR%/System/Option.ini, Video, StartupFullScreen
- IniRead, AltTabFix, %L2OSDIR%/System/Option.ini, Game, AltTabFix
- IniRead, Gamma, %L2OSDIR%/System/Option.ini, Video, Gamma
- IniRead, TextureDetail, %L2OSDIR%/System/Option.ini, Video, TextureDetail
- IniRead, ModelDetail, %L2OSDIR%/System/Option.ini, Video, ModelDetail
- IniRead, SkipAnim, %L2OSDIR%/System/Option.ini, Video, SkipAnim
- IniRead, PawnShadow, %L2OSDIR%/System/Option.ini, Video, PawnShadow
- IniRead, RenderDeco, %L2OSDIR%/System/Option.ini, Video, RenderDeco
- IniRead, Terrain, %L2OSDIR%/System/Option.ini, ClippingRange, Terrain
- IniRead, Pawn, %L2OSDIR%/System/Option.ini, ClippingRange, Pawn
- IniRead, RenderActorLimited, %L2OSDIR%/System/Option.ini, Video, RenderActorLimited
- IniRead, IsUseEffect, %L2OSDIR%/System/Option.ini, L2WaterEffect, IsUseEffect
- IniRead, AntiAliasing, %L2OSDIR%/System/Option.ini, Video, AntiAliasing
- IniRead, Glow, %L2OSDIR%/System/Option.ini, Video, Glow
- IniRead, UseTrilinear, %L2OSDIR%/System/Option.ini, Video, UseTrilinear
- IniRead, UseColorCursor, %L2OSDIR%/System/Option.ini, Video, UseColorCursor
- IniRead, LowDetail, %L2OSDIR%/System/Option.ini, Video, LowDetail
- ; Get info Tab "Audio"
- IniRead, SoundVolume, %L2OSDIR%/System/Option.ini, Audio, SoundVolume
- IniRead, MusicVolume, %L2OSDIR%/System/Option.ini, Audio, MusicVolume
- IniRead, WavVoiceVolume, %L2OSDIR%/System/Option.ini, Audio, WavVoiceVolume
- IniRead, OggVoiceVolume, %L2OSDIR%/System/Option.ini, Audio, OggVoiceVolume
- ; Check if the data GameMode is Dev-Mode or Original or empty and arrange the gui in the proper way.
- IfNotExist Original, %L2OSDIR%/System/L2-dev.ini
- {
- IfNotExist Original, %L2OSDIR%/System/L2-off.ini
- {
- ; Create a Default "L2-dev.ini" in case the files isn't available, So it check if the -dev exist if not it check if -off exist (that way it detect if the game is already in dev mode or not.)
- FileAppend, [URL]`nProtocol=unreal`nProtocolDescription=Unreal Protocol`nName=Player`nMap=Index.unr`nLocalMap=Entry.unr`nHost=`nPortal=`nMapExt=unr`nEXEName=l2.exe`nSaveExt=usa`nPort=7777`nClass=LineageWarrior.MFighter`nServerAddr=127.0.0.1`nIsL2NetLogin=False`nIsL2Console=False`nIsL2Seamless=True`nIsL2Projector=True`nISL2Mark=True`nForceAspectRatio=False`nAspectRatio=1.334`nIsDefaultShaodw=False`nIsUnderWaterEffect=False`nIsUseCommand=False`nL2VersionCheck=false`nIsL2MemLog=False`nL2ThreadFilter=0`nL2TestServer=false`nEnablePurgeLevel=True`nSharedSky=True`nL2MaxPawnResourceLoad=1.0`nL2UseKeyCrypt=false`n`n[L2WaterEffect]`nColorReference=(A=180`,R=38`,G=56`,B=64`,RR=150)`nEffectResolution=512`n`n[LanguageSet]`nLanguage=0`n`n[FontSet]`n;Font=L2Font.Japan`n;Glyph=Japan.gly`nFont=L2Font.gulim`nGlyph=gulim.gly`n`n[CharacterDisplay]`nName=true`nDist=1000`n`n[ClippingRange]`nPawnMax=3.0`nPawnMin=1.5`nAntiPortal=1.5`nTerrain=8.0`nStaticMesh=4.0`nProjector=0.2`nStaticMeshLod=5.0`nPawn=2.0`nActor=4.0`n`n[AutoLogOn]`nIsL2AutoLogOn=True`nL2ID=Baoulettes`nL2Passwd=FakePassword`nL2Slot=7`n`n[FirstRun]`nFirstRun=2110`n`n[Engine.Engine]`nRenderDevice=D3DDrv.D3DRenderDevice`n;RenderDevice=Engine.NullRenderDevice`n;RenderDevice=OpenGLDrv.OpenGLRenderDevice`nAudioDevice=ALAudio.ALAudioSubsystem`n;AudioDevice=XboxAudio.XboxAudioSubsystem`nNetworkDevice=IpDrv.TcpNetDriver`nDemoRecordingDevice=Engine.DemoRecDriver`nConsole=Engine.Console`nDefaultPlayerMenu=UDebugMenu.UDebugRootWindow`nLanguage=int`nGameEngine=Engine.GameEngine`nEditorEngine=Editor.EditorEngine`nGUIController=Engine.BaseGUIController`n;DefaultGame=WarfareGame.WarfareTeamGame`n;DefaultServerGame=WarfareGame.WarfareTeamGame`nDefaultGame=Engine.GameInfo`nDefaultServerGame=Engine.GameInfo`nViewportManager=WinDrv.WindowsClient`n;ViewportManager=XboxDrv.XboxClient`n;ViewportManager=SDLDrv.SDLClient`nRender=Render.Render`nInput=Engine.Input`nCanvas=Engine.Canvas`nDefaultPlayerController=Engine.LineagePlayerController`nL2NetHandler=Engine.NetHandler`nL2Console=NWindow.ConsoleWnd`nL2Font=NWindow.L2Font`n`n[Core.System]`nPurgeCacheDays=1`nSavePath=../Save`nCachePath=../Cache`nCacheExt=.uxx`n`nPaths=../System/*.u`nPaths=../StaticMeshes/*.usx`nPaths=../Textures/*.utx`nPaths=../Sounds/*.uax`nPaths=../Voice/*.uax`nPaths=../Maps/*.unr`n;Paths=../Music/*.umx`nPaths=../Animations/*.ukx`nPaths=../SysTextures/*.utx`nPaths=../Animations/*.usk`nPaths=../Saves/*.uvx`nSuppress=DevLoad`nSuppress=DevSave`nSuppress=DevNetTraffic`nSuppress=DevGarbage`nSuppress=DevKill`nSuppress=DevReplace`nSuppress=DevCompile`nSuppress=DevBind`nSuppress=DevBsp`n`n[Engine.GameEngine]`nCacheSizeMegs=32`nUseSound=True`n;ServerActors=IpDrv.UdpBeacon`n;ServerActors=IpServer.UdpServerQuery`n;ServerActors=IpServer.UdpServerUplink MasterServerAddress=unreal.epicgames.com MasterServerPort=27900`n;ServerActors=UWeb.WebServer`nServerPackages=AmbientCreatures`n;ServerPackages=WarEffects`n;ServerPakages=Decorations`nServerPackages=GamePlay`nServerPackages=UnrealGame`n;ServerPackages=WarfareGame`n;ServerPackages=WarClassLight`n;ServerPackages=WarClassHeavy`n;ServerPackages=WarClassMisc`n;ServerPackages=Pickups`n`n[WinDrv.WindowsClient]`nWindowedViewportX=1024`nWindowedViewportY=768`nFullscreenViewportX=1024`nFullscreenViewportY=768`nMenuViewportX=1024`nMenuViewportY=768`nBrightness=0.800000`nContrast=0.700000`nGamma=0.800000`nUseJoystick=False`nCaptureMouse=True`nStartupFullscreen=False`nUseWindowFrame=true`nScreenFlashes=True`nNoLighting=False`nMinDesiredFrameRate=35.000000`nDecals=True`nCoronas=True`nDecoLayers=True`nProjectors=True`nNoDynamicLights=False`nReportDynamicUploads=False`nTextureDetailInterface=Higher`nTextureDetailTerrain=Higher`nTextureDetailWeaponSkin=Higher`nTextureDetailPlayerSkin=Higher`nTextureDetailWorld=Higher`nTextureDetailRenderMap=Higher`nTextureDetailLightmap=Higher`nNoFractalAnim=False`nScaleHUDX=0.0`n`n[SDLDrv.SDLClient]`nWindowedViewportX=640`nWindowedViewportY=480`nFullscreenViewportX=800`nFullscreenViewportY=600`nMenuViewportX=640`nMenuViewportY=480`nBrightness=0.800000`nContrast=0.700000`nGamma=0.800000`nUseJoystick=False`nJoystickNumber=0`nIgnoreHat=False`nJoystickHatNumber=0`nCaptureMouse=True`nStartupFullscreen=False`nScreenFlashes=True`nNoLighting=False`nMinDesiredFrameRate=35.000000`nDecals=True`nCoronas=True`nDecoLayers=True`nProjectors=True`nNoDynamicLights=False`nReportDynamicUploads=False`nTextureDetailInterface=Normal`nTextureDetailTerrain=Normal`nTextureDetailWeaponSkin=Normal`nTextureDetailPlayerSkin=Normal`nTextureDetailWorld=Normal`nTextureDetailRenderMap=Normal`nTextureDetailLightmap=UltraHigh`nNoFractalAnim=False`n`n[Engine.Player]`nConfiguredInternetSpeed=10000`nConfiguredLanSpeed=20000`n`n[ALAudio.ALAudioSubsystem]`nUseEAX=False`nUse3DSound=False`nUseDefaultDriver=True`nCompatibilityMode=False`nUsePrecache=True`nReverseStereo=false`nChannels=32`nMusicVolume=0.1`nAmbientVolume=1.0`nSoundVolume=1.0`nDopplerFactor=1.0`nRolloff=0.5`nTimeBetweenHWUpdates=15`nDisablePitch=False`nLowQualitySound=False`n`n[IpDrv.TcpNetDriver]`nAllowDownloads=True`nConnectionTimeout=15.0`nInitialConnectTimeout=500.0`nAckTimeout=1.0`nKeepAliveTime=0.2`nMaxClientRate=20000`nSimLatency=0`nRelevantTimeout=5.0`nSpawnPrioritySeconds=1.0`nServerTravelPause=4.0`nNetServerMaxTickRate=20`nLanServerMaxTickRate=35`nDownloadManagers=IpDrv.HTTPDownload`nDownloadManagers=Engine.ChannelDownload`n`n[IpDrv.HTTPDownload]`nRedirectToURL=`nProxyServerHost=`nProxyServerPort=3128`nUseCompression=True`n`n[Engine.DemoRecDriver]`nDemoSpectatorClass=Warriors.CHSpectator`nMaxClientRate=25000`nConnectionTimeout=15.0`nInitialConnectTimeout=500.0`nAckTimeout=1.0`nKeepAliveTime=1.0`nSimLatency=0`nRelevantTimeout=5.0`nSpawnPrioritySeconds=1.0`nServerTravelPause=4.0`nNetServerMaxTickRate=60`nLanServerMaxTickRate=60`n`n[Engine.GameReplicationInfo]`nServerName=Another Unreal Server`nShortName=Unreal Server`n`n[IpDrv.TcpipConnection]`nSimPacketLoss=0`nSimLatency=0`n`n[IpServer.UdpServerQuery]`nGameName=ut`n`n[IpDrv.UdpBeacon]`nDoBeacon=True`nBeaconTime=0.50`nBeaconTimeout=5.0`nBeaconProduct=ut`n`n[XboxDrv.XboxClient]`nTextureDetail=Medium`nSkinDetail=Medium`nLightmapDetail=High`nTextureMinLOD=6`nTextureMaxLOD=9`nBrightness=0.8`nContrast=0.7`nGamma=0.8`nNoFractalAnim=True`n`n[XBoxAudio.XBoxAudioSubsystem]`nReverseStereo=False`nChannels=32`nMusicVolume=1.0`nSoundVolume=1.0`nAmbientFactor=1.0`nUsePrecache=True`n`n[D3DDrv.D3DRenderDevice]`nDetailTextures=True`nHighDetailActors=True`nSuperHighDetailActors=True`nUsePrecaching=True`nUseTrilinear=True`nAdapterNumber=-1`nReduceMouseLag=True`nUseTripleBuffering=False`nUseHardwareTL=True`nUseHardwareVS=True`nUseCubemaps=True`nDesiredRefreshRate=60`nUseCompressedLightmaps=True`nUseStencil=False`nUse16bit=False`nUse16bitTextures=False`nMaxPixelShaderVersion=255`nUseVSync=False`nLevelOfAnisotropy=1`nDetailTexMipBias=0.8`nDefaultTexMipBias=-0.5`nUseNPatches=False`nTesselationFactor=1.0`nCheckForOverflow=False`n`n[OpenGLDrv.OpenGLRenderDevice]`nDetailTextures=True`nHighDetailActors=True`nSuperHighDetailActors=True`nUsePrecaching=True`nUseCompressedLightmaps=True`nUseTrilinear=True`nUseStencil=False`nMaxTextureUnits=8`nVARSize=32`nReduceMouseLag=False`n`n[Engine.NullRenderDevice]`nDetailTextures=True`nHighDetailActors=True`nSuperHighDetailActors=True`nUsePrecaching=True`nUseCompressedLightmaps=True`nUseStencil=False`n`n[Editor.EditorEngine]`nUseSound=True`nCacheSizeMegs=32`nGridEnabled=True`nSnapVertices=False`nSnapDistance=10.000000`nGridSize=(X=16.000000`,Y=16.000000`,Z=16.000000)`nRotGridEnabled=True`nRotGridSize=(Pitch=1024`,Yaw=1024`,Roll=1024)`nGameCommandLine=-log`nFovAngleDegrees=90.000000`nGodMode=True`nAutoSave=True`nAutoSaveTimeMinutes=5`nAutoSaveIndex=6`nUseAxisIndicator=True`nMatineeCurveDetail=0.1`nLoadEntirePackageWhenSaving=0`nEditPackages=Core`nEditPackages=Engine`nEditPackages=Fire`nEditPackages=Editor`nEditPackages=UWindow`nEditPackages=UnrealEd`nEditPackages=IpDrv`nEditPackages=GamePlay`nEditPackages=LineageEffect`nEditPackages=LineageWarrior`nEditPackages=LineageNpc`nEditPackages=LineageMonster`nEditPackages=LineageMonster2`nEditPackages=LineageVehicle`nEditPackages=LineageDeco`nEditPackages=LineageEnv`nEditPackages=UDebugMenu`n;EditPackages=WarEffects`n;EditPackages=Decorations`n;EditPackages=WarfareGame`n;EditPackages=IHVDemoContent`n;EditPackages=Pickups`n;EditPackages=WarClassLight`n;EditPackages=WarClassHeavy`n;EditPackages=WarClassMisc`n;EditPackages=AmbientCreatures`n;EditPackages=Vehicles`n;EditPackages=UPreview`n`n[UMenu.UnrealConsole]`nRootWindow=UMenu.UMenuRootWindow`nUWindowKey=IK_Esc`nShowDesktop=True`n`n[UMenu.UMenuMenuBar]`nShowHelp=True`nGameUMenuDefault=UTMenu.UTGameMenu`nMultiplayerUMenuDefault=UTMenu.UTMultiplayerMenu`nOptionsUMenuDefault=UTMenu.UTOptionsMenu`n`n[Engine.GameInfo]`nbLowGore=False`nbVeryLowGore=False`n`n[UWeb.WebServer]`n;Applications[0]=UTServerAdmin.UTServerAdmin`n;ApplicationPaths[0]=/ServerAdmin`n;Applications[1]=UTServerAdmin.UTImageServer`n;ApplicationPaths[1]=/images`nDefaultApplication=0`nbEnabled=False`n`n[Engine.LevelInfo]`nPhysicsDetailLevel=PDL_Medium`n`n[Engine.Console]`nConsoleKey=9`n`n[WindowPositions]`nGameLog=(X=0`,Y=0`,XL=512`,YL=256)`n`n[L2PawnViewer]`nST_HEAD=0`nST_RHAND=0`nST_LHAND=0`nST_GLOVES=0`nST_CHEST=0`nST_LEGS=0`nST_FEET=0`nST_BACK=0`nST_RLHAND=20019`n, %L2OSDIR%/System/L2-dev.ini
- }
- }
- ; Get info Tab "Game"
- IniRead, TransparencyMode, %L2OSDIR%/System/Option.ini, Game, TransparencyMode
- IniRead, GameMode, %L2OSDIR%/System/Option.ini, Game, GameMode
- IniRead, MyName, %L2OSDIR%/System/Option.ini, Game, MyName
- IniRead, NPCName, %L2OSDIR%/System/Option.ini, Game, NPCName
- IniRead, GroupName, %L2OSDIR%/System/Option.ini, Game, GroupName
- IniRead, PledgeMemberName, %L2OSDIR%/System/Option.ini, Game, PledgeMemberName
- IniRead, PartyMemberName, %L2OSDIR%/System/Option.ini, Game, PartyMemberName
- IniRead, OtherPCName, %L2OSDIR%/System/Option.ini, Game, OtherPCName
- IniRead, EnterChatting, %L2OSDIR%/System/Option.ini, Game, EnterChatting
- IniRead, AutoTrackingPawn, %L2OSDIR%/System/Option.ini, Game, AutoTrackingPawn
- IniRead, OldChatting, %L2OSDIR%/System/Option.ini, Game, OldChatting
- IniRead, IsNative, %L2OSDIR%/System/Option.ini, Game, IsNative
- IniRead, ArrowMode, %L2OSDIR%/System/Option.ini, Game, ArrowMode
- IniRead, UseJoystick, %L2OSDIR%/System/Option.ini, Game, UseJoystick
- IniRead, ScreenShotQuality, %L2OSDIR%/System/Option.ini, Game, ScreenShotQuality
- IniRead, PartyLooting, %L2OSDIR%/System/Option.ini, Game, PartyLooting
- ;Read L2.ini to know what map DEV-console would need.
- IfExist, %L2OSDIR%\system\L2-off.ini
- {
- IniRead, LocalMap, %L2OSDIR%/System/L2.ini, URL, LocalMap
- ; Directly Set variable there to do less coding stuff.
- StringTrimRight, LocalMapReC, LocalMap, 4
- LocalMapDD = %LocalMapReC%
- }
- Else
- {
- IniRead, LocalMap, %L2OSDIR%/System/L2-dev.ini, URL, LocalMap
- StringTrimRight, LocalMapReC, LocalMap, 4
- LocalMapDD = %LocalMapReC%
- }
- ; Convert parsed data to variable compatible.
- ; Check if the data StartupFullScreen is true or false and arrange the gui in the proper way.
- If StartupFullScreen = False
- {
- StartupFullScreenDD=True|False||
- }
- If StartupFullScreen = True
- {
- StartupFullScreenDD=True||False
- }
- ; Check if the data AltTabFix is true or false or empty and arrange the gui in the proper way.
- If AltTabFix =
- {
- AltTabFixDD = True|False||
- ; I used this trick to write the properties for next time to make it a bit faster in the check.
- IniWrite, False, %L2OSDIR%/System/Option.ini, Game, AltTabFix
- }
- If AltTabFix = ERROR
- {
- AltTabFixDD = True|False||
- IniWrite, False, %L2OSDIR%/System/Option.ini, Game, AltTabFix
- }
- If AltTabFix = False
- {
- AltTabFixDD = True|False||
- }
- If AltTabFix = True
- {
- AltTabFixDD = True||False
- }
- ; Check the data Gamma and arrange the gui in the proper way it can be any of this :
- ; Gamma=0.800000|0.900000|1.000000|1.100000|1.200000
- ; Game= 1 |2 |3 |4 |5
- ; I made a little variable check and rename to make it user-friendly & Lineage like.
- If Gamma =
- {
- GammaDD = 1|2|3||4|5
- }
- If Gamma = ERROR
- {
- GammaDD = 1|2|3||4|5
- }
- If Gamma = 0.800000
- {
- GammaDD = 1||2|3|4|5
- }
- If Gamma = 0.900000
- {
- GammaDD = 1|2||3|4|5
- }
- If Gamma = 1.000000
- {
- GammaDD = 1|2|3||4|5
- }
- If Gamma = 1.100000
- {
- GammaDD = 1|2|3|4||5
- }
- If Gamma = 1.200000
- {
- GammaDD = 1|2|3|4|5||
- }
- ; Check the data TextureDetail and arrange the gui in the proper way.
- If TextureDetail = 0
- {
- TextureDetailDD = 0||1|2
- }
- If TextureDetail = 1
- {
- TextureDetailDD = 0|1||2
- }
- If TextureDetail = 2
- {
- TextureDetailDD = 0|1|2||
- }
- ; Check the data ModelDetail and arrange the gui in the proper way.
- If ModelDetail = 0
- {
- ModelDetailDD = 0||1
- }
- If ModelDetail = 1
- {
- ModelDetailDD = 0|1||
- }
- ; Check the data SkipAnim and arrange the gui in the proper way.
- If SkipAnim = 0
- {
- SkipAnimDD = 0||1
- }
- If SkipAnim = 1
- {
- SkipAnimDD = 0|1||
- }
- ; Check the data PawnShadow and arrange the gui in the proper way.
- If PawnShadow = false
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vPawnShadowDD x21 y227 w100 h20 , Shadows
- }
- If PawnShadow = true
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, Checked vPawnShadowDD x21 y227 w100 h20 , Shadows
- }
- ; Check the data RenderDeco and arrange the gui in the proper way.
- If RenderDeco = false
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vRenderDecoDD x131 y227 w110 h20 , Ground Detail
- }
- If RenderDeco = true
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, Checked vRenderDecoDD x131 y227 w110 h20 , Ground Detail
- }
- ; Check the data Terrain and arrange the gui in the proper way.
- If Terrain = 4.000000
- {
- TerrainDD = 1||2|3|4|5
- }
- If Terrain = 5.000000
- {
- TerrainDD = 1|2||3|4|5
- }
- If Terrain = 6.000000
- {
- TerrainDD = 1|2|3||4|5
- }
- If Terrain = 7.000000
- {
- TerrainDD = 1|2|3|4||5
- }
- If Terrain = 8.000000
- {
- TerrainDD = 1|2|3|4|5||
- }
- ; Check the data Pawn and arrange the gui in the proper way.
- If Pawn = 1.000000
- {
- PawnDD = 1||2|3|4|5
- }
- If Pawn = 1.500000
- {
- PawnDD = 1|2||3|4|5
- }
- If Pawn = 2.000000
- {
- PawnDD = 1|2|3||4|5
- }
- If Pawn = 2.500000
- {
- PawnDD = 1|2|3|4||5
- }
- If Pawn = 3.000000
- {
- PawnDD = 1|2|3|4|5||
- }
- ; Check the data RenderActorLimited and arrange the gui in the proper way.
- ; Used a little trik to change "6" to "None" to make it more Lineage Like.
- If RenderActorLimited = 1
- {
- RenderActorLimitedDD = 1||2|3|4|5|None
- }
- If RenderActorLimited = 2
- {
- RenderActorLimitedDD = 1|2||3|4|5|None
- }
- If RenderActorLimited = 3
- {
- RenderActorLimitedDD = 1|2|3||4|5|None
- }
- If RenderActorLimited = 4
- {
- RenderActorLimitedDD = 1|2|3|4||5|None
- }
- If RenderActorLimited = 5
- {
- RenderActorLimitedDD = 1|2|3|4|5||None
- }
- If RenderActorLimited = 6
- {
- RenderActorLimitedDD = 1|2|3|4|5|None||
- }
- ; Check the data IsUseEffect and arrange the gui in the proper way.
- If IsUseEffect = False
- {
- IsUseEffectDD = True|False||
- }
- If IsUseEffect = True
- {
- IsUseEffectDD = True||False
- }
- ; Check the data AntiAliasing and arrange the gui in the proper way.
- If AntiAliasing = 0
- {
- AntiAliasingDD = 0||1|2
- }
- If AntiAliasing = 1
- {
- AntiAliasingDD = 0|1||2
- }
- If AntiAliasing = 2
- {
- AntiAliasingDD = 0|1|2||
- }
- ; Check the data Glow and arrange the gui in the proper way.
- If Glow = false
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vGlowDD x21 y417 w100 h20 , Glow Effect
- }
- If Glow = true
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, Checked vGlowDD x21 y417 w100 h20 , Glow Effect
- }
- ; Check the data UseTrilinear and arrange the gui in the proper way.
- If UseTrilinear = false
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vUseTrilinearDD x131 y417 w100 h20 , Texture Filter
- }
- If UseTrilinear = true
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, Checked vUseTrilinearDD x131 y417 w100 h20 , Texture Filter
- }
- ; Check the data UseColorCursor and arrange the gui in the proper way.
- If UseColorCursor = false
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vUseColorCursorDD x21 y447 w100 h20 , Game Cursor
- }
- If UseColorCursor = true
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, Checked vUseColorCursorDD x21 y447 w100 h20 , Game Cursor
- }
- ; Check the data LowDetail and arrange the gui in the proper way.
- If LowDetail = false
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vLowDetailDD x131 y447 w100 h20 , Low detail
- }
- If LowDetail = true
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, Checked vLowDetailDD x131 y447 w100 h20 , Low detail
- }
- ; In case that a first launch !
- If LowDetail =
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vLowDetailDD x131 y447 w100 h20 , Low detail
- IniWrite, False, %L2OSDIR%/System/Option.ini, Video, LowDetail
- }
- If LowDetail = ERROR
- {
- Gui, 2:Tab, 1
- Gui, 2:Add, CheckBox, vLowDetailDD x131 y447 w100 h20 , Low detail
- IniWrite, False, %L2OSDIR%/System/Option.ini, Video, LowDetail
- }
- ; Check the data SoundVolume and arrange the gui in the proper way.
- ; Used a little trik to change "6" to "Off" to make it more Lineage Like.
- If SoundVolume = 0.200000
- {
- SoundVolumeDD = Off|1||2|3|4|5
- }
- If SoundVolume = 0.400000
- {
- SoundVolumeDD = Off|1|2||3|4|5
- }
- If SoundVolume = 0.600000
- {
- SoundVolumeDD = Off|1|2|3||4|5
- }
- If SoundVolume = 0.800000
- {
- SoundVolumeDD = Off|1|2|3|4||5
- }
- If SoundVolume = 1.000000
- {
- SoundVolumeDD = Off|1|2|3|4|5||
- }
- If SoundVolume = 0.000000
- {
- SoundVolumeDD = Off||1|2|3|4|5
- }
- ; Check the data MusicVolume and arrange the gui in the proper way.
- ; Used a little trik to change "6" to "Off" to make it more Lineage Like.
- If MusicVolume = 0.200000
- {
- MusicVolumeDD = Off|1||2|3|4|5
- }
- If MusicVolume = 0.400000
- {
- MusicVolumeDD = Off|1|2||3|4|5
- }
- If MusicVolume = 0.600000
- {
- MusicVolumeDD = Off|1|2|3||4|5
- }
- If MusicVolume = 0.800000
- {
- MusicVolumeDD = Off|1|2|3|4||5
- }
- If MusicVolume = 1.000000
- {
- MusicVolumeDD = Off|1|2|3|4|5||
- }
- If MusicVolume = 0.000000
- {
- MusicVolumeDD = Off||1|2|3|4|5
- }
- ; Check the data WavVoiceVolume and arrange the gui in the proper way.
- ; Used a little trik to change "6" to "Off" to make it more Lineage Like.
- If WavVoiceVolume = 0.200000
- {
- WavVoiceVolumeDD = Off|1||2|3|4|5
- }
- If WavVoiceVolume = 0.400000
- {
- WavVoiceVolumeDD = Off|1|2||3|4|5
- }
- If WavVoiceVolume = 0.600000
- {
- WavVoiceVolumeDD = Off|1|2|3||4|5
- }
- If WavVoiceVolume = 0.800000
- {
- WavVoiceVolumeDD = Off|1|2|3|4||5
- }
- If WavVoiceVolume = 1.000000
- {
- WavVoiceVolumeDD = Off|1|2|3|4|5||
- }
- If WavVoiceVolume = 0.000000
- {
- WavVoiceVolumeDD = Off||1|2|3|4|5
- }
- ; Check the data OggVoiceVolume and arrange the gui in the proper way.
- ; Used a little trik to change "6" to "Off" to make it more Lineage Like.
- If OggVoiceVolume = 0.200000
- {
- OggVoiceVolumeDD = Off|1||2|3|4|5
- }
- If OggVoiceVolume = 0.400000
- {
- OggVoiceVolumeDD = Off|1|2||3|4|5
- }
- If OggVoiceVolume = 0.600000
- {
- OggVoiceVolumeDD = Off|1|2|3||4|5
- }
- If OggVoiceVolume = 0.800000
- {
- OggVoiceVolumeDD = Off|1|2|3|4||5
- }
- If OggVoiceVolume = 1.000000
- {
- OggVoiceVolumeDD = Off|1|2|3|4|5||
- }
- If OggVoiceVolume = 0.000000
- {
- OggVoiceVolumeDD = Off||1|2|3|4|5
- }
- ; Check the data TransparencyMode and arrange the gui in the proper way.
- If TransparencyMode = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vTransparencyModeDD x155 y47 w95 h20 , Transparent
- }
- If TransparencyMode = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, checked vTransparencyModeDD x155 y47 w95 h20 , Transparent
- }
- If GameMode =
- {
- GameModeDD = Dev-Mode|Original||
- ; I used this trick to write the properties for next time to make it a bit faster in the check.
- IniWrite, Original, %L2OSDIR%/System/Option.ini, Game, GameMode
- }
- If GameMode = ERROR
- {
- GameModeDD = Dev-Mode|Original||
- IniWrite, Original, %L2OSDIR%/System/Option.ini, Game, GameMode
- }
- If GameMode = Original
- {
- GameModeDD = Dev-Mode|Original||
- }
- If GameMode = Dev-Mode
- {
- GameModeDD = Dev-Mode||Original
- }
- ; Check the data MyName and arrange the gui in the proper way.
- If MyName = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vMyNameDD x91 y117 w90 h20 , Players
- }
- If MyName = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vMyNameDD x91 y117 w90 h20 , Players
- }
- ; Check the data NPCName and arrange the gui in the proper way.
- If NPCName = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vNPCNameDD x91 y137 w90 h20 , Monster
- }
- If NPCName = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vNPCNameDD x91 y137 w90 h20 , Monster
- }
- ; Check the data OtherPCName and arrange the gui in the proper way.
- If OtherPCName = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vOtherPCNameDD x91 y157 w90 h20 , Other PCs
- }
- If OtherPCName = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vOtherPCNameDD x91 y157 w90 h20 , Other PCs
- }
- ; Check the data PledgeMemberName and arrange the gui in the proper way.
- If PledgeMemberName = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vPledgeMemberNameDD x101 y177 w90 h20 , Clan
- }
- If PledgeMemberName = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vPledgeMemberNameDD x101 y177 w90 h20 , Clan
- }
- ; Check the data PartyMemberName and arrange the gui in the proper way.
- If PartyMemberName = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vPartyMemberNameDD x101 y197 w90 h20 , Party
- }
- If PartyMemberName = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, checked vPartyMemberNameDD x101 y197 w90 h20 , Party
- }
- ; Check the data GroupName and arrange the gui in the proper way.
- If GroupName = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vGroupNameDD x101 y217 w90 h20 , General
- }
- If GroupName = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vGroupNameDD Checked x101 y217 w90 h20 , General
- }
- ; Check the data EnterChatting and arrange the gui in the proper way.
- If EnterChatting = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vEnterChattingDD x11 y257 w120 h20 , Enter Chat
- }
- If EnterChatting = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vEnterChattingDD x11 y257 w120 h20 , Enter Chat
- }
- ; Check the data OldChatting and arrange the gui in the proper way.
- If OldChatting = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vOldChattingDD x11 y277 w120 h20 , Auto Code
- }
- If OldChatting = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vOldChattingDD x11 y277 w120 h20 , Auto Code
- }
- ; Check the data ArrowMode and arrange the gui in the proper way.
- If ArrowMode = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vArrowModeDD x11 y297 w120 h20 , 3D Arrow
- }
- If ArrowMode = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vArrowModeDD x11 y297 w120 h20 , 3D Arrow
- }
- ; Check the data AutoTrackingPawn and arrange the gui in the proper way.
- If AutoTrackingPawn = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vAutoTrackingPawnDD x141 y257 w110 h20 , Tracking
- }
- If AutoTrackingPawn = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vAutoTrackingPawnDD x141 y257 w110 h20 , Tracking
- }
- ; Check the data IsNative and arrange the gui in the proper way.
- If IsNative = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vIsNativeDD x141 y277 w110 h20 , Key Security
- }
- If IsNative = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vIsNativeDD x141 y277 w110 h20 , Key Security
- }
- ; Check the data UseJoystick and arrange the gui in the proper way.
- If UseJoystick = false
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, vUseJoystickDD x141 y297 w110 h20 , Game Pad
- }
- If UseJoystick = true
- {
- Gui, 2:Tab, 3
- Gui, 2:Add, CheckBox, Checked vUseJoystickDD x141 y297 w110 h20 , Game Pad
- }
- ; Check the data ScreenShotQuality and arrange the gui in the proper way.
- If ScreenShotQuality = 0
- {
- ScreenShotQualityDD = Bitmap||High Quality - JPG|Medium Quality - JPG|Low Quality - JPG
- }
- If ScreenShotQuality = 1
- {
- ScreenShotQualityDD = Bitmap|High Quality - JPG||Medium Quality - JPG|Low Quality - JPG
- }
- If ScreenShotQuality = 2
- {
- ScreenShotQualityDD = Bitmap|High Quality - JPG|Medium Quality - JPG||Low Quality - JPG
- }
- If ScreenShotQuality = 3
- {
- ScreenShotQualityDD = Bitmap|High Quality - JPG|Medium Quality - JPG|Low Quality - JPG||
- }
- ; Check the data PartyLooting and arrange the gui in the proper way.
- If PartyLooting = 0
- {
- PartyLootingDD = Finders Keepers||Random|Random Including Spoil|By Turn|By Turn Including Spoil
- }
- If PartyLooting = 1
- {
- PartyLootingDD = Finders Keepers|Random||Random Including Spoil|By Turn|By Turn Including Spoil
- }
- If PartyLooting = 2
- {
- PartyLootingDD = Finders Keepers|Random|Random Including Spoil||By Turn|By Turn Including Spoil
- }
- If PartyLooting = 3
- {
- PartyLootingDD = Finders Keepers|Random|Random Including Spoil|By Turn||By Turn Including Spoil
- }
- If PartyLooting = 4
- {
- PartyLootingDD = Finders Keepers|Random|Random Including Spoil|By Turn|By Turn Including Spoil||
- }
- ; Creating rest of Gui with default Variable in case the one provided is empty and the check failed for unknown reason.
- ; All checkbox are in their corresponding "If" !
- Gui, 2:Tab, 1
- Gui, 2:Add, GroupBox, x5 y15 w250 h205 ,
- Gui, 2:Add, GroupBox, x5 y210 w250 h45 ,
- Gui, 2:Add, GroupBox, x5 y245 w250 h165 ,
- Gui, 2:Add, GroupBox, x5 y400 w250 h70 ,
- Gui, 2:Add, Text, x11 y37 w100 h30 , FullScreen
- Gui, 2:Add, DropDownList, vStartupFullScreenDD r2 x131 y37 w110 h20 , %StartupFullScreenDD%
- Gui, 2:Add, Text, x11 y67 w100 h30 , Alt+Tab Fix
- Gui, 2:Add, DropDownList, vAltTabFixDD r2 x131 y67 w110 h24 , %AltTabFixDD%
- Gui, 2:Add, Text, x11 y97 w100 h30 , Gamma
- Gui, 2:Add, DropDownList, vGammaDD r5 x131 y97 w110 h24 , %GammaDD%
- Gui, 2:Add, Text, x11 y127 w100 h30 , Textures
- Gui, 2:Add, DropDownList, vTextureDetailDD r3 x131 y127 w110 h24 , %TextureDetailDD%
- Gui, 2:Add, Text, x11 y157 w100 h30 , Modeling Detail
- Gui, 2:Add, DropDownList, vModelDetailDD r2 x131 y157 w110 h24 , %ModelDetailDD%
- Gui, 2:Add, Text, x11 y187 w100 h30 , Motion Detail
- Gui, 2:Add, DropDownList, vSkipAnimDD r2 x131 y187 w110 h24 , %SkipAnimDD%
- Gui, 2:Add, Text, x11 y257 w100 h30 , Terrain Range
- Gui, 2:Add, DropDownList, vTerrainDD r5 x131 y257 w110 h24 , %TerrainDD%
- Gui, 2:Add, Text, x11 y287 w100 h30 , PC/NPC Range
- Gui, 2:Add, DropDownList, vPawnDD r5 x131 y287 w110 h24 , %PawnDD%
- Gui, 2:Add, Text, x11 y317 w100 h30 , PC/NPC Limit
- Gui, 2:Add, DropDownList, vRenderActorLimitedDD r6 x131 y317 w110 h24 , %RenderActorLimitedDD%
- Gui, 2:Add, Text, x11 y347 w100 h30 , Reflection
- Gui, 2:Add, DropDownList, vIsUseEffectDD r2 x131 y347 w110 h24 , %IsUseEffectDD%
- Gui, 2:Add, Text, x11 y377 w100 h30 , Anti-Aliasing
- Gui, 2:Add, DropDownList, vAntiAliasingDD r3 x131 y377 w110 h24 , %AntiAliasingDD%
- Gui, 2:Tab, 2
- Gui, 2:Add, GroupBox, x5 y37 w250 h150 ,
- Gui, 2:Add, Text, x21 y57 w100 h30 , SFX Vol.
- Gui, 2:Add, DropDownList, r6 vSoundVolumeDD x131 y57 w100 h20 , %SoundVolumeDD%
- Gui, 2:Add, Text, x21 y87 w100 h30 , Music Vol.
- Gui, 2:Add, DropDownList, r6 vMusicVolumeDD x131 y87 w100 h24 , %MusicVolumeDD%
- Gui, 2:Add, Text, x21 y117 w100 h30 , System Voice
- Gui, 2:Add, DropDownList, r6 vWavVoiceVolumeDD x131 y117 w100 h24 , %WavVoiceVolumeDD%
- Gui, 2:Add, Text, x21 y147 w100 h30 , Tutorial Voice
- Gui, 2:Add, DropDownList, r6 vOggVoiceVolumeDD x131 y147 w100 h24 , %OggVoiceVolumeDD%
- Gui, 2:Tab, 3
- Gui, 2:Add, GroupBox, x5 y35 w250 h40 ,
- Gui, 2:Add, GroupBox, x5 y75 w250 h40 ,
- Gui, 2:Add, GroupBox, x5 y115 w250 h130 ,
- Gui, 2:Add, GroupBox, x5 y245 w250 h110 ,
- Gui, 2:Add, GroupBox, x5 y355 w250 h50 ,
- Gui, 2:Add, GroupBox, x5 y410 w250 h50 ,
- Gui, 2:Add, Text, x11 y47 w80 h20 , Interface
- Gui, 2:Add, Button, ginitizialisegui2 x91 y47 w60 h20 , Initialize
- Gui, 2:Add, Text, x11 y87 w80 h20 , GameMode
- Gui, 2:Add, DropDownList, vGameModeDD r2 x91 y87 w160 h20 , %GameModeDD%
- Gui, 2:Add, Text, x11 y117 w80 h30 , Display
- Gui, 2:Add, Text, x11 y327 w80 h20 , Screenshot
- Gui, 2:Add, DropDownList, vScreenShotQualityDD r4 x91 y327 w160 h20 , %ScreenShotQualityDD%
- Gui, 2:Add, Text, x11 y367 w80 h20 , Party Loot
- Gui, 2:Add, DropDownList, vPartyLootingDD r5 x91 y367 w160 h24 , %PartyLootingDD%
- Gui, 2:Add, Text, x11 y427 w100 h30 , Dev-Mod Map
- Gui, 2:Add, Edit, vLocalMapDD x111 y423 w100 h25 , %LocalMapDD%
- Gui, 2:Add, Text, x211 y427 w40 h30 , .unr
- gui, 1:+Disabled
- Gui, 2:Show, x591 y216 h508 w263, Options
- Return
- cancelgui2:
- ; Load function to cancel same result than red cross so I use the same function.
- goto 2GuiClose
- return
- defaultgui2:
- ; Disable Gui number two to prevent any glitch
- gui, 2:+Disabled
- MsgBox, 4,, This will reset your option and windows location to default Medium value, Are you sure?
- IfMsgBox Yes
- {
- ; Make back up.
- ; Create Folder "Backup" in system in case it was not intended to be default-ed
- FileCreateDir, %L2OSDIR%\system\Backup
- FileMove, %L2OSDIR%\system\WindowsInfo.ini, %L2OSDIR%\system\Backup\WindowsInfo_%A_Hour%.%A_Min%-%A_DD%.%A_MM%.%A_YYYY%.ini
- FileCopy, %L2OSDIR%\system\Option.ini, %L2OSDIR%\system\Backup\Option.ini
- IfExist, %L2OSDIR%\system\L2-dev.ini
- {
- FileCopy, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\Backup\L2-off_%A_Hour%.%A_Min%-%A_DD%.%A_MM%.%A_YYYY%.ini
- FileCopy, %L2OSDIR%\system\L2-dev.ini, %L2OSDIR%\system\Backup\L2-dev_%A_Hour%.%A_Min%-%A_DD%.%A_MM%.%A_YYYY%.ini
- }
- IfExist, %L2OSDIR%\system\L2-off.ini
- {
- FileCopy, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\Backup\L2-dev_%A_Hour%.%A_Min%-%A_DD%.%A_MM%.%A_YYYY%.ini
- FileCopy, %L2OSDIR%\system\L2-off.ini, %L2OSDIR%\system\Backup\L2-off_%A_Hour%.%A_Min%-%A_DD%.%A_MM%.%A_YYYY%.ini
- }
- ; Assign Medium Detail - Fullscreen as "Default"
- StartupFullScreenDD = True
- AltTabFixDD = False
- GammaDD = 3
- TextureDetailDD = 0
- ModelDetailDD = 0
- SkipAnimDD = 1
- PawnShadowDD = False
- RenderDecoDD = False
- TerrainDD = 6.000000
- PawnDD = 2.000000
- RenderActorLimitedDD = 3
- IsUseEffectDD = False
- AntiAliasingDD = 0
- GlowDD = False
- UseTrilinearDD = True
- UseColorCursorDD = True
- LowDetailDD = False
- SoundVolumeDD = 0.600000
- MusicVolumeDD = 0.600000
- WavVoiceVolumeDD = 0.600000
- OggVoiceVolumeDD = 0.600000
- TransparencyModeDD = True
- GameModeDD = Original
- MyNameDD = True
- NPCNameDD = True
- GroupNameDD = True
- PledgeMemberNameDD = True
- PartyMemberNameDD = True
- OtherPCNameDD = True
- EnterChattingDD = False
- AutoTrackingPawnDD = True
- OldChattingDD = True
- IsNativeDD = True
- ArrowModeDD = True
- UseJoystickDD = False
- ScreenShotQualityDD = 0
- PartyLootingDD = 1
- LocalMapDD = Entry
- ; Writing LineageII Options.ini properties !
- ; Write info Tab "Video"
- IniWrite, %StartupFullScreenDD%, %L2OSDIR%/System/Option.ini, Video, StartupFullScreen
- IniWrite, %AltTabFixDD%, %L2OSDIR%/System/Option.ini, Game, AltTabFix
- IniWrite, %GammaDD%, %L2OSDIR%/System/Option.ini, Video, Gamma
- IniWrite, %TextureDetailDD%, %L2OSDIR%/System/Option.ini, Video, TextureDetail
- IniWrite, %ModelDetailDD%, %L2OSDIR%/System/Option.ini, Video, ModelDetail
- IniWrite, %SkipAnimDD%, %L2OSDIR%/System/Option.ini, Video, SkipAnim
- IniWrite, %PawnShadowDD%, %L2OSDIR%/System/Option.ini, Video, PawnShadow
- IniWrite, %RenderDecoDD%, %L2OSDIR%/System/Option.ini, Video, RenderDeco
- IniWrite, %TerrainDD%, %L2OSDIR%/System/Option.ini, ClippingRange, Terrain
- IniWrite, %PawnDD%, %L2OSDIR%/System/Option.ini, ClippingRange, Pawn
- IniWrite, %RenderActorLimitedDD%, %L2OSDIR%/System/Option.ini, Video, RenderActorLimited
- IniWrite, %IsUseEffectDD%, %L2OSDIR%/System/Option.ini, L2WaterEffect, IsUseEffect
- IniWrite, %AntiAliasingDD%, %L2OSDIR%/System/Option.ini, Video, AntiAliasing
- IniWrite, %GlowDD%, %L2OSDIR%/System/Option.ini, Video, Glow
- IniWrite, %UseTrilinearDD%, %L2OSDIR%/System/Option.ini, Video, UseTrilinear
- IniWrite, %UseColorCursorDD%, %L2OSDIR%/System/Option.ini, Video, UseColorCursor
- IniWrite, %LowDetailDD%, %L2OSDIR%/System/Option.ini, Video, LowDetail
- ; Write info Tab "Audio"
- IniWrite, %SoundVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, SoundVolume
- IniWrite, %MusicVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, MusicVolume
- IniWrite, %WavVoiceVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, WavVoiceVolume
- IniWrite, %OggVoiceVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, OggVoiceVolume
- ; Write info Tab "Game"
- IniWrite, %TransparencyModeDD%, %L2OSDIR%/System/Option.ini, Game, TransparencyMode
- IniWrite, %GameModeDD%, %L2OSDIR%/System/Option.ini, Game, GameMode
- IniWrite, %MyNameDD%, %L2OSDIR%/System/Option.ini, Game, MyName
- IniWrite, %NPCNameDD%, %L2OSDIR%/System/Option.ini, Game, NPCName
- IniWrite, %GroupNameDD%, %L2OSDIR%/System/Option.ini, Game, GroupName
- IniWrite, %PledgeMemberNameDD%, %L2OSDIR%/System/Option.ini, Game, PledgeMemberName
- IniWrite, %PartyMemberNameDD%, %L2OSDIR%/System/Option.ini, Game, PartyMemberName
- IniWrite, %OtherPCNameDD%, %L2OSDIR%/System/Option.ini, Game, OtherPCName
- IniWrite, %EnterChattingDD%, %L2OSDIR%/System/Option.ini, Game, EnterChatting
- IniWrite, %AutoTrackingPawnDD%, %L2OSDIR%/System/Option.ini, Game, AutoTrackingPawn
- IniWrite, %OldChattingDD%, %L2OSDIR%/System/Option.ini, Game, OldChatting
- IniWrite, %IsNativeDD%, %L2OSDIR%/System/Option.ini, Game, IsNative
- IniWrite, %ArrowModeDD%, %L2OSDIR%/System/Option.ini, Game, ArrowMode
- IniWrite, %UseJoystickDD%, %L2OSDIR%/System/Option.ini, Game, UseJoystick
- IniWrite, %ScreenShotQualityDD%, %L2OSDIR%/System/Option.ini, Game, ScreenShotQuality
- IniWrite, %PartyLootingDD%, %L2OSDIR%/System/Option.ini, Game, PartyLooting
- ; Write L2.ini to know what map DEV-console would need.
- IfExist, %L2OSDIR%\system\L2-dev.ini
- {
- IniWrite, %LocalMapDD%.unr, %L2OSDIR%\System\L2-dev.ini, URL, LocalMap
- }
- IfExist, %L2OSDIR%\system\L2-off.ini
- {
- FileMove, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\L2-dev.ini
- FileMove, %L2OSDIR%\system\L2-off.ini, %L2OSDIR%\system\L2.ini
- IniWrite, %LocalMapDD%.unr, %L2OSDIR%\System\L2-dev.ini, URL, LocalMap
- }
- Msgbox Game settings, windows locations reseted to default !
- Gui 2:Submit,Nohide
- Gui, 2:Destroy
- goto btnoption
- }
- else
- {
- gui, 2:-Disabled
- Return
- }
- return
- applygui2:
- Gui 2:Submit,Nohide
- ; Convert fancy Variable to game compatible datas.
- If GammaDD = 1
- {
- GammaDD = 0.800000
- }
- If GammaDD = 2
- {
- GammaDD = 0.900000
- }
- If GammaDD = 3
- {
- GammaDD = 1.000000
- }
- If GammaDD = 4
- {
- GammaDD = 1.100000
- }
- If GammaDD = 4
- {
- GammaDD = 1.200000
- }
- If PawnShadowDD = 1
- {
- PawnShadowDD = true
- }
- If PawnShadowDD = 0
- {
- PawnShadowDD = false
- }
- If RenderDecoDD = 0
- {
- RenderDecoDD = false
- }
- If RenderDecoDD = 1
- {
- RenderDecoDD = true
- }
- If TerrainDD = 1
- {
- TerrainDD = 4.000000
- }
- If TerrainDD = 2
- {
- TerrainDD = 5.000000
- }
- If TerrainDD = 3
- {
- TerrainDD = 6.000000
- }
- If TerrainDD = 4
- {
- TerrainDD = 7.000000
- }
- If TerrainDD = 5
- {
- TerrainDD = 8.000000
- }
- If PawnDD = 1
- {
- PawnDD = 1.000000
- }
- If PawnDD = 2
- {
- PawnDD = 1.500000
- }
- If PawnDD = 3
- {
- PawnDD = 2.000000
- }
- If PawnDD = 4
- {
- PawnDD = 2.500000
- }
- If PawnDD = 5
- {
- PawnDD = 3.000000
- }
- If RenderActorLimitedDD = None
- {
- RenderActorLimitedDD = 6
- }
- If GlowDD = 1
- {
- GlowDD = true
- }
- If GlowDD = 0
- {
- GlowDD = false
- }
- If UseTrilinearDD = 1
- {
- UseTrilinearDD = true
- }
- If UseTrilinearDD = 0
- {
- UseTrilinearDD = false
- }
- If UseColorCursorDD = 1
- {
- UseColorCursorDD = true
- }
- If UseColorCursorDD = 0
- {
- UseColorCursorDD = false
- }
- If SoundVolumeDD = 1
- {
- SoundVolumeDD = 0.200000
- }
- If SoundVolumeDD = 2
- {
- SoundVolumeDD = 0.400000
- }
- If SoundVolumeDD = 3
- {
- SoundVolumeDD = 0.600000
- }
- If SoundVolumeDD = 4
- {
- SoundVolumeDD = 0.800000
- }
- If SoundVolumeDD = 5
- {
- SoundVolumeDD = 1.000000
- }
- If SoundVolumeDD = Off
- {
- SoundVolumeDD = 0.000000
- }
- If MusicVolumeDD = 1
- {
- MusicVolumeDD = 0.200000
- }
- If MusicVolumeDD = 2
- {
- MusicVolumeDD = 0.400000
- }
- If MusicVolumeDD = 3
- {
- MusicVolumeDD = 0.600000
- }
- If MusicVolumeDD = 4
- {
- MusicVolumeDD = 0.800000
- }
- If MusicVolumeDD = 5
- {
- MusicVolumeDD = 1.000000
- }
- If MusicVolumeDD = Off
- {
- MusicVolumeDD = 0.000000
- }
- If WavVoiceVolumeDD = 1
- {
- WavVoiceVolumeDD = 0.200000
- }
- If WavVoiceVolumeDD = 2
- {
- WavVoiceVolumeDD = 0.400000
- }
- If WavVoiceVolumeDD = 3
- {
- WavVoiceVolumeDD = 0.600000
- }
- If WavVoiceVolumeDD = 4
- {
- WavVoiceVolumeDD = 0.800000
- }
- If WavVoiceVolumeDD = 5
- {
- WavVoiceVolumeDD = 1.000000
- }
- If WavVoiceVolumeDD = Off
- {
- WavVoiceVolumeDD = 0.000000
- }
- If OggVoiceVolumeDD = 1
- {
- OggVoiceVolumeDD = 0.200000
- }
- If OggVoiceVolumeDD = 2
- {
- OggVoiceVolumeDD = 0.400000
- }
- If OggVoiceVolumeDD = 3
- {
- OggVoiceVolumeDD = 0.600000
- }
- If OggVoiceVolumeDD = 4
- {
- OggVoiceVolumeDD = 0.800000
- }
- If OggVoiceVolumeDD = 5
- {
- OggVoiceVolumeDD = 1.000000
- }
- If OggVoiceVolumeDD = Off
- {
- OggVoiceVolumeDD = 0.000000
- }
- If TransparencyModeDD = 1
- {
- TransparencyModeDD = true
- }
- If TransparencyModeDD = 0
- {
- TransparencyModeDD = false
- }
- If MyNameDD = 1
- {
- MyNameDD = true
- }
- If MyNameDD = 0
- {
- MyNameDD = false
- }
- If NPCNameDD = 1
- {
- NPCNameDD = true
- }
- If NPCNameDD = 0
- {
- NPCNameDD = false
- }
- If OtherPCNameDD = 1
- {
- OtherPCNameDD = true
- }
- If OtherPCNameDD = 0
- {
- OtherPCNameDD = false
- }
- If PledgeMemberNameDD = 1
- {
- PledgeMemberNameDD = true
- }
- If PledgeMemberNameDD = 0
- {
- PledgeMemberNameDD = false
- }
- If PartyMemberNameDDD = 1
- {
- PartyMemberNameDD = true
- }
- If PartyMemberNameDD = 0
- {
- PartyMemberNameDD = false
- }
- If GroupNameDD = 1
- {
- GroupNameDD = true
- }
- If GroupNameDD = 0
- {
- GroupNameDD = false
- }
- If EnterChattingDD = 1
- {
- EnterChattingDD = true
- }
- If EnterChattingDD = 0
- {
- EnterChattingDD = false
- }
- If OldChattingDD = 1
- {
- OldChattingDD = true
- }
- If OldChattingDD = 0
- {
- OldChattingDD = false
- }
- If ArrowModeDD = 1
- {
- ArrowModeDD = true
- }
- If ArrowModeDD = 0
- {
- ArrowModeDD = false
- }
- If AutoTrackingPawnDD = 1
- {
- AutoTrackingPawnDD = true
- }
- If AutoTrackingPawnDD = 0
- {
- AutoTrackingPawnDD = false
- }
- If IsNativeDD = 1
- {
- IsNativeDD = true
- }
- If IsNativeDD = 0
- {
- IsNativeDD = false
- }
- If UseJoystickDD = 1
- {
- UseJoystickDD = true
- }
- If UseJoystickDD = 0
- {
- UseJoystickDD = false
- }
- If ScreenShotQualityDD = Bitmap
- {
- ScreenShotQualityDD = 0
- }
- If ScreenShotQualityDD = High Quality - JPG
- {
- ScreenShotQualityDD = 1
- }
- If ScreenShotQualityDD = Medium Quality - JPG
- {
- ScreenShotQualityDD = 2
- }
- If ScreenShotQualityDD = Low Quality - JPG
- {
- ScreenShotQualityDD = 3
- }
- If PartyLootingDD = Finders Keepers
- {
- PartyLootingDD = 0
- }
- If PartyLootingDD = Random
- {
- PartyLootingDD = 1
- }
- If PartyLootingDD = Random Including Spoil
- {
- PartyLootingDD = 2
- }
- If PartyLootingDD = By Turn
- {
- PartyLootingDD = 3
- }
- If PartyLootingDD = By Turn Including Spoil
- {
- PartyLootingDD = 4
- }
- If LowDetailDD = 1
- {
- GammaDD = 1.000000
- TextureDetailDD = 2
- ModelDetailDD = 1
- SkipAnimDD = 1
- PawnShadowDD = False
- RenderDecoDD = False
- TerrainDD = 4.000000
- PawnDD = 1.000000
- RenderActorLimitedDD = 1
- IsUseEffectDD = False
- AntiAliasingDD = 0
- GlowDD = False
- UseTrilinearDD = False
- UseColorCursorDD = False
- LowDetailDD = True
- }
- If LowDetailDD = 0
- {
- LowDetailDD = False
- }
- ; Writing LineageII Options.ini properties !
- ; Write info Tab "Video"
- IniWrite, %StartupFullScreenDD%, %L2OSDIR%/System/Option.ini, Video, StartupFullScreen
- IniWrite, %AltTabFixDD%, %L2OSDIR%/System/Option.ini, Game, AltTabFix
- IniWrite, %GammaDD%, %L2OSDIR%/System/Option.ini, Video, Gamma
- IniWrite, %TextureDetailDD%, %L2OSDIR%/System/Option.ini, Video, TextureDetail
- IniWrite, %ModelDetailDD%, %L2OSDIR%/System/Option.ini, Video, ModelDetail
- IniWrite, %SkipAnimDD%, %L2OSDIR%/System/Option.ini, Video, SkipAnim
- IniWrite, %PawnShadowDD%, %L2OSDIR%/System/Option.ini, Video, PawnShadow
- IniWrite, %RenderDecoDD%, %L2OSDIR%/System/Option.ini, Video, RenderDeco
- IniWrite, %TerrainDD%, %L2OSDIR%/System/Option.ini, ClippingRange, Terrain
- IniWrite, %PawnDD%, %L2OSDIR%/System/Option.ini, ClippingRange, Pawn
- IniWrite, %RenderActorLimitedDD%, %L2OSDIR%/System/Option.ini, Video, RenderActorLimited
- IniWrite, %IsUseEffectDD%, %L2OSDIR%/System/Option.ini, L2WaterEffect, IsUseEffect
- IniWrite, %AntiAliasingDD%, %L2OSDIR%/System/Option.ini, Video, AntiAliasing
- IniWrite, %GlowDD%, %L2OSDIR%/System/Option.ini, Video, Glow
- IniWrite, %UseTrilinearDD%, %L2OSDIR%/System/Option.ini, Video, UseTrilinear
- IniWrite, %UseColorCursorDD%, %L2OSDIR%/System/Option.ini, Video, UseColorCursor
- IniWrite, %LowDetailDD%, %L2OSDIR%/System/Option.ini, Video, LowDetail
- ; Write info Tab "Audio"
- IniWrite, %SoundVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, SoundVolume
- IniWrite, %MusicVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, MusicVolume
- IniWrite, %WavVoiceVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, WavVoiceVolume
- IniWrite, %OggVoiceVolumeDD%, %L2OSDIR%/System/Option.ini, Audio, OggVoiceVolume
- ; Write info Tab "Game"
- IniWrite, %TransparencyModeDD%, %L2OSDIR%/System/Option.ini, Game, TransparencyMode
- IniWrite, %GameModeDD%, %L2OSDIR%/System/Option.ini, Game, GameMode
- IniWrite, %MyNameDD%, %L2OSDIR%/System/Option.ini, Game, MyName
- IniWrite, %NPCNameDD%, %L2OSDIR%/System/Option.ini, Game, NPCName
- IniWrite, %GroupNameDD%, %L2OSDIR%/System/Option.ini, Game, GroupName
- IniWrite, %PledgeMemberNameDD%, %L2OSDIR%/System/Option.ini, Game, PledgeMemberName
- IniWrite, %PartyMemberNameDD%, %L2OSDIR%/System/Option.ini, Game, PartyMemberName
- IniWrite, %OtherPCNameDD%, %L2OSDIR%/System/Option.ini, Game, OtherPCName
- IniWrite, %EnterChattingDD%, %L2OSDIR%/System/Option.ini, Game, EnterChatting
- IniWrite, %AutoTrackingPawnDD%, %L2OSDIR%/System/Option.ini, Game, AutoTrackingPawn
- IniWrite, %OldChattingDD%, %L2OSDIR%/System/Option.ini, Game, OldChatting
- IniWrite, %IsNativeDD%, %L2OSDIR%/System/Option.ini, Game, IsNative
- IniWrite, %ArrowModeDD%, %L2OSDIR%/System/Option.ini, Game, ArrowMode
- IniWrite, %UseJoystickDD%, %L2OSDIR%/System/Option.ini, Game, UseJoystick
- IniWrite, %ScreenShotQualityDD%, %L2OSDIR%/System/Option.ini, Game, ScreenShotQuality
- IniWrite, %PartyLootingDD%, %L2OSDIR%/System/Option.ini, Game, PartyLooting
- ; Write L2.ini to know what map DEV-console would need.
- IfExist, %L2OSDIR%\system\L2-dev.ini
- {
- IniWrite, %LocalMapDD%.unr, %L2OSDIR%\System\L2-dev.ini, URL, LocalMap
- }
- IfExist, %L2OSDIR%\system\L2-off.ini
- {
- FileMove, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\L2-dev.ini
- FileMove, %L2OSDIR%\system\L2-off.ini, %L2OSDIR%\system\L2.ini
- IniWrite, %LocalMapDD%.unr, %L2OSDIR%\System\L2-dev.ini, URL, LocalMap
- }
- If IsUseEffect = False
- {
- IniWrite, 0, %L2OSDIR%/System/Option.ini, L2WaterEffect, EffectType
- }
- If IsUseEffect = True
- {
- IniWrite, 1, %L2OSDIR%/System/Option.ini, L2WaterEffect, EffectType
- }
- Gui, 2:Destroy
- gui, 1:-Disabled
- return
- 2GuiClose:
- gui, 2:+Disabled
- MsgBox, 4,, Any unsaved change will be lost, Are you sure?
- IfMsgBox Yes
- {
- Gui, 2:Destroy
- gui, 1:-Disabled
- Return
- }
- else
- {
- gui, 2:-Disabled
- Return
- }
- btnPlay:
- IniRead, GameMode, %L2OSDIR%/System/Option.ini, Game, GameMode
- IniRead, AltTabFix, %L2OSDIR%/System/Option.ini, Game, AltTabFix
- If GameMode = Dev-Mode
- {
- If AltTabFix = True
- {
- IfExist, %L2OSDIR%\system\L2-dev.ini
- {
- FileMove, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\L2-off.ini
- FileMove, %L2OSDIR%\system\L2-dev.ini, %L2OSDIR%\system\L2.ini
- }
- Run, cmd /c CD %L2OSDIR%\system\ & runfirst.exe L2.exe,,Hide
- Goto GuiClose
- }
- else
- {
- IfExist, %L2OSDIR%\system\L2-dev.ini
- {
- FileMove, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\L2-off.ini
- FileMove, %L2OSDIR%\system\L2-dev.ini, %L2OSDIR%\system\L2.ini
- }
- Run, cmd /c CD %L2OSDIR%\system\ & L2.exe,,Hide
- Goto GuiClose
- }
- }
- Else
- {
- If AltTabFix = True
- {
- IfExist, %L2OSDIR%\system\L2-off.ini
- {
- FileMove, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\L2-dev.ini
- FileMove, %L2OSDIR%\system\L2-off.ini, %L2OSDIR%\system\L2.ini
- }
- Run, cmd /c CD %L2OSDIR%\system\ & runfirst.exe L2.exe",,Hide
- Goto GuiClose
- }
- else
- {
- IfExist, %L2OSDIR%\system\L2-off.ini
- {
- FileMove, %L2OSDIR%\system\L2.ini, %L2OSDIR%\system\L2-dev.ini
- FileMove, %L2OSDIR%\system\L2-off.ini, %L2OSDIR%\system\L2.ini
- }
- Run, cmd /c CD %L2OSDIR%\system\ & L2.exe,,Hide
- Goto GuiClose
- }
- }
- return
- initizialisegui2:
- gui, 2:+Disabled
- MsgBox, 4,, This will reset your game UI windows to default, Are you sure?
- IfMsgBox Yes
- {
- ; Make back up.
- ; Create Folder "Backup" in system in case it was not intended to be default-ed
- FileCreateDir, %L2OSDIR%\system\Backup
- FileMove, %L2OSDIR%\system\WindowsInfo.ini, %L2OSDIR%\system\Backup\WindowsInfo_%A_Hour%.%A_Min%-%A_DD%.%A_MM%.%A_YYYY%.ini
- gui, 2:-Disabled
- Return
- }
- else
- {
- gui, 2:-Disabled
- Return
- }
- ; If the app is closed totaly close the process! & delete unused files. (prevent to be a mess!)
- GuiClose:
- FileDelete, %L2OSDIR%\L2OSlastlogs.ini
- FileDelete, %L2OSDIR%\L2OSCheckFileList.ini
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement