Cog Checklist


Many times a cog that looks alright at first glance has some subtle error that will cripple the cog's performance. This checklist is provided to give you some things to check before you move on.

Variables:
 Are all variables defined in the symbols section?
 If this is an items or static.jkl cog, are the variables properly reset on startup?
Messages:
 Are all messages defined in the symbols?
 Are all messages that could be received properly planned for?
 Are any safeguards needed to prevent a message from running again?
Code:
 Are there safegaurds for dangerous actions like DestroyThing() and SetCameraFocus()?
 If you are unsure of some verbs, have you checked their functions in a reference?
Multiplayer: (optional)
 Will the effects of the verbs used be synced on all computers?
 Will the events that trigger the cog work on all computers?
 Do the variables of the cog need to have their values synced for all computers?