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

Error On tf2items.weapons.txt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leo0215
Junior Member
Join Date: Aug 2016
Old 08-10-2016 , 07:02   Error On tf2items.weapons.txt
Reply With Quote #1

when i finished editting custom and type tf2items_manager_reload,but console just show some error code and cant use these anymore even restart server,here is log

Code:
L 08/10/2016 - 18:51:42: SourceMod error session started
L 08/10/2016 - 18:51:42: Info (map "trade_plaza") (file "errors_20160810.log")
L 08/10/2016 - 18:51:42: [SM] Unable to load plugin "custom-chatcolors.smx": Could not find required plugin "scp"
L 08/10/2016 - 18:51:43: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2itemsinfo"
L 08/10/2016 - 18:51:43: [SM] Exception reported: tf2items.weapons.txt structure corrupt or incorrect version: "嚜?
L 08/10/2016 - 18:51:43: [SM] Blaming: tf2items_manager.smx()
L 08/10/2016 - 18:51:43: [SM] Call stack trace:
L 08/10/2016 - 18:51:43: [SM]   [0] SetFailState
L 08/10/2016 - 18:51:43: [SM]   [1] Line 266, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::ParseItems()
L 08/10/2016 - 18:51:43: [SM]   [2] Line 58, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::OnPluginStart()
L 08/10/2016 - 18:51:43: [SM] Unable to load plugin "tf2items_manager.smx": Error detected in plugin startup (see error logs)
leo0215 is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 08-10-2016 , 10:41   Re: Error On tf2items.weapons.txt
Reply With Quote #2

That is because you inserted a Chinese character into tf2items.weapons.txt...
__________________
~Wliu
Wliu is offline
leo0215
Junior Member
Join Date: Aug 2016
Old 08-10-2016 , 11:12   Re: Error On tf2items.weapons.txt
Reply With Quote #3

Quote:
Originally Posted by Wliu View Post
That is because you inserted a Chinese character into tf2items.weapons.txt...
so if i type one chinese character,and will crash plugin?
leo0215 is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 08-10-2016 , 12:36   Re: Error On tf2items.weapons.txt
Reply With Quote #4

The specific error your getting is from modifying the root section of the file (I believe it should be "customweaponsv3")
__________________
WildCard65 is offline
leo0215
Junior Member
Join Date: Aug 2016
Old 08-10-2016 , 21:12   Re: Error On tf2items.weapons.txt
Reply With Quote #5

wierd,i remove chinese character and change to "customweaponsv3"
but still wont work

