Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 21 of 21
Search took 0.02 seconds.
Search: Posts Made By: Powerlord
Forum: Snippets and Tutorials 06-10-2014, 11:15
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

It's weird... ShowActivity2 always prints to the chat when the player isn't the server. The comment next to it says:


/* We don't display directly to the console because the chat text
...
Forum: Snippets and Tutorials 06-10-2014, 09:41
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Using which command, CReplyToCommand?
Forum: Snippets and Tutorials 04-23-2014, 17:23
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Turns out my tester was calling the wrong code and not testing CShowActivity2. Which was trying to print the wrong variable.

So, here's a new version that fixes it.
Forum: Snippets and Tutorials 03-26-2014, 16:06
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Looks like I passed the wrong argument to VFormat in CShowActivity2 and CShowActivityEx. Try this.

Edit: Spotted more errors. Fixing really quickly.

Edit 2: Fixed all 4 VFormat calls each for...
Forum: Snippets and Tutorials 03-15-2014, 02:15
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

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.
Forum: Snippets and Tutorials 03-14-2014, 16:07
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

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...
Forum: Snippets and Tutorials 03-14-2014, 15:03
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

To get these working correctly requires a bit of effort. For example, just by looking at the code, I can tell you that translations don't work properly with morecolors.inc's CShowActivity functions...
Forum: Snippets and Tutorials 08-23-2013, 16:16
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Use CReplyToCommand when sending text to a client from inside a ConsoleCmd or AdminCmd. It calls CPrintToChat if the client is a player. It calls CRemoveTags and PrintToServer if the client is the...
Forum: Snippets and Tutorials 08-23-2013, 13:18
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

What exactly is the problem? Is it not printing to the user? Is it not printing in colors to the user? Sending text to the console won't be in color simply because the server console doesn't...
Forum: Snippets and Tutorials 06-18-2013, 02:20
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

I haven't tested it yet, but here's a quick change to add CReplyToCommand to colors.inc.

Edit: Quick fix based on the docs for ReplyToCommand.

Haven't tested this as I'm about to go to bed.
Forum: Snippets and Tutorials 05-02-2013, 11:32
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

See Also: More Colors. Which, like Despirator says, only supports a limited number of games because less than half of the Source games support hex colors.
Forum: Snippets and Tutorials 04-10-2013, 15:58
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

I... just posted a new colors.inc that should fix that back to requiring 2.
Forum: Snippets and Tutorials 04-10-2013, 15:44
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Well, that was an easy enough fix. given the implicit advice in psychonic's last message.

This should work now and not continually reformat things. Basically, I just changed every call to...
Forum: Snippets and Tutorials 04-10-2013, 13:55
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Yes, it'll be 8 with CPrintToChat, as CPrintToChatAll does one additional Format.

I'll be playing around with colors.inc today or tomorrow to see if I can chop that down.
Forum: Snippets and Tutorials 04-09-2013, 16:22
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Is it possible to pass the any:... arguments from one method to another, or is VFormat the only way to do it?

Edit: For that matter, doesn't the built-in PrintToChatAll also do double formatting...
Forum: Snippets and Tutorials 04-09-2013, 10:09
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

colors.inc uses Format functions, so yes it does. Every time a Format function is called, %% is changed to %. colors.inc does repeated calls to Format functions. Last time I checked, attempting to...
Forum: Snippets and Tutorials 03-27-2013, 16:07
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

The commands needed by CS:GO and DOTA2 don't exist in SourceMod 1.4.7, so if you want to compile against the version of colors.inc that supports those games, you need to compile against SourceMod...
Forum: Snippets and Tutorials 01-25-2013, 15:06
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Of course, since no one mentioned this, regardless of the compiled file being 1.4 compatible, you still need a recent 1.5 snapshot to compile the code.
Forum: Snippets and Tutorials 08-22-2012, 09:36
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Edit the source code.

Alternatively, for TF2, the More Colors include has... more colors already created for it and uses identical functions to this include.
Forum: Snippets and Tutorials 02-10-2012, 11:55
Replies: 416
Views: 541,120
Posted By Powerlord
Re: compiler error for this

This is a SourceMod specific .inc file. It won't work with AMX Mod X.

(I assumed AMD Mod X from the directory name and the fact that it doesn't know what decl is)
Forum: Snippets and Tutorials 05-09-2011, 16:25
Replies: 416
Views: 541,120
Posted By Powerlord
Re: [INC] Colors (1.0.5)

Has the % requiring double-escapes issue ever been addressed in this include?
Showing results 1 to 21 of 21

 
Forum Jump

All times are GMT -4. The time now is 09:25.


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