TED or TED5 is a level editor for Keen galaxy (And with some modifications, Dreams.) It is the original editor used by ID Software and can be launched, if present, from within the Keen galaxy games. This shuts down the game and allows levels to be edited; originally this was used when working on the game. This functionality remains in the final release notably when using the F10 E Cheat.
TED5 will only run if the TED5 variable is not zero. This is set somewhere in the game but it is currently unknown how.
Disable launching TED5
These patches remove the possibility of launching TED5 from within the galaxy game. In Keen 4 and 6 (but not 5) it is also possible to launch TED5 when the game is first started, this must also be disabled.
|Patch: Keen 4|
|Patch: Keen 5|
|Patch: Keen 6|
There is an executable switch that launches TED5 when the game is first run, if TED5 is in the game directory. (If not the game continues.) This is "/LAUNCH" by default. Interestingly this is not a switch for the game executable but rather TED5 itself and is 'passed along' to TED5. See following section.
TED5 file name
Three things are required when TED5 is launched the "/LAUNCH" string and two copies of the TED5 executable string. (The same by default. There are also two different situations that these three things are called, when the game calls TED5 (Which happens confusingly in three different circumstances) and at the start of the game.
In Keen 4\6 this comes to a total of 6 strings, four copies of 'TED5' and two of 'launch' In Keen 5 things are more logical with only two strings being used, the same string being called several times.
|Patch: Keen 4 TED5 executable strings|
|Patch: Keen 5 TED5 executable strings|
|Patch: Keen 6 TED5 executable strings|