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

[TF2] Client Crash When Sprite Isn't Downloaded


Post New Thread Reply   
 
Thread Tools Display Modes
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 07-13-2014 , 16:13   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #11

Quote:
Originally Posted by Malachi View Post
What would be a good way to be more careful?
Heh, good question. My statement wasn't very descriptive.

But I mean, for example, as Sreaper suggested, you could potentially check which clients have cl_downloadfilter set to all/nosounds, and then set up a sprite TempEnt, and only send it to those clients. That might work...I'm not sure how flexible sprite TempEnts are.

Also, if you run a server with only a low amount of custom maps like I do, you can just pack the sprite file(s) into the map, and all clients in the game will be guaranteed to have it. I'm pretty sure I haven't gotten a crash by doing this yet.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
Malachi
Senior Member
Join Date: Jun 2010
Location: USA
Old 07-13-2014 , 22:59   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #12

Quote:
Originally Posted by MasterOfTheXP View Post
This appears to simply be an unfortunate issue with displaying sprites.
This open GitHub issue seems to be the same as mine:
[ALL][HL2DM] Game crash with setting "cl_downloadfilter none" on server with custom files (sprite .vtf) #1596
Malachi is offline
Malachi
Senior Member
Join Date: Jun 2010
Location: USA
Old 07-13-2014 , 23:00   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #13

Quote:
Originally Posted by MasterOfTheXP View Post
...set up a sprite TempEnt, and only send it to those clients.
Ok, thanks!
Malachi is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 07-13-2014 , 23:38   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #14

Quote:
Originally Posted by MasterOfTheXP View Post
Heh, good question. My statement wasn't very descriptive.

But I mean, for example, as Sreaper suggested, you could potentially check which clients have cl_downloadfilter set to all/nosounds, and then set up a sprite TempEnt, and only send it to those clients. That might work...I'm not sure how flexible sprite TempEnts are.

Also, if you run a server with only a low amount of custom maps like I do, you can just pack the sprite file(s) into the map, and all clients in the game will be guaranteed to have it. I'm pretty sure I haven't gotten a crash by doing this yet.
I was gonna suggest using that cl_downloadfilter method, because it'd work in a similar fashion to Dr. McKay's Advanced MOTD include file, where it checks to see if the client can view HTML MOTDs based on checking that convar.

I also wanted to try my hand at reviving the TF2 Donator Recognition plugin ages ago but I ran into the issue of sprites causing crashes so I gave up on it.
404UserNotFound is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 07-14-2014 , 02:35   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #15

Checking the cvar doesn't always help, since sometimes clients just fail to download the file (http times out, bz2 files does not decompress and remove itself)


I'm fairly certain that this bug exists with hud/ui elements and particles as well, as clients often will crash in droves on certain maps under specific circumstances (degroot keep), or when loading particles incorrectly (we have seen this with taunt and new item particle effects)
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 07-14-2014 at 02:44.
friagram is offline
Malachi
Senior Member
Join Date: Jun 2010
Location: USA
Old 07-14-2014 , 11:01   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #16

Quote:
Originally Posted by friagram View Post
Checking the cvar doesn't always help, since sometimes clients just fail to download the file...
Is there a way to check if a file exists for a client?

Last edited by Malachi; 07-14-2014 at 11:01.
Malachi is offline
Malachi
Senior Member
Join Date: Jun 2010
Location: USA
Old 07-14-2014 , 11:03   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #17

Quote:
Originally Posted by abrandnewday View Post
I also wanted to try my hand at reviving the TF2 Donator Recognition plugin ages ago...
As our community relies on it, I have my own fork that I maintain on GitHub.
Malachi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-14-2014 , 13:01   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #18

Quote:
Originally Posted by Malachi View Post
It might be worth emailing Valve directly instead, especially if they've ignored the bug on GitHub.

I'd recommend the TF2 Team even though it's not TF2 specific bug as fixing it in TF2 will likely get the fixes pushed to HL2M, DoD:S, and CS:S in the next engine sync.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Malachi
Senior Member
Join Date: Jun 2010
Location: USA
Old 08-24-2014 , 23:19   Re: [TF2] Client Crash When Sprite Isn't Downloaded
Reply With Quote #19

Quote:
Originally Posted by Root_ View Post
I have now tested this out, and for some reason it doesn't work reliably. I'm still trying to figure out why.
Malachi 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 13:17.


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