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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
DeJaDeW
SourceMod Donor
Join Date: Jul 2009
Location: California
Old 10-22-2010 , 01:33   Re: TF2Items - Items with custom attributes.
#481

Code:
"custom_weapons_v3" // Type "tf2items_manager_reload" To Reload The List"
{
    "STEAM_0:0:0000000" // STEAMID/Admin Flag/Wild*
    {
        "148" // Hotrod
        {
            "quality"        "5" // Color
            "level"            "100" // Level
            
            "1"                "134 ; 10" // Attach Particle Effects - Purple Energy
        }
        "158" // Shooter's Sola Topi
        {
            "quality"        "5" // Color
            "level"            "100" // Level
            
            "1"                "134 ; 17" // Attach Particle Effects - Sun Beams
        }
        "183" // Sergeant's Drill Hat
        {
            "quality"        "5" // Color
            "level"            "100" // Level
            
            "1"                "134 ; 18" // Attach Particle Effects - Peace Signs
        }
        "185" // Heavy Duty Rag
        {
            "quality"        "5" // Color
            "level"            "100" // Level
            
            "1"                "134 ; 19" // Attach Particle Effects - Circling Heart
        }
    }
}
Attached Files
File Type: txt tf2items.weapons.txt (791 Bytes, 253 views)
__________________
DeJaDeW is offline
legolover122
New Member
Join Date: Oct 2010
Old 10-22-2010 , 12:10   Re: TF2Items - Items with custom attributes.
#482

OK i am beginning to learn it.
i am trying to make a give me a free hat you get donor effects server. and i want to offer special particle effects for different people.

Quote:
"custom_weapons_v3"
{
"STEAM_0:12515672"
{
"106"
{
"quality" "5"
"level" "100"
"1" "134 ; 11"
}
"54"
{
"quality" "5"
"level" "100"
"1" "134 ; 11"
}
"248"
{
"quality" "5"
"level" "100"
"1" "134 ; 11"
}
}

"STEAM_0:12515672 ; STEAM_0:0:25502648"
{
"155"
{
"quality" "5"
"level" "100"
"1" "134 ; 19"
}

}
this is my tf2items.weapons.txt file. i am trying to give my soldiers stash, bonk helm, and nappers respite particle effects.

for the second bit, i wanted to give myself and a friend of mine a wrench with a heart effect.

now, when i go to reload the tf2items.weapons.txt file it gives me
Quote:
L 10/22/2010 - 11:57:26: [tf2items_manager.smx] Reloading items list
KeyValues Error: RecursiveLoadFromBuffer: got } in key in file addons/sourcemod/configs/tf2items.weapons.txt
custom_weapons_v3, 134 ; 19, (*STEAM_0:12515672*), (*248*),
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/tf2items.weapons.txt
and the only effects that work are the wrenches. the nappers respite, bonk helm, and stash are not working.

any help? possible a fixed version i could work off of? i have tried almost everything i can think of.
legolover122 is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 10-22-2010 , 20:32   Re: TF2Items - Items with custom attributes.
#483

Quote:
Originally Posted by legolover122 View Post
OK i am beginning to learn it.
i am trying to make a give me a free hat you get donor effects server. and i want to offer special particle effects for different people.

this is my tf2items.weapons.txt file. i am trying to give my soldiers stash, bonk helm, and nappers respite particle effects.

for the second bit, i wanted to give myself and a friend of mine a wrench with a heart effect.

now, when i go to reload the tf2items.weapons.txt file it gives me
and the only effects that work are the wrenches. the nappers respite, bonk helm, and stash are not working.

any help? possible a fixed version i could work off of? i have tried almost everything i can think of.
The second portion must be in the custom_weapons_v3

You should use the [code] BBCode so it's easier to read
noodleboy347 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 10-23-2010 , 00:45   Re: TF2Items - Items with custom attributes.
#484

... and don't try to save file in UTF-8 with BOM format...
__________________
Leonardo is offline
ultimateh4xr
Junior Member
Join Date: Oct 2010
Old 10-23-2010 , 06:29   Re: TF2Items - Items with custom attributes.
#485

Anyone know where to find the rarity colors? (to see what rarity is what color/prefix) Because the Mann-Conomy update changed the rarities so the picture in the original post is out-dated...

Info on the ones i know
Code:
0 is normal/no name/weapon info
3 is Vintage/blue
5 is unusual/purple - NEW
6 is unique/yellow
7 is community/green
8 is valve/pink
9 is self-made/green
10 is customized/neon green - NEW
see, i want to try to find what color the rarities 1, 2 and 4 are because for some reason they don't seem to work right now with this plugin...
1 supposedly to use to be olive 2 was goldish brown? and 4 was orange.(which i really want ) so if anyone can point me to the files to see the rarities, that'd be great!

Last edited by ultimateh4xr; 10-23-2010 at 07:20.
ultimateh4xr is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 10-23-2010 , 07:23   Re: TF2Items - Items with custom attributes.
#486

Quote:
Originally Posted by ultimateh4xr View Post
Because the Mann-Conomy update changed the rarities so the picture in the original post is out-dated...
lie. look at what you're said and at picture from first post again.
__________________
Leonardo is offline
ultimateh4xr
Junior Member
Join Date: Oct 2010
Old 10-23-2010 , 20:42   Re: TF2Items - Items with custom attributes.
#487

Quote:
Originally Posted by Leonardo View Post
lie. look at what you're said and at picture from first post again.
Rarity 10 is not blue it is green now so it is somewhat different. I was asking if they were any different, that one changed so why wouldn't the other ones?
ultimateh4xr is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 10-24-2010 , 01:08   Re: TF2Items - Items with custom attributes.
#488

The resource files still have it down as the same colour as vintage is.
Where are you seeing it as green?
__________________
asherkin is offline
FrozenHaxor
Senior Member
Join Date: Jun 2009
Location: Poland
Old 10-24-2010 , 01:29   Re: TF2Items - Items with custom attributes.
#489

Thank you for this, asherkin!
__________________
FrozenHaxor is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-24-2010 , 02:42   Re: TF2Items - Items with custom attributes.
#490

Quote:
Originally Posted by asherkin View Post
The resource files still have it down as the same colour as vintage is.
Where are you seeing it as green?
He also says "Valve Purple" is pink
__________________
DarthNinja is offline
Closed Thread



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 12:27.


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