Forum posts

Posted 5 hours ago2024-05-12 15:00:38 UTC
in Problems with the old .sln project Post #348793
Okay i just installed MSVC 143 - build tools C++ VS 2022 for x64/x86 (version 14.36-17.6) and the problem is gone.🥳
Posted 1 day ago2024-05-11 13:23:37 UTC
in Problems with the old .sln project Post #348788
Year ago i was worked on my mod and put it aside and a year later i can't build cuz i have seeing this error:

2>C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\cctype(11,10): error C1083: Cannot open include file: 'ctype.h': No such file or directory
2>(compiling source file '../../dlls/crowbar.cpp')
2>C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\cctype(11,10): error C1083: Cannot open include file: 'ctype.h': No such file or directory
2>(compiling source file '../../dlls/gauss.cpp')
2>C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\cctype(11,10): error C1083: Cannot open include file: 'ctype.h': No such file or directory
2>(compiling source file '../../dlls/egon.cpp')
2>D:\.HLSDK\ad\halflife-updated-master\public\interface.cpp(1,10): error C1083: Cannot open include file: 'string.h': No such file or directory
2>C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.39.33519\include\cctype(11,10): error C1083: Cannot open include file: 'ctype.h': No such file or directory

also don't know why but my visual studio was uninstalled and when I installed it again and opened the .sln project, visual studio didn't ask me to upgrade to v143.I checked for ctype.h and it doesn't exist. What i should to do?
Posted 9 months ago2023-07-19 07:30:00 UTC
in Source code of GameUi.dll Post #347721
Yeah, thx for the reply
Posted 9 months ago2023-07-18 20:12:25 UTC
in Source code of GameUi.dll Post #347719
Where can I get the source code of GameUi.dll? I wanna make a new button in the main menu with new function maybe there is another way to do it.
Posted 10 months ago2023-07-02 06:59:46 UTC
in multiple effects.h errors Post #347676
Idk what i did but now all is OK. Maybe visual studio complained about something
Posted 10 months ago2023-07-02 06:36:40 UTC
in multiple effects.h errors Post #347675
Yes I did
Posted 10 months ago2023-07-01 19:34:30 UTC
in multiple effects.h errors Post #347673
When i compile hl_cdll I see this:

Build started..
1>------ Build started: Project: hl_cdll, Configuration: Debug Win32 ------
1>dbarrel.cpp
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(34,1): error C2504: 'CPointEntity': base class undefined
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(46,14): error C3646: 'AnimateThink': unknown override specifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(46,27): error C2059: syntax error: ')'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(46,28): error C2238: unexpected token(s) preceding ';'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(47,14): error C3646: 'ExpandThink': unknown override specifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(47,26): error C2059: syntax error: ')'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(47,27): error C2238: unexpected token(s) preceding ';'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(48,11): error C2061: syntax error: identifier 'CBaseEntity'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(51,55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(51,55): error C2143: syntax error: missing ',' before '&'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(53,28): error C2061: syntax error: identifier 'edict_t'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(93,14): error C3646: 'AnimateUntilDead': unknown override specifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(93,31): error C2059: syntax error: ')'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(93,32): error C2238: unexpected token(s) preceding ';'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(95,12): error C2061: syntax error: identifier 'CSave'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(96,15): error C2061: syntax error: identifier 'CRestore'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(97,25): error C3646: 'm_SaveData': unknown override specifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(97,35): error C2143: syntax error: missing ',' before '['
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(97,36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(98,68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(98,68): error C2143: syntax error: missing ',' before '&'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(98,91): error C2143: syntax error: missing ')' before ';'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(98,91): error C2059: syntax error: ')'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(36,7): error C3668: 'CSprite::Spawn': method with override specifier 'override' did not override any base class methods
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(37,7): error C3668: 'CSprite::Precache': method with override specifier 'override' did not override any base class methods
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(39,6): error C3668: 'CSprite::ObjectCaps': method with override specifier 'override' did not override any base class methods
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(48,7): error C3668: 'CSprite::Use': method with override specifier 'override' did not override any base class methods
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(95,7): error C3668: 'CSprite::Save': method with override specifier 'override' did not override any base class methods
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(96,7): error C3668: 'CSprite::Restore': method with override specifier 'override' did not override any base class methods
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(42,7): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(43,12): error C2065: 'FCAP_DONT_SAVE': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(44,11): error C2653: 'CBaseEntity': is not a class or namespace name
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(44,40): error C2065: 'FCAP_ACROSS_TRANSITION': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(55,7): error C2065: 'pEntity': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(57,4): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(57,25): error C2065: 'pEntity': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(57,16): error C3861: 'ENTINDEX': identifier not found
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(58,4): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(58,16): error C2065: 'attachment': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(59,4): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(59,18): error C2065: 'pEntity': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(60,4): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(60,20): error C2065: 'MOVETYPE_FOLLOW': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(68,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(69,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(70,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(71,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(72,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(73,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(75,44): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(76,38): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(79,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(80,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(81,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(83,46): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(87,22): error C2039: 'AnimateUntilDead': is not a member of 'CSprite'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(33,7): message : see declaration of 'CSprite'
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(87,1): error C2065: 'AnimateUntilDead': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(87,3): error C3861: 'SetThink': identifier not found
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(88,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(89,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(89,18): error C2065: 'gpGlobals': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(90,3): error C2065: 'pev': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(90,20): error C2065: 'gpGlobals': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(107,1): error C2504: 'CBaseEntity': base class undefined
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(119,14): error C3646: 'TriggerTouch': unknown override specifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(119,27): error C2065: 'CBaseEntity': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(119,40): error C2065: 'pOther': undeclared identifier
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(119,46): error C2096: 'EXPORT': A data member cannot be initialized with a parenthesized initializer
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(119,7): error C2182: 'EXPORT': this use of 'void' is not valid
1>G:\.HLSDK\s\halflife-updated-master\dlls\effects.h(119,46): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>Done building project "hl_cdll.vcxproj" -- FAILED.
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
Elapsed 00:01,817
What can be the problem?
Posted 10 months ago2023-07-01 13:50:36 UTC
in Weapon problem Post #347672
I making my own weapon all is OK but when i move to next map by trigger_changelevel my weapon doesn't work i can see it in my inventory but cant select it.

i think there is a problem becouse my weapon (weapon_dbarrel) dont transferring.

Transferring player (1)
Transferring monster_zombie (16)
Transferring monster_zombie (17)
Transferring weapon_crowbar (18)
Transferring game_counter (19)
Transferring monster_zombie (20)
Transferring fireanddie (21)
Compressing split packet (7146 -> 3946 bytes)
Game started

how to fix it?

I fix it
Posted 10 months ago2023-06-30 14:37:55 UTC
in Trigger Fires Post #347669
Thanks for the help. Only one game_counter is needed here
Posted 10 months ago2023-06-29 11:47:23 UTC
in Trigger Fires Post #347667
For example we have a 10 zombies on the map when 9 of 10 zombies are dead nothing happens but when all of 10 are dead trigger fires. How i can do it? I think with UTIL_FindEntityByTargetname but i dont know how.
Posted 10 months ago2023-06-28 19:01:00 UTC
in My model cant walk Post #347663
Thanks it works
Posted 10 months ago2023-06-27 20:31:39 UTC
in My model cant walk Post #347658
I want to make a model for a headcrab, everything is ok, but he can't walk (just staying and play animation).
piece of qc file with walking animation:
$sequence walk "walk" LX fps 12 loop ACT_WALK 1