Team-comtress-2: Add version_comtress command

Created on 24 Aug 2020  路  9Comments  路  Source: mastercomfig/team-comtress-2

Is your feature request related to a problem? Please describe.
I'm always frustrated when I am running older version of Team Comtress 2 and I do not know which one it is!

Describe the solution you'd like
A command like version_comtress which would return the current version of Team Comtress

Describe alternatives you've considered
Command can have other name

Additional context
Similar to version_comfig found in mastercomfig

enhancement good first issue tc2

Most helpful comment

Btw a hacky version to do this is literally adding +alias comtress_version "echo v1.0.0" or whatever to start_tf2.bat

All 9 comments

Why not just bake this into version?

Why not just bake this into version?

Maybe, this was inspired by version_comfig present in mastercomfig, therefore version_comtress.

Apologies, I thought there was no version command. We should add this

This shouldn't take too long- I'll do it once linux builds are up.

Any implementation of this should also, ideally:

  1. Modify start_tf2.bat to include +version_comtress or whatever command is eventually used
  2. Include "dev" versus "release" variables, so that version_comtress only reports an actual release number if it's the public release build, built by Mastercoms, and just reports "debug" and a build timestamp otherwise
  3. Implement this string as a variable that can be pulled by UI elements on the main menu, so that we can add a version indicator to the custom HUD
2. Include "dev" versus "release" variables, so that version_comtress only reports an actual release number if it's the public release build, built by Mastercoms, and just reports "debug" and a build timestamp otherwise

what about git commit sha?

Whatever you think is the best way to approach it, I have no problems. I just want to make sure we discern build versions from release versions.

Btw a hacky version to do this is literally adding +alias comtress_version "echo v1.0.0" or whatever to start_tf2.bat

https://semver.org/ ideally we'd use semantic versioning but that's up to coms

Was this page helpful?
0 / 5 - 0 ratings