Difference between revisions of "Client en Bois"

From EncyclopAtys

Jump to: navigation, search
(Created page with ''''CeB''' or '''Client en Bois''' is a <Mtp> chat client written using C++ and Qt4. It ultimately replaced Klients as the inter…')
 
Line 4: Line 4:
  
 
= Features =
 
= Features =
 +
Below is a list of a few of the main features:
 +
* Support of Ryzom chat support servers
 +
* Multi-servers managing
 +
* Multilingual
 +
* Tabs for tell, wall, who, etc
 +
* Support of Lua scripting
 +
* Search feature
 +
* Logs
 +
* Nicknames completion
 +
* Auto-connections
 +
* "About me" popups (Warningo)
 +
* Tray icon (with activity warning)
 +
* Auto-away and auto-leave
 +
* Keep-Alive
  
 
= Access from within Ryzom =
 
= Access from within Ryzom =
Line 14: Line 28:
  
 
== calc ==
 
== calc ==
This pretty much makes CeB a calculator. Basic calculations can be done with this filter applied as well as many more complex ones.
+
This filter allows one to do calculations in CeB as well as use certain special '''os''' functions. Basic calculations as well as many more complex ones can be done with this filter applied, it should be noted though that this filter makes heavy use of Lua math library for more complex calculations.
  
For a full list of Lua math functions see the [http://lua-users.org/wiki/MathLibraryTutorial Lua Math Library].
+
Below is a list of more commonly used functions and operators, for a full list of Lua math functions see the [http://lua-users.org/wiki/MathLibraryTutorial Lua Math Library] and for a full list of Lua os functions see the [http://lua-users.org/wiki/OsLibraryTutorial Lua Os Library].
  
 
=== Operators ===
 
=== Operators ===
Line 30: Line 44:
 
* '''math.tan(<font color="#0000FF"><operand></font>)''' ''Outputs the tangent value of the operand''
 
* '''math.tan(<font color="#0000FF"><operand></font>)''' ''Outputs the tangent value of the operand''
  
'''Note:''' The output of these function are in radians, to convert it to degrees make use of '''math.deg(<font color="#0000FF"><operand></font>)'''.
+
'''Note:''' The output of these functions are in radians, to convert it to degrees make use of '''math.deg(<font color="#0000FF"><operand></font>)'''
 +
 
 +
=== Os ===
 +
* '''os.clock()''' ''Returns CPU time since Lua started''
 +
* '''os.exit()''' ''Terminates the host program''
 +
* '''os.getenv("<font color="#33BB33"><variable></font>")''' ''Returns the value of the process environment variable <variable>, or nil if the variable is not defined''
 +
* '''os.time()''' ''Displays time in system seconds''
  
 
=== Other ===
 
=== Other ===
Line 45: Line 65:
  
 
= See also =
 
= See also =
 +
* [http://code.google.com/p/cebmtpchat/ CeB Project Home]
 
* [[Klients]]
 
* [[Klients]]
  
 
= References =
 
= References =
 
<references/>
 
<references/>

Revision as of 15:44, 1 July 2010

CeB or Client en Bois is a <Mtp> chat client written using C++ and Qt4. It ultimately replaced Klients as the interface for accessing the support chat for Ryzom.

Development

Features

Below is a list of a few of the main features:

  • Support of Ryzom chat support servers
  • Multi-servers managing
  • Multilingual
  • Tabs for tell, wall, who, etc
  • Support of Lua scripting
  • Search feature
  • Logs
  • Nicknames completion
  • Auto-connections
  • "About me" popups (Warningo)
  • Tray icon (with activity warning)
  • Auto-away and auto-leave
  • Keep-Alive

Access from within Ryzom

Chat commands

There are a wide variety of chat commands available

Filters

This feature of CeB makes it possible to apply a "filter" to what you type. Only certain things can go through the filter and this will have a certain output, depending on the filter applied naturally. Those familiar with Lua should have no problem making use of filters.

calc

This filter allows one to do calculations in CeB as well as use certain special os functions. Basic calculations as well as many more complex ones can be done with this filter applied, it should be noted though that this filter makes heavy use of Lua math library for more complex calculations.

Below is a list of more commonly used functions and operators, for a full list of Lua math functions see the Lua Math Library and for a full list of Lua os functions see the Lua Os Library.

Operators

  • + for addition
  • for subtraction
  • * for multiplication
  • / for division
  • ^ for exponents (eg. 5^3 ≡ 53)

Trigonometry

  • math.sin(<operand>) Outputs the sine value of the operand
  • math.cos(<operand>) Outputs the cosine value of the operand
  • math.tan(<operand>) Outputs the tangent value of the operand

Note: The output of these functions are in radians, to convert it to degrees make use of math.deg(<operand>)

Os

  • os.clock() Returns CPU time since Lua started
  • os.exit() Terminates the host program
  • os.getenv("<variable>") Returns the value of the process environment variable <variable>, or nil if the variable is not defined
  • os.time() Displays time in system seconds

Other

  • math.pi Outputs the value of π
  • math.random() Outputs a random value between zero and one
    • math.random(<parameter>) Outputs a random value between zero and the given parameter
    • math.random(<parameter>,<parameter>) Outputs a random value between the first parameter and the second parameter
  • math.floor(<operand>) Rounds the value of operand down to the nearest integer
  • math.ceil(<operand>) Rounds the value of operand up to the nearest integer

code

justify

See also

References