tf2-patches icon indicating copy to clipboard operation
tf2-patches copied to clipboard

The getpos command does not always print correctly

Open DubThink opened this issue 5 years ago • 1 comments

Description

The getpos command prints out "setpos x y z;" and "setang y p r", but the order is not consistent. I believe the correct behavior is setpos and then setang, so the output can be directly copied as a command.

Checklist

  • [x] None of the open or closed issues document this problem.
  • [x] This is a bug, not a new idea.
  • [x] This is objectively a bug, and not something that people commonly disagree on.
  • [x] This bug is in the code of the game, not in the textures, sounds, or other resources.
  • [x] This issue occurs on the latest vanilla TF2 update.
  • [ ] This issue is listed on the Source 1 official bugtracker.
  • [x] This issue occurs when using a listen server (using the map command ingame).
  • [x] This issue occurs when using a dedicated server.
  • [ ] This bug is in the internal procedures or tooling (e.g. the build process).

-- untested --

  • [ ] This issue occurs with DirectX level 100.
  • [ ] This issue occurs on the latest Team Comtress release, or the master branch.
  • [ ] This issue occurs when using no custom content.
  • [ ] This issue occurs when using start_tf2.bat (or start_server.bat) with no custom launch options.

Reproduction

  1. Open tf2 and load into a map using "map cp_process_final" (or another map)
  2. Open the console and type getpos. It will sometimes print out in one order, sometimes in the other

Screenshots

ss

Setup Details

  • Server or client: client
  • Operating system: Windows 10
  • Team Comtress version: N/A
  • Custom content: Sunset Hud, mastercomfig medium-low
  • Launch options: -novid -nojoy -nosteamcontroller -nohltv -particles 1

DubThink avatar Sep 29 '20 21:09 DubThink

the output is correct, this is related to a common issue with the output going out of order within the console itself. the incorrect new line is unique to the console window design, does not happen when you read debugger output of the console.

Juesto avatar Sep 30 '20 05:09 Juesto