HLFX.Ru Forum Страницы (2): « 1 [2]
Показать все 20 сообщений этой темы на одной странице

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- XashXT (https://hlfx.ru/forum/forumdisplay.php?forumid=30)
-- Problem with compiling server.dll (https://hlfx.ru/forum/showthread.php?threadid=4388)


Отправлено CRxTRDude 08-05-2014 в 04:23:

Цитата:
Burner писал:
virtual int____Save( CSave &save );
virtual int____Restore( CRestore &restore );


That was originally part of the old save/restore for HL SDK. Glad you found it.

Hope that you make your mod successful!


Отправлено Дядя Миша 08-05-2014 в 12:21:

I'm forgot said about one little thing.
You need remove all 'EXPORT' words from function declarations and add into datadesc new string like this:

C++ Source Code:
1
void EXPORT IdleThink( void ); // remove word EXPORT here
2
 
3
see below
4
BEGIN_DATADESC( CFlockingFlyer )
5
DEFINE_FIELD( m_pSquadLeader, FIELD_CLASSPTR ),
6
DEFINE_FIELD( m_pSquadNext, FIELD_CLASSPTR ),
7
...
8
...
9
DEFINE_FUNCTION( IdleThink ), // <- add string here

If you want that save\restore was working properly.

__________________
My Projects: download page

F.A.Q по XashNT
Блог разработчика в телеграме

Цитата:

C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'


Отправлено Burner 08-05-2014 в 16:04:

Цитата:
CRxTRDude писал:
That was originally part of the old save / restore for HL SDK. Glad you found it. Hope That you make your mod Successful!

Thanks!

Цитата:
Дядя Миша писал:
I'm forgot said about one little thing.
You need remove all 'EXPORT' words from function declarations and add into datadesc new string

Wait, add that string from "void EXPORT IdleThink( void )" into "DATADESC" ?...you added in "DEFINE_FUNCTION"

At me, looks like this (a single word "EXPORT" finding in "gonome.cpp"):
C++ Source Code:
void EXPORT Animate( void );
 
DECLARE_DATADESC();

What exactly I have to do here? :-?


Отправлено Дядя Миша 08-05-2014 в 17:10:

Burner compare files from HLSDK and XashXT for better understanding.

__________________
My Projects: download page

F.A.Q по XashNT
Блог разработчика в телеграме

Цитата:

C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'


Отправлено Burner 12-05-2014 в 22:50:

Ok, I got It Thank you for your help!


Временная зона GMT. Текущее время 07:59. Страницы (2): « 1 [2]
Показать все 20 сообщений этой темы на одной странице

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