Windower v4 (Alpha)
Important information
This document is a work in progress! There's incomplete information as well as information that may be subject to change. I also appologize for the horrible formatting in advance as bbode ate all my nice formatting.
THERE ARE NO PLUGINS IN THIS RELEASE. v3 Plugins will NOT work with v4! This release is only intended for people who want a first look at v4 or if v3 does not work for them. Please do not post that plugins are not working or the post will be removed.
v4 will connect to the internet to check for updates so please lease keep this in mind if you see an outgoing connection. There is no data sent other than what is required to download the version check xml.
Download: Windower v4Features:
- Re-written code base with an emphasis on stability and compatability.
- Works on x86 and x64 machines.
- Works on XP, Vista and Windows 7.
- lua script support with integration in to the Windower system.
- CEGUI user interface integration.
- Accessible from lua script including event callbacks.
- Easily declare user interface using XML.
- Install and update plugins and the core Windower from the launcher.
- Backwards compatability for most v3+ features such as aliases and binds.
Requirements:
- .NET 3.5 framework
Usage
Common tasks:
Binding keys:
The existing v3 syntax works for console commands that allows binding commands to a specified key. You can use modifier keys to combine shift/ctrl/alt/windows/application keys with the bind key for any number of variations.From the console:...From script:To bind insert to the console command "somecommand": Bind(Key.Insert, nil, "somecommand");To bind shift+insert to the console command "somecommand": Bind(Key.Insert, Key.Shift, "somecommand");To bind insert to the lua function SomeCallback:function SomeCallback()endBind(Key.Insert, nil, SomeCallback);Aliases:
From the console:Making "foo" an alias for "bar": alias foo barMaking "foo" an alias for a complex command: alias foo "bar; wait 4000; baz"From script:Making "foo" an alias for "bar": Alias("foo", "bar");Making "foo" an alias for a complex command: Alias("foo", "bar; wait 4000; baz");Making "foo" an alias to the lua function SomeCallback:function SomeCallback()endAlias("foo", SomeCallback);Using lua:
Script files:
When the Windower is started up a default lua file is loaded which can be used to bootstrap loading any number of other files. The default.lua file found in the Windower folder is the script file used for this purpose and it sets up a number of subsystems and commands such as binds, aliases, the console and many utility functions. The default.lua file also contains some user settings such as the console key which can be modified.Running scripts
On load:The simplest way to load a new script file on startup is to use require("file") where file is a .lua file located in the windower lua_scripts folder. Using the require syntax will guarantee that the file is only loaded and executed once.From the console:To load a script file once the game is running it's simple to load a script from the console command line using the loadscript command. You can useTo load and run C:\scripts\file.lua: loadscript "C:\\scripts\\file.lua"It's also useful to run just a piece of script that you might want to embed in to a command. You can use the runscript command to do this.To print "Some text" 10 times to the console: runscript "for i=1, 10 do Log('Some text'); end" Using CEGUI:
...Command list:
...
- Works on x86 and x64 machines.
- Works on XP, Vista and Windows 7.
- Accessible from lua script including event callbacks.
- Easily declare user interface using XML.


Help


Back to top
MultiQuote








