Re: [INC] Colors (1.0.5)
okay, but how is it possible then, that only i am able to see the other colors, when only i have it on my computer?
"on the computer that is doing the compiling" i cant compile it from sourcemod/compiler.php? computer= my computer? xD i got colors.inc and morecolors.inc on my desktop btw i go to bed now, its 3:35 AM, gonna read your message later, Thanks anyways |
Re: [INC] Colors (1.0.5)
Wow.
The server doesn't need the include file, as all the information on how to make colors GETS COMPILED INTO THE SMX. Once the SMX is created, the include is no longer needed for anything to function. All the "how do i colors" info that the plugin needs is IN THE PLUGIN. Quote:
|
Re: [INC] Colors (1.0.5)
3 Attachment(s)
okay thanks, how can i compile it then without the sourcemod compiler?
EDIT: i downloaded sourcemo 1.5.2 on my computer, went to sourcemod/scripting, added anticamp.sp. In include i added morecolors.inc. Then windows+R - cmd in scripting spcomp.exe anticamp.sp *see attachment* this is my new compiled anticamp.sp *see attachment* at this point, after cmd says, its compiled, morecolors.inc should be included or? If yes, then i tried to go to translations folder and added {cyan} or {olive}. But now the FULL message ingame is {DEFAULT}. Without the changes, the original anticamp.sp, its teamcolor and green in the message. |
Re: [INC] Colors (1.0.5)
Hey, I was debating whether using this include or more colors. More colors works great with TF2 which I tested, but it doesn't work for non-source 2009 games like L4D2 (which is unbelievable since L4D2 was released in 2009 and is a source game). However, it has some stocks maybe that can be added to colors.inc such as:
Code:
/** |
Re: [INC] Colors (1.0.5)
Quote:
To do it properly is a bit of effort, because you have to essentially duplicate what SourceMod is doing for each of these functions. While not impossible, it's a bit of a pain, especially since only natives can pass ... parameters to other functions... because ShowActivity and ShowActivityEx are essentially the same function. Sometimes I think Colors and MoreColors should just be plugins to deal with this sort of thing, but then you'd only be able to have one or the other loaded at a time. |
Re: [INC] Colors (1.0.5)
4 Attachment(s)
If you really want it, though, I've included a version here which duplicates what SourceMod does with ShowActivity.
While I was at it, I fixed a bug in ReplyToCommand not setting the translation target correctly and also added ReplyToCommandEx. None of these has actually been tested, though. colors-tester.smx is a quick plugin to test the CShowActivity, CShowActivityEx, and CShowActivity2 responses. Note that {teamcolor} is set to the client argument's color since it's logging what they are doing. |
Re: [INC] Colors (1.0.5)
3 Attachment(s)
The copy from my previous post was missing some color tag stripping before printing to the server or the console in the ShowActivity things. Whoops.
Still not thoroughly tested. |
Re: [INC] Colors (1.0.5)
Quote:
Quote:
Quote:
|
Re: [INC] Colors (1.0.5)
Quote:
Ok been testing this with multiple plugins and it seems to have trouble with translations and ends up not printing anything. I used the slap.sp with playercommands from sourcemod as one of my tests and got this: Code:
L 03/25/2014 - 11:29:56: [SM] Plugin encountered error 4: Invalid parameter or parameter type |
Re: [INC] Colors (1.0.5)
2 Attachment(s)
Quote:
Edit: Spotted more errors. Fixing really quickly. Edit 2: Fixed all 4 VFormat calls each for both CShowActivity2 and CShowActivityEx. NOTE: This version is compiled for Debugging, so it has a lot of extra debugging messages output. I'll probably compile a non-debug version sometime soon (April 1). |
| All times are GMT -4. The time now is 22:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.