AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   Error On tf2items.weapons.txt (https://forums.alliedmods.net/showthread.php?t=286171)

leo0215 08-10-2016 07:02

Error On tf2items.weapons.txt
 
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)


Wliu 08-10-2016 10:41

Re: Error On tf2items.weapons.txt
 
That is because you inserted a Chinese character into tf2items.weapons.txt...

leo0215 08-10-2016 11:12

Re: Error On tf2items.weapons.txt
 
Quote:

Originally Posted by Wliu (Post 2443822)
That is because you inserted a Chinese character into tf2items.weapons.txt...

so if i type one chinese character,and will crash plugin?

WildCard65 08-10-2016 12:36

Re: Error On tf2items.weapons.txt
 
The specific error your getting is from modifying the root section of the file (I believe it should be "customweaponsv3")

leo0215 08-10-2016 21:12

Re: Error On tf2items.weapons.txt
 
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"
                }       
        }   
}


asherkin 08-11-2016 06:50

Re: Error On tf2items.weapons.txt
 
Don't make up config file formats.

leo0215 08-13-2016 04:44

Re: Error On tf2items.weapons.txt
 
Quote:

Originally Posted by asherkin (Post 2444080)
Don't make up config file formats.

Of course i am not idiot,but...just didnt work,it happen again if i reinstall :cry:

leo0215 08-20-2016 10:40

Re: Error On tf2items.weapons.txt
 
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

derp80808 d 10-07-2016 19:59

Re: Error On tf2items.weapons.txt
 
Hey Asherkin please help! It says "unknown command sm_gi" PLEASE HELP!

Inspierio 10-07-2016 20:28

Re: Error On tf2items.weapons.txt
 
Quote:

Originally Posted by leo0215 (Post 2444545)
Of course i am not idiot,but...just didnt work,it happen again if i reinstall :cry:

Did you know he was the guy that made the plugin


All times are GMT -4. The time now is 20:58.

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