Author Topic: Mod won't execute  (Read 2732 times)

I don't understand it unless you want organization. There's still no point in having the server.cs only execute other files.
I do this is some of my larger projects (and usually have some more general code in there as well), but there's no point in it if there's only one other file.

Would just doing
-snip-
Over and over work?
If you put each one in a seperate package, it would work but it's a really bad way of doing it.
Also, you'll be kicking people for saying words that are entirely innocent. For example, if someone says "assess" or "assassin" your filter will detect "ass" and kick them. This will be a much larger problem if you want to filter "pis" and "shi" as there are a very large amount of words with those letter sequences in them
Again, there's a client-side filter in the game and enabled by default. What's wrong with simply adding on to that? That way, you can actually go somewhere besides your own server without leaving your filter behind.

To be honest, this might make me dumb, but what does package mean for coding?
It means stick things in a package. It allows you to do additional code before/after executing a function, check/change the arguments passed to/returned from the function, etc
Code: [Select]
package samplePackage
{
function someFunction(%args)
{
echo("Say something before doing the function...");
Parent::someFunction(%args);
echo("...and another after");
}
};
ActivatePackage(samplePackage);




ALSO, you need a description.txt file. You have a misspelled, discription.txt
« Last Edit: September 06, 2012, 11:52:46 AM by Headcrab Zombie »

Or he could just skip that pointless step and put the code in server.cs
(Still don't understand why people do that)


What's wrong with the default filter?
badspot did it in weapon_gun and others