Raised This Month: $32 Target: $400
 8% 

TF2 Crashing After Update


Post New Thread Reply   
 
Thread Tools Display Modes
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 10-12-2016 , 22:10   Re: TF2 Crashing After Update
Reply With Quote #21

It looks like tf2items givenameditem wasn't updated.

I thought it was included in the gamedata that Sourcemod maintains for a while?
__________________
bottiger is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 10-12-2016 , 22:11   Re: TF2 Crashing After Update
Reply With Quote #22

According to this https://asherkin.github.io/vtable/ IsWearable should be 88 linux, 87 windows. The rest seem to be correct.
Potato Uno is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 10-12-2016 , 22:12   Re: TF2 Crashing After Update
Reply With Quote #23

Also this for TF2Items Gamedata (again not 100% sure if its correct but seems to be working on windows):

Code:
"Games"
{
    "tf"
    {
        "Offsets"
        {
            "GiveNamedItem"
            {
                "windows"    "473"
                "linux"    "480"
                "mac"    "480"
            }
        }
    }
}
__________________
Fearts is offline
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 10-12-2016 , 22:20   Re: TF2 Crashing After Update
Reply With Quote #24

People should know that you need to mark your "official" gamedata file as read only or sourcemod will overwrite it with old values.

If I remember correctly tf2.items.txt is considered "official" unless it changed recently.
__________________
bottiger is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 10-12-2016 , 22:25   Re: TF2 Crashing After Update
Reply With Quote #25

Quote:
Originally Posted by bottiger View Post
People should know that you need to mark your "official" gamedata file as read only or sourcemod will overwrite it with old values.

If I remember correctly tf2.items.txt is considered "official" unless it changed recently.
It is reverting back to old gamedata that is the issue.
__________________
Fearts is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 10-12-2016 , 22:26   Re: TF2 Crashing After Update
Reply With Quote #26

Quote:
Originally Posted by bottiger View Post
People should know that you need to mark your "official" gamedata file as read only or sourcemod will overwrite it with old values.

If I remember correctly tf2.items.txt is considered "official" unless it changed recently.
Wrong wrong wrong.

https://wiki.alliedmods.net/Gamedata...ng_(SourceMod) using the custom folder is the correct way to load gamedata that is custom.

Do not stop the updater from updating your files, you will most likely run into an issue at some point.

All SM's gamedata has been updated already in this case and should be on the updater.

tf2items isnt part of sm, it is a seperate extension maintained by asherkin, who controls the gamedata (which he will probably fix when he is awake). It happens to be on the gamedata updater, but its not official part of sm.

Last edited by Dr!fter; 10-12-2016 at 22:31. Reason: fix link
Dr!fter is offline
jaguar1
Member
Join Date: Feb 2016
Old 10-12-2016 , 22:30   Re: TF2 Crashing After Update
Reply With Quote #27

what i need to do to fix the sourcemod?
jaguar1 is offline
Dr_Knuckles
AlliedModders Donor
Join Date: Mar 2005
Location: SW Florida
Old 10-12-2016 , 22:32   Re: TF2 Crashing After Update
Reply With Quote #28

^ what he said
__________________
Dr_Knuckles is offline
Dagothur
Member
Join Date: Dec 2014
Old 10-12-2016 , 22:36   Re: TF2 Crashing After Update
Reply With Quote #29

If you're on SM 1.7 or higher, restart your server and it will pull correct data. Note that the TF2Items step mentioned below also requires a restart, so do it first if you use it. (If you are below 1.7, you will have to update)

If you are using TF2Items, you need to go to /gamedata/ and make a directory called "custom". Copy /gamedata/tf2.items.txt into /custom/tf2.items.txt and make the file have the following contents:
PHP Code:
"Games"
{
    
"tf"
    
{
        
"Offsets"
        
{
            
"GiveNamedItem"
            
{
                
"windows"    "473"
                "linux"    "480"
                "mac"    "480"
            
}
        }
    }

As mentioned, you need to make sure you delete this file in a few days after TF2Items is updated to automatically pull this correct data. If you forget to do this, your shit will break the next time the offset changes and it wont be able to download the updated offset.

Last edited by Dagothur; 10-12-2016 at 22:41.
Dagothur is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 10-12-2016 , 22:39   Re: TF2 Crashing After Update
Reply With Quote #30

After updating the following offsets my servers seem to be working again (Windows OS):

"EquipWearable"

"RemoveWearable"

"GiveNamedItem"


Thanks to Drifter for the quick SM update.
__________________

Last edited by Fearts; 10-12-2016 at 22:40.
Fearts is offline
Reply


Thread Tools
Display Modes

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 20:31.


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