KING ARTHUR'S GOLD

The goal of the game is to build castles and destroy your enemies.
Or something like that. Hope you like it!

FEATURES:

- 64+ people multiplayer
- 3 classes (knight, archer, builder)
- build castles and mine resources
- pixel-art retro style
- old SNES game King Arthur's World inspiration

This game is currently in alpha stage. This is what is planned in next releases.
UPCOMING...

- boulder
- rams
- traps
- reinforced walls
- fire
- siege machines

Gamemodes:

- siege gamemode (1 team defends the other attacks)
- conquest gamemode (teams fight over control points on the map)
- zombie survival (1 team tries to survive a horde of zombies)
- heroes mode (a team builds a giant castle and hides treasure, every now and then upto 3 players join as heroes and try to steal the treasure)

DEFAULT KEYS:

	[A]/[D] move left/right
	[W] jump/up ladder
	[S] down ladder
	[F] block menu / bomb
	[E] use menu
	[C] pickup / drop menu
	[Q] emoticons menu
	[V] taunts menu
	[SCROLL+] zoom in
	[SCROLL-] zoom out
	[BACKSPACE] misc menu (suicide, change team, change head/sex)
	[T/ENTER] chat
	[Y] team chat
	[1...0] emoticon hotkeys
	[F1] scorebaord
	[ESC] main menu
	[F4] save screenshot to Screenshots folder	
	[F2/F3] unfreeze/freeze player - admin option

DEDICATED SERVER:

If you want to host your own server just run from your KAG directory:
dedicatedserver.bat on Windows
dedicatedserver.sh on Linux

The default port on which the server works is 50301. Be sure to forward this port on your firewall.

On Linux:
Set executable permissions:
 chmod +x KAG
 chmod +x dedicatedserver.sh
Iif the executable updates, you might need to rename the updated file and set executable permissions again. Like this:
mv KAG.tmp KAG
chmod +x KAG

Configure your server with these config files:

"Base/Scripts/dedicated_autoconfig.gm"

Some parameters worth considering:
m_width = 290; - map width in tiles
m_height = 110; - map height
m_seed = 0; - map random seed
sv_maxplayers = 32;
sv_ip = `0`; - assign a specific IP port or leave 0
sv_port = 50301; - port on which the server listens
sv_rconpassword = ``; - rcon password for remote admin
sv_name = `KAG Server`; - the name of your server
sv_info = `I like Cheese`; - info description which appears in the servers list

"Base/Scripts/dedicated_autostart.gm"

In this file you can specify what map loads on start. To load a specific map use this command:
LoadMap( "Maps/autosave.png" );
To generate a random map use this command:
LoadMap( "" );

*Remote administration*

Make sure you set the rcon password in dedicated_autoconfig.gm (sv_rconpassword).
Open the client, join your server and open the console (HOME key).
Type "\rcon password". If you login succesfully, you can now use the console as if you are on the machine,
using the prefix "\rcon". Example: "\rcon \loadmap autosave".

Server commands:
\list - list all commands and variables
\kick [playername] [minutes]
\kickid [id] [minutes]
\kickhost [host] [minutes] - kicks and/or bans host (host number can be found in logs when player joins)
\unbanhost [host] \unban; \unbanhost; \unbanhid commands
\swapid [player id] - swaps the players team
\players
\restartmap
\loadmap [name]
\savemap [name]
\msg [text]
\rcon [password]
addBotX - addBotX( team, class, name ); eg. addBotX( 1, 0, `St. John` );

Command line:
start server with specific ip,port,slots eg.
./KAG ip 203.0.113.35 port 50213 slots 32 nolauncher autostart Scripts/dedicated_autostart.gm autoconfig Scripts/dedicated_autoconfig.gm

AUTHORS:

Transhuman Design 2011-12

