Mouseinvert

OpenSpades is an open source alternative client for AoS Classic and beyond! Runs on Windows, Mac, and Linux. Created by yvt.
Compatible with AoS Classic.
16 posts Page 1 of 2 First unread post
Toumal
Deuce
Posts: 8
Joined: Wed Dec 12, 2012 9:38 pm


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?
therayn
Deuce
Posts: 5
Joined: Wed Feb 12, 2014 6:01 pm


I would like to deaktivate the mouseinvert when you are dead and watching in 3rd person
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


cg_invertMouseY
rakiru
Coder
Coder
Posts: 1349
Joined: Sun Nov 11, 2012 12:26 pm


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.
Toumal
Deuce
Posts: 8
Joined: Wed Dec 12, 2012 9:38 pm


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.
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


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
Toumal
Deuce
Posts: 8
Joined: Wed Dec 12, 2012 9:38 pm


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
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


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)
Toumal
Deuce
Posts: 8
Joined: Wed Dec 12, 2012 9:38 pm


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)
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


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.
Toumal
Deuce
Posts: 8
Joined: Wed Dec 12, 2012 9:38 pm


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.
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


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.
Toumal
Deuce
Posts: 8
Joined: Wed Dec 12, 2012 9:38 pm


Yup! They're all included in the build I posted.
rakiru
Coder
Coder
Posts: 1349
Joined: Sun Nov 11, 2012 12:26 pm


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.
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


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.
16 posts Page 1 of 2 First unread post
Return to “OpenSpades Discussion”

Who is online

Users browsing this forum: No registered users and 14 guests