AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   TF2Items FAQ (https://forums.alliedmods.net/showthread.php?t=179352)

DarthNinja 02-28-2012 21:08

TF2Items FAQ
 
TF2Items FAQ
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~


Intro:
I'm writing this because I frequently see the same questions being asked in the main TF2Items thread and IRC channel.
This post is intended to provide quick answers to the most frequently asked questions.

Installing:
To install TF2Items on your TF2 server, you must first have SourceMod and by extension MetaMod installed.
After installing SM and MM and verifying they are running, download the TF2Items binaries from the Main Thread.
Extract the zip file and upload the folders to your server's sourcemod directory.
Modify the config file to do what you want. Details on this below.

Setting up your config:
You can tell the tf2items_manager what items to modify using the tf2items.weapons.txt config file. Items will be modified when they are equipped.
The included tf2items.weapons.example.txt includes some example syntax, but is non-functional. Create your own config file.
All attributes that can be used are found in the tf/scripts/items/items_game.txt file on your server. You may also view attributes in other ways, such as by adding ?d=1 to the end of a tf2items.com backpack link.

OPTF2 has a very nice attributes list, here: http://optf2.com/440/attributes

Click here for an image showing most of the components of the config: TF2Items config explained

As said above, all the items and attributes in the game are listed in the items_game.txt file.
Here is an example to show you how to read it:
(I have added comments to the important lines)
Spoiler


Attributes listed in items_game look like this:

Spoiler


The "88" and "89" shown above are the attribute index you would use in your config.
What are valid values? The best way to find out is to try them yourself.
To make testing values for the configs easier, I have written a plugin that allows you to give or edit an item by command. This allows you to make quick changes without having to edit/upload/reload your config: [TF2Items] Item Designer.


Note on wildcarding:
You can use wildcards to apply a set of attributes to all items or all players using an asterisk (*) in place of a steamid or item index.

However, it should be noted that the plugin will stop when it finds the first applicable attribute set.
Because of this, any configs added below a wildcard will not be used since the wildcard handles the request before a more specific config is read.
By the same token, a specific config entry will override a wildcard if the former is higher in the config file then the latter.

It should also be noted that there is no way to wildcard only hats/wearables or only weapons using the base plugin. Such functionality is possible, but would require a custom plugin.
Q & A:
  • Question: Does TF2Items "give" me items?
    Answer: No. No plugin can give you items in the sense that they exist in your backpack.
    The bundled tf2items_manager plugin can edit items you have. The [TF2Items] Give Weapon plugin will allow you to equip weapons you do not have (although only you will be able to see them).
  • Question: How can I edit item names (like nametags do)?
    Answer: You can't.
  • Question: Where can I find a list of item qualities?
    Answer: They are listed at the top of the items_game.txt file, under "qualities". See also: http://wiki.teamfortress.com/wiki/Item_qualities.
  • Question: I see min_value and max_value in items_game.txt... Can I set a value higher/lower than the min/max?
    Answer: Yes you can!

Notes:
~


DarthNinja 02-28-2012 21:09

Re: FAQ
 
Reserved ~

FlaminSarge 03-20-2012 16:06

Re: TF2Items FAQ
 
You might want to add that the config is on a first-come-first-serve basis, so that wildcards will override anything beneath them.

Leonardo 03-20-2012 16:16

Re: TF2Items FAQ
 
may should make a wiki..?

xomp 05-18-2012 21:17

Re: TF2Items FAQ
 
Can you explain what preserve-attributes does? I'm in the process of making all my weapons have the turn to gold attribute and I would like to do so by simply adding that to there existing attributes that way I don't have to specify each and every weapons attributes + the gold.

FlaminSarge 05-24-2012 06:27

Re: TF2Items FAQ
 
That's exactly what preserve does, yes.

KnoXviLLe 08-02-2012 18:26

Re: TF2Items FAQ
 
How do change my hat colour ?

josko 08-17-2012 14:55

Re: TF2Items FAQ
 
Also, you can view attributes using this site:

http://wiki.teamfortress.com/wiki/Li...tem_attributes

Baklap4 03-05-2016 10:16

Re: TF2Items FAQ
 
Instead of a SteamID or Asteriks (*) can you also focus Groups (listed in Admin_groups.cfg)
If so, how?

asherkin 03-05-2016 21:17

Re: TF2Items FAQ
 
No.

Baklap4 03-05-2016 21:46

Re: TF2Items FAQ
 
Quote:

Originally Posted by asherkin (Post 2399789)
No.

will it be in there?

DarthNinja 03-11-2016 10:20

Re: TF2Items FAQ
 
Quote:

Originally Posted by Baklap4 (Post 2399798)
will it be in there?


Quote:

Originally Posted by asherkin (Post 2399789)
No.

Also, Foxes.

http://i.imgur.com/cYLTHCC.jpg

Dragonisser 05-01-2016 18:18

Re: TF2Items FAQ
 
Since weapons and cosmetics are working with unusuals effects, are Taunts possible too? I tried it but it didnt seem to work.

ThomasTheWeedEngine 07-16-2016 04:30

Re: TF2Items FAQ
 
how did you guys do this??
I've try it but when I type tf2items_manager_reload after edit the config file
It's said nothing and I could type new command in
Is this related to the new update??
Please help, many thanks

luisbronyshy 07-20-2016 21:05

Re: TF2Items FAQ
 
I am also having problems, I am trying to install the TF2WARE plugin, but TF2Items is slowing me down...

Dragonisser 10-27-2016 16:10

Re: TF2Items FAQ
 
I guess Unusual Taunts are still not achievable with this plugin or?

Facksy 04-07-2017 11:58

Re: TF2Items FAQ
 
Link to download plugin " http://hg.limetech.org/projects/tf2i...rchive/tip.zip " is ded, can u update it ?

FlaminSarge 04-14-2017 17:00

Re: TF2Items FAQ
 
They're available at https://builds.limetech.io/

GeoDashEabarod 06-26-2017 17:34

Re: TF2Items FAQ
 
How do you make it so that the weapon is changed for everybody
And also, what are admin-flags?

orange kao 02-28-2018 09:12

Re: TF2Items FAQ
 
Edit tf2items.weapons.txt (In "addons/sourcemod/configs/") according to who you want to get weapons
theres no file called "tf2items.weapons.txt" in there

when i type "sm exts load tf2items" it fails
where is the "tf2items.weapons.txt"?

In THIS plugin thread's first post, download the file tf2items_giveweapon.smx.
where can i find the first post?

lizzy 06-10-2020 06:04

Re: TF2Items FAQ
 
Is there a hard-coded limit of 16 attributes in tf2 or is that simply imposed by the plugin?

asherkin 06-10-2020 06:11

Re: TF2Items FAQ
 
Quote:

Originally Posted by lizzy (Post 2704913)
Is there a hard-coded limit of 16 attributes in tf2

The limit comes from TF2, but it was increased from 16 to 20 back in 2017 (and TF2Items updated to match.)

ksyko 02-08-2021 06:49

Re: TF2Items FAQ
 
Can someone please check these files. Cant tell what im doing wrong.
I am not able to get the weapon changes.

tf2.items.txt (sourcemod/gamedata/)

Code:

"Games"
{
        "tf"
        {
                "Offsets"
                {
                        "GiveNamedItem"
                        {
                                "windows"      "477"
                                "linux" "484"
                                "mac"  "484"
                        }
                }
        }
}

tf2items.weapons.txt (sourcemod/configs)
Code:

"custom_weapons_v3"
{
        "*"
        {
                "230"
                {
                        "level"  "1"
                        "quality"              "6"
                        "1"                    "305; 1"
                        "2"                    "308; 1"
                        "3"                    "41 ; .6"
           
                }


                "41"
                {
                        "level"  "1"
                        "quality"              "6"
                        "1"    "280 ; 2"
                        "2"    "5 ; 3"
                        "3"    "488 ; 1"
                        "4"    "100 ; .3" 
                        "5"    "77 ; .75"
                }
        }
}


asherkin 02-08-2021 06:51

Re: TF2Items FAQ
 
Have you compiled and loaded the tf2items_manager plugin?

ksyko 02-08-2021 07:10

Re: TF2Items FAQ
 
Quote:

Originally Posted by asherkin (Post 2736123)
Have you compiled and loaded the tf2items_manager plugin?

Havent compiled. But have the old plugin with me.

Code:

tf2items_manager_reload
L 02/08/2021 - 10:57:50: [tf2items_manager.smx] Reloading items list


If needed to compile, how do I compile. Tried compiling it (ran configure.py), got this "Exception: Could not find a valid path for MMSOURCE19"... Im on linux.

Edit: Was able to solve mmsource19 issue. Now i get this: Exception: Could not determine repository version
Edit2: I gave a random version (3,3) and compiled it. Got the smx file, using the same. Still not able to see the changes.
Edit3: Just had to validate game files (had messed with the official item schema) and restart the server

Thanks for making this.


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

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