.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 1 SDK (http://forums.bots-united.com/forumdisplay.php?f=33)
-   -   Half life SDk with Visual Studio 2010? (http://forums.bots-united.com/showthread.php?t=8936)

pivke 26-07-2011 12:33

Half life SDk with Visual Studio 2010?
 
Hi,
looks like nobody is really active in this section of the forum. But I will give a try:
Recently, I downloaded the Half Life 1 SDK. Unfortunately all the projectfiles are made for Visual Studio 6. The problem; Visual Studio 2010 seems to be too "new" for that old stuff. Or there has to be an importing/converting problem.

My question; How do you all work with the SDK, when you don't work with Visual Studio 6? Do I have the wrong SDK? What is my mistake?

Thank you very much ahead!

SamPlay 26-07-2011 17:09

Re: Half life SDk with Visual Studio 2010?
 
HI,
you should not expect a lot of activity during summer holidays!
I am using vc9 , not vc 10 but I compiled several old programms developped with vc6. It works but you unfortunately have to correct the code in some places:
- first because vc6 allowed things that are now forbidden , and set as such in in ms compilers> vc6; mainly due to "int i" and the like set in "for" loops the declaration of wich is now restricted to the loop (easiest solution: place the "int i" or whatever outside the loop: beware that the behavior is still the same.)
replace
for(int i= 0...)
by
int i;
for( i=...
this is the simplest but most time consuming change to do.
- in some case vc6 would allow a function as a righ-hand-side value where a function pointer is now demanded ( add a &..).
- some macros in the sdk bear the same name than macros introduce by ms later: no general solution here ( eg use "#undef ...", change sdk macro name, change order of #includes",..)
-warnings are generated for "old style" ( mainly input/output) standard functions ( fopen,..) but they still work and the compiler tells what preprocessor directive to use to get rid of those warnings.
-"libc.lib" may cause problems, which I always successfully get rid of by adding this lib in the "ignore specific library" in the "input" section of the linker. This goes along with getting rid of reference to the vc6 project in the "Inherited Project property sheets" in the"General" section once it has been translated into a vc9 solution.
I probably forgets some issues but
1. google is your friend, even for what seem extremely specific issues
2. I may help- just post here-, as I have gone trough that ( painful ) process before.
Again I assume vc10 is not too different from vc9.
good luck!

SamPlay 27-07-2011 22:30

Re: Half life SDk with Visual Studio 2010?
 
have a look there (bottom of comments):
http://www.moddb.com/games/half-life...lf-life-sdk-23

tschumann 06-08-2011 02:26

Re: Half life SDk with Visual Studio 2010?
 
This compiler flag fixes the loop counter declaration errors.

Immortal_BLG 06-08-2011 14:11

Re: Half life SDk with Visual Studio 2010?
 
Try this


All times are GMT +2. The time now is 11:56.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.