Listmaps
Could Galileo handle saying listmaps in the next release? Because most players use chat for this command and have no idea it works in console only. E.g. list the maps (in console) as if the player had typed gal_listmaps in console, and tell him (in chat) to check the console.
Bug: % sign
There's a bug with the double % sign. Instead of "over 50%% of the votes cast" it says "over 504305834095830458034f the votes cast." - "%% o" turns into some high random number.
From these, test 5 worked:
Code:
client_print(id, print_chat, "Test 1: 50%% of")
client_print(id, print_chat, "Test 2: 50% of")
client_print(id, print_chat, "Test 3: 50^% of")
client_print(id, print_chat, "Test 4: 50\% of")
client_print(id, print_chat, "Test 5: 50%s of", "%%")
client_print(id, print_chat, "Test 6: 50%s of", "%")
client_print(id, print_chat, "Test 7: 50%s of", "^%")
client_print(id, print_chat, "Test 8: 50%s of", "\%")
Code:
GAL_RUNOFF_REQUIRED = Runoff voting is required because the top choice didn't receive over 50%s of the votes cast.
client_print(0, print_chat, "%L", LANG_PLAYER, "GAL_RUNOFF_REQUIRED", "%%");
Conflicting keys for voting and weapon change
In TFC weapons get changed frequently by using the number keys 1 to 5. As a result, it's quite common that someone votes for the wrong map. For Deag's Map Manager I tweaked the source code to use the right half of the number keys (5 to 0) for the voting menu. This reduced the number of map choices to 4 though, and the 5 still had a double use for weapon changing and for the votes, so it didn't completely eliminate accidental votes. Perhaps reserving a number key to cancel the own vote would help, allowing a player to vote again or abstain.