AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] HexTags [Tags/Chat Colors & Score Tags] (https://forums.alliedmods.net/showthread.php?t=303671)

Papero 12-27-2017 12:05

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by Rale (Post 2568377)
Any fix for windows soon?


Try to recompile the plugin removing this line:
https://github.com/Hexer10/HexTags/b...extags.sp#L148

Rale 12-30-2017 20:51

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
PHP Code:

L 12/30/2017 20:46:36: [SMException reportedInvalid time format or buffer too small
L 12
/30/2017 20:46:36: [SMBlaminghextags.smx
L 12
/30/2017 20:46:36: [SMCall stack trace:
L 12/30/2017 20:46:36: [SM]   [0FormatTime
L 12
/30/2017 20:46:36: [SM]   [1Line 148d:\my profile\documents\hextags\addons\sourcemod\scripting\hextags.sp::CP_OnChatMessage
L 12
/30/2017 20:46:36: [SM]   [3Call_Finish
L 12
/30/2017 20:46:36: [SM]   [4Line 302E:\Google Drive\Projects\Sourcemod\Public\Chat-Processor\scripting\chat-processor.sp::OnSayText2 


Papero 12-31-2017 00:55

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by Rale (Post 2568967)
PHP Code:

L 12/30/2017 20:46:36: [SMException reportedInvalid time format or buffer too small
L 12
/30/2017 20:46:36: [SMBlaminghextags.smx
L 12
/30/2017 20:46:36: [SMCall stack trace:
L 12/30/2017 20:46:36: [SM]   [0FormatTime
L 12
/30/2017 20:46:36: [SM]   [1Line 148d:\my profile\documents\hextags\addons\sourcemod\scripting\hextags.sp::CP_OnChatMessage
L 12
/30/2017 20:46:36: [SM]   [3Call_Finish
L 12
/30/2017 20:46:36: [SM]   [4Line 302E:\Google Drive\Projects\Sourcemod\Public\Chat-Processor\scripting\chat-processor.sp::OnSayText2 



It is impossible... Did you completely remove that line and compile the plugin properly?

Rale 12-31-2017 09:29

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by Papero (Post 2568982)
It is impossible... Did you completely remove that line and compile the plugin properly?

Yep Im pretty sure that i done that properly. If you want compile it for me and send me to pm, i'll test it and send you results.

Papero 12-31-2017 14:40

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by Rale (Post 2569029)
Yep Im pretty sure that i done that properly. If you want compile it for me and send me to pm, i'll test it and send you results.


As I sad I'm not at home right now.
I will in 4/5 days.

shanapu 12-31-2017 15:10

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
4 Attachment(s)
Quote:

Originally Posted by Papero (Post 2568378)
Try to recompile the plugin removing this line:
https://github.com/Hexer10/HexTags/b...extags.sp#L148

Quote:

Originally Posted by Papero (Post 2568982)
It is impossible... Did you completely remove that line and compile the plugin properly?

Quote:

Originally Posted by Rale (Post 2569029)
Yep Im pretty sure that i done that properly. If you want compile it for me and send me to pm, i'll test it and send you results.

Quote:

Originally Posted by Papero (Post 2569061)
As I sad I'm not at home right now.
I will in 4/5 days.

PHP Code:

public Action CP_OnChatMessage(intauthorArrayList recipientschar[] flagstringchar[] namechar[] messageboolprocesscolorsboolremovecolors)
{
    
    
//Add colors & tags
    
char sNewName[MAXLENGTH_NAME];
    
char sNewMessage[MAXLENGTH_MESSAGE];
    
Format(sNewNameMAXLENGTH_NAME"%s%s%s{default}"sTags[author][ChatTag], sTags[author][NameColor], name); 
    
Format(sNewMessageMAXLENGTH_MESSAGE"%s%s"sTags[author][ChatColor], message);
    
    
//Update the params
    
char sTime[16];
//    FormatTime(sTime, sizeof(sTime), "%R");
    
ReplaceString(sNewNamesizeof(sNewName), "{time}"sTime);
    
ReplaceString(sNewMessagesizeof(sNewMessage), "{time}"sTime);
    
    
//Update the name & message
    
strcopy(nameMAXLENGTH_NAMEsNewName);
    
strcopy(messageMAXLENGTH_MESSAGEsNewMessage);
    
    
processcolors true;
    
removecolors false;
    
    return 
Plugin_Changed;


edit:

just tested the original file and the notime.
Original throw same error as above on Windows SM 1.9.0.6223
Edited version fix error but removed time.

edit2:
had a few tests:
PHP Code:

FormatTime(sTimesizeof(sTime), "%H:%M"); 

will fix the error.

http://www.cplusplus.com/reference/ctime/strftime/
All yellow marked specifiers had same error for me on windows.

added 'fixed time version' with "%H:%M"

Btw Great plugin! :bacon!::bacon!:

Rale 01-01-2018 06:25

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
@shanapu Gj mate, everything works fine now!

snoopy174 01-06-2018 14:13

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
you can add command support
different tags teams

Papero 01-07-2018 13:18

Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
 
Quote:

Originally Posted by shanapu (Post 2569068)
PHP Code:

public Action CP_OnChatMessage(intauthorArrayList recipientschar[] flagstringchar[] namechar[] messageboolprocesscolorsboolremovecolors)
{
    
    
//Add colors & tags
    
char sNewName[MAXLENGTH_NAME];
    
char sNewMessage[MAXLENGTH_MESSAGE];
    
Format(sNewNameMAXLENGTH_NAME"%s%s%s{default}"sTags[author][ChatTag], sTags[author][NameColor], name); 
    
Format(sNewMessageMAXLENGTH_MESSAGE"%s%s"sTags[author][ChatColor], message);
    
    
//Update the params
    
char sTime[16];
//    FormatTime(sTime, sizeof(sTime), "%R");
    
ReplaceString(sNewNamesizeof(sNewName), "{time}"sTime);
    
ReplaceString(sNewMessagesizeof(sNewMessage), "{time}"sTime);
    
    
//Update the name & message
    
strcopy(nameMAXLENGTH_NAMEsNewName);
    
strcopy(messageMAXLENGTH_MESSAGEsNewMessage);
    
    
processcolors true;
    
removecolors false;
    
    return 
Plugin_Changed;


edit:

just tested the original file and the notime.
Original throw same error as above on Windows SM 1.9.0.6223
Edited version fix error but removed time.

edit2:
had a few tests:
PHP Code:

FormatTime(sTimesizeof(sTime), "%H:%M"); 

will fix the error.

http://www.cplusplus.com/reference/ctime/strftime/
All yellow marked specifiers had same error for me on windows.

added 'fixed time version' with "%H:%M"

Btw Great plugin! :bacon!::bacon!:

Thanks! Now it's fixed in the last release!

Quote:

Originally Posted by snoopy174 (Post 2570214)
you can add command support
different tags teams

I will about the different tags teams soon. Added with https://github.com/Hexer10/HexTags/c...4993cc3631b5f7 . You'll need to compile the plugin by yourself, all the news are writteng in the cfg file.

Now sure about much time will require the command support and if is it really needed.

ayrton09_arg 01-14-2018 08:09

Re: [ANY]HexTags[Chat/Score Colors][07/01/18]
 
hello i have this problem idk why, [hextags.smx] No entries found in: "addons\sourcemod\configs\hextags.cfg"
os: windows


All times are GMT -4. The time now is 22:04.

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