User:Shaman/Coding Observations

From Zero-K
< User:Shaman
Revision as of 12:12, 16 July 2018 by Shaman (talk | contribs) (Shaman's coding observations. Just a series of random crap I find during coding.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a page detailing my observations while creating lua gadgets and widgets. The information provided in here may or may not be out of date. Just don't go around breaking stuff without a purpose.


Cool stuff you can do with callins

  • CommandNotify can be used to change commands up before they are sent. I wonder if this can be applied to other things?

Stuff that breaks the game

  • Having a LOS that's very big can cause the game to crash if the team is selected via an observer. It can also cause the game to crash on load up. Dunno if they fixed that.
  • It seems perfect cloak is bugged or something. Never could get it to work.
  • Sending rawmove command without three params can spew lua errors and cause units to bug out in a hilarious fashion. [Under investigation by zkdev. Sadly. Haven't weaponized this.]
  • Spewing garbage characters via widget might have some FUN effects. I was testing feeding springiee some garbage from a factorio save game. It caused some lag once I made a title of significant enough length. You can find garbage here: https://pastebin.com/F64f7vSv Question is, will the game break from weaponized garbage spewing from a widget?

Buggy shit that you should exploit