Jump to content

Ctrl-V toggles remote execution in the in-game console


Crestwave
  • Fixed

Repost of https://forums.kleientertainment.com/klei-bug-tracker/dont-starve-together/ctrl-v-toggles-remote-execution-in-the-in-game-console-r32025/.

This bug has been a problem for a vast amount of players, and routinely leaves new users confused on why code they paste doesn't work. The code has functionality to prevent this, but it's currently not working because KEY_V is not part of validrawkeys, so it never actually gets into the condition.

One way to fix this is to add it in screens/consolescreen.lua, changing this:

	self.console_edit.validrawkeys[KEY_LCTRL] = true
	self.console_edit.validrawkeys[KEY_RCTRL] = true
	self.console_edit.validrawkeys[KEY_UP] = true
	self.console_edit.validrawkeys[KEY_DOWN] = true
	self.toggle_remote_execute = false

To this:

	self.console_edit.validrawkeys[KEY_LCTRL] = true
	self.console_edit.validrawkeys[KEY_RCTRL] = true
	self.console_edit.validrawkeys[KEY_UP] = true
	self.console_edit.validrawkeys[KEY_DOWN] = true
	self.console_edit.validrawkeys[KEY_V] = true
	self.toggle_remote_execute = false


This is currently implemented by the following mod: https://steamcommunity.com/sharedfiles/filedetails/?id=2595895392.


Steps to Reproduce

1. Join a dedicated server using Windows or Linux*.

2. Press Ctrl-V in the in-game console.

3. Note that it both pastes and toggles between remote and local.

 

* Though Linux users have an alternative in Shift-Insert at least.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...