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

[TF2] tNoUnlocksPls v0.4.8 (2013-02-10)


Post New Thread Reply   
 
Thread Tools Display Modes
KiRRA
Senior Member
Join Date: Nov 2012
Old 05-13-2014 , 10:59   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #321

Here's to hoping someone can shed some light on an issue I have having lately with this plugin. I am running this plugin on my mixed mod server and lately I have been receiving the following errors in console as well as bugs within the given weapon.

Code:
L 05/10/2014 - 07:07:40: SourceMod error session started
L 05/10/2014 - 07:07:40: Info (map "tfdb_facility_a1") (file "errors_20140510.log")
L 05/10/2014 - 07:07:40: [TF2ITEMS] ---------------------------------------
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> szClassname = tf_weapon_flamethrower
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> iItemDefinitionIndex = 21
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> iEntityQuality = 6
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> iEntityLevel = 1
L 05/10/2014 - 07:07:40: [TF2ITEMS] ---------------------------------------
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> iAttributeDefinitionIndex = 254
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> flValue = 4.000000
L 05/10/2014 - 07:07:40: [TF2ITEMS] ---------------------------------------
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> iAttributeDefinitionIndex = 256
L 05/10/2014 - 07:07:40: [TF2ITEMS] >>> flValue = 0.500000
L 05/10/2014 - 07:07:40: [TF2ITEMS] ---------------------------------------
L 05/10/2014 - 07:07:40: [SM] Native "TF2Items_GiveNamedItem" reported: Item is NULL. File a bug report if you are sure you set all the data correctly. (Try the FORCE_GENERATION flag.)
L 05/10/2014 - 07:07:40: [SM] Displaying call stack trace for plugin "optional\tNoUnlocksPls.tf2items.smx":
L 05/10/2014 - 07:07:40: [SM]   [0]  Line 119, I:\TCAFiles\Users\startstop\29_27015\tf\addons\sourcemod\scripting\tNoUnlocksPls.tf2items_dodgeball.sp::GiveReplacementItem()
L 05/10/2014 - 07:07:40: [SM]   [1]  Line 99, I:\TCAFiles\Users\startstop\29_27015\tf\addons\sourcemod\scripting\tNoUnlocksPls.tf2items_dodgeball.sp::Timer_ReplaceWeapon()
L 05/10/2014 - 07:09:31: Error log file session closed.
The issue it presents (which might confuse you) is that even though is does indeed replace the stock weapon with the desired item, the attributes don't seem to always apply correctly. There are times where the plugin functions perfectly fine for the Blue team but the Red team does not have the attribute 254 applied. This does not happen all the time but every so often it bugs out then it doesn't fix itself for quite some time.

Here is my code this was compiled off of for reference:

Spoiler


Anyone have any ideas as to the cause of the errors and possibly the issue I am having? Please note that I do understand that using an attribute that Valve does not use always leaves the door open for bugs. If ALL players lost the attribute when the bug occured it would be annoying but fair, but for only one team to lose the attribute makes me think it's the plugin and not just the attribute itself.

Thank you in advance to ANYONE who can provide ANY thoughts or ideas on this.
__________________
FuG's TF2 PropHunt/Dodgeball Server - 209.144.30.29:27015
KiRRA is offline
skyvizer
New Member
Join Date: Aug 2012
Old 08-10-2014 , 16:03   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #322

I have a problem in a similar vein as the above post. A special mixed-mod setup I'm trying to get working requires me to revert all unlocked weapons to default, and then furthermore apply different stats to the vanilla weapons. TF2Items' include allows for manual adjustment on an item-to-item basis (like above, giving everyone the same flamethrower), but I would prefer to not have to set up manual adjustment of every class's weapons within the source code. Is there a way to make attributes be read through tf2items.weapons.txt? I have a suspicion that it would also solve the flamethrower problem above...
skyvizer is offline
ClassicGuzzi
Veteran Member
Join Date: Oct 2013
Location: Argentina
Old 08-16-2014 , 20:55   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #323

