jxsl13/zcatch

"/version" chat command

Closed this issue · 9 comments

I think there can be added "/version" command in chat commands to determine version of a server.

Git hash can be good candidate for version, moreover it already accessable from C++ code.

Code, which handles commands here.

I don't mind, but should be zCatch server version(revision tag, v0.3.5), git hash and Teeworlds main version(0.7.5) if that's possible.

maybe
zCatch 0.7.5 <git hash> for not released versions.
and
zCatch 0.7.5 v0.3.5 for released versions.
?

Server version (0.7.5) is already known from Teeworlds GUI, so i think its not needed. Also imho, it meaningless, because this is just number without merging new commits from Teeworlds repo.

The problem that I want to solve is to determine which version of the source code is running on public servers, so, git commit looks suitably. Revision tag (v0.3.5) can be added too, but its secondary and harder to implement, I think.

the revision tag for released versions would be great.
I don't touch that topic because I did not think about that at all.

It's because you deploy and know which version is running on servers. Other people don't know (but it can be intersting for them, especially for contributors).

makes sense

I think the 0.7.5 In the Teeworlds f1 GUI refers to the client version?
Where do you see the server version 0.7.5?

When your see a list of available servers, the server version is also displayed.

ok