.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
VC++ or VC .net?
Old
  (#1)
gerbopel
Member
 
Status: Offline
Posts: 1
Join Date: Jan 2005
Default VC++ or VC .net? - 01-01-2005

To develop AI code for a HL2 MOD do I need .NET or can I get by with VC++ 6.0? Is it designed for .NET or VC++ 6.0?

Cheers,
Gerb
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#2)
Cpl. Shrike
ShrikeBot Coder/Moderator
 
Cpl. Shrike's Avatar
 
Status: Offline
Posts: 550
Join Date: Mar 2004
Location: The Netherlands
Default Re: VC++ or VC .net? - 01-01-2005

Both can be used. Read this almost at bottom of page.

http://www.valve-erc.com/srcsdk/faq.html#faqCompiler2
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#3)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: VC++ or VC .net? - 01-01-2005

don't use MSVC 6.0. It has many ugly bugs, mainly in STL and C++ core.


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#4)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: VC++ or VC .net? - 01-01-2005

there was something like 6.x after 6.0. ( you can't look up when you're not at home, that making me crazy ) that 6.x had a lot better browse functionality, in .net it's just luck if it works, and some functions were even removed.

and for slower computers .net isnt the best choice, the compiler is significantly slower, although some stuff like asm intrinsics etc are now working by default, no update needed there.


  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#5)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: VC++ or VC .net? - 01-01-2005

MSVC rocks. Its fast, it works, and i tried .Net , its slow as hell and it did not work as i wanted it to work.

Btw, the .net framework, sucks as well , imo. I don't need it, i don't even *want* to need it


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#6)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: VC++ or VC .net? - 01-01-2005

I use MinGW. How would I use that with HL2?


sfx1999.postcount++
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#7)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: VC++ or VC .net? - 02-01-2005

well unfortunately I don't think MinGW can be used with HL2 because it don't know what "__asm" is.
But for HL1 it's perfect and unlike MSVC6, it also complies with ANSI C/C++ Standards

M$ also has a "command-line compiler" which you can get for zero price, not sure if that works with HL2

(I don't want to touch a certain sensitive topic this time)

Quote:
Originally Posted by @$3.1415rin
there was something like 6.x after 6.0. ( you can't look up when you're not at home, that making me crazy ) that 6.x had a lot better browse functionality, in .net it's just luck if it works, and some functions were even removed.
I don't think there is a MSVC 6.x - http://msdn.microsoft.com/visualc/
but there are several hhhhhhuuuuuuuuuuuggggggeeeeeee service packs (really huge!!!) for MSVC6

Last edited by Whistler; 02-01-2005 at 08:00..
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#8)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: VC++ or VC .net? - 02-01-2005

Well, not all of it is ANSI compliant. A long long (64-bit int) is a POSIX thing I believe.

Anyway, it is possible to write alternative code. I bet it is already in there due to the Linux version.


sfx1999.postcount++
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#9)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: VC++ or VC .net? - 02-01-2005

DO NOT USE MSVC6.0.
Newset service pack for MSVC6.0 is version 6 and there is also a processor pack for MSVC6.0, but is is still buggy. If you insist on using MSVC6.0, download newest Platform SDK from Microsoft and patches for C++ from dinkumwares site.

If .NET is too slow for you, use MinGW.

About __asm, MinGW uses gcc style of asm.
Example between Microsofts style and MinGW :
Code:
#if defined __unix__ || ( defined _WIN32 && defined __GNUG__ )
	// this is for gcc and MinGW
	__asm__ __volatile__ (
		"rdtsc\n\t"
	: "=A" (cycles)
	: );
#endif

#if defined _WIN32 && !defined __GNUG__
	// this is for MSVC
	__asm { 
		push eax
		push edx
		rdtsc 
		mov dword ptr [cycles],eax 
		mov dword ptr [cycles+4],edx 
		pop edx
		pop eax
	}
#endif
long long is not defined in ISO C++ standard, but it is supported both by gcc/MinGW and MSVC.NET. However I recommned not using long, because it is represented differently in 64bit systems (ling is 64b in unix64 and 32b in WIN64)

And for those whiners who don't use MinGW because it does not have IDE, well look here http://www.bloodshed.net/dev/devcpp.html


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)

Last edited by koraX; 02-01-2005 at 12:02..
  
Reply With Quote
Re: VC++ or VC .net?
Old
  (#10)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: VC++ or VC .net? - 02-01-2005

can't seem to open the bloodshed.net site but here is also the official download for Dev-Cpp:
http://sourceforge.net/projects/dev-cpp

There is also KDevelop for GNU/Linux (which is part of KDE) which can be used for editing the source code. You can also use GNU Emacs (with syntax highlighting, auto formatting the code and so on, for both GNU/Linux and Windows) but it's just an editor and not an IDE.

another thing is: do *NOT* use the MinGW version shipped with Dev-Cpp. it has bugs which can't compile HL bots. Download the MinGW which works for HL here:
http://prdownloads.sourceforge.net/m...1.exe?download

P.S., actually the MinGW compiles kinda slowly... but the original GCC under GNU/Linux isn't slow, dunno if this is M$'s fault or MinGW hacker's fault. But I don't care about it due to the reasons some of you may already know

Last edited by Whistler; 02-01-2005 at 14:25..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com