f Some value specifying the degree of avoidance. We start off with several variables and a constant:Ĭ The color. When a color is too close, it will be brightened until it's no longer close to the floor color or approaches white. See also Code hacks#Hardcoded teams.Īrmagetron has a mechanism that prevents colors from coming too close to the floor color. The leader in team naming/coloring context is the human who has been on his team for the longest time, or bot if there is none. Note that if at least 50% of all players on a team have "Name Team after Player" set (bots and the leader are an implicit no, but are not excluded), the team will be given the leader's color and name. It could be a separate value, and it is, but both its name and its value suggest it is a sum.įor your information, here is a table of the hardcoded team colors. O is the output color, B is the balancing constant, P is the player color and T is the team color. O R = (B RP R + B ST R) / (15B S + 15B R) O G = (B GP G + B ST G) / (15B S + 15B G) O B = (B BP B + B ST B) / (15B S + 15B B) It appears to be built around a balancing constant, an RGB triplet which specifies how much of the player's color is used instead of the team's. In a team game the short color is combined with the team color which is another short color. The float color is simply the short color divided by 15. FIXME: is this entirely true and what is the config item? I only have old code. That has been added mainly because overflows could result in drastic deviations from the team color. How that happens exactly depends on whether a team game is being played, but in both cases colors can be clamped to 0.15 beforehand. The short color is then converted to 32-bit IEEE 754 floating-point, where 0.1 is the normal range. I call this the short color after the short data type in C. There is no benefit to choosing a color outside of that range in the configuration item. When a color is absorbed from the configuration items and stored in a player it is truncated to three 16-bit unsigned integers with range 0.65535. Players have found that they can get multi-color walls that are brighter than the cycle by manually setting COLOR_ out of that range, using the console or by editing the configuration files. MCP, short for Master Control Program, is a complete multi-server management framework for Armagetron Advanced.Normally, when entered in the player setup menu, colors are RGB triplets in the range 0.15. MCP is a complete package that will manage multiple server daemons, provide an easy to use web interface, and provide a python based scripting library for Armagetron Advanced.įor more information see the forum post here. It was created out of a frustration with poorly written and unintuitive Armagetron server managers none of which provided a nice web interface. Most seemed to be quickly hacked up projects just to get something working and used bad or insecure techniques. This project solves these problems in a simple Python daemon that serves a RESTful HTTP API and a set of web pages that use it for control.
0 Comments
Leave a Reply. |