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

[L4D2] Item hint


Post New Thread Reply   
 
Thread Tools Display Modes
Shao
Senior Member
Join Date: Jan 2015
Old 08-30-2021 , 16:04   Re: [L4D2] Item hint
Reply With Quote #11

Quote:
Originally Posted by HarryPotter View Post
Are you sure the plugin actually running?
do you check error.log?
It might have to do with having custom vocalizers. I will be testing the hypothesis soon but I had players who it worked fine, but for my buddy and I it didn't work however we have a custom one.
Shao is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 09-02-2021 , 12:46   Re: [L4D2] Item hint
Reply With Quote #12

Errors:
l4d2_item_hint.smx (L4D2 Item hint): Error detected in plugin startup (see error logs)

here ~ look play QQ


L 09/03/2021 - 00:48:24: Error log file session closed.
L 09/03/2021 - 00:48:24: -------- Mapchange to c2m1_highway --------
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_maxplayers") (value "8")
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_visiblemaxplayers") (value "8")
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_maxplayers") (value "8")
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_visiblemaxplayers") (value "8")

Last edited by yabi; 09-02-2021 at 12:50. Reason: error
yabi is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 09-02-2021 , 13:25   Re: [L4D2] Item hint
Reply With Quote #13

Quote:
Originally Posted by yabi View Post
Errors:
l4d2_item_hint.smx (L4D2 Item hint): Error detected in plugin startup (see error logs)

here ~ look play QQ


L 09/03/2021 - 00:48:24: Error log file session closed.
L 09/03/2021 - 00:48:24: -------- Mapchange to c2m1_highway --------
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_maxplayers") (value "8")
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_visiblemaxplayers") (value "8")
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_maxplayers") (value "8")
L 09/03/2021 - 00:48:29: [basecommands.smx] "Yabi<6><STEAM_ID_PENDING><>" changed cvar (cvar "sv_visiblemaxplayers") (value "8")
So where's the actual errors related to the plugin? The only lines you posted have nothing to do with this plugin.
__________________
Psyk0tik is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 09-02-2021 , 19:52   Re: [L4D2] Item hint
Reply With Quote #14

Quote:
Originally Posted by Psyk0tik View Post
So where's the actual errors related to the plugin? The only lines you posted have nothing to do with this plugin.


I’m not quite sure. The wrong report shows, continue
yabi is offline
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 09-04-2021 , 22:33   Re: [L4D2] Item hint
Reply With Quote #15

Quote:
Originally Posted by Silvers View Post
Should probably mention how to install such as the .txt goes into gamedata.

Using "StrContains" is kinda inefficient for this, I assume it's always going to be "vocalize smartlook #" so just use strncmp(sCmdString[9], "smartlook #", 11) == 0 to start matching from the 10th character and only matching those 11 characters.

It's unnecessary to have the string size sCmdString[256] you can use something like 32.

It would be faster to replace "g_sItems" array with a StringMap and then searching if the value exists in there with the StringMap natives instead of looping through the array. Fill the StringMap with the data in plugin start.
Thanks for your advice. Updated

Last edited by fdxx; 01-19-2022 at 20:01.
fdxx is offline
TBK Duy
Member
Join Date: Jun 2017
Location: Vietnam
Old 09-05-2021 , 07:31   Re: [L4D2] Item hint
Reply With Quote #16

Would be great if you can make the item glow when you press Look at it.
TBK Duy is offline
strikeraot
Senior Member
Join Date: Dec 2018
Location: Viet Nam
Old 09-17-2021 , 11:47   Re: [L4D2] Item hint
Reply With Quote #17

Quote:
Originally Posted by fdxx View Post
Thanks for your advice. New version:
Quote:
L 09/17/2021 - 22:43:46: [SM] Exception reported: Failed to load offset
L 09/17/2021 - 22:43:46: [SM] Blaming: l4d2_item_hint.smx
L 09/17/2021 - 22:43:46: [SM] Call stack trace:
L 09/17/2021 - 22:43:46: [SM] [0] SetFailState
L 09/17/2021 - 22:43:46: [SM] [1] Line 39, /home/forums/content/files/3/0/4/7/7/1/191204.attach::OnPluginStart
strikeraot is offline
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 09-17-2021 , 21:03   Re: [L4D2] Item hint
Reply With Quote #18

@strikeraot

Do you use macOS? Does not support macOS temporarily.

Did you put l4d2_item_hint.txt into the gamedata folder?

Last edited by fdxx; 09-17-2021 at 21:26.
fdxx is offline
strikeraot
Senior Member
Join Date: Dec 2018
Location: Viet Nam
Old 09-17-2021 , 23:09   Re: [L4D2] Item hint
Reply With Quote #19

Quote:
Originally Posted by fdxx View Post
@strikeraot

Do you use macOS? Does not support macOS temporarily.

Did you put l4d2_item_hint.txt into the gamedata folder?
no i don't use, and i put it in the right folder, don't know why this still occur
strikeraot is offline
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 09-17-2021 , 23:53   Re: [L4D2] Item hint
Reply With Quote #20

Quote:
Originally Posted by strikeraot View Post
no i don't use, and i put it in the right folder, don't know why this still occur
Errors always occur? Or do errors occasionally occur?
fdxx 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 09:08.


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