Cube2 Console Issues

So, I've been trying to write a Compass extension, that adds useful phrases (with color) on a per-game mode basis. I have compasses for CTF, DTF, and Bomber Ball.
Logically, all of my code is correct, (except for the color codes, which is a separate issue with how say(team)command works) however, exec'ing my file returns an unnecessary "missing ]" error, and when adding an extra ] at the end, it works, but contradicts itself by throwing and "unexpected ]" error.
What's more baffling is that my code is formatted the same as Kitsune's Chat Color script, and even Red Eclipse's own "compass.cfg". Neither of those throw the "unexpected ]" error, and they're formatted the same way.
I'm running Windows, so at first it was formatted with CRLF line space format, so I thought that's what was bugging the console, but converting it to LF format didn't do squat.
Also, continuously baffling, I even typed it out in the console itself, using Ctrl+J (LF) as a line space, and it worked, even in the same format as my cfg.
Again... WHY?! (I only however, wrote only a bit of it, which only had a few compass entries) The main point of why I tried that was to see if it would still throw the "missing ]" error. Which it didn't.
Original
Kitsune got it to work by changing the order of my entries (with the extra ] mind you, that's the only way anything will advance) and everything works perfectly. However, WHY remains my question, and the changed order is not a favorable fix.
Working Revision
If we can get it to execute properly and in the right order, we can move on to fixing the color.
Logically, all of my code is correct, (except for the color codes, which is a separate issue with how say(team)command works) however, exec'ing my file returns an unnecessary "missing ]" error, and when adding an extra ] at the end, it works, but contradicts itself by throwing and "unexpected ]" error.
What's more baffling is that my code is formatted the same as Kitsune's Chat Color script, and even Red Eclipse's own "compass.cfg". Neither of those throw the "unexpected ]" error, and they're formatted the same way.
I'm running Windows, so at first it was formatted with CRLF line space format, so I thought that's what was bugging the console, but converting it to LF format didn't do squat.
Also, continuously baffling, I even typed it out in the console itself, using Ctrl+J (LF) as a line space, and it worked, even in the same format as my cfg.
Again... WHY?! (I only however, wrote only a bit of it, which only had a few compass entries) The main point of why I tried that was to see if it would still throw the "missing ]" error. Which it didn't.
Original
- {l Code}: {l Select All Code}
newcompass CTF "textures/voices" [
compass "Cover Me!" [sayteam "2Cover Me!"]
compass "Cover our Carrier!" [sayteam "2Cover our Flag Carrier!"]
compass "Kill the Carrier!" [sayteam "3Kill the 2Flag Carrier 3so we can 0CAPTURE!"]
compass "Stay in Groups!" [sayteam "2Stay in groups!]
compass "Capture the Flag!" [sayteam "6Capture the Enemy Flag!"]
compass "Pressure Them!" [sayteam "3Pressure them! Attack harder!"]
compass "Defense the Flag! [sayteam "9Defend our Flag!"]
compass "DTF" "X" [showcompass DTF]
]
newcompass DTF "textures/voices" [
compass "Help Capture!" [sayteam "3Help 0capture 3this Flag!"]
compass "Help Defend!" [sayteam "3Help 9defend 3this Flag!"]
compass "Assault Harder!" [sayteam "6Assault harder! 0Capture 6some Flags!"]
compass "Defend Harder!" [sayteam "9Defend harder! Protect our Flags!"]
compass "Hold Their Flags!" [sayteam "6Hold their flags! Don't let them recover!"]
compass "Recover Our Flags!" [sayteam "0Recover our Flags!"]
compass "Bomber-Ball" "X" [showcompass Bomber-Ball]
]
newcompass Bomber-Ball "textures/voices" [
compass "Cover Me!" [sayteam "2Cover Me!"]
compass "Cover our Bomber!" [sayteam "2Cover our Bomber!"]
compass "Kill the Bomber!" [sayteam "3Kill the 2Enemy Bomber!"]
compass "Stay in Groups!" [sayteam "2Stay in Groups!]
compass "Stay by the Bomb!" [sayteam "6Hold ground by the Bomb! Don't let them touch it!"]
compass "Defend our base!" [sayteam "9Fall back and defend our base harder!"]
compass "CTF" "X" [showcompass CTF]
]
bind X [showcompass CTF]
Kitsune got it to work by changing the order of my entries (with the extra ] mind you, that's the only way anything will advance) and everything works perfectly. However, WHY remains my question, and the changed order is not a favorable fix.
Working Revision
- {l Code}: {l Select All Code}
newcompass CTF "textures/voices" [
compass "Cover Me!" [sayteam "2Cover Me!"]
compass "Cover our Carrier!" [sayteam "2Cover our Flag Carrier!"]
compass "Kill the Carrier!" [sayteam "3Kill the 2Flag Carrier 3so we can 0CAPTURE!"]
compass "Capture the Flag!" [sayteam "6Capture the Enemy Flag!"]
compass "Pressure Them!" [sayteam "3Pressure them! Attack harder!"]
compass "Defense the Flag! [sayteam "9Defend our Flag!"]
compass "DTF" "X" [showcompass DTF]
compass "Stay in Groups!" [sayteam "2Stay in groups!]
]]
newcompass DTF "textures/voices" [
compass "Help Capture!" [sayteam "3Help 0capture 3this Flag!"]
compass "Help Defend!" [sayteam "3Help 9defend 3this Flag!"]
compass "Assault Harder!" [sayteam "6Assault harder! 0Capture 6some Flags!"]
compass "Defend Harder!" [sayteam "9Defend harder! Protect our Flags!"]
compass "Hold Their Flags!" [sayteam "6Hold their flags! Don't let them recover!"]
compass "Recover Our Flags!" [sayteam "0Recover our Flags!"]
compass "Bomber-Ball" "X" [showcompass Bomber-Ball]
]
newcompass Bomber-Ball "textures/voices" [
compass "Cover Me!" [sayteam "2Cover Me!"]
compass "Cover our Bomber!" [sayteam "2Cover our Bomber!"]
compass "Kill the Bomber!" [sayteam "3Kill the 2Enemy Bomber!"]
compass "Stay by the Bomb!" [sayteam "6Hold ground by the Bomb! Don't let them touch it!"]
compass "Defend our base!" [sayteam "9Fall back and defend our base harder!"]
compass "CTF" "X" [showcompass CTF]
compass "Stay in Groups!" [sayteam "2Stay in Groups!]
]]
bind X [showcompass CTF]
If we can get it to execute properly and in the right order, we can move on to fixing the color.