log
Code:
L 08/11/2016 - 09:08:03: SourceMod error session started
L 08/11/2016 - 09:08:03: Info (map "trade_plaza") (file "errors_20160811.log")
L 08/11/2016 - 09:08:03: [SM] Unable to load plugin "custom-chatcolors.smx": Could not find required plugin "scp"
L 08/11/2016 - 09:08:04: [SM] Unable to load plugin "tf2attributes_ubup.smx": Could not find required plugin "tf2itemsinfo"
L 08/11/2016 - 09:08:04: [SM] Exception reported: tf2items.weapons.txt structure corrupt or incorrect version: ""
L 08/11/2016 - 09:08:04: [SM] Blaming: tf2items_manager.smx()
L 08/11/2016 - 09:08:04: [SM] Call stack trace:
L 08/11/2016 - 09:08:04: [SM]   [0] SetFailState
L 08/11/2016 - 09:08:04: [SM]   [1] Line 266, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::ParseItems()
L 08/11/2016 - 09:08:04: [SM]   [2] Line 58, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::OnPluginStart()
L 08/11/2016 - 09:08:04: [SM] Unable to load plugin "tf2items_manager.smx": Error detected in plugin startup (see error logs)
my custom weapon.txt
Code:
"customweaponsv3"
{
    "STEAM_0:1:95224557" 
	{
	    "18" 
	    {
	        "quality"       "8"
			"level"			"100"
			"admin-flags"	""
			"ammo" "200"
			
			"1"  "2 ; 10099"
			"2"  "4 ; 10099"
			"3"  "6 ; 0.25"
			"4"  "180 ; 250"
			"5"  "31 ; 10"
			"6"  "103 ; 1.5"
			"7"  "107 ; 2"
			"8"  "134 ; 2"
        }
		"15059"
		{
		  
			"level"			"100"
			"admin-flags"	""
			"ammo" "200"
			
			"1"             "542 ; 1"  
			"2"             "2053 ; 1"
			"3"             "448 ; 1"
			"4"             "500 ; 1"
		}
	    "201"
	    {
		   
			"level"			"100"
			"admin-flags"	""
		    
			  
			"1"             "2025 ; 2 "
		    "2"             "2013 ; 2002"
			"3"             "2014 ; 6"
            "4"             "542 ; 1" 
			"5"             "2027 ; 1"
			"6"             "731 ; 1"
			
		}
	    "228"
		{
		  
			"level"			"100"
			"admin-flags"	"z"
			
			
			"1"  "134 ; 10"
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
			
	    }
		"141"
		{
		
			"level"			"100"
			"admin-flags"	"z"
			
			
			"1"  "134 ; 10"
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
		}
		"38"
		{
		    
			"level"			"100"
			"admin-flags"	"z"
			
			
			"1"  "134 ; 10"
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
		}
		"424"
		{
		  
			"level"			"100"
			"admin-flags"	"z"
			
			
			"1"  "134 ; 10"
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
			"8"  "87 ; 0.8"
			"9"  "106 ; 1.2"
			"10" "238 ; 1"
			"11" "5 ; 1.2"
			"12" "32 ; 1"
			"13" "182 ; 1"
		}
		"61"
		{
		   
			"level"			"100"
			"admin-flags"	"z"
			
			
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
		}
		"36"
		{
		  
			"level"			"100"
			"admin-flags"	"z"
			
			
			
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
		}
		"132"
		{
		 
			"level"			"100"
			"admin-flags"	"z"
			
			
		
			"2"  "2025 ; 2"
			"3"  "2013 ; 2002"  
			"4"  "2014 ; 6"
			"5"  "2027 ; 1"
			"6"  "542 ; 1"
			"7"  "731 ; 1"
		}
		"167"
        {
		    "quality"		"9"
			"level"			"100"
			"admin-flags"	"z"
			
			"1"   "134 ; 3004"  
		}		
		"30066"
        {
		       "quality"		"5"
		       "level"			"100"
		       "admin-flags"	""
		
		
		       "1"  "134 ; 70"
		}	
		"30310"
        {
		       "quality"		"5"
		       "level"			"100"
		       "admin-flags"	""
		
		
		       "1"  "134 ; 60"
		}
        "297"
		{
		     
		       "level"			"100"
		       "admin-flags"	""
		       
			   "1"  "83 ; 3"
			   "2"  "160 ; 1"
			   "3"  "50 ; 0.2"
			   "4"  "34 ; 0.2"
			   "5"  "107 ; 1.5"
		}
		"58"
		{
		       "level"			"100"
		       "admin-flags"	""
			   
			   "1"  "32 ; 1"
			   "2"  "175 ; 15"
			   "3"  "182 ; 20"
			   "4"  "149 ; 10"
			   "5"  "208 ; 1"
		}
		"727" 
		{
		       "level"			"100"
		       "admin-flags"	""
		       "1" "156 ; 1"
			   "2" "154 ; 1"
			   "3" "180 ; 0.7"
			   "4" "220 ; 3"
			   "5" "2025 ; 2"
			   "6" "2013 ; 2002"
			   "7" "2014 ; 6"
			   "8" "217 ; 1"
			
			   "10" "16 ; 5"
			   
		
		}
	  
	  
	}
	"STEAM_0:1:157298527"
	{
	   "18"
	   {
	        
			"level"			"100"
			"admin-flags"	""
			
			
			"1"  "2 ; 2000000"
			"2"  "97 ; 0.1"
			"3"  "103 ; 2"
			"4"  "4 ; 12"
			"5"  "6 ; 0.8"
			
			"7"  "2013 ; 2002"
			"8"  "2014 ; 6"
			"9"  "78 ; 10"
			"10" "112 ; 1"
			"11" "2025 ; 2"
	   }
	
	}
	"STEAM_0:0:166689845"
	{
	    "14"
	    {
		    "quality"		"9"
			"level"			"100"
			"admin-flags"	""
		    
		    
			"1"             "134 ; 704"
			"2"             "2025 ; 2 "
		    "3"             "2013 ; 2002"
			"4"             "2014 ; 6"
            "5"             "542 ; 1" 
			"6"             "2027 ; 1"
			"7"             "731 ; 1"
		 	"8"             "31 ; 10"
	    }
		
	    "18"
        {
		    "quality"		"9"
			"level"			"100"
			"admin-flags"	""
			
			"1"             "521 ; 1"
			"2"             "2025 ; 2"
			"3"             "2013 ; 2002"
			"4"             "2014 ; 6"
			"5"             "135 ; 0.5"
		}	
         	
	    "1092"
        {
		    "quality"		"9"
			"level"			"100"
			"admin-flags"	""
			
			
			"1"             "2025 ; 2"
			"2"             "2013 ; 2002"
			"3"             "2014 ; 6"
			"4"             "135 ; 0.5"
			"5"             "107 ; 2"
			"6"             "149 ; 25"
			
 		}	
		
	    "920"
        {
		"quality"		"5"
		"level"			"100"
		"admin-flags"	""
		
		"1"  "134 ; 11"
		}	
	}     
}
leo0215 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-11-2016 , 06:50   Re: Error On tf2items.weapons.txt
Reply With Quote #6

Don't make up config file formats.
__________________
asherkin is offline
leo0215
Junior Member
Join Date: Aug 2016
Old 08-13-2016 , 04:44   Re: Error On tf2items.weapons.txt
Reply With Quote #7

Quote:
Originally Posted by asherkin View Post
Don't make up config file formats.
Of course i am not idiot,but...just didnt work,it happen again if i reinstall
leo0215 is offline
leo0215
Junior Member
Join Date: Aug 2016
Old 08-20-2016 , 10:40   Re: Error On tf2items.weapons.txt
Reply With Quote #8

OKAY guy i fixed it,and i am using notepad++

because i choose utf8 (have BOM),and let plugin crash

but i use utf8 (No BOM),all is work
leo0215 is offline
derp80808 d
New Member
Join Date: Oct 2016
Location: Jakarta,Indonesia
Old 10-07-2016 , 19:59   Re: Error On tf2items.weapons.txt
Reply With Quote #9

Hey Asherkin please help! It says "unknown command sm_gi" PLEASE HELP!
derp80808 d is offline
Inspierio
Junior Member
Join Date: Aug 2016
Old 10-07-2016 , 20:28   Re: Error On tf2items.weapons.txt
Reply With Quote #10

Quote:
Originally Posted by leo0215 View Post
Of course i am not idiot,but...just didnt work,it happen again if i reinstall
Did you know he was the guy that made the plugin
Inspierio 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:03.


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