====== init.txt Tips ====== {{template>:templates:guides#Author |author=Aikar| |date=Oct 5th, 2007| |url=http://www.windower.net| |contact=[[aikar@fanetworks.net]]| }} ===== Wiki Editing Authorization ===== I am giving permission for others to ADD to my guide, however you may not remove or reword ANYTHING else in my guide without my permission unless its to fix tiny grammatical or other 'bugs'. ===== Information ===== There are a few things you can modify [[:scripting/init.txt|init.txt]] to change your windower configuration to make windower act the way you want it to. This guide will show you some suggestions on changes you can make to [[:scripting/init.txt|init.txt]] If you ever accidently screw up your file, you can always refer to [[:scripting/init.txt|init.txt]]'s page to see the default 3.3 [[:scripting/init.txt|init.txt]]. However, its much easier to just backup your file before editing. It's good practice to backup files before modifying them, so just make a copy of it before editing! ===== Tip Listing ===== ==== Console position ==== If you do not like the default console position, you may modify the **console_position** line and change the X and Y settings to where you want it to be. However take note that if you set these values higher than your windowers size, you will not be able to see your console! * Default: \\ console_position 15 50 * Example: \\ console_position 15 590 Moves your console farther down the screen. ==== Changing the text color ==== Before saying anything else, Please take note that [[:windower/3.3|3.3]] added the ability for [[:plugins/index|plugins]] to put colored text into the console. [[:plugins/index|Plugins]] are going to be default written to expect red text, so if you modify this color, your [[:plugins/index|plugins]] output may not look as expected. This setting will let you change the color of the consoles text, but take note that setting it to a light color may make it hard to read. The format is **console_color alpha red green blue** * Default: \\ console_color 255 255 0 0 * Example: \\ console_color 255 0 255 0 Green console text color! ==== Console appearence time ==== You may change how long your console appears on screen when it pops up from various plugin or scripting results by modifying **console_fadedelay**. This time is in MILLISECONDS not seconds, so 3500 is 31/2 seconds. * Default: \\ console_fadedelay 3500 * Example: \\ console_fadedelay 1000 Make the console only show for 1 second. ==== Ambient Lighting ==== A nice feature of windower is the ability to turn on an ambient lighting setting. This will give npc and pc models a lighted effect, hilighting them a bit more. A main reason for doing this is it makes the colors of the game pop out and show more, and you may also change the color of the light to make the colors of the models more vibrant too. There are 2 settings for this effect: **game_forceambientlight** and **game_ambientlight** * Default: \\ game_forceambientlight 0 game_ambientlight 255 120 120 120 * Example: \\ game_forceambientlight 1 game_ambientlight 255 130 120 150 Give models a more blueish color that makes them look better. ==== Changing Gamma ==== If you think the game's overall appearance is too dark, you may change the gamma by typing //gamma Changing this value in the init.txt makes sure that your preferred setting is used every time the game opens. So first login to the game and type //gamma xx where xx is a number until you find your preferred gamma setting. The default is 50. After you find the value you can then modify **game_gamma** * Default: \\ game_gamma 50 * Example: \\ game_gamma 55 Make the game brighter ==== Showing a FPS Counter ==== you will notice many windower screenshots have a red FPS marker showing in the top left corner that shows you how the games performance is running. You can turn this on and off by uncommenting the following line and changing as needed: * Default: \\ //showfps 1 * Example: \\ showfps 0 FPS counter off * Example: \\ showfps 1 FPS counter on ==== Adding/Removing auto loaded plugins === This can be done anywhere in the file actually, but its best to keep them all together in one spot. One quick suggestion i recommend EVERYONE does, is find this: //Load plugins -- Remove the // from plugins you want to have autoloaded Right below it, before ANY of the %%//%%load commands add the following: **wait 5** Windower likes to crash if you load too many plugins in the [[:scripting/init.txt|init.txt]] without a delay, so add a delay to ensure proper loading of plugins. Some plugins also like to malfunction and not load properly if loaded without a delay. You may add any plugin EXCEPT [[:plugins:expwatch|ExpWatch]] (([[:plugins:ExpWatch|ExpWatch]] is currently bugged and will crash your game if it is loaded before logging into the game. Use the [[:plugins:AutoExec|AutoExec]] Plugin to auto load [[:plugins:ExpWatch|ExpWatch]] here to be auto loaded.)) * Default: \\ //Load plugins -- Remove the // from plugins you want to have autoloaded load TParty load Distance load ConsoleBG .consolebg position 15 50 load Recast load LL load Timestamp //load Silence * Example: \\ //Load plugins -- Remove the // from plugins you want to have autoloaded load TParty load Distance //load ConsoleBG //.consolebg position 15 50 load Recast load LL load Timestamp load Silence load AutoExec //instruct AutoExec to load ExpWatch upon login. autoexec registeronce login load expwatch load SpellCast load Run load CFHProtect load IME load Logger load WinControl //load Silence Autoload Silence, AutoExec, SpellCast, Run, CFHProtect, IME, Logger and WinControl, and have ExpWatch set to auto load upon game login. Also removing ConsoleBG from autoloading. ==== Default Key Bindings ==== Near the end of the file you will find key bindings for a few functions. You may add and remove binds here. * Default: \\ bind f11 game_forceambientlight bind f12 showfps bind sysrq screenshot png bind ^v paste * Example: \\ bind f11 game_forceambientlight bind f12 toggle distance bind sysrq screenshot png hide bind ^v paste Change the default F12 binding to toggle the Distance plugin instead, and add **hide** to the screenshot bind so that plugin text is hidden. ==== Hiding Plugins in Screenshots ==== This is sort of a repeat of the above tip, but specifically stating this 1 change as a tip so it will be more noticed. If you do not want your screenshots to include all of the windower overlays (plugin text) then you can simply change your **bind sysrq** command * Default: \\ bind sysrq screenshot png * Example: \\ bind sysrq screenshot png hide Hide Windower overlays on screenshots. ===== Guide Discussion ===== ~~DISCUSSION:open|Comments on my guide~~