VS 2013 Compatibility tested yet?
by Richard Ranft · in Torque 3D Professional · 11/14/2013 (6:59 am) · 9 replies
So, VS 2013 has been out for a little bit now - anyone test a build yet? And check for the Win8 snob issue? I'll be giving it a run, probably before the weekend is out, so I'll post my findings here. If necessary I'll add a new set of project target scripts as well.
About the author
I was a soldier, then a computer technician, an electrician, a technical writer, game programmer, and now software test/tools developer. I've been a hobbyist programmer since the age of 13.
#2
11/15/2013 (1:46 pm)
Cool. I had not checked for the "snob" (I assume OS lock in to minimum versions?) issue with 2010. Thanks for your findings so far.
#3
In renderPassManager.h, class RenderInstType :
Add a constructor in 'public':
Comment out:
This sounds utterly terrible but it works. I think a template function is redefining it somewhere but I'm not sure, Somehow I've not run into any runtime errors yet with this change.
In stringFunctions.h, comment out the line
Finally, in collada_dom daeElement.cpp is says identifier 'max' not found.
'max' is be defined in cstdlib so I'm not sure if it's getting undef'd somewhere or not. Sticking
Obviously these are ugly hacks especially since I made them without fully understanding the implications (yet they compile with no runtime errors as of yet!). I (and others) will no doubt be digging into these issues when we have time, but hopefully this provides some help getting started.
11/15/2013 (4:38 pm)
Ok here's the ugly, dirty ill-advised hacks to get it working:In renderPassManager.h, class RenderInstType :
Add a constructor in 'public':
RenderInstType() {}Comment out:
RenderInstType( const RenderInstType &type = RenderInstType::Invalid)
: mName( type.mName )This sounds utterly terrible but it works. I think a template function is redefining it somewhere but I'm not sure, Somehow I've not run into any runtime errors yet with this change.
In stringFunctions.h, comment out the line
// These standard functions are not defined on Win32 and other Microsoft platforms... #define strtof (float)strtodBecause it seems that is *is* defined now...
Finally, in collada_dom daeElement.cpp is says identifier 'max' not found.
'max' is be defined in cstdlib so I'm not sure if it's getting undef'd somewhere or not. Sticking
#define max(a,b) (((a) > (b)) ? (a) : (b))in the file takes care of the error though.
Obviously these are ugly hacks especially since I made them without fully understanding the implications (yet they compile with no runtime errors as of yet!). I (and others) will no doubt be digging into these issues when we have time, but hopefully this provides some help getting started.
#4
11/15/2013 (5:47 pm)
Nice - I was going to spend some time following the rabbit on that RenderInstType issue this weekend but if it's working it's working....
#5
#include <algorithm>
in your code :) Best of luck.
01/16/2014 (9:28 am)
Sorry for raising this zombie, but whenever you see 'max' (or 'min') issues in VS2013 it is (in my experience) usually because you need this:#include <algorithm>
in your code :) Best of luck.
#6
03/01/2014 (1:47 pm)
does anyone have a key for vs2010 c++ it wont register an the times up on it so im trying 2013 with the above fixes....
#7
03/03/2014 (4:22 am)
No offence Donnie, but this is a development community. I'm just not sure if this is the proper place to ask people to pirate Visual Studio for you.
#8
03/03/2014 (4:36 am)
I think he wants a key for the express edition...so it would not be pirating I guess. However, why not use vs2012 express? T3D compiles perfectly fine with this, after upgrading the projects, which happens automatically.
#9
03/03/2014 (6:55 pm)
i finally got a key for vs2010 express and thanks for the advice on 2012 and stefan i cant pirate something thats free.... I would never do that to begin with and sorry if you took it that way.....
Torque Owner Richard Ranft
Roostertail Games