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

problem with items.weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Felix Short
Junior Member
Join Date: Sep 2012
Old 10-01-2012 , 04:00   problem with items.weapons
Reply With Quote #1

Hello

i'm having a problem with the items.weapons.txt. every time i load the config file i get the error message

KeyVales Error: RecursiveLoadFromBuffer: got } in key in file [...]\tf2items.wepons.txt
custtom_weapons_v3, STEAM_0:1xxxxxxx, 741,
KeyVales Error: RecursiveLoadFromBuffer: got } in key in file [...]\tf2items.wepons.txt
*, 741, 174;0.95, (*741*)
KeyVales Error: RecursiveLoadFromBuffer: missing { in key in file [...]\tf2items.wepons.txt
(***), (*741*), (*174;0.95), (*741*),

i checked the file over and over but found nothing, so i'm asking for your assistance


The configfile:
Spoiler
Felix Short is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-01-2012 , 09:43   Re: problem with items.weapons
Reply With Quote #2

I'm not familiar with this particular KeyValues file, but my experience with KV files tells me that your attributes section is missing a key between "preserve-attributes" and the attributes list.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-01-2012 at 09:45.
Powerlord is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 10-01-2012 , 10:56   Re: problem with items.weapons
Reply With Quote #3

Code:
"custom_weapons_v3" 
{
    "STEAM_0:1:"
    {
        "741"
        {
            "quality"    "6"
            "level"    "50"
            "admin-flags"    "z"
            "preserve-attributes"    "1"
            
            "1"    "2 ; 2.00"
            "2"    "60 ; 0.50"
            "3"    "269 ; 1"
            "4"    "76 ; 3.00"
            "5"    "68 ; 5"
        }

    }
    "*" 
    {
        "741"
        { 
            "quality"    "6"
            "level"    "5"
            "preserve-attributes"    "1"
            
            "1"    "1 ; 0.10"
            "2"    "54 ; 0.50"
            "3"    "61 ; 1.25"
            "4"    "76 ; 3.00"
            "5"    "112 ; 0.25"
            "6"    "161 ; 0.50"
            "7"    "163 ; 0.75"
            "8"    "174 ; 0.95"
        }
    }
}
Leonardo is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-02-2012 , 01:02   Re: problem with items.weapons
Reply With Quote #4

Your brackets aren't paired correctly.
Read the FAQ.
__________________
DarthNinja is offline
Felix Short
Junior Member
Join Date: Sep 2012
Old 10-02-2012 , 06:19   Re: problem with items.weapons
Reply With Quote #5

Thanks for your answers so far.

So according to the png in the faq and the tf2items.weapons.example the correct brackets-setting would be:

Code:
"custom_weapons_v3"
  opening bracket 1
   "to whom"
   opening bracket 2
     "What"
      opening bracket 3
     "attributes"
      closing bracket 3
    closing bracket 2
  
   "to whom2"
      opening bracket 4
      "what2"
       opening bracket 5
      "attributes"
       closing braket 5
     closing braket4
 closing braket 1
right?

Last edited by Felix Short; 10-02-2012 at 06:29.
Felix Short is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-02-2012 , 12:16   Re: problem with items.weapons
Reply With Quote #6

Yes.
__________________
DarthNinja 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