Raised This Month: $120 Target: $400
 30% 

[ANY] HexTags [Tags/Chat Colors & Score Tags][08/12/18]


Post New Thread Reply   
 
Thread Tools Display Modes
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-27-2017 , 13:05   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #21

Quote:
Originally Posted by Rale View Post
Any fix for windows soon?

Try to recompile the plugin removing this line:
https://github.com/Hexer10/HexTags/b...extags.sp#L148
__________________
Papero is offline
Send a message via Skype™ to Papero
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 12-30-2017 , 21:51   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #22

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 
Rale is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-31-2017 , 01:55   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #23

Quote:
Originally Posted by Rale View Post
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?
__________________
Papero is offline
Send a message via Skype™ to Papero
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 12-31-2017 , 10:29   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #24

Quote:
Originally Posted by Papero View Post
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.
Rale is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 12-31-2017 , 15:40   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #25

Quote:
Originally Posted by Rale View Post
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.
__________________
Papero is offline
Send a message via Skype™ to Papero
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 12-31-2017 , 16:10   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #26

Quote:
Originally Posted by Papero View Post
Try to recompile the plugin removing this line:
https://github.com/Hexer10/HexTags/b...extags.sp#L148
Quote:
Originally Posted by Papero View Post
It is impossible... Did you completely remove that line and compile the plugin properly?
Quote:
Originally Posted by Rale View Post
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 View Post
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!
Attached Files
File Type: smx hextags_notime.smx (10.4 KB, 104 views)
File Type: smx hextags_fixedtime.smx (10.5 KB, 106 views)
File Type: sp Get Plugin or Get Source (hextags_notime.sp - 86 views - 8.5 KB)
File Type: sp Get Plugin or Get Source (hextags_fixedtime.sp - 91 views - 8.5 KB)
__________________
free software
coding

Last edited by shanapu; 12-31-2017 at 16:35.
shanapu is offline
Rale
AlliedModders Donor
Join Date: Sep 2010
Old 01-01-2018 , 07:25   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #27

@shanapu Gj mate, everything works fine now!
Rale is offline
snoopy174
Member
Join Date: May 2016
Old 01-06-2018 , 15:13   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #28

you can add command support
different tags teams
snoopy174 is offline
Send a message via Skype™ to snoopy174
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, Italy
Old 01-07-2018 , 14:18   Re: [ANY]HexTags[Chat/Score Colors][16/12/17]
Reply With Quote #29

Quote:
Originally Posted by shanapu View Post
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!
Thanks! Now it's fixed in the last release!

Quote:
Originally Posted by snoopy174 View Post
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.
__________________

Last edited by Papero; 01-07-2018 at 14:35.
Papero is offline
Send a message via Skype™ to Papero
ayrton09_arg
Member
Join Date: Nov 2017
Old 01-14-2018 , 09:09   Re: [ANY]HexTags[Chat/Score Colors][07/01/18]
Reply With Quote #30

hello i have this problem idk why, [hextags.smx] No entries found in: "addons\sourcemod\configs\hextags.cfg"
os: windows
ayrton09_arg is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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