Switch views...

Switch views...

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Switch views...

Post by aGorm »

Ok, maybe I'm going mad but I just updated to latest spring and... weridly I now cant switch views with ctrl + middle click. Or ctrl J. Has this been changed for some inexplicable reason? (Bear in mind... I havn't updated for about 6 months so it may have changed ages ago and I never noticed... wiki saus ctrl J/middle mouse is correct though, so I'm wondering if its just buggered up.)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Switch views...

Post by smoth »

it has been changed to another key binding.
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Re: Switch views...

Post by Neddie »

Not a good change.
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Re: Switch views...

Post by aGorm »

Ahh, so, does anyone know what that key binding is?
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Switch views...

Post by SinbadEV »

uikeys.txt

//
// bind Ctrl+f1 viewfps
// bind Ctrl+f2 viewta
// bind Ctrl+f3 viewtw
// bind Ctrl+f4 viewrot
//
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Switch views...

Post by zwzsg »

The annoying thing being that middle mouse button not being bindabe, you can't edit your uikeys.txt to revert to the old way.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Switch views...

Post by Forboding Angel »

neddiedrow wrote:Not a good change.
It was a good change, it just wasn't a good change from a gamedev standpoint (because we're rather set in our ways :wink: ). It annoys the living crap out of me now, but on the other hand I'm glad that the user can't be inadvertently switched to another view without explicitly intending to.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Switch views...

Post by Beherith »

I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Switch views...

Post by Auswaschbar »

Code: Select all

function widget:GetInfo()
	return {
		name      = "MiddleClickCameraSwitcher",
		desc      = "^^^^^^^^^^^^^^^^^^^^^^^^^",
		author    = "Auswaschbar",
		version   = "v1.0",
		date      = "Dec, 2009",
		license   = "GNU GPL, v3 or later",
		layer     = 9000,
		enabled   = true,
	}
end

-- FPSController          // 0
-- OverheadController     // 1
-- TWController           // 2
-- RotOverheadController  // 3
-- FreeController         // 4
-- SmoothController       // 5
-- OrbitController        // 6
-- OverviewController     // 7
	
function widget:MousePress(mx, my, button)
	local alt,ctrl,meta,shift = Spring.GetModKeyState()
	if (button == 2 and (shift or ctrl)) then
		local oldcamstate = Spring.GetCameraState()
		local newcamstate =
		{
			mode = (oldcamstate.mode + 1) % 6, -- exclude overview and orbit
			px = oldcamstate.px,
			py = oldcamstate.py,
			pz = oldcamstate.pz,
		}
		Spring.SetCameraState(newcamstate, 1)
		return true
	end
	return false
end 
That lua widget has only slightly more characters than the sum of the posts complaining about the removal.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Switch views...

Post by smoth »

Beherith wrote:I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
this
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Switch views...

Post by Forboding Angel »

smoth wrote:
Beherith wrote:I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
this
Yeah, that's why I agree that it was a good change. It jsut drives me nuts tho when I'm testing cause I'm springloaded to the ctrl+middleclick position.
User avatar
KingRaptor
Zero-K Developer
Posts: 838
Joined: 14 Mar 2007, 03:44

Re: Switch views...

Post by KingRaptor »

Ctrl + Backspace also cycles between the camera modes.
User avatar
aGorm
Posts: 2928
Joined: 12 Jan 2005, 10:25

Re: Switch views...

Post by aGorm »

Thanks... finaly I can check out my tank from more than top down view... (Now I just need to figure out how to script, but thats a whole new thread)

aGorm
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Switch views...

Post by zwzsg »

Thanks for the widget!
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: Switch views...

Post by Pxtl »

Agree on good change, and that we need bind-access tot he mouse buttons. Have we got Capture and Rez in teh default keybinds yet?
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: Switch views...

Post by JohannesH »

Pxtl wrote:Have we got Capture and Rez in teh default keybinds yet?
Nope they dont default to anything. I use q for both.
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: Switch views...

Post by Satirik »

Beherith wrote:I LOVE this change, since I scroll by pressing middle mouse, and I hold shift alot and I tended to get cam switches alot from it.
well every real spring players love this change, changing camera mode is fuckin useless for players
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Switch views...

Post by SirMaverick »

Auswaschbar wrote:That lua widget has only slightly more characters than the sum of the posts complaining about the removal.
There wouldn't be any complain if the widget would have been provided at the time the change was made. :)
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Switch views...

Post by lurker »

SirMaverick wrote:
Auswaschbar wrote:That lua widget has only slightly more characters than the sum of the posts complaining about the removal.
There wouldn't be any complain if the widget would have been provided at the time the change was made. :)
Do you honestly believe that?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Switch views...

Post by AF »

Why would people have complained about the change if they were handed a widget that fixed everything back tot he old way on a silver platter?

Its like complaining you want compensation for your broken leg AFTER winning a major court settlement into the millions, or complaining you want cake while holding a plate full of it.....
Post Reply

Return to “General Discussion”