Code & design by Michal Marcinkowski "MM"
devlog: http://kagdev.tumblr.com
(personal blog http://mm.soldat.pl)

Graphics & design by Max Cahill "Geti"
(http://www.1bardesign.com/)

Music by David Pencil
(http://www.davidpencil.com)

Website & accounts by jrgp (formerly by Gabriel Garcia "Garciat")

Manual by SirSalami

Support by Furai and Shadlington

Rest of the staff at: http://thd.vg/people


CHANGELOG:

* build 415

- new games rules FullCTF
- added generator_ctf_lake.cfg, generator_ctf_twolakes.cfg
- added water (gold servers only - sv_gold_only 1 in config)
- added Aim Mode (zoom out button [MOUSE SCROLL])
- moved HUD hearts to above players head
- materials actually spawn at tent on game start
- added temporary workshop build item spam prevention
- increased min_shieldbash_horiz_vel slightly
- fixed pink pixels on collapsing wood from world.png
- reduced vertical speed limit when slashing to prevent getting stunned because of it.
- made it so that shield-bashing counts as your kill
- shieldbash tweaks from testing
- fixed bridge castle back support bug
- added wood_warmup, stone_warmup, gold_warmup, arrows_warmup, bombs_warmup to team - sets materials at tent on start
- added weapon_clash variable to gamemode.cfg
- synced egg health over net
- getting out of catapult boosts fixed
- fixed cata not destroying wood
- fixed spikes hanging after collapse on client
- removed mat pickup sound if smaller than 10
- shield bash sound plays only at higher velocity than bash
- stomp stun doesn't happen for team mates
- throwing objects more smooth on network
- added decay to materials, after 30 seconds
- added static material count to CTF
- if workshop has bomb to build and upgrade - tapping [E] will make bomb
- added upgradable rooms to FullCTF
- removed cata from FullCTF to prevent base camping while there aren't boats
- added stone_amount and related vars to team configs for on-start mats
- materials.png tweak for bombs
- added generator_ctf_twolakes.cfg
- arrows skip on water
- fixed materials dropping during break
- fixed picking up invisible other team heart
- fixed FullCTF folder in team1.cfg
- fixed splash when throwing out something picked up from water
- fixed material wrapping to 65k
- fixed mats given on tent when warmup amount = 0
- added tunnels to FullCTF
- added armoury/archer range, made tunnel more expensive
- fixed some server-side commands possible to launch on client
- edited help texts in workshops
- increased arrow draw time and made sound reflect it
- added show/hide hud tutorial text

* hotfix
- tweaked some stray pixels in heads
- zombie knight AI improvements
- slightly faster zombie spawning
- fixed jumping on zombie heads
- zombies can squeeze through 1 block notches

* build 396
- altered behavior of zombies passing through walls
- fixed /loadmap and /savemap not working for configs and doubling the .kag on already specified files
- added list of players to the stats.txt output

* build 394

- u_shownames now uses new player name style instead of big stupid one 
- spectators with u_shownames see all player names 
- spectators now see unit counters 
- Fixed single character player names no longer crash the server (and are therefore allowed) (#327) 
- Fixed full name not showing on linux/mac when someone changes teams (#151) 
- Fixed username is not cased correctly after successful authentication. (#237) - dropped the materials counter delay 
- the blinks still take a while to go away but the counter is always up to date 
- Fixed broken Connect To.... (#148 and #1) 
- Fixed Looks like red builder is going to build blue tiles (#254) 
- Fixed breaking a shop that is on background tile doesn't give mats (#253) 
- Fixed setting high duration results in ban for 0 seconds (#266) 
- large bans (longer than 2 years) and bans with -1 time now result in permbans. 
- Added expiry time to listbans 
- Made bans case-insensitive
- Fixed - Archers deal massive damage to team catapults (#271) 
- really fixed trap door+back wall = free money (removed hack) (#198) 
- Fixed lost stone on removing trapbridge on background (#258)
- Fixed GOALTICKS independent ticktime mod operation in director.cpp 
- Fixed Knights attack catapults when they use it (#81)
- Fixed various potential server crashes while fixing (#327) 
- Various tweaks that may fix small bugs/instability - fixed 
- KAG crash when closing KAG with server browser open (#333) 
- addressed chat box/minibox background hardcoded, now takes center pixel colour. (#157) 
- Fixed the listPlayers() script 
- fixed abusable bug where spectators can block map start (#305) 
- fixed more meaningful autoupdate failure messages for libcurl (#306) 
- fixed the launcher menu text for the various sites sucked and fixed some of the URLs 
- fixed can repair trap bridges with backwall (#205) 
- fixed can repair other team's door to be your own (only works blue->red) (#76) 
- fixed about 3 related bugs/exploits 
- fixed can't slash shielded target sometimes (#276) 
- fixed jumping on someone and slashing hurts you (#309) 
- stomping does less damage to the stomper 
- Fixed quarters don't heal when there's less than 0.5 hearts to heal (#353) 
- fixed door breaking/fixing (#204)
- updates to how paper rendering works 
- Fixed catapults dont hurt backwall enough, though haven't done bridges etc yet (likely related to arrows) (#331) 
- Lowered chat spam timer and inserted anti-spam message if you exceed it rather than failing silently 
- Added sandbox room and tweaked sandbox to include it 
- sandbox now has free items and shops.
- fixed server segfault due to API error conditions 
- fixed quarters light not acting like a light 
- fixed chests giving light by default 
- bomb in zf costs 10 coins (was 20) 
- more probability of zombie having coin 
- disconnect issue should be fixed, please playtest for a while and see
- fixed client-side light in blob 
- added constructor to APIPlayer, too much non-initialized vars bugs 
- fixed free full version access 
- bots attack dead zombies 
- removed buildnum from launcher caption to avoid confusion 
- collapse anti-grief doesn't work for outposts 
- fixed charged arrows dealing no damage when shot through bridge (#321) 
- fixed knights don't stop when ordered to go to zombies 
- destroying castle blocks in zf doesn't remove coins 
- bots try to jump over kegs
- fixed bots not following orders when faced with zombies 
- fixed throwing kegs into walls
- removed "buying" zombies from Portal 

* build 371 (24/April/2012)

- re-disabled jab stun as default in Rules
- changed freq of slide sounds
- added sv_fastdeltas flag (1 means less CPU intensive but more bandwidth intensive)
- fixed full servers not showing map preview
- fixed fall damage screaming happening at wrong time
- fixed bump sound when climbing steps
- fixed too loud sounds issues
- fixed big bounce from shield
- made bash damage dependent on air time to avoid gibbing against wall

* build 370 (23/April/2012)

- fixed builders pick up catapult stone in mid air (#250)
- add per-gamemode modding of archer variables
- fixed crash where lightmap was null
- fixed some hud readout bugs (thick stone)
- fixed some issues with #164's fix and tree chopping
- fixed trees heal when reaching the bottom of the trunk (#164)
- fixed crash in menu when no player exists
- backspace menu when not playing game is the same as when playing game
- Added previous bitstream compatibility through  *force_bool methods
- fixed zombie mode order crash
- fixed no spawn as zombie when changed team to red
- fixed disconnecting from server when launched server browser
- singleplayer gamemodes get paused when in ESC menu
- fixed crash after launching zombie mode after deathmatch mode
- zombie/migrant bodies collide in air with players and hurt them
- added sound when zombies fall or hit walls
- added random pitch variation for most sounds
- added resource drop amount on hud
- fixed migrant-player colliding
- fixed big particles not spawned when in solid block
- tweaked zombie network syncing
- added spectator mode
- fixed bot archers not shooting arrows
- fixed wraith explosion on net
- fixed wall hugging on ladder
- added "killed by zombie message"
- builder only stays close to buddy and defends himself from zombies
- synced migrant bubbles on net
- creative/Sandbox servers are also add to beginner servers now
- fixed disconnecting player message
- fixed crash when closed ingame browser at a wrong time
- fixed zoom out from editor affecting other games (246)
- fixed arrows going through walls (125)
- workshop blocks cost 2 wood now
- all CTF workshops cost 50 wood (no stone required) (+30 gold siege workshop)
- migrants now say hello on network
- backwall on spikes gives materials resolved (#208)
- moved body throw offset a bit to avoid self collision
- archer can't hurt others when stomping
- fixed shield adding velocity on ground
- made inventory counters 50x more awesome (and they read the correct numbers for more cases too)
- fixed coins from frozen players
- dropped amount of coins from shooting catas (IRC request)
- fixed custom heads for non-admins
- made guard hat only apply to builder head and class default head
- added custom head check in player (checks if name matches a custom head player or if is guard or admin)
- added class modding to CTF rules
- bound runner variables to rules
- added falldamage vars to rules config (-> balancing ahoy)
- fixed crash in starter caused by autoupdate not initialised
- nerfed sheild push to help with desync and wall damage
- fixed wall sliding + fixed notch jumping (related)
- added server_setup_info.txt and readme.txt
- modified readme.txt and server_setup_info.txt for nicer formatting
- added stats format info to server_setup_info.txt
- added /listbans function to list all currently active bans
- fixed bug in bans (time was in seconds not minutes)
- made bans more user friendly with their output
- stats updated to more easily parsable format
- fixed typo in tutorial (#197)

* build 360 (13/April/2012)

- fixed shield jump not working
- fixed coins from destroying bodies
- fixed builder not being able to pickup rubble
- fixed bodies not affecting playerpos (too much bugs)
- fixed admin/guard heads
- fixed colon typing on Mac (0000143)

* build 359 (12/April/2012)

- fixed linux and mac "Connect to..." not working [0000001]
- fixed player lag issue
- fixed loud sound glitch on Mac and Linux
- fixed permastun when fallen on somebody
- new body pickup icon
- added slight bump for players colliding in air to avoid dancing on head
- fixed building castle wall over trap bridge giving coins (0000198)
- added "report bugs" links to bug tracker in game launcher
- fixed manual link in game launcher
- fixed destroyed bridge turning to blue team and giving coin (0000229)
- fixed large ban number crash (0000227)
- updated all sprites to be arranged horizontally
- added a bounce on wall damage to prevent instant kill
- disabled gliding while bomb jumping/catapulting to balance horizontal power
- added a frame to knights for bomb jumping/catapulting
- made bomb knockback on standing targets smaller
- fixed flying into walls kills you (0000220)
- too high ping ban time lowered to 5 mins
- move n_Graph to the left
- if player not rcon and does rcon command it gets sent to guards as [RCON (name)] (trying to login...)
- fixed gaining stone on repairing last castle block destruction block
- added sanity check for autoupdater to prevent downloading html error msgs
- fixed outposts: the perfect griefing tool (0000078)
- fixed archer can pick up rubble rocks as arrows
- fixed guard cannot be kicked by rcon
- fixed shield stomp completely destroying

* build 354 (4/April/2012)

- can carry corpses
- corpses are gibbable
- corpses hurt others when thrown
- if there are lots of objects on the ground closest one will be picked up on tap [C]
- fixed not being able to get out of catapult (use [E])
- quick tap [E] on catapult does most obvious action (in order of priority: put item, load stone, mount yourself)
- you can enter catapult firemode just by pressing fire on catapult
- you can now use bubbles, taunts, light bombs and fire stuff while in catapult
- fixed not being able to get in catapult while holding something
- fixed disconnected payer IP in console showing as number
- fixed female heads invisible
- tweaked carry positions for objects
- fixed throwing issues
- catapult and outpost have more mass
- made keg collision circle smaller
- names in scoreboard have a shadow for better visibility
- only names are role colored
- fixed buttons clickable under full version banner
- added player left message on server
- collapse messages are sent to guards
- guards and admins get info on rcon commands
- fixed map border visibility
- fixed server message on vote kick spam
- fixed console crash
- fixed catapult taking stone when firing dude
- more descriptive catapult usage help
- hitting wall at large velocity takes health
- boulder doesnt hurt team players now
- corpses in air collide and hurt players
- both people that collide with each other are knocked out and hurt
- fixed out of screen corpses sent through network
- fixed +/- keys voting on Mac
- auth API fixes
- throw arrow appears on all objects

* build 349 (1/April/2012)

Who's Greg?

* build 346 (29/March/2012)

- fixed crash on death message
- fixed full version banner dissapearing too fast
- fixed player names not appearing above heads for normal players
- fixed server crash on ban
- fixed auto-picking materials
- fixed timestamp number padding
- fixed vote kicks not banning

* build 345 (28/March/2012)

- authentication system now uses KAG API (https://wiki.kag2d.com/wiki/API_Overview)
- fixed duplicate IP preventing from LAN play
- user roles separated (admin, guard, tester)
- added new default gamemode Rapid Team Deathmatch
- added default "Beginner" server filter
- default chat key is [T] or [ENTER]
- team chat is launched with [Y]
- vote keys on Mac OSX are [+] and [-]
- strings are loaded from .irrst files located in Base/StringTables
- fixed barrier dissapearing on client when match not started
- added random Lance bot to addBot command
- error message for duplicate master login
- fixed securitysetup using username instead of name
- fixed builder killing with hammer msg
- fixed couple of crash reasons
- fixed network clantag exploit
- fixed net logging of IPs
- added serverMessage("message"); console/script command
- boulder multiplayer crash fixed
- fixed network connection memory leak
- added no GUI mode (F6)
- fixed squeezing
- fixed server console "CAN'T PICK' spamming
- removed console "banned client trying to connect" msg
- ESCAPE also closes scoreboard
- added "Open external browser" button to awesomium browser
- server has chat texts logged in console
- random chests and lanterns are specified in the generator file
- all disconnection messages appear in popups
- fixed lantern and kegs in non-gold servers
- fixed launcher graphic flickering
- fixed connection messages error and returning to menu
- admins are now red in scoreboard
- fixed spikes spawning dummy blocks
- Ban system overhaul (\unban)
        unban works via username
        bans stored in securitysetup.cfg        
        ban player needs to take username param
- removed hwid related ban stuff
- removed bans on kick
- guards and admins can always see player labels on hover
- when someone marks for vote kicks server announces it
- fixed wrong rooms appearings in mods
- game launches from menu only after succesful connect
- fixed bad delta msgs on server on player join

* build 319 (2/March/2012)

Zombie Fortress release
changelog was not kept

- fixed "reason 5" players ban
- fixed "COLLAPSED BY" console spam
- fixed giant holes in mountain maps
- fixed server browser crash after closing password box
- fixed server browser password box letters visible
- fixed / not working with autocomplete in console
- fixed some collision bugs
- ladder/tree climbing animation uses walk animation
- clients from server browser connect through sv_ip variable if specifed
- fixed dedicated_server.sh being in DOS format
- fixed unit counter not appearing on first join
- remove drop platform HUD arrow
- removed adding 10 coins for placing gold bulion

* build 265 (6/January/2012)

- fixed native resolution in fullscreen broken
- fixed map collisions (not climbing, corner jumping etc.)
- chat console is disabled if no players
- unit counters changed to minimalistic numbers
- chat moved to top
- gamemode descriptions support line break (new CTF description)
- chat box position, transparency improvements
- chat box only displays under 140 chars
- fixed help texts not appearing during build time
- fixed not being able to build sometimes at some spots
- fixed buying bomb by spamming with left over coins
- fixed massive gold appearing under tent in older generator scripts
- fixed hole in map generator causing tower
- added flat map with hole in middle to deafult map cycle
- fixed 2 players from the same IP being authenticated wrong on master server
- Mac: fixed space appearing after pressing shift in chat

* build 263 (5/January/2012)

- fixed kick and swap menus not scrolling
- arrows don't stick to shields
- fixed unpredictable bomb throwing on high ping
- fixed unit_count=0 in gamemode.cfg (one life for all)
- fixed warmup counter display
- fixed quarters not healing if something in front of it

* build 262 (5/January/2012)

- new Swordfight map
- fixed some collision bugs
- fixed tents spawning underground
- map format changed to .KAG
- \loadmap \savemap - loads\saves .KAG files
- \loadbitmap NAME - loads PNG map format from Maps/
- packet compression is back on
- arrows stick to bodies
- fixed rules time counter and display
- changed to larger font for catapult health and blocks menu resources display
- builder rectangle cursor doesn't appear if not buildable and not diggable
- fixed ping times in server browser
- fixed favorites in server browser
- fixed server browser password prompt display
- fixed sort types list box
- fixed most bottom blocks on map indestructible bug
- added speedhack detection and prevention
- units are decreased on spawn not death
- Mac: fixed ingame web browser
- Mac: fixed screen options not saving
- Mac: changed team chat switch to Ctrl
- Mac: improve graphic performance on
- Mac: fixed game crashing when window larger than desktop
- fixed authentication mix up when two players from same host connect
- improved network code - slightly lower pings
- added server check for knight slashing
- slash takes 5% longer
- sv_compression variable works again
- fixed throw sound being played if trying to drop materials during warmup
- fixed client crash on map restart
- fixed trying to connect to full server
- units aren't decreased in build time
- added \nextmap command (\restartmap works as it should now)
- Mac: fixed clipboard pasting Cmd+V
- Mac: fixed mouse button / shield problem
- fixed head config hack
- fixed bomb killing teammates
- improved offscreen objects netcode
- autoupdate can be canceled with ESC
- new linux dedicated executable works w/o batch file "./KAGdedi"

* build 228 (3/December/2011)

- added pre-game launcher
- added (windows only for now) ingame web browser with links to:
  (manual, wiki, IRC chat, creating account)
- added server favorites
- added in-game Manual by SirSalami
- removed player name mouse hover chat
- clicked server in server browser updates ping meter icon
- improved first ping performance in server browser
- added double click join to server browser
- added building time/match started information in server preview
- added menu music
- changed collapse physics
- fixed ambient sounds
- fixed screenshot folder on Linux
- fixed crash in editor mode when jumping on bridge
- fixed builder can't pick 3rd heart
- fixed door pick sound being wood
- builder has to stand still to build
- autoupdater does not require restart
- changed collapse physics
- console accepts \ and / for commands
- bridge takes 20 wood
- bridges and ladders can't be built only against dirt background
- optimized all game object collisions
- icons in scoreboard are double size
- class icons point in same direction and builder is distinguished from sword more
- can't shield against falling blocks
- can't destroy rooms after match has started (anti-griefing)
- fixed far view on fixed camera for lower resolutions
- added disclaimer after server startup for sv_allow_globals_mods variable
- rooms require 5 hits to destroy
- changed some HUD fonts (including above head chat)
- added command-line option to start server with specific ip,port,slots eg.
  ip 123.124.125.126 port 50213 slots 32
- added break_time_static for a build time that doesn't change with number of players

* build 203 (7/November/2011)

- added server name and address in scoreboard
- added class icons next to player names
- sword strike knockback is half power
- removed semi-stun from hit
- clash doesn't work on slash
- less stun on fall
- game is not rendered after alt+tab
- unit_count can use floating point variables
- unit_count = 0 - no respawns; unit_count = -1 - unlimited respawns
- added \sv_deltacompression variable (set to 0 in dedicated_autoconfig.gm to improve performance at the cost of bandwidth)
- \sv_compression temporarily disabled (always true)
- limited CPU usage

* build 200 (5/November/2011)

- added female characters (player customization) ([BACKSPACE] in-game)
- added head customizations ([BACKSPACE] in-game)
- Misc menu (backspace) doesn't require to hold key
- bridges are now two-way platforms (drop from them with down key [S])
- arrows go through bridges
- removed Advanced Movement tutorial
- fixed arched not falling from top tree
- all objects now fall through bottom of map (flag respawns after falling there)
- increased pick radius of pie menus
- pie menu items are also selected with left mouse click
- fixed collapsed blocks not disappearing at the bottom of the map
- fixed not being able to build castle background over spikes
- fixed spiked castle background not giving support
- catapult fire progress is always displayed when in fire mode
- fixed catapult not changing team on fire
- fixed shield ladder not working on ladders
- removed "test" name above head
- tweaked bomb throwing
- added throw direction arrow on HUD
- fixed bomb wall bounces
- fixes in fast moving player/map collision
- optimized map collision code
- misc menu (BACKSPACE) doesn't require holding the key
- fixed bridge open/close glitch
- rcon commands are logged in console ([RCON FROM PLAYER_NAME])
- admin/guard : [F3] key freezes [F2] key unfreezes player
- added "COLLAPSE by PLAYER_NAME" in console log
- can't switch to team with units depleted
- removed tutorial box and emoticons from tutorial display
- fixed joining game errors
- added fixed camera on/off option in main menu (Player tab)
- lowered bomb jump velocity
- bridges can be built on dirt background
- removed material dropping when overloaded
- hovering mouse on player and pressing chat adds his name to chat (works for chat menu too)
- tweaked jumping
- help UI improvements
- disabled game music (temporary)
- 30% of fallen coins is lost on death
- near spawn respawn multiplier multiplies half the time for outpost
- HUD doesn't fade out if typing in chat
- break time is now set based on a multiplier (players amount)
- unit counter is now set based on a multiplier (players amount)
- respawn counter can't go longer than number of players (in seconds)
- added 1 archer discharge frame
- fixed \loadmap [name] command - loads the map from the folder Maps/[name].png
- added sword blocks when hot other sword
- bomb sparks turn red when approaching explosion time
Combat:
- you lose charge on being hit
- fixed slash on team player
- fixed knight hitting after being hit
- fixes in knight double slashes
- can't hit or shield for 0.5s after being hit

* build 190 (25/October/2011)

* hotfix
- fixed autobalance issue
- fixed 3 heart archer
- fixed builder tutorial crash
- fixed outpost not being able to switch class

NEW CONTROLS AND PIE MENUS:
  [E] USE ITEM
  [F] BLOCK MENU
  [C] PICKUP /DROP
  [BACKSPACE] MISC MENU (CHANGE TEAM, SUICIDE)
  [V] CHATS
  [Q] EMOTICONS  
  
- added castle room: bomb workshop - for making bombs (press [E], costs coins)
- added castle room: arrows workshop
- added castle room: quarters - gradually heals you for coins
- added droppable coins
- added HUD resources blink when added/removed
- generated maps are mirrored by default (can be switched off in Rules/gamemode.cfg)
- CTF and Swordfight gamemode now have a default unit count limit
- map editor mode from menu uses Sandbox game rules
- mount bomb on catapult (light bomb with [F] and then put on catapult with menu [E])
- added shield down attack animation
- added "Quit Editor" main menu option
- added recent added/decreased resources display on HUD
- changed chat fonts to support european characters
- admin kick/swap menu is team sorted

Bugs:
- fixed knight shield not shielding teammates
- fixed not being able to connect to server after some time of server running
- fixed time limit game rules setting
- fixed unit count game rules setting
- fixed doors not closing near tent and other objects
- fixed bomb bounce sounds
- fixed bots not respawning after map change
- fixed timed out rcon/mod players not disconnecting
- fixed help texts smooth rendered
- chat with 1 letter can be sent now 

Gameplay/Balancing:
- bottom of map is a hole in which you die
- when team becomes unbalanced players with lowest score get switched
- each hit at dirt stone gives 2 stone; thick stone 5; gold 2
- archer doesn't draw arrow if no arrows
- bombs are stronger and have larger kill radius
- tents and outposts don't heal
- wood, stone, gold is automatically picked up only by builder; arrows by archer; bombs by knight
- fixed class selection on custom class rules
- removed arrow added to player resources when arrow hit player
- fast arrow knockback is smaller
- bomb isn't dropped on knock back
- only 50% of arrows drop drom dead archer
- bomb can destroy dropped arrows
- bombs can launch knight from ground (with shield; greater velocity achieved from air)
- added 5s immunity on tent after respawn
- increased stomp damage velocity

Archer:
- archers can climb trees
- archer has 3 firing options (indicated by cursor color): slow, normal and charged
- arrows are generally faster but have a lot more drag
- arrows damage is based on velocity (dragged/out of screen arrows are weaker)
- archer can cancel shot with [right mouse] click
- fixed arrows losing effectiveness when lobbying them
- archer stomp doesn't do damage
- archer charge cursor appears only after arrow is drawn
- fixed killed archer arrow not firing
- moved arrow origin 2 pixel higher

Knight:
- knight double slash only works when actually hit somebody
- knight shield up works more like a ladder
- knights can glide on shield up (shield parachute)
- fixes to shield collision
- less knockback on sword hits

Catapult:
- catapult fires more sideways
- catapult uses 5 stone per shot
- catapult loads much longer
- catapult against catapult is more powerful
- catapults don't regenerate
- catapult rocks have more gravity
- destroyed catapult drops half loaded stone
- the more vertical the catapult rocks the less damage they do

Builder:
- builder has 3 hearts
- builder can hurt knights

Tweaks:
- changed scoreboard colors
- object/workshop usage help texts are always shown
- blocks without required resources are not drawn in block menu
- outpost shows health on mouse hover
- items fall out with greater velocity on death
- bubbles on minimap show only for own team
- stance animation changed when carrying something
- knight shield is unlagged
- ladders can't be placed far horizontally (they don't drop now)
- all player names show when waiting for respawn
- changed player label colors
- menu and prompt bubbles don't show on minimap
- added spawn immunity blink indicator
- trees regrow slower
- added smoke on catapult rocks hit stone

Above head chat:
- above head chat messages background is transparent
- chat longer than 200 chars doesn't appear above head
- above head chat breaks into lines if long
- default above head chat color is white; team chat is team colored

Commands:
- added addBotX command	- addBotX( team, class, name ); eg. addBotX( 1, 0, "St. John" );
- added disable compression option sv_compression=0
- fixed \unban; \unbanhost; \unbanhid commands

* build 157 (22/September/2011)

- added "nocollapsing_nearspawn" variable to game rules file (CTF/gamemode.cfg)
- near spawn collapses prevention works for larger structures only (>15 blocks)
- fixed collapsing issues again
- fixed unbuildable spots bugs
- fixed crash reason
- fixed not being able to return to menu after disconnect
- knight image files height correction

* build 156 (21/September/2011)

- unlimited resources on warmup removed (get 250 stone and 100 in tent)
- fixed creative/sandbox mode resources
- when max resource limit reached item falls out
- fixed picking resource item when full
- added circle on player when freezed
- fixed flag scored when touched on flag carrier
- fixed unsupported resolutions in fullscreen
- fixed frozen players dying
- fixed server browser sorting
- sort selection in browser is saved
- teams open doors can't be destroy by team members
- fixed collapsing issues (floating blocks & not all blocks collapsing)
- fixed crash on start for old video cards
- fixed not being able to open servers browser after playing tutorial

* build 154 (19/September/2011)

- added "Basics & Building" tutorial
- added password prompt in server browser
- added moderator key [F3] to freeze a player
- fixed map tile desynchronization on game join
- fixed chat console not scrolling when joined game
- added infinite resources on warmup
- lowered amount of resources on round start (100 wood and stone)
- lowered amount of wood falling out of destroyed catapult or tent to 30
- builder automatically picks up stone and wood parts
- fixed castle background blocks requiring support
- fixed /kickid names display on Linux
- removed clantag brackets (default name separator is space; other chars can act as separator)
- cannot pull catapult while holding [F]
- fixed minimap dissapearing on death
- dedicated_autostart.cfg and mapcycle.cfg don't get autoupdated
- fixed server map preview memory leak

* build 151 (17/September/2011)

- new server browser
- server pinging
- server minimap preview
- optimized GUI rendering
- max server name length added
- server info limited to 144 chars
- client disconnects with message when trying to enter full server
- autoupdater reads another download URL if first one fails
- precache.txt doesn't update in autoupdater
- block cursor always shows for archer & knight
- knight can't destroy team open door
- knight can destroy castle background only with slash
- changed default team switch button to ALT

hotfix:

- fixed emoticon bubbles not working on other players
- fixed kill feed truncating names to 1 character
- fixed main menu disappearing on player death
- fixed server links authentication eg. kag://127.0.0.1:50301

* build 142 (8/September/2011)

- fixed crash after too many objects
- ladders and castle background need support when building horizontally
- bombs just damage dirt blocks instead of destroying

hotfix:

- fixed 4 crash reasons
- fixed blockmenu rendering on different resolutions
- fixed resupply not ending after time or drop

* build 137 (3/September/2011)

- added red screen blink on damage
- added camera shake effects (on explosion & collapsing)
- added kill messages
- set console var \cc_killfeed 1 for kills to appear in chat console
- falling or dying on spikes adds a kill for attacker that did that
- fixed sword killing through walls
- fixed ladder giving 3 wood instead of 2
- fixed minimap overlapping map vote
- added switch team chat console message
- fixed support algorithm lag on server
- added micro-gibs
- hud fades away completely on mouse near screen edge
- added full map by pressing M
- fixed minimap display on small maps
- stunned and dead players bounce off walls
- fixed corpses preventing doors from closing
- added droppable & pickable materials
- arrow that hit player adds stays in player's arrow supply
- added man catapult launching
- fixed catapult launching itself bug
- resupplying works only 15 seconds after spawn and stops working after drop or throw bomb
- catapults can be destroyed by own team
- destroyed catapults & outposts leave wood material
- added temporary health indicator for catapult & outpost
- more knock back on fast arrow
- more power on bomb knock back in air
- bombs have more radius of kill but make less block damage
- knight can carry max 3 bombs
- bombs explode from each other
- bomb explosion doesn't work through walls
- optimized network bandwidth
- tent resupplies automatically during warmup
- fixed console rendering under HUD
- fixed blocks falling when placed too fast
- fixed bot kick crash
- new knight & archer flash cursors
- changed name label font
- falling on someone causes damage; falling with shield 2x damage
- added falling on someone and hitting with shield sound
- flag is picked up automatically from ground
- fixed knock back network desync
- velocity push is stronger when throwing objects
- smaller small fall damage
- shield does not work on spikes
- fixed doors and bridges not working when open on join server
- bridge opens from below too
- fixed block menu resource text overlapping
- bodies block explosion from destroying wall
- arrow has 12 arrows on spawn and takes 1 arrow from tree
- change catapult loading key to DROP [C]
- server shuts down if can't create UDP port listener
- unused hearts can be picked up with [E]

* build 130 (27/August/2011)

- added "small hud" option (mainmenu -> Options -> Player )
- added knight charge cursor over head also
- changed archer charge cursor
- minimap is smaller
- HUD fade happens closer to screen edge; removed block menu fade
- fixed password saving issue
- fixed case sensitivity in master logins
- fixed some chat console color errors
- fixed chat console overlapping text
- disabled team bridge opening with up/down
- fixed playerslist staying scrolled after switching servers
- no resupply happens only if left a certain distance from spawn location

* build 129 (26/August/2011)

- new HUD cursors
- new HUD chat window
- new HUD resources & health bar
- new minimap window
- added dust animation on big fall
- minimap player icons indicate team color
- added minimap ground edge shading
- added variable "v_drawhud" useful to disable HUD when making screenshots or recording videos
- chat colors are team colored
- new team colored gibs
- castle back wall uses 2 stone
- message boxes replaced with graphics
- new menu buttons
- fixed menu inverting on smooth shader
- help texts only show up when toggled with F1
- added wall hugging to prevent fall damage
- fixed smaller fall damage not working
- fixed infinite resources from collapse prevention
- fixed tree stumps in front of players
- name labels above head use premium & admin colors

* build 127 (23/August/2011)

- fixed menu sound on Linux
- fixed constructions not giving support
- new anti-griefing method: automatic collapse prevention in radius around tent/outpost
- fixed infinite tree chopping
- fixed point frame dissapearing when chat text above head
- added scoreboard scrolling
- fixed bot kicking from console
- new server commands:
  \kickhost [host] [minutes] - kicks and/or bans host (host number can be found in logs when player joins)
  \unbanhost [host]
  \swapid [player id] - swaps the players team
- fixed ground background tiles
- mods can freely change teams
- fixed player-bomb force when on ground
- possibly fixed other team spawning on captured outpost

* build 126 (22/August/2011)

- fixed game crash 1
- fixed game crash 2
- fixed editor not working
- clouds don't render on "Less effects" option
- fixed doors not opening on ladders
- fixed bot kicking
- fixed player leave game message
- support required on very high constructions (near high map border)
- increased team unbalanced respawn time difference
- increased crouched hitbox
- fixed tents falling
- fixed tree stub not regrowing
- fixed weird block behaviour on trees
- fixed tree regrowing bugs
- fixed shadows appearing on trees
- added server variable "sv_deltapos_modifier" 
  (higher than 1.0 uses less bandwidth but game will be more laggy;
   less than 1.0 will use more but will be more accurate)

* build 124 (20/August/2011)

- bridges require support
- removed immunity on tent
- fixed premium ban spam on server
- Linux dedicated server performance version released
- Linux client version out

* build 123 (19/August/2011)

- only builder has ground sight
- new tree leaf sprites
- fixed leafs not appearing from non destructed trees
- new ground tile graphics
- gold blocks glitter
- added big dirt pieces fallout of dug ground
- fixed mapcycle maps loaded on load map in menu
- fixed floor in window castle tile
- door has floor if castle block underneath
- new castle background blocks look different in different context
- added castle top bricks ornamentation
- recoded tile rendering to use mesh buffers (much faster)
- fixed clantag bracket
- separated foreground from background map layer (trees, spikes, solid blocks etc. are drawn in front of players)
- added clouds
- HUD can now display names and health after death
- new minimap icons
- fixed minimap not appearing on zoomout
- fixed enemy outposts and flags not appearing on minimap
- fixed minimap out of border icon positions
- fixed infinite loop caused by setting score_limit to 0
- added possibilty to load gm script file in mapcycle (useful to change game rules or add entities)
- fixed multiple tents saved on map
- outposts, hearts and catapults are saved on savemap
- fixed hearts dissapearing if full health archer or builder pick them up
- game rules can now limit classes
- game rules now define default materials count on respawn
- added tree branch destroy effects
- trees properly drop
- added ambient sound
- added smoothness variables to map generator files which determine the steppiness of the map
- gold now concentrates in middle of map
- move map scripts to Maps folder
- added natural background dirt tiling
- added semi-procedural ambient piano music when lonely
- tree block takes 3 hits to chop
- new png map format colors
- unified minimap colors with png map
- added team colored bridges and door to minimap
- change door open mechanics (doors react to direction keys)
- power bar loads up/down continously
- power bar stays at maximum position longer
- knight can only jab or hit with full power
- knight power slash adds speeds
- added sword hit knock back
- improved actor sprites
- removed dead actor collisions
- charged arrows knock back
- louder charged "pop" sound
- knock down lasts until fallen on ground
- all players collide
- fixed team kills giving points
- changed screenshot format to .png
- screenshots can be taken with PRINT SCREEN button too
- archers can duck with crouch button to hide
- added damage heart indicators
- added bloodsplat on hit
- fixed bottom of map collision
- map cycle is reloaded every map (can be edited while server is running)
- block can be dropped by builder only while holding crouch
- fixed outpost giving 3 hearts
- added default fall damage
- temporary fix for camera going bananas
- players retrieve their points and statistics on rejoining a server
- even more votes needed for players with good score
- builder earns points only by placing similar blocks next to each other
- increased running speed
- archer releases arrow if killed
- added console variable /v_fastrender (set to 1 to increase FPS)
- new combat move: jumping on enemy stuns him; or shield down causes damage
- increased falling max speed
- fall damage has 3 stages depending on fall velocity: slight stun, 1 heart damage; death
- knight max charge time increased slightly
- knight slash takes 1.5 hearts
- added small blood splat for 1 heart damage; big blood splat for more damage
- new combat move: double slash
- out of screen sprites rendering optimization
- sprite depth sorting is based on y position
- spikes give more damage at fall damage velocity
- removed menu vote kick
- fixed spikes not spiking dead bodies
- added server variable \sv_gold_only (aka Gold Server; allow only premium account players to play)
- added server variable \sv_allow_globals_mods (i set to 1 global KAG moderators and admins can kick/ban players)
- added player colors in scoreboard (green - moderators; yellow - premium)
- tree gives 2 arrows now
- knockback makes you fall from ladder
- servers browser now shows gamemode, passworded and gold server info
- fixed server not loading next map in map cycle after round won
- fixed clients disconnecting while server map generation
- bridges don't open from beneath
- title image stretches on different resolutions
- ladders save from fall damage
- fixed blood particle steppy offsets
- fixed multiple resupplying on tent
- removed resupply timer / resupply only works until moved off tent / healing works always
- bomb is dropped on knockback
- fixing giving materials on tent/outpost
- outposts are 2x tougher
- added wall bump sounds
- no spawning on tent in capture
- shield pushes everyone not shielded
- pushing shield against enemy with high velocity causes knockback
- fixed gibs emitting blood
- added new main menu items: 
   [Video->Smooth shader] hq2x pixel smoother; 
   [Video->Less effects] for faster backgrounds; 
   [Sound->Volume] type the volume between 0.0 and 1.0 (sorry for not adding a gauge yet); 
   [Sound->Ambient music]   
- added block labels in menu
- requirement for support while building removed
- fixed admin menu cmds on localhost

* build 90 (19/July/2011)

- added mandatory game accounts
  * player nickname is the same as account user name
  * added optional clantag in main menu Player settings

- Archer changes:
  * offscreen arrows deal only half damage
  * removed blocked jumping when bow fully charged
  * added arrow ladders (archers can climb their own arrows on a wall)
  * archer full charge is faster
  * arrow gravity and maximum speed changed
  * archer charge decharges when after reaching maximum point
  * archer charge bar appears on mouse cursor
  * arrow leaving archer is properly positioned
  * added knockdown period for arrow hit
  * arrow damage changed:
  	* slow arrow deals half heart damage
  	* charged/fast arrow deals 1.5 heart damage

- Knight changes:
  * changed knight sword mechanics
  * 2 hits available: quick jab (1 heart), charged swing (hold fire button; 2 hearts)
  * hitting with charged swing stuns the opponent for a moment
  * charged knight jumps lower
  * knight has same movement speed as archer and builder
  * new knight sword strike animations and sounds
  * knight can only dig with fully charged swing
  * shielded knights always pushes other players in the shield direction
  * new ability to climb shielded upwards knight 
  
- Builder changes:
  * builders can't penetrate knight armor
  * building is delayed and requires builder to stand still
  * added possibilty for builder to drop castle block
  * builder square cursor is always drawn
  * added repairing destroyed parts (takes always half of full block materials)
  * increased builder build radius
  * builder sees more into the map

- new score system
  * earn points for: building, killing, capturing/returning flag
  * lose points for: suicide, mining structures
- fixed resolution changing when desktop is the same size as window
- fixed wrong resolution ratio picked
- fixed resolution change offset bug  
- improved open door/bridge mechanics
- more dirt particles velocity
- players have less acceleration on ground
- fixed background dirt bugs
- scores render over player labels
- fixed trees not growing on right side of map
- trees don't lose coronas when chopped
- fixed server disconnection errors
- fixed collapsed blocks create random blocks
- fixed outpost not giving supplies on start
- outpost during capture does not give out supplies
- changed all damage using discrete values
- fixed grass appearing underground
- half hearts health are drawn on HUD
- can't throw bomb while holding flag
- fixed player names appearing as one letter on Linux
- fixed spikes not collapsing
- disabled periodic automap saving [temporary]
- fixed not able to join own team again if teams unbalanced
- added server variable "sv_require_auth" (default: yes; requires clients connecting to server be logged in master server)
- optimized server tree storage
- added sky gradient
- emoticons and point frame stay until key pressed or chat above head dissapears
- changed vote kicking mechanic (takes into account players time on server and score)
- added server mapcycle (Base/Scripts/mapcycle.cfg)
- two new map generator files added to mapcycle (generator_ctf_hole; generator_ctf_mountain)
- fixed png maps not saved or loaded on Linux server
- fixed outpost color not changing after capture
- added take screenshot sound (F4)
- flag carrier is slower by 10%
- fixed bomb-block damage miscalculation
- lowered ping kick time to 15 minutes
- vote minimum time lowered to 3 minutes
- fixed players not respawning after map change
- removed bridge gibbing
- fixed catapult spawning at right map edge
- main menu change : "Map editor" instead of "Start game"
- fixed ground and other blocks not appearing in editor block palette
- fixed not being able to destroy blocks around tent
- only main tent restores health
- fixed infinite outpost volcano
- fixed gold bullion not destructible by catapult
- fixed catapult ground collision sound
- fixed shield collisions
- above head chat stays shorter

* build 80 (28/June/2011)

- fixed network map load memory leak
- fixed more network memory usage
- changed camera so it is less sensitive close to player
- fixed auto_bots spamming lots of bots
- added archer bow & catapult progress bar
- "friendlydamage_modifier" in gamemode.cfg works as it should (multiplies friendly damage)
- remade arrow damage
  * the faster the arrow the more damage it inflicts
  * max velocity arrow always kills (unshielded)
- added half second draw arrow time for archer (jumping is suppressed while drawing)  
- fixed arrow hits not registering against wall
- knight shield goes down after powerful hit (fast arrow, explosion)
- fixed random disconnecting on map restart
- fixed spawning on enemy respawn
- auto team balance shuffles only new players
- auto team balance doesn't allow to change teams if teams are unbalanced
- modified no vote time to 5 minutes
- empty servers are kept alive on master
- gold is at least 7 blocks underground
- minimum_players_inteam set to 3
- warmup/break time (increased to 2.5 minutes)
- can't build outpost or catapult until match started
- barrier set (at 1/3 to 2/3) of the map until match started
- tent has automatically placed bedrock beneath
- fixed outpost capturing bugs
- more rock parts/debris to pick up after collapse (and they stay longer)
- new wooden parts after destroyed wood structures (pickable)
- builder can't give materials to knight or archer (only bombs and arrows)
- fixed scroll lock in chat box
- bomb block damage is based on distance (the farther the less damage)
- outposts and catapults slowly regenrate damage
- fixed background castle destruction exploit
- added gold bulion block [temporary]
- knight jump velocity is same as other classes
- rearranged block menu so castle wall and ladder are closest to mouse
- removed pilar castle background wall change
- added drawbridge
- arrows can destroy catapults and outposts
- new team emblems
- fixed crash on outpost destruction
- fixed spike stone collecting exploit
- resupply happens automatically on team tent (every 10 secs)
- during warm up time builder gets 100 wood and 100 stone in tent [temporary]
- player labels are a bit higher
- fixed knight gore machine bug
- fixed catapult creation displacement
- door requires just 40 wood now
- scoreboard sorted by kills instead of deaths
- map is restarted on server after 1 minute of being empty and only after match has started
- archer can't collect arrows while charging bow
- archer can't jump with fully charged bow
- remade catapults to work more as close siege weapons
  * cost half (120 wood)
  * deal twice more damage
  * range is smaller (1 screen)
  * arrows damage
- captured outpost restores health
- respawning on outpost being captured take 2 times longer
- builder jump smaller down when placing blocks
- fixed outpost not resupplying on change class
- fixed castle background not depleting materials when placed on ladder
- castle blocks placed on castle background can't be placed if nothing below

* build 71 hotfix

- fixed Windows XP startup crashing
- fixed respawn counter crash
- fixed initializing text not appearing in console-XXX.txt
- game window automatically is set to smaller resolution if desktop is smaller
- added fail safe methods when video driver is not supported

* build 71 (28/June/2011)

- added new give/loot key [C]
- picking arrows or rocks is done with harvest key [RMB] (right mouse)
- only archer can pickup arrows; only builder can pickup rocks
- added Mark Griefer option on scoreboard [TAB]
  * available after 10 mins of game time
  * if enough players mark a player he gets kicked
 - outposts are capturable (stand on it; the more players the faster capture)
 - outposts are 25% stronger (2 bombs)
- fixed network memory leak
- dead bodies don't block digging
- fixed picking class in destroyed tent
- less hits to gib
- if [TAB] pressed scroeboard stays
- unbalanced team with more players spawns longer
- fixed admin menu kicking
- most bottom row of map cannot be digged/destroyed
- decreased player name length to 20 characters
- fixed block menu not appearing on tent
- console doesn't scroll if text entered in prompt
- fixed vote server crash
- fixed giving materials not working sometimes
- fixed rcon player ping kick console spam
- KAG servers can be joined from browser : http://kag2d.com/serverlist.php

* build 70 (27/June/2011)

- fixed memory leaks on map creation/restart
- can't vote on self
- player being voted on is marked with red circle
- added message to inform about banning during vote
- all votes are sent to rcon admin
- increased game start to 2 players on team
- added "restartmap_onlastplayer_disconnect" option to game rules (gamemode.cfg)
- decreased max player name characters to 27
- fixed player names having leading or trailing whitespaces
- fixed spikes not removing stone if placed on background
- fixed broken outpost working
- auto-balancing: if teams differ by 2 players can't switch teams freely
- /kickid cmd is done by player id instead of index (/players views id's)
- added Admin menu to main menu (for rcon logged players to easily kick, restart map)
- lowered default "nearspawn_multiplier" to 2.2
- bomb range is shorter
- maximum 1 bomb can be carried by Knight
- bomb always kills (unshielded) in close proximity
- gold is always buried at least 5 blocks underground

* build 67 (24/June/2011)

hotfix (27/June/2011)
- fixed start game crash
- fixed not being able to join team again

- new default gamemode Capture the Flag
- construction require support if longer than 5 blocks
- added fully collapsible physical blocks
- added buildable outpost
- added HUD block menu (hold [F])
- change class button is now [E] on tent/outpost
- pressing [E] on team member gives 10 of each materials
- changed bomb throwing
  * pressing [F] lights bomb
  * press [F] again throws at default velocity
  * to throw further you must add momentum from jumping  
- decreased sack/flag throw velocity but is affected by player velocity
- not drawing 0 amount label on objects
- fixed catapult/tent resource icon red
- fixed healing heart not adding to 3 hearts in knight
- fixed client changing health
- Knight respawns with 1 bomb
- fixed respawn timer
- dying near respawn results in longer respawn time (gamemode config variable "nearspawn_multiplier")
- fixed server trying to delete client object which was never sent
- fixed local player globally banned issue
- fixed chat position after death
- fixed label appearing on tent
- added buildable outpost tent
- trees don't appear on mountains
- own bomb hurts self
- server list is sorted by player count
- fixed catapult rocks making sounds on die
- fixed m_generator not being loaded
- script can now load from generator files eg. LoadMap("Scripts/generator_ctf.cfg");
  * LoadMap(""); - loads m_generator variable
  * LoadMap("Scripts/foobar.cfg"); - loads random generator map from config
  * LoadMap("Maps/foobar.png"); - loads map from png image
 - generator changes:
   * caves don't appear under respawn
   * materials appear in larger concentrations behind respawn
- improved gib graphics
- added spikes trap
- fixed sacks/flag collisions near tent
- fixed sack/flag throw velocity lag on throw
- fixed tents not being saved on client (with /savemap cmd)
- stuck player gibs
- fixed and optimized collisions
- removed bugged map name from servers list
- fixed tutorial text background
- trees regrow faster
- materials and construction blocks appear as icons + count on HUD
- sound listener center moved to player instead of center of screen
- fixed player label appearing twice on u_shownames set
- fixed crash when wrong generator file specified
- background castle block costs 3 stone
- added and fixed chat console transparency
- fixed ladder and castle back giving wrong resource number on destroy
- fixed chat bubble staying longer after Enter pressed
- builder doesn't animate if can't build at position
- fixed invisible body looting
- added "Looted" text for empty bodies
- team members can loot bombs again
- fixed HUD images stretching
- can't join again own team
- fixed team menu disappearing when [BACKSPACE] pressed first time
- added floating amount of materials added or removed (on mine, loot or give)
- vote kicks can be casted only against one's team members
- added "readme" information in vote menu
- rcon players are marked with x in players list
- added unlockable map editor
- own player label dissapears when mouse cursor close
- HUD dissapears on death
- trees drop faster
- fixed door issue being placed on tree stump
- fixed spawning removing background behind tent
- map resets after last player left
- slow arrors give half damage

* build 57 (14/June/2011)

- fixed local player globally banned when bot banned
- my player is highlited in players list
- dead player collision radius is smaller
- build block cursor blink red if not enough material
- bomb now gibs people
- new death fall frame
- fixed ping kick not kicking
- bedrock layer lays on the bottom of each map
- modified bedrock look and amount
- bedrock bomb destroying leaves rocks
- bubble emote shows for 2 seconds after pressing key
- added mandatory vote kick typed reason
- vote caster displayed in vote box
- number of votes displayed
- vote dissapears if passes
- added radius of sight into earth
- fixed network errors and previous release lag
- added new config variable m_generator; specifies the map generator config file (default: "Scripts/generator.cfg")
- knight destruction is 50% slower
- thick rock has its own destruction animation and takes longer to harvest
- thick rock takes 6 hits
- rock digging takes 5 hits
- ground digging takes 3 hits
- door needs 5 wood and 3 stone
- ladder needs 4 wood (10 in tree block)
- destroyed door gives 1 wood and 1 stone less
- trees are higher (more wood)
- sacks cannot go behind team tent
- cannot carry own team's sack on to the enemy side of the map
- health is synced over network
- fixed sack team changed on client when picked up
- changed chat font
- increased small font size
- fixed mouse cursor stuck in menu
- if hit someone map isn't hit

* build 51 (08/June/2011)

- added Show Minimap option to video options (turning off minimap increases performance)
- pixel particles don't show up if FPS drops below 20
- fixed minimap colors
- fixed grass tile appearing as dirt
- added knight shield down
- optimized netcode: not sending entities out of sight
- gold tile appears more distinct than stone
- fixed console kick not banning
- fixed rcon player possible to kick
- removed invalid net object not found messages
- fixed respawn queues not deleted on client
- global banning added 
  (if player gets banned twice in some period of time he gets global banned for a couple hours)
- added new bedrock block (indestructible)
- trees don't grow now in holes-
- added error message appears if game runs without Administrator privileges
- tweaked speed hack detection
- added s_system config variable to set sound system (for troubleshooting)
	(KAG/Base/Scripts/autoconfig.gm - global s_system =
		0 - autodetect (default)
		1 - DirectSound 8
		2 - DirectSound
		3 - Win MM
		4 - ALSA (Linux)
		5 - Core Audio (MacOSX)
		6 - No sound)

* build 49 (06/June/2011)

- smaller cursors
- new archer cursors
- servers list is read from cache incase master is down
- your player has a name tag at all times
- name tags are drawn above player
- fixed end game crash reason
- added healing heart spawning randomly from killed player [experimental]
*- ladders can be built anywhere against backgrounds
*- anything can be built directly on a castle background wall
- build block cursor snaps to build position
- disabled map border fadeout
- casting another vote time increased to 10 minutes
- default vote kick ban time increased to 60 minutes
- if player being voted disconnects he is banned automatically
- rcon authorized player cannot be kicked
- added basic speedhack protection
- added hand cursor on block placement
- autoupdater does chmod +x on .sh script files
- players banned by IP and additional unique ID
- local server always disconnects if joining foreign server
- fixed map dimensions being too small
- added thick stone resource block (3x stone)
- fixed infinite ground background ladders
- added autorestarting functionality on new build release
- added kickid command (\kickid [id] [minutes])
- added players command which lists players with their id's (\players)

* build 45 (02/June/2011)

- new cursors
- new resources graphics
- fixed infinite rock catapult exploit
- fixed fall through map
- fixed crash after kick on client
- fixed missing tutorial display
- fixed generator crash
- fixed dead player floating up
- fixed end game crash
- can't build or fire in break time (temporary fix for server crash)
- all objects are destroyed on server first (server crash on restart fix)
- optimized tile rendering speed by 10-20%
- optimized offscreen particle effects
- optimized too far sounds
- default windowed mode
- local games do not register in server list
- menu is higher when items go under screen
- server list can now scroll
- added "chmod +x KAG" to dedicatedserver.sh
- dead players fall off ladders
- new title screen & menu colors
- master servers sends only servers with same build number
- tutorial poster runs automatically after game installation
- added icon for shortcuts
- knight has 1 heart more health [experimental]

* build 40 (29/May/2011)

- catapult can change rotate according to thrower
- improved arrow collisions (from circle to line)
- default score limit is 20% of gold available on map
- fixed crash on precache (loading controls)
- fixed player dangling on server after kick
- fixed bow sound not stopping after death
- fixed catapult facing wrong direction for red team
- fixed knight shield
- fixed gold on map wrongly calculated
- fixed player sprite not updating when dead
- return of the ladder bubble
- mouse aim is farther (to match zoom out view)

* build 39 (28/May/2011)

- game rules changed
  * victory condition: mine or collect 3/4 of the maps gold
  * stash gold in sacks
  * 3 sacks available on start
  * steal sacks and bring them to your tent for score  
- new map generation code
  * possible mountains and holes
  * caves
  * stone and gold are more likely to appear around caves and mountains
  * gold appears more as gold veins
  * trees don't grow on tent  
- added catapult
- new sack graphics
- new bomb & explosion graphics
- new emoticon bubble graphics
- tent does not fall down
- sack gold amount displayed on mouse hover
- player HUD is not visible now when score board is active
- increased knight radius of attack
- new castle back build sound
- tent hit pixels changed to black
- fixed invisible map bug
- can't loot bombs from self & team players
- fixed knight not dying when bomb explodes in hand
- typing bubble appears when typing chat or in menu
- gold sacks & tent are drawn on minimap
- new stone tiles graphics
- added map generator config file ("Base/Scripts/generator.cfg")
- when not enough resources build tile blinks on HUD
- on reload map, old map saved to "Maps/previous.png"
- particle die time randomized

* build 32 (20/May/2011)

- added bombs for knight (hold & release [F] key)
- fixed sprite graphics glitch on older video cards
- louder bow pull sound
- increased precision of network object velocities
- fixed some map collision bugs
- fixed teleporting inside map
- optimized collision code
- fixed arrow map collisions
- added fast arrow springy sound hit
- added team emblem graphics on team pick
- resources on HUD are drawn in multiple rows now
- available blocks on HUD now drawn in lower part of screen
- fixed ladder placing not working sometimes
- fixed readme.txt not auto-updated
- added map restart command (\restartmap)
- added map load command (\loadmap [name])
- added map save command (\savemap [name])
- added server send message to all players (\msg [text])
- added vote map restart
- changed minimap colors
- dead not displayed on minimap
- can't resupply in enemy tent, only change class
- heart hud icon scaled 2x

* build 30 (18/May/2011)

- added kick voting (select in mainmenu [ESC], no [F11] yes [F12])
- added server kick command (\kick [playername] [minutes])
- player respawns as last selected class
- sack on back is more visible
- added tent flag animation
- tent is now in front of players
- added variable descriptions in autoconfig.gm
- all doors placed vertically open when player touches
- player names forced to be unique
- fixed holes appearing after loading a map
- doors require 30 wood & 30 stone (previously 50 each)

* build 28 (16/May/2011)

- zoom in/out keys work by tapping now
- zoom in/out by default is mouse wheel (previously left ctrl/shift)
- default view is dynamic; follows mouse cursor
- darker backgrounds
- health doesn't decrease client-side (false hits not registered)
- minimap is more translucent
- players inside tent are immune
- fixed cursor displaying on other players
- fixed map generator getting stuck on small maps
- optimized sack network updates
- fixed not being able to connect again after failed connect
- changed HUD material graphics to tiles
- trees regrow faster
- hill height is independent from map height
- gold tile is more golden
- fixed empty tiles in ground background
- tweaked map generation code
- fixed actor behavior on map borders
- more shading on backgrounds
- distant sounds are louder
- health is restored on class switch
- archer digging is slower
- fixed machine gun archer exploit
- team is auto-assigned on join server
- fixed map not drawn entirely on smaller resolutions
- ladder wood usage increased from 2 to 3 (tree block = 10)
- team chat channel is more obvious now in chat window
- smoothed continuous building
- updates download automatically

* build 24 (12/May/2011)

- added picking up old arrows
- start arrows increased to 10
- arrows can't be fired immediately
- archer & knight can now dig in dirt
- fixed crash near body
- removed dynamic camera from archer
- added health display
- arrow are faster
- ground acceleration is higher
- destroying castle walls & doors takes twice the time
- fixed sack disappearing with dead carrier
- fixed not being able to pickup sack from dead carrier
- increased corpse time

* build 22 (10/May/2011)

- added builder animations
- modified chat bubbles

* build 20 (8/May/2011)

- smaller collision circle
- added handicap on respawn (5 arrows, 50 wood)
- fixed shield collisions (shield is much safer now)
- removed units left indicator in unlimited units gamemode
- fixed sacks dissapearing after player quit
- fixed archer & builder death frames
- fixed mouse hover nick labels
- fixed ladder building bugged sometimes
- changed suicide command to Change key + Pick up [F]+[E]

* build 17 (first release 6/May/2011)

-----------------------------------------

TERMS OF USE - King Arthur's Gold

Creating or holding an account at Kag2D.com, or installing the game King Athur's Gold on any computer
constitutes agreement with these terms. If you do not agree with these terms, you are not entitled to create
or hold an account at Kag2D.com nor to have King Arthur's Gold installed on any computer you access.
You can remove your account at kag2D.com/delete by providing your credentials to exit sections.

	Game Accounts
		
		By registering a game account you create credentials needed to authenticate with the master server,
		and thus play the game.	
		To do so you must agree to the terms laid out below.
	
	Privacy Policy
		
		You certainly won't be getting spam as a result of signing up.
		
		We store emails and usernames in plaintext, and passwords in a cipher.
		We won't share them with anyone willingly but can't guarantee we won't be hacked at some point,
		however we'll go to all reasonable measures to prevent that happening.
		
		We reserve the right to email you with account related information.
		
	Acceptable Use
	
		Deliberate harrassment, griefing, hacking, or other malicious behaviour or abuse of
		our game will lead to deactivation of your account followed by deletion within 5
		days pending correspondence via your registered email.
	
	Distribution
	
		You are not entitled to distribute King Arthur's Gold in any form without express permission
		from TransHuman Design. This includes but is not limited to the client, server, art assets
		and game scripts. We do this to ensure the integrity of the presentation of our game.
		
		Mirroring agreements can be made by contacting support@thd.vg

	Paid Accounts
		
		By buying a paid account you get immediate, revokable access to the paid features of our game.
		Whenever new paid features are introduced, all old paid accounts will recieve access to these new features,
		and the price of upgrading to a paid account will go up.
		
		When you purchase the game you do so as-is. We can't guarantee that we'll finish
		King Arthur's Gold, but it's certainly our intention.
		
		Paying for the game does not make you excempt from the Acceptable Use rules.
	
	Disclaimer
	
		We reserve the right to deactivate or delete your account at any time without prior warning.
		We won't do this except in extreme cirumstances, but note that being a dick but not explicitly
		breaking the rules does not protect you from this clause.

King Arthur's World and all the file formats the program produces are copyright © 2011 of Transhuman Design / Michal Marcinkowski.
All rights reserved. All other marks and trademarks are the property of their respective owners.
The content of this videogame is purely fictional, is not intended to represent or depict any 
 actual event, person, or entity, and any such similarities are purely coincidental. 
The makers and publishers of this videogame do not in any way endorse, condone or encourage
 engaging in any conduct depicted in this videogame. 
No portion of this software's executables may be disassembled, reverse engineered, decompiled, modified or altered. 
No portion of this software maybe sold directly nor indirectly without the permission from the author. 
This Software is supplied "as is" and no liability will be accepted by TransHuman Directive
 or any legal vendors of this software for any damage incurred by the use of this software.

