1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Dev Blog BUILD 1337 - Back on Track

Discussion in 'Announcements' started by Geti, Dec 23, 2014.

  1. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    This build marks a return to progress on KAG - it’s been a few months between releases, and I’ll give a refresher on why that’s been the case later, but first, a warning: KAG has had a LOT of changes in the past hundred days and a lot of engine-side stuff has happened, probably more than we can test completely. Please bear with us and calmly report any bugs in the thread and we will fix them as soon as we can.

    Without further ado, let’s jump right into what’s changed this time around, as there’s a lot of it! Buckle up!

    [​IMG]
    Prepare to see a little more of this going on!


    • Crash Fixes
      A long-term crash in the camera system (causing a common crash on rejoining servers) was found and fixed. This should dramatically improve the game’s long-term replayability. Be sure to let us know if any other crashes on rejoin persist! A few other miscellaneous crashes including a hard-to-trace one in one of the network synchronisation routines were also fixed.
    • Archer Changes
      • Inventory Management
        Archers no longer automatically pick up a full inventory of arrows, so you’ll have some space left over for special ammo.
      • Less Slippery
        Archers are slowed more when charging arrows, making it a little easier to catch that backpeddalling nuisance archer, and a little easier to aim while running.
    • Knight Changes
      • Increased Shield Angles
        Shield angles have been slightly increased to help deal with fighting through lag.
      • Increased Glide Time
        Shield glide time has been increased to about two seconds, allowing longer jumps and bigger falls without injury.
    • Builder Changes
      • Decreased Spike Damage
        Spikes must be dropped from a higher place to deal insta-kills, damage ramps up with distance.
      • Added nicer building sounds
        Lots of blocks now have individual building sounds.
      • Fixed “buggy” ladder rotation blocking stuff
        Ladder rotations have long caused incorrect blocking of tiles, that’s fixed.
    • Health Changes
      Swapping class can no longer be used for “free heals” as health is kept in proportion each swap. Archers are still cheaper to heal to full health but the added inconvenience should prevent most of the abuse.
    • Inventory Fixes
      A hard-to-track bug causing all your arrow stacks to go missing right when you needed them has been fixed. Items are also automatically taken from the smallest stack in your inventory, rather than the first one found, meaning picking up small stacks off the ground clogs your inventory for less time.
    • Inventory Interface Improvement
      Archers and Knights start with their cursor over their inventory after pressing F - builders start with it over their tiles. The rationale here is that knights and archers can easily swap weapons by tapping F and want precision access to any auxilliary items in their inventory, while builders are more likely to want to swap tile types quickly.
    • Balancing Changes
      Auto-Balancing should be less “mean” to any one person, and is based on the median score rather than the mean.
    • Maploader Changes
      A small set of changes but important for some specific mods and maps, community member jackitch has updated the png map loader to include specific colours for the two types of trees, various mossy tiles, and fixed a bug where the purple team spawn was the same colour as the necromancer.
    • Votekick changes
      We’re actually on the fence about these changes, but the community have been pushing for something, and norill contributed changes. Votes can no longer be inconclusive, the vote gui has changed, enemy team cant vote unless it’s a hacker, and map votes use a global cooldown to prevent spam. Voting is now done via the O and P keys, and the box is much smaller. Leave your thoughts in the thread.
    A lot of engine changes from work on Trench Run also makes it back into KAG with this release for modders to play with and for future use in KAG. However - this does mean that there’s a body of changes so wide that we’re unlikely to have tested everything! Let us know quickly about any drastic bugs and we’ll get onto them asap! Here’s a small run-down of the most exciting changes:

    • Post-Processing Shaders!
      Shaders can be used for postprocessing both before and after gui rendering, with multiple shaders able to be set up and layered on each other. Shader options are significantly extended, including per-shader variables (and textures!) to be set from script.
    • Gamepad Control Extension
      Gamepads and the foundations needed for local multiplayer have been added - modders should not consider this part of things stable, but it does open up possibilities for local multiplayer (perhaps co-op? sandbox?) and gamepad play (for those allergic to mice).
    • GUI code exposed
      This paves the way for new menus for KAG, and nicer, less rigid in-game menus in mods.
    There are a lot of miscellaneous fixes as well, check the full changelog for the details there.

    Custom Heads

    The following generous donors have received custom heads in-game:

    • Guro
    • Gurin
    • Duke_Jordan
    Still to come:

    • Sasquash
    Congratulations to the generous!

    Delays

    The delay between builds has been due to wide-sweeping changes in our code-building and repository system. These changes allows us to work on multiple games utilising the same engine (in this case, KAG and Trench Run) while neatly feeding relevant changes from one into the other. While we’ll be “off work” over Christmas and new year, this will allow us to get back to timely development on KAG throughout the coming season!

    Have Fun!

    Max/Geti

    Code:
    Changelog:
    [added] storage now stores items instead of making you drop them
    [added] CerberosRift CTF map
    [removed] JTG Mines map
    [fixed] stuck arrow and bush blocking building construction
    [fixed] some animal brain bugs
    [fixed] shark always goes right on land
    [added] shark is player-compatible
    [added] shark loses target more easily (to avoid it getting "stuck" on fish and ignoring players too long)
    [added] eatothers re-hits things its stuck colliding with (so sharks gib bodies and move on)
    [script][added] bindings for various time functions - local and UTC seconds + day/month stuff in UTC.
    [script][modified][modding][warning!] onRestart not called for CRules on first round - call it in onInit if required!
    [modified] voting changes - thanks Norill
    - failed votekick doesn't kick initiator
    - vote passes if yes > no
    - removed inconclusiveness
    - made rendering less obtrusive
    - made LESS noob friendly by removing buttons - uses keys instead
    - enemy team can't vote in case of griefer/AFK/TKer
    - added mark_any_team, mark_player and map_vote support
    - map votes use global cooldown instead of per player
    [fixed] ballista bolt does weird things after going to space and back
    [modified] pickup is a little better, still rough but changes with direction in a predictable way.
    [fixed] rotated ladders blocking things badly
    [added] a bunch of nice per-block sounds for builder construction
    [fixed] balance teams not working due to onRestart change (not called in onInit)
    [added] new scripts menu UI
    [fixed] blobs not falling after trap block triggers
    [fixed] background tiles being created in some spurious cases by TileBackground.as.
    [fixed] ladder sprite not being set to background
    [added] runlocalhost.bat (and .sh) for modders that runs a local server and joins it
    [fixed] knocked not expiring in vehicle
    [added] knocked interface is more consistent + allows getting knocked value without modifying it, allows checking isKnocked safely, has better function names, etc.
    [modding] check if you have used Knocked anywhere (actor/class code), things have changed!
    [modified] base PNG loader - thanks Jackitch!
    - added specific tree type pixels for forced type trees
    - added mossy tiles
    - fixed purple spawn is same as necromancer (lol)
    [modified] inventory menu offsets improved - builder is over tiles (starts over "ladder" with CTF blocks), archer and knight over inventory for easy item use
    [fixed] "cheating" healing by swapping to archer with >2 hearts and swapping back - now keeps a proportion of HP
    [added] archer doesn't auto-pick up more than 60 normal arrows.
    [fixed] some archer stuff not getting updated appropriately
    [added] misc other changes from Norill
    - fixed balancing same guy over and over
    - fixed can't autopick team in tdm
    - removed shittons of boilerplate
    - added adjustable autobalance threshold
    - changed "doesnt suck" condition from >average score to median (its really "top half" now)
    - decreased "OGM TEAMS IMBA" spam further
    - fixed zombie-shark
    [modified] spike drops have damage falloff
    [modified] archer slower when shooting arrows (70% of normal speed, was 85%)
    [modified] knight shield angles increased
    [modified] knight shield glide time increased to almost 2 seconds
    [added] bool engine_floodlayer_updates to CRules for controlling if blobs do their flood layer updates at all (check in fire/water, skim on water, shoot particles on water, etc)
    [fixed] missing tiles at some map edges
    [fixed] the glitchy "Recompiling script..." screen
    [script][fixed] CMap::getMapName returning nil
    [fixed] starter buttons
    [fixed] renaming of KAG exeacutable on OSes other than windows.
    [fixed] typo in hooks
    [fixed] chat key interferring with script menus
    [script] added LateLoadRules to load rules on next tick (avoid crashes in some cases)
    [script] added hook void onRulesRestart( CMap@ this, CRules@ rules )
    [added] u8 mat_water_layer_alpha to gamemode.cfg/CRules for controlling alpha rendering of water front layer
    [fixed] crashes in dedicated server on join
    [modified] default cl_name removed (fixes all new players being called "Peasant")
    [modified] default maximum ping reduced to 350ms
    [script] binded joystick keys
    [script][added] CShape::RemoveShape( int index )
    [script][added] bool CRules::chat exposed (disable chat window)
    [fixed] wrong starting directory when using KAG:// links
    [fixed] creating double accounts on borrowed game
    [modified] duke jordan head disabled until payment
    [modified] reflecting build changes in TW script, changelogs
    [added] duke jordan head to engine
    [fixed] doubled news
    [fixed] twitter links not opening on some rare occasions
    [modified] camera target cleared on deleting net objects
    [fixed] "rejoin" crash
    [fixed] installers for KAG
    [fixed] a couple of things that meant the last tile of the map was hidden/inaccessible
    [modified] nicer flash screen
    [script] added: int getScreenFlashAlpha()
    [script] added: SetScreenFlash( SColor color, f32 fadeAmount )
    [fixed] precache loading Mods and old files
    [script] moved SetScoreboardVars from CBlob to CPlayer
    [fixed] getLocalPlayer returning null when not first player playing
    [added] getLastKeyPressTime to CControls
    [script] added global function getDistanceToLine
    [script] exposed onmap in shape vars
    [script][fixed] commands received in script in first tick after being removed
    [fixed] onBlobDie and onDie being called twice on SetDead
    [doc] [added] partial documentation for CSprite
    [doc] documented the rest of CPlayer
    [doc] added documentation for scoreboard functions on CPlayer
    [doc] added documentation for CPlayer player info and started on scoreboard
    [script] added CBlob::getMyPlayerIndex
    [fixed] bans being limited to 5555 minutes
    [added] local multiplayer possible with gamepads oh yeah B^)
    [fixed] weird bug with inventory items vanishing from hands
    [script][added] u16 CBlob::getMaxQuanity(), analogue for getQuantity().
    [fixed] typo for security file
    [fixed] HUD shaders wiping previous HUD shaders
    [added][script] SetShaderFloat and SetShaderInt
    [added] engine supports HUD+game post-processing
    [modified] high level map rendering
    [fixed] typo in high level node code causing impossible searches
    [modified] a few optimisations and simplifications in high level map code
    [script] added debug()
    [added] CMap::getTileFlags(u32 offset)
    [added] sending extra texture to shader
    [script] added CControls::getActionKeyKeyName and CControls::getActionKeyKey
    [fixed] font loading (won't work in mod folders)
    [fixed] chat console dissapearing without cursor on
    [script] chat = false in gamemode.cfg disables chat console
    [script] controls return last key pressed to script (lastKeyPressed)
    [fixed] seclevs going crazy when auth_login is null
    [script] binded APIPlayer and APIServer
    [added] void OnRequestList(CRules@ this) hook
    [script] exposed QuitGame()
    [added] Guro, Gurin, Duke_Jordan heads - congratulations!
    [script] added hooks: void OnOpenMenu(CRules@ this) void OnCloseMenu(CRules@ this)
    [fixed] blob->Sync crash in bool
    [script] added maxChatBubbleLines and isChatBubbleVisible() to blob
    [script] added SetChatBubbleFont and chatBubbleOffset for blob
    Attention modders - breaking script changes:

    If your mod breaks with this version it is most likely one of these changes:
    * onRestart isn’t called automatically now after onInit (solution: call onRestart manually in onInit)
    * key_zoomin and key_zoomout are no longer part of blob controls (solution: you can still access these buttons from controls like this http://prntscr.com/5k4yaw)
    * weird sounds? - disable effects in script: s_effects = false

    EDIT:
    Seclevs Problems?
     
    Last edited by a moderator: Dec 23, 2014
    Chukka, Noburu, Dargona1018 and 26 others like this.
  2. Fernegulus

    Fernegulus Drill Rusher

    Messages:
    400
    gg no re
    now go make the tile change hooks
    c:
    i love u gety
     
  3. Duke_Jordan

    Duke_Jordan King Arthur's Knight Donator
    1. Aphelion's Roleplay

    Messages:
    145
    Much love, here's to a new build.
     
  4. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,577
    I love you, geti.
    That's the best modder update ever.

    Edit : please no trench run dlc, ahah
     
    Last edited: Dec 23, 2014
    Fernegulus and Duke_Jordan like this.
  5. AmestriStephen

    AmestriStephen Bison Rider Forum Moderator Staff Alumni Tester

    Messages:
    335
    Cool stuff, I like those fixes! The spike thingy is really interesting. Also the balance due to the score is a smart thing. GJ!
     
  6. trueok

    trueok Builder Stabber

    Messages:
    17
    this day will be rember for the rest of kag rest in peace all builders with the power of the spike gong for ever
    :thumbs_down::QQ::thumbs_down: Other wise every thing is cool
     
    AmestriStephen likes this.
  7. AmestriStephen

    AmestriStephen Bison Rider Forum Moderator Staff Alumni Tester

    Messages:
    335
    POOR OK DONT CCRYE
     
    Shadowor likes this.
  8. Redlix

    Redlix Shark Slayer

    Messages:
    3
    when can we download it ?

    [​IMG]
     
    Last edited: Dec 23, 2014
    blackjoker77777 likes this.
  9. blackjoker77777

    blackjoker77777 Ballista Bolt Thrower Tester
    1. Zen Laboratories

    Messages:
    442
    yay thanks Geti, finally another cool update. My favourite part is this :
    [added] local multiplayer possible with gamepads oh yeah B^)
    finally :D because I am one of those "mouse allergic people" but one question,will virtual gamepads work too? I mean is it working with "xinput1_3"? just asking .And when could we get the new update?
     
    ThE_HeRo likes this.
  10. Blue_Tiger

    Blue_Tiger Bison Rider Tester

    Messages:
    899
    but but but... :QQ:
     
  11. AmestriStephen

    AmestriStephen Bison Rider Forum Moderator Staff Alumni Tester

    Messages:
    335
    dunt crye lil tiger <3
     
  12. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,577
    iirc irrlicht input supports Direct Input. So normally, yep
     
  13. blackjoker77777

    blackjoker77777 Ballista Bolt Thrower Tester
    1. Zen Laboratories

    Messages:
    442
    Ok thanks for your answer AsuMagic ,you just made me happy :)
     
  14. AJFaas

    AJFaas Base Burner
    1. supr sekrit cln [skrt]

    Messages:
    164
    Im not sure what has gotten into you, geti. But this sounds like a well balancing update for once! Keep it up like this.
     
  15. MM

    MM THD Team THD Team Administrator Global Moderator

    Messages:
    327
    Attention modders - breaking script changes:

    If your mod breaks with this version it is most likely one of these changes:
    * onRestart isn’t called automatically now after onInit (solution: call onRestart manually in onInit)
    * key_zoomin and key_zoomout are no longer part of blob controls (solution: you can still access these buttons from controls like this http://prntscr.com/5k4yaw)
    * weird sounds? - disable effects in script: s_effects = false
     
    Noburu, Fuzzle, kodysch and 1 other person like this.
  16. H3llO

    H3llO Shopkeep Stealer

    Messages:
    75
    oh good, you buffed knight and debuffed archer, builder. Do you really think those double sided balance change will balance the game? Also slowing archer down is the first step to turn archer into those unwanted base-camper.
    Can we from now on seperate class-balance-changes for TDM. 1180 + decreased shield angle was nearly perfect for TDM.
    I have the feeling there are quite some bugfixes missing in the patchnotes, but I wait for further commentary on that after I played it.
     
  17. Auburn

    Auburn Prepare Yourself! Forum Moderator Staff Alumni Tester Donator
    1. SharSharShar - [SHARK]

    Messages:
    734
    As a general note, I already said it on IRC but the crash on server change wasn't fixed, and seclevs for official servers aren't right (at first I just thought furai hated me).
     
  18. AJFaas

    AJFaas Base Burner
    1. supr sekrit cln [skrt]

    Messages:
    164
    The game crashed after my team won the first match. Maybe you have to look into that.
     
    blackjoker77777 likes this.
  19. Nighthawk

    Nighthawk gaurenteed shitter

    Messages:
    793
    Noooo, my backpedaling has been nerfed!
     
  20. Leo

    Leo Bison Rider

    Messages:
    503
    seclevels do not work, I am not admin or super admin in my server
     
    blackjoker77777 likes this.