Talk:Authoring a Logical Entity: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 9: Line 9:


Hi, I found a good tutorial that continues on this one and teaches you how to use your logical entity: [http://fabianmejia.blogspot.com/2008/06/valves-source-part-3.html Fabian Mejia: Valve's Source - Part 3]  
Hi, I found a good tutorial that continues on this one and teaches you how to use your logical entity: [http://fabianmejia.blogspot.com/2008/06/valves-source-part-3.html Fabian Mejia: Valve's Source - Part 3]  
You'll work with the editor Hammer that you can find when opening the Source SDK in Tools, but it's very easy to follow! Have fun!
You'll work with the editor Hammer that you can find when opening Steam -> Tools -> Source SDK (where you also create your mod), but it's very easy to follow! Have fun!
Now a question is how to do that by modding the source code itself?? --[[user:Kweiko|Kweiko]] 00:39, 15 Jun 2009
Now a question is how to do that by modding the source code itself?? --[[user:Kweiko|Kweiko]] 00:39, 15 Jun 2009



Revision as of 16:22, 14 June 2009

c stands for server ?

why prefixing server-side with stuff with the c letter ? i fail to see the subtility with the "c_" for "client side". why not "s" or "sr" ? Meithal 10:54, 2 Jun 2008 (PDT)

  • It has been my understanding that C in the beginning of a class name means just that, "class". This as part of the Hungarian notation. But reading this made me wonder. For some reason it doesn't sound too unfamiliar however. Think I might have heard or seen this myself before. --Kodak 06:37, 30 January 2009 (UTC)

Testing the entity

So, maybe this is silly, but maybe this tutorial should also include instructions on testing this entity we just made on a map so that we know it actually did something. From what is here I have code that compiles but no idea if it actually did anything other than faith in the person who wrote the tutorial. How does one trigger the entity so it prints to the screen or console (or wherever it prints) when they put the entity into a map and run it? ent_fire? what? Zarbon9696

You'd tie a map output to OnThreshold, and use either an input or ent_fire to prod it. You're right though, something needs to be added. --TomEdwards 03:03, 2 Jul 2008 (PDT)

Hi, I found a good tutorial that continues on this one and teaches you how to use your logical entity: Fabian Mejia: Valve's Source - Part 3 You'll work with the editor Hammer that you can find when opening Steam -> Tools -> Source SDK (where you also create your mod), but it's very easy to follow! Have fun! Now a question is how to do that by modding the source code itself?? --Kweiko 00:39, 15 Jun 2009

What's with the C++ tutorial?

This is a VDC article on how to mod in Source; why aren't we assuming that readers have a working knowledge of C++, and letting the unenlightened go to other, more in-depth websites actually intended to explain programming fundamentals? The extra stuff is making me have to sift through the article to find actual information. --TheRatcheteer 21:33, 7 Jul 2008 (PDT)

It's the first in the "Your First Entity" series, geared towards beginners. I'd argue that there is some use for the information, seeing as some modders might be very new to programming and they're learning to code by hacking through the SDK (as misguided as that might be).. but I see your point too. --Campaignjunkie (talk) 23:41, 7 Jul 2008 (PDT)
It comes down to the balance of requirements. There's little argument that the number of people already familiar with C++ trying to use this article isn't far smaller than the number who have never written a line of it before. (Plus if you already understand C++ you can just read the commented source code, surely?) --TomEdwards 02:07, 8 Jul 2008 (PDT)

Forgetting something?

// memdbgon must be the last include file in a .cpp file!!!

#include "tier0/memdbgon.h"

This is to avoid memory leaks right? Idk i'm not a pro coder but seems fairly self explanatory :P
--Jenkins08 11:07, 7 April 2009 (UTC)