• Print

Author Topic: Bad sprite type  (Read 6725 times)

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Bad sprite type
« on: January 10, 2017, 06:16:11 pm »
So I own a Prop Hunt server and one of my co-owners just messaged me saying that his console is being spammed with
Code: [Select]
GetSpriteAxes: Bad sprite type 1853321060Now, I've (sort of) narrowed this down to a player model, Amaterasu. Here's my Pointshop code:


Code: Lua
  1.  
  2. ITEM.Name = 'Amaterasu'
  3. ITEM.Price = 3000
  4. ITEM.Model = 'models/player_amaterasu.mdl'
  5. ITEM.SubCategory = 'VIP Player Models'
  6. ITEM.AllowedUserGroups = { "superadmin", "headadmin", "admin", "moderator", "operator", "trial", "vip+", "vip", "donator" }
  7.  
  8.  
  9. function ITEM:OnEquip( ply, modifications )
  10.   if not ply._OldModel then
  11.     ply._OldModel = ply:GetModel()
  12.   end
  13.   timer.Simple( 1, function()
  14.     ply:SetModel( self.Model )
  15.   end )
  16. end
  17.  
  18.  
  19. function ITEM:OnHolster( ply )
  20.   if ply._OldModel then
  21.     ply:SetModel( ply._OldModel )
  22.   end
  23. end
  24.  
  25.  
  26. function ITEM:PlayerSetModel( ply )
  27.   ply:SetModel( self.Model )
  28. end
  29.  
And this is the Steam Workshop page:
http://steamcommunity.com/sharedfiles/filedetails/?id=484734108
Does anyone know why this is happening? Or is it nothing to worry about?
I've tried to be as descriptive as possible, if you need more information, let me know.
« Last Edit: January 10, 2017, 06:19:09 pm by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Bad sprite type
« Reply #1 on: January 10, 2017, 07:03:59 pm »
Everything I find in google mentions a Pinion ad server, or, this - https://www.reddit.com/r/csmapmakers/comments/5m5j2r/tentative_fix_for_the_getspriteaxes_bad_sprite/
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Bad sprite type
« Reply #2 on: January 10, 2017, 07:24:26 pm »
Yeah, I saw a lot of that on Facepunch but I couldn't find anything that helped me. It possibly could be the map, not sure.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Bad sprite type
« Reply #3 on: January 10, 2017, 07:56:50 pm »
Though it could be the model you're using, I'm reasonably sure it's not the code.
Tried removing the model?
Tried loading a different map?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

  • Print