source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

VPC does not support Visual Studio 2015

Open myoKun345 opened this issue 9 years ago • 44 comments

I have moved to using VS 2015, but unfortunately the "createallprojects.bat" file does not work for me because VPC does not have a mode for 2015. I was able to generate a 2013 solution by manually adding the "DefaultProjectExtension" registry values, but it does not work in VS 2015 because Visual Studio is seemingly terrible at converting solutions. Either that or the generated solution is missing needed elements of VS 2013 (beyond the extension registry values), which I do not have installed.

myoKun345 avatar Jun 12 '15 08:06 myoKun345

Not surprising, VS2015 isn't released yet. :)

yaakov-h avatar Jun 13 '15 09:06 yaakov-h

Haha :P

Effectively though, Microsoft is already pretty much pushing 2015 as the current version on the Visual Studio website and so on, and it is in the release candidate stage now.

myoKun345 avatar Jun 13 '15 09:06 myoKun345

The real problem is that valve hardly ever looks in here anymore let alone update the repo, so my guess is we'll have to wait at least 2 years for such an update~

neico avatar Jun 13 '15 11:06 neico

Idk about the VS 2015 but all previous VS versions converted solutions very well. If you're having trouble generating the solutions you may want to try to install the VS 2013 Express and try again.

On 6/12/2015 11:27 AM, Austin Jones wrote:

I have moved to using VS 2015, but unfortunately the "createallprojects.bat" file does not work for me because VPC does not have a mode for 2015. I was able to generate a 2013 solution by manually adding the "DefaultProjectExtension" registry values, but it does not work in VS 2015 because Visual Studio is seemingly terrible at converting solutions. Either that or the generated solution is missing needed elements of VS 2013 (beyond the extension registry values), which I do not have installed.

— Reply to this email directly or view it on GitHub https://github.com/ValveSoftware/source-sdk-2013/issues/325.

geotavros avatar Jun 13 '15 12:06 geotavros

I was able to generate a 2013 solution by manually adding the "DefaultProjectExtension" registry values.

~~Which registry? I though the way to make VPC generate vs2013 projects is by adding "/2013" to the line in createallprojects.bat~~ EDIT: Add "/define:VS2013" which will change your toolset from "v100" to "v120_xp" (as defined in source_win32_base.vpc)

~~(Even though a bit buggy, I can compile the resulting project files with vs2015)~~ EDIT: I confused the two Visual Studios.

abandoned-cocoon avatar Jun 30 '15 20:06 abandoned-cocoon

Which registry? I though the way to make VPC generate vs2013 projects is by adding "/2013" to the line in createallprojects.bat

should it be something like this? devtools\bin\vpc.exe /hl2 /episodic +everything /2013 /mksln everything.sln

TheEdgeWalker avatar Aug 12 '15 14:08 TheEdgeWalker

There seems to be a lot of issues with building the SDK with VS2015. Surely I'm not the only one that's experiencing these problems?

joeangry avatar Sep 06 '15 16:09 joeangry

You are not. On Sep 6, 2015 5:19 PM, "scart" [email protected] wrote:

There seems to be a lot of issues with building the SDK with VS2015. Surely I'm not the only one that's experiencing these problems?

— Reply to this email directly or view it on GitHub https://github.com/ValveSoftware/source-sdk-2013/issues/325#issuecomment-138097413 .

ghost avatar Sep 08 '15 11:09 ghost

Same problem here.

Nerus87 avatar Sep 18 '15 22:09 Nerus87

Did no one find a work around? I'd rather not install VS2013 again. Otherwise I guess I'll have to get this stuff setup with 2013 and then built it with 2015?

ghost avatar Sep 27 '15 13:09 ghost

Even if you get the project set up in VS2015, you'll still have to use the VS2013 (or lower) compiler tools. Due to ABI changes, the precompiled static libs are not compatible with VS2015.

psychonic avatar Sep 27 '15 13:09 psychonic

Meh, that sucks. But thanks anyway for telling me.

ghost avatar Sep 27 '15 14:09 ghost

I compile Alien Swarm mod with VS2013 but all its static libs are built with VS2005. It works fine for now. Do I risk to have undefined behavior? Should I compile with VS2005 to be on safe side?

geotavros avatar Sep 28 '15 09:09 geotavros

I believe you are alright, since most of the changes there affect ABI with the standard libraries. Valve uses that extremely sparingly, in favor of their own classes. VS 2015 shuffled around some built-in functions across libraries, which is what causes linker errors now, even if you tell it to bypass the library compiler version check with a define (which SDK 2013 already uses).

psychonic avatar Sep 28 '15 10:09 psychonic

What a load of shit that Valve hasn't fixed this crap already.

