User:Shaman/Development Tips
Jump to navigation
Jump to search
This page outlines some general knowledge collected over the years. Mostly this is my notes.
Contents
Really, Really Big things
- 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
- 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
- This file is a red herring. Nobody probably knows what it does.
Camain.lua
- Who knows what it does.
Cache.lua
- 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
- These have a different style for... reasons.
- Double space instead of tab.
Git
- 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
- Update uses FPS to trigger, and GameFrame does not.