Check out Half-Life Re-imagined competition results!
Check out Skewing textures in Hammer, our newest tutorial!
Say hello to sarab, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

15

Cobalt

32

Turquoise

10

Cyan

11

Royal

9

Teal

3

Onliners

4 mins

potatis_invalid

27 mins

Jessie

31 mins

Snehk

1 hours

JeffMOD

1 hours

twitch1

2 hours

Tetsu0

2 hours

Penguinboy

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

Half-Life engine access

<< ... 5 6 7 8 9 [10]

Forums > HL Engine Discussion

04 Aug 17, 14:50
By abbadon
avatar
Member
Will not it be better to buy MsVC++ 6.0? I have seen copies for 60€ on AMAZON...

https://www.amazon.com/Microsoft-Visual-Ver
sion-6-0-Standard/dp/B00002SFL3


I think it will worth the money. wink-wink - ;)
04 Aug 17, 14:56
By James Luke
avatar
Member
17 produces no warnings or errors on my end using your code.

Also, just use 17. No reason as to use a very outdated tool that costs a decent amount of money. 17 is FREE.
04 Aug 17, 15:13
By Snehk
avatar
Member
MsVC++ 6.0 will be good only for compiling the outdated hl sdk. Solokiller's code is optimised for newer compilers and C++ standard (I think), so it should be used with newer IDE version. And as James Luke already pointed, Community Editions are free.
04 Aug 17, 15:25
By James Luke
avatar
Member
It's just a matter of putting some work into maintaining such an old SDK.

Some people are lazy and don't want to put the effort in.

That's just my point of view.

Also, wouldn't you want to take advantage of the features modern C++ brings?
04 Aug 17, 15:54
By Solokiller
avatar
Member
Newer compilers bring bug fixes, faster compilation, improved bug detection and better optimizations in addition to newer C++ features.

C++20 may come with metaclasses to generate code at compile time, much like the work i'm doing to generate Angelscript registration code automatically. Stuff like the custom schedules macro would be part of a monster entity metaclass, which itself inherits from an entity metaclass that sets up everything an entity would need.

It would make all of my current efforts obsolete, so if VS2020 comes with it i'd upgrade in a heartbeat.

In the same way that C++11 has things like auto, smart pointers, cross-platform threading utilities, and C++17 has a cross-platform filesystem, every other version brings important new features.

C++20 is already slated to include compile time reflection, which on its own can be used for scripting if needed, as well as doing away with ugly macro based save/restore code.
As long as you can access user defined annotations you can mark anything you want and generate the data on startup, in a way that's so much more efficient than before that it makes Source look like GoldSource in terms of code quality.

Now compare that with VS6, which may fail to compile valid template code and has pre-standard C++ libraries that will break if compiled in newer versions. The old SDK didn't even compile in newer versions at all due to non-standard code relying on more permissive compilers.
04 Aug 17, 16:02
By Snehk
avatar
Member
So C++20 will bring really cool stuff. Your work is already a godsend for people tinkering with hl code. Updating it to newcoming standard will make things even better.

I only wonder how much rewriting or how many minor tweaks it'd take to update it, and how many adjustments you'll need to do if metaclasses and code generation at compile time will come to implement AngelScript.
04 Aug 17, 17:10
By Solokiller
avatar
Member
Not much. Most of my time working on code generation has been spent getting the data in the right format to generate stuff, which reflection and metaclasses do for you.

Right now it's libClang->code processor->generator->Mustache templates, with C++20 it'd be metaclasses + reflection->generated code. Metaclasses is designed to use reflection as its main feature, so it'd be almost trivial. I think a good afternoon's worth of work would do the trick for basic API registration. A solid week would handle pretty much any generated code features.
04 Aug 17, 22:05
By SourceSkyBoxer
avatar
Member
@James thanks I promise that I will learn about C/C++ but not much ( 10 % ? :/ ) Please do not worry! I will learn more...

@SoloKiller Thanks for different solutions! You're right.

Oh "Visual Studio 2020"? How did you get news? from Microsoft's blog? I never listen news. But please wait until final version! No beta or no rc!

// Edit: VS2020 sees like fake or real? But I already search Google. Do you think new user interface of Visual Studio 2020?
04 Aug 17, 22:50
By James Luke
avatar
Member
Also, learn more C++, it's better to know more. There are a lot of things I still don't know about it, but everything I'm learning I try to use instead of arcane/old methods. It's just better.

Another things, I wouldn't trust the Images tab of Google for the interface changes in Visual Studio 2020, Microsoft will probably release more information over the years. And I'd bet on a new UI, but somewhat similar to the clean and crisp design of 17 and similar versions.

Every year or every few years Microsoft tends to release another version of Visual Studio, that could possibly land on 2020; and I'd place my bets on a 2020 version as well, it's just a simple number to remember.

Also, C++20 will most likely be a thing as well, since the C++ Standards Committee started talks on it already. I'm excited.
04 Aug 17, 23:13
By Solokiller
avatar
Member
I figure it'll be VS2020 but it could be VS2019 and VS2021 if they continue the 2 year release cycles as they have for the past few years.
05 Aug 17, 01:10
By James Luke
avatar
Member
Probably; just wishful thinking.
<< ... 5 6 7 8 9 [10]

Forums > HL Engine Discussion

Login to Reply

You must be logged in to reply.