StrikerMan780 avatar Apr 08 '16 04:04 StrikerMan780

no 2015, only 2013, and 2010. just cl.exe and its combatants

bmk10 avatar May 22 '16 09:05 bmk10

Bumping this because Microsoft is really making a push to get everyone on the latest version of Visual Studio by making it harder to find a download link.

A good portion of the comments on my tutorial on youtube and steam are in regards to Visual Studio or the problem they are having is because they used 2015

Wazanator avatar Aug 20 '16 17:08 Wazanator

I don't see this happening. The code does not compile with VS2015 anyway, and it'd require Valve to update their code.

joeangry avatar Aug 20 '16 19:08 joeangry

I can sit down and sort through the code, see what needs to be fixed, but I'm assuming some issues lie within Source code only available with a VDN subscription. Still, if I can get this running, even if it's a bit hackish, it'll at least get us somewhere before the Source 2 SDK is released.

Foxtrek64 avatar Sep 14 '16 07:09 Foxtrek64

Anyway to fix this manually ?

Nerus87 avatar Sep 18 '16 23:09 Nerus87

@Foxtrek64 I don't think you'll have much luck with it. See below.

@Nerus87 there isn't. Valve needs to recompile some of their libraries with the 2015 compiler. Most of these libraries aren't in the SDK. @Nephyrin any chance we could get the source for the libraries so we can take care of the SDK ourselves?

joeangry avatar Sep 19 '16 09:09 joeangry

I think this engine R.I.P right now, Valve is not interested to continue improve or even fix bugs.

THX.

Nerus87 avatar Sep 22 '16 07:09 Nerus87

Microsoft has recently taken down all downloads of Visual Studio 2013 unless you're in the Dev Essentials program. This basically means the Source SDK is now impossible to develop with if you're a newcomer.

StrikerMan780 avatar Oct 06 '16 18:10 StrikerMan780

The Dev Essentials program has no cost and takes less than 30 seconds to sign up for if you already have a Microsoft account (which was already required for the free VS 2013 editions).

Pretty impossible indeed.

Jordon Moss wrote:

Microsoft has recently taken down all downloads of Visual Studio 2013 unless you're in the Dev Essentials program. This basically means the Source SDK is now impossible to develop with if you're a newcomer.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/source-sdk-2013/issues/325#issuecomment-252054061, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzhVgQxb6_Z6KquB6Y4ft_E35Phjx-wks5qxUJ2gaJpZM4FAyLK.

psychonic avatar Oct 06 '16 19:10 psychonic

I wasn't aware, when I tried to go to the page it was bugging out in my browser. I assumed it was a paid subscription-only thing like MSDN, or a program for registered businesses.

StrikerMan780 avatar Oct 07 '16 19:10 StrikerMan780

It appears that Visual Studio Community 2013 is still available.

You should be able to download it at this address, from official microsoft servers.

In addition, I uploaded the installer to my Source SDK 2013 fork, in case it completely disappears from their servers.

Visual Studio Community 2013 Update 5

I do hope this helps.

malortie avatar Nov 30 '16 16:11 malortie

Will changing toolset work as told in Source SDK 2013 Getting Started page?

Although Source SDK 2013 currently does NOT compile with Visual Studio 2015 (bug report) you can still use VS 2015 as IDE and compile the code with the VS 2013 toolset.

How to: Modify the Target Framework and Platform Toolset of Visual Studios

Xinecraft avatar Dec 26 '16 14:12 Xinecraft

@kinnngg

Yes, but you will need to switch to the v120 version of the toolset.

You require to have the v120 toolset installed. If not, you will need to download it from their servers. Once this is done, open up games.sln or everything.sln with the IDE of your choice.

When you open up for the first time, a project that was created in a previous version of VS, you will be prompted to update it's toolset. In this case, you should choose Not to update it.

In case you updated projects, then open up the properties (right click in solution explorer), and in the main configuration layout, find Platform Toolset, it should be v140 in 2015 and v141 if you are using the 2017 RC version. In the list there should be Visual Studio 2013 (v120). Select it.

You should then be able to compile it.

malortie avatar Dec 26 '16 14:12 malortie

@malortie

I have chosen "Not to update" but it's showing errors when I try to compile in VS2015. How can I change toolset coz there is no option to change Platform Toolset in Configuration Menu :(

Thanks

Xinecraft avatar Dec 26 '16 18:12 Xinecraft

@kinnngg

Do you have Visual Studio 2013 installed? If not, the toolset cannot be found, which is the reasons you are experiencing issues.

Unfortunately, it was removed from their servers. The only way to have it is to obtain it via Microsoft dev essentials, as stated by users above.

malortie avatar Dec 26 '16 18:12 malortie