HLFX.Ru Forum
Показать все 15 сообщений этой темы на одной странице

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Xash3D (https://hlfx.ru/forum/forumdisplay.php?forumid=14)
-- XashXT 0.63 for Visual C++ 2008 (https://hlfx.ru/forum/showthread.php?threadid=4305)


Отправлено Striker 22-02-2014 в 07:39:

XashXT 0.63 for Visual C++ 2008

Hi, I'm new here. I'm only an English speaker from Canada, with no ability to read Russian, so it is incredibly difficult for me to navigate the forum...

This is the first real work I've ever done in C++, so I'm a newbie...

However, I managed to make the necessary changes to XashXT 0.63's source code to make it possible to compile with Microsoft Visual C++ 2008 Express Edition. There's a lot of warnings for deprecated functions, and mismatched signed/unsigned INTs, but after many hours of tedious work, it compiles, and from my knowledge works perfectly fine. Someone with more C++ experience will need to clean things up a bit and get rid of those warnings, but it's all seemingly good to go.

Hopefully this will be of great help to the Xash project. Also, let me know if I messed something up.

Link: https://shadowmavericks.com/files/XashXT_VC2008.7z

You'll need 7-zip to extract it: http://7-zip.org


Отправлено XaeroX 22-02-2014 в 07:56:

Цитата:
Striker писал:
I'm only an English speaker from Canada

How do you estimate chances to beat Sweden in a gold medal game tomorrow?
Цитата:
Striker писал:
There's a lot of warnings for deprecated functions

Add _CRT_SECURE_NO_DEPRECATE macro to the project settings, "preprocessor definitions" field.
Цитата:
Striker писал:
mismatched signed/unsigned INTs

You can disable particular warnings using #pragma warning( disable: xxxx ) directive.

__________________

xaerox on Vivino


Отправлено Striker 22-02-2014 в 08:03:

I don't know where to find the quote button because I can't pick an English interface...

But anyhow..

A: No idea, I don't follow sports.

B: I'll likely end up doing that then.

C: Wouldn't it be better to fix the signed/unsigned mismatches?


Отправлено XaeroX 22-02-2014 в 08:18:

Цитата:
Striker писал:
I'll likely end up doing that then.

Afaik this is the only solution until you want to replace all the deprecated functions in all the files. And sometimes this is more complicated that simple rename (e.g. in the case of fopen/fopen_s). Also note that secure CRT is not portable.
Цитата:
Striker писал:
Wouldn't it be better to fix the signed/unsigned mismatches?

This can be risky. You'd rather disable the warning, since the code itself works fine.
Цитата:
Striker писал:
I don't know where to find the quote button

Select a text in the post and then click the rightmost button under that post ().

__________________

xaerox on Vivino


Отправлено Striker 22-02-2014 в 09:29:

Ok, everything is fixed up, and here's a new download: https://shadowmavericks.com/files/XashXT_VC2008.7z

Could an admin please update the 1st post with the new link? The 20 minute expiry prevented me from updating it.


Отправлено XaeroX 22-02-2014 в 09:50:

Цитата:
Striker писал:
Could an admin please update the 1st post with the new link?

Done.

__________________

xaerox on Vivino


Отправлено Striker 22-02-2014 в 18:26:

Hopefully future versions of Xash3D and XashXT will be updated to compile with VC++ 2008 with my changes... VC++ 6.0 is incredibly old, and impossible to get legally anymore.


Отправлено XaeroX 22-02-2014 в 18:32:

Цитата:
Striker писал:
VC++ 6.0 is incredibly old, and impossible to get legally anymore.

The problem of legality of the compiler is the last problem to think of.
"Don't ask - don't tell".

__________________

xaerox on Vivino


Отправлено Striker 22-02-2014 в 18:51:

I guess non-standards compliance is another issue, plus it's a pain in general...


Отправлено KiQ 23-02-2014 в 05:17:

Striker you can start a fork of Xash with your changes, like linux port. Or make tutorial.

Добавлено 23-02-2014 в 09:17:

You seriously? Which people from Russia use legal version of MVS? Or did you spy of Microsoft?

__________________
-Brain is dead-


Отправлено Striker 23-02-2014 в 09:42:

To see what I did, I'd suggest using a DIFF tool to compare/see line-for-line, and file-for-file changes with the XashXT 0.63 sources. The changes at that point would be self-explanatory.

WinMerge might be able to do this without much issue: http://winmerge.org/

Just set up a folder with my source, and another from the source code contained in this: http://www.moddb.com/engines/xash3d...h3d-mod-toolkit

and compare them with WinMerge.

Is there an existing GitHub or BitBucket page with the existing and up-to-date XashXT Sources? The only place I could find up-to-date code was in the ModDB download.


Отправлено KiQ 23-02-2014 в 09:57:

Striker see https://code.google.com/p/sing-engine/

__________________
-Brain is dead-


Отправлено fire64 23-02-2014 в 11:28:

Цитата:
KiQ писал:
Striker see https://code.google.com/p/sing-engine/

Oh no, it's very old not supported.

__________________
Вся сила лысого кощея,
Сокрыта в башне из костей
Воздвигнутой, под небесами
На месте похорон людей


Отправлено KiQ 23-02-2014 в 11:51:

fire64 but no other Xash repositories on GitHub, people can update that

__________________
-Brain is dead-


Отправлено Striker 23-02-2014 в 22:48:

Ok, I made a BitBucket repository, have fun.

https://bitbucket.org/jordon_moss/xashxt-vc2008/src


Временная зона GMT. Текущее время 23:20.
Показать все 15 сообщений этой темы на одной странице

На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024