Quote:
Originally Posted by KiRRA View Post
Anyone have any ideas as to the cause of the errors and possibly the issue I am having? Please note that I do understand that using an attribute that Valve does not use always leaves the door open for bugs. If ALL players lost the attribute when the bug occured it would be annoying but fair, but for only one team to lose the attribute makes me think it's the plugin and not just the attribute itself.

Thank you in advance to ANYONE who can provide ANY thoughts or ideas on this.

I think that if you use a default flame thrower that code doesn't do anything, but you are saying that the problem is just one team so that is not it.

I'm not relly sure why or how did I do this (I edited this long ago), but here is my part of that code to apply the attribute:
Spoiler


Also I'm editing the whole plugin to give everyone a flame thrower http://steamcommunity.com/sharedfile.../?id=301514368
ClassicGuzzi is offline
xSpeced
AlliedModders Donor
Join Date: Aug 2013
Old 12-08-2014 , 10:17   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #324

Quote:
Originally Posted by skyvizer View Post
I have a problem in a similar vein as the above post. A special mixed-mod setup I'm trying to get working requires me to revert all unlocked weapons to default, and then furthermore apply different stats to the vanilla weapons. TF2Items' include allows for manual adjustment on an item-to-item basis (like above, giving everyone the same flamethrower), but I would prefer to not have to set up manual adjustment of every class's weapons within the source code. Is there a way to make attributes be read through tf2items.weapons.txt? I have a suspicion that it would also solve the flamethrower problem above...
I'm interested in the same idea. Having the plugin replace blocked weapons with modified stock ones via tf2items.weapons.txt. Anyone?
xSpeced is offline
urban_ninja
Senior Member
Join Date: Feb 2009
Old 02-24-2015 , 14:39   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #325

This plugin doesn't work. Loaded and no errors but items remain equipable when set to block.
urban_ninja is offline
Creampuffyness
Senior Member
Join Date: Jun 2009
Old 03-19-2015 , 19:04   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #326

My tnounlocksplz.cfg seems to reset to default after server reboots. I ban the gunslinger but everyday it becomes usable again. Anyone have a solution?

UPDATE: I was able to resolve my issue above. The plugin autocreates the .cfg files but on linux the filename is case sensitive. It must be named tNoUnlocksPls.cfg. Hope it helps anyone in the future having the same issue.
__________________

Last edited by Creampuffyness; 03-24-2015 at 10:55.
Creampuffyness is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 05-31-2015 , 18:12   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #327

i can't ban weapons that have a weapon index of 4 digits so i manually enter the index in into tnounlockspls.cfg and save, it works but at random the config files removes the 4 digit weapon index and unbans them. any ideas?
island55 is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 06-03-2015 , 13:49   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #328

Quote:
Originally Posted by island55 View Post
i can't ban weapons that have a weapon index of 4 digits so i manually enter the index in into tnounlockspls.cfg and save, it works but at random the config files removes the 4 digit weapon index and unbans them. any ideas?
with the help of a few guys in the sourcemod IRC channel, this can easily be fixed by adjusting the sIDx from 4 to 8 and modifying the 'char' to something else in the main plugin, and recompiling.
island55 is offline
obla
Junior Member
Join Date: Nov 2014
Location: Sydney, Australia
Old 06-04-2015 , 07:45   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #329

Could you upload a copy please?
obla is offline
boone2134
Junior Member
Join Date: Jan 2014
Old 07-04-2015 , 11:20   Re: [TF2] tNoUnlocksPls v0.4.8 (2013-02-10)
Reply With Quote #330

Quote:
Originally Posted by obla View Post
Could you upload a copy please?
Did what that guy said, and it appears to be fixed for four digit weps.
Attached Files
File Type: sp Get Plugin or Get Source (tNoUnlocksPls.sp - 170 views - 25.8 KB)
boone2134 is offline
Reply



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 06:53.


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