Page 1 of 2

Mouseinvert

Posted: Sat Feb 08, 2014 1:57 pm
by Toumal
Forgive me if I ask a silly question but I've been looking through the settings as well as the forum - try as I might, I can't find a way for mouse invert.

Am I just blind or does OpenSpades not support that yet?

Re: Mouseinvert

Posted: Fri Feb 14, 2014 12:38 pm
by therayn
I would like to deaktivate the mouseinvert when you are dead and watching in 3rd person

Re: Mouseinvert

Posted: Sat Feb 15, 2014 4:14 pm
by learn_more
cg_invertMouseY

Re: Mouseinvert

Posted: Sat Feb 15, 2014 5:11 pm
by rakiru
therayn wrote:
I would like to deaktivate the mouseinvert when you are dead and watching in 3rd person
Yeah, that's both annoying and awkward.

Re: Mouseinvert

Posted: Sat Mar 01, 2014 4:18 pm
by Toumal
learn_more wrote:
cg_invertMouseY
Thanks for the hint but... that option does not exist in release 0.0.10. Also tried 0.0.9.
I also downloaded the source and grepped through it, there's no occurrence of "cg_invertMouseY", in fact "invert" can only be found in three files and none of the mentions have anything to do with mouse invert.

I did however find the code responsible for the weird inversion when following a player in Client.cpp:
Code: Select all
				if(world->GetLocalPlayer() &&
				   world->GetLocalPlayer()->GetTeamId() >= 2 &&
				   followingPlayerId == world->GetLocalPlayerIndex()){
					// invert dir
					x = -x; y = -y;
				}

Unless someone tells me that I somehow completely missed something, I'll just go ahead and implement this option. Maybe also make hat invert above another option so people can turn it off if needed.

Re: Mouseinvert

Posted: Sat Mar 01, 2014 11:39 pm
by learn_more
Client.cpp
Code: Select all
//line 81
SPADES_SETTING(cg_invertMouseY, "0");
//line 919
					if(cg_invertMouseY)
						y = -y;
i think i have to tell you that you completely missed something :p

Re: Mouseinvert

Posted: Sun Mar 02, 2014 11:27 am
by Toumal
learn_more wrote:
i think i have to tell you that you completely missed something :p
Well fuck.. turns out I downloaded the 0.0.10 tagged code and there's no mouse invert there. That's also why I don't see the option in the latest release - because it's not in there yet. And because I can't compile source in msvc (see my other topic) I can't play :(

EDIT: Kudos for adding the option btw. - now we just need an updated release ;) Oh and the website still points to 0.0.9

Re: Mouseinvert

Posted: Sun Mar 02, 2014 1:01 pm
by learn_more
i didnt add the code :p


ps, pull from github again, i made the build work in msvc 2013 (yvt insists on using stuff that isnt available in vs2010, so i had to use a newer version)

Re: Mouseinvert

Posted: Sun Mar 02, 2014 4:40 pm
by Toumal
Thanks for your help, that did the trick! The only thing I had to do is disable the "Image has safe exception handlers" option under Project/Properties/Linker/Advanced in MSVC13. I also dig the new setup dialog, fits the game theme much better.

I've put up a release build at http://www.playspoon.com/downloads/Open ... indows.zip if anyone needs an executable with mouse invert. (And I hope I'm not stepping on anyone's toes with this)

Re: Mouseinvert

Posted: Sun Mar 02, 2014 5:42 pm
by learn_more
currently i get some shader that is fkd, so i cannot run the game from repo?

also, for the safeseh: get another zlib.lib (zdll.lib should be fine)
i built this one, and i didnt add an option that the newer msvc needs.

Re: Mouseinvert

Posted: Sun Mar 02, 2014 10:04 pm
by Toumal
Hmm weird, I tried a couple different ones and that didn't help. Also with some I get exceptions at runtime. I'm using zlib.dll from the SDL2_image package and that seems to work fine, except for needing the safeseh to be turned off.

EDIT: No shader problems on my side that I can see, certainly no errors or crashes.

Re: Mouseinvert

Posted: Tue Mar 04, 2014 3:08 pm
by learn_more
Toumal wrote:
Hmm weird, I tried a couple different ones and that didn't help. Also with some I get exceptions at runtime. I'm using zlib.dll from the SDL2_image package and that seems to work fine, except for needing the safeseh to be turned off.

EDIT: No shader problems on my side that I can see, certainly no errors or crashes.
shader was fixed in the latest release.

btw for the SDL_image dll you also need the jpeg, png and whatever dll's.

Re: Mouseinvert

Posted: Thu Mar 06, 2014 5:40 pm
by Toumal
Yup! They're all included in the build I posted.

Re: Mouseinvert

Posted: Mon Mar 10, 2014 10:51 pm
by rakiru
learn_more wrote:
ps, pull from github again, i made the build work in msvc 2013 (yvt insists on using stuff that isnt available in vs2010, so i had to use a newer version)
Well fuck... Not sure if I can be bothered going through the pain of everything else breaking if I install VS2013 for OpenSpades.

Re: Mouseinvert

Posted: Tue Mar 11, 2014 10:08 am
by learn_more
rakiru wrote:
learn_more wrote:
ps, pull from github again, i made the build work in msvc 2013 (yvt insists on using stuff that isnt available in vs2010, so i had to use a newer version)
Well fuck... Not sure if I can be bothered going through the pain of everything else breaking if I install VS2013 for OpenSpades.
i have vs 2008, 2010 and 2013 installed now, working fine and dandy :+)

i have kept it up-to date for 2010, but it basically meant having to go over all yvt's code,
and remove quite some higher level constructions
Code: Select all
for( auto something : collection )
to
Code: Select all
for( collection_type::iterator it = collection.begin(); it != collection.end(); ++it)
and so on.