User:Shaman/Development Tips

From Zero-K
Jump to navigation Jump to search

This page outlines some general knowledge collected over the years. Mostly this is my notes.

Really, Really Big things[edit]

  • TEST WITH LOCAL ZK-TEST.SDZ!!!! REALLY.
  • Do NOT test cawidgets with local replacement.
  • Multiplayer tests can be done by uploading an sdz to maps on site

Cawidgets[edit]

  • DO NOT USE SPEED UPS HERE. I don't know why exactly, but GoogleFrog says it's bad and it tends to lead to bad things.
  • Probably not good to use speedups anywhere in the top level dir of luaui or luarules. Idk.
  • You can make derivatives of other callins with it. Useful!
  • Alters the way widgets work.

Callins.lua[edit]

  • This file is a red herring. Nobody probably knows what it does.

Camain.lua[edit]

  • Who knows what it does.

Cache.lua[edit]

  • You can poison (see: changing the return values) of functions with this. This changes affects everything.
  • Don't attempt to override names with it. This just leads to people losing the ability to chat -.-

Unitdefs[edit]

  • These have a different style for... reasons.
  • Double space instead of tab.

Git[edit]

  • Don't use PR's to update your fork.
  • Use git rebasing to update work.
  • Use git rebase -i HEAD~# to squash stuff.
  • Squash your commits down a bit for redundant things (but not ones that significantly alter things)

Callins[edit]

  • Update uses FPS to trigger, and GameFrame does not.