AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   [C++] [HLSDK] Documentation or anything? (https://forums.alliedmods.net/showthread.php?t=149505)

Silencer123 02-07-2011 17:38

[C++] [HLSDK] Documentation or anything?
 
Hello, it has been a while. I figured this board comes closest to what I need help with.

I'm working with the HLSDK right now and wondered if there is any such thing as an introductory tutorial about or documentation on where to look for which things and what's the system/structure behind this bloat of cpp and header files even. I have gradually figured out stuff but when I want a specific feature/method I end up searching in the code for hours without finding what I am looking for.

Specifically, just now I was looking for a way to register a server command and hook it to a function, but couldn't find anything for that.

I also was hoping to find a simple comment block explaining server flow, like what can be considered an entry point for the mod and which functions are wandered in which order on server start, on mapchange/-load, on servershutdown and on exit, but nothing like that is to be found anywhere.

Also no information about what data structures are used, where which data is stored and how it is managed.

C++ - no problem. Utilizing a well-documented set of classes or stock methods or API - bring it on! Grasping what Valve did here - Please spare my life!! D:

I'd greatly appreciate help or an explanation about that, but even better would be a tutorial or documentation.

Thanks in advance.

Best regards,
Silencer

Silencer123 02-13-2011 19:07

Re: [C++] [HLSDK] Documentation or anything?
 
Why is it always me who has these difficult unanswerable requests? :<

Arkshine 02-13-2011 19:58

Re: [C++] [HLSDK] Documentation or anything?
 
Just, read, read, and [...] read many times all the HLSDK. But look, if you ask that, it means you don't have knowledge in C/C++. That's something you should be easily understand by looking the header and such.

Anyway, what you ask doesn't exist. So, search, you may find some informations here and there somewhere.

Seta00 02-14-2011 12:20

Re: [C++] [HLSDK] Documentation or anything?
 
Quote:

Originally Posted by Arkshine (Post 1414743)
what you ask doesn't exist.

Of course it does, you just have to buy a license from Valve ;)

ehha 02-14-2011 18:21

Re: [C++] [HLSDK] Documentation or anything?
 
Errmm... Windows Grep?

Silencer123 02-16-2011 13:36

Re: [C++] [HLSDK] Documentation or anything?
 
They don't even have basic explanations in the header files. It's all "go figure"-policy.
"Don't know C++" is an ambiguous formulation. Of course I am always learning, but I won't
agree that having problems utilizing entirely undocumented source code identifies me as
a beginner. Documenting and commenting your code is common sense, especially the dirty
C-parts which have no relations to any OOP-structures that might be self-explanatory.
Nonetheless, question answered. Thanks.

Arkshine 02-16-2011 14:04

Re: [C++] [HLSDK] Documentation or anything?
 
If I've said "don't have knowledge in C/C++" is because I'm dumb and without real c/c++ knowledge, but after reading again an again you start to understand, you search for things, you get some informations here and there, you test, you read again, etc. The point is even me after some reading I understand more or less how works the thing. Your post was appearing me like someone lazy to search, the more when it seems he got some c/c++ knowledge. Even if there is not a real documentation, you still have a many informations around and inside the SDK.

Shadows In Rain 02-18-2011 23:44

Re: [C++] [HLSDK] Documentation or anything?
 
cdll_int.h, line 128.
Search took two minutes.


All times are GMT -4. The time now is 20:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.