Raised This Month: $404 Target: $400
 101% 

[ANY] Fix angles 1.0.2 [2017/09/10]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Plugin ID:
5297
Plugin Version:
1.0.2
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Fixes error 'Bad SetLocalAngles' in server console
    Old 07-30-2016 , 01:32   [ANY] Fix angles 1.0.2 [2017/09/10]
    Reply With Quote #1

    Name: Fix angles

    Description: Fixes error 'Bad SetLocalAngles' in server console.

    Installation: Place compiled plugin (fix_angles.smx) into the plugins folder (../addons/sourcemod/plugins/).
    Set value '1' for variable 'sm_fix_angles_enable' in server.cfg or in the config for the problematic map (for plugin Map configs with prefix support).

    CVars:
    • sm_fix_angles_version - Version of this plugin
    • sm_fix_angles_enable - Enables/disables the plugin (def. '0'; You must set the value of this variable in the server config file)
    • sm_fix_angles_msg - Enables/disables messages in the server console (def. '0'; value is stored in the file fix_angles.cfg)
      E.g.
      Code:
      >       Wrong angles of the prop 'func_rotating' (#74, 'huey_blade'):
              0.00, 20916.54, 0.00 (fixed to: 0.00, 36.54, 0.00)
      >       Wrong angles of the prop 'func_rotating' (#75, 'huey_blade'):
              20916.54, 0.00, 0.00 (fixed to: 36.54, 0.00, 0.00)
    • sm_fix_angles_time - The time between inspections of entities angles (def. '30', min 10sec, max 120sec; value is stored in the file fix_angles.cfg)
    Changes in 1.0.2 [2017/09/10]:
    • Added CVar sm_fix_angles_msg
    • Small optimization of a code
    Changes in 1.0.1 [2016/07/31]:
    • Added CVar sm_fix_angles_enable in order to enable the plugin only for those maps (using a plugin Map configs with prefix support), where you see this error.
    • Small fixes
    Attached Files
    File Type: sp Get Plugin or Get Source (fix_angles 1.0.1.sp - 736 views - 2.2 KB)
    File Type: sp Get Plugin or Get Source (fix_angles 1.0.2.sp - 341 views - 3.1 KB)
    __________________

    Last edited by Grey83; 09-10-2017 at 07:36. Reason: Updated plugin: added CVar, small optimization of a code
    Grey83 is offline
    404UNF
    ( ͡ ͜ʖ ͡)
    Join Date: Dec 2011
    Location: 🍁
    Old 07-30-2016 , 20:00   Re: [ANY] Fix angles
    Reply With Quote #2

    What games specifically does this error occur in?
    __________________
    I'm not a SourcePawn expert, I just play one on TV.
    Want to join the SourceMod Discord server? Click here!

    404UNF is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 07-30-2016 , 22:12   Re: [ANY] Fix angles
    Reply With Quote #3

    abrandnewday, the occurrence of this error depends on the map, rather than the game.
    __________________
    Grey83 is offline
    AeroAcrobat
    AlliedModders Donor
    Join Date: Apr 2011
    Location: lives in a circus
    Old 07-31-2016 , 08:37   Re: [ANY] Fix angles
    Reply With Quote #4

    Is there any benefit in running this plugin besides that the error message is gone?
    Would you recomend using it or is it more or less just cosmetic?
    __________________
    AeroAcrobat is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 07-31-2016 , 13:05   Re: [ANY] Fix angles
    Reply With Quote #5

    AeroAcrobat, plugin changes the value of the angle of rotation from the entities that cause of this error message.
    __________________
    Grey83 is offline
    Nanozke
    Member
    Join Date: Apr 2016
    Location: Australia
    Old 07-31-2016 , 22:15   Re: [ANY] Fix angles
    Reply With Quote #6

    Just an example of this error that this fixes.

    Found on ze_saw_p3 on 45.121.210.44:27068
    Quote:
    0.000000,0.000000,360000.375000) on freeser_fan2
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan3
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan4
    Bad SetLocalAngles(360000.250000,0.000000,0.00000 0) on fan_rotating12
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate3
    Bad SetLocalAngles(0.000000,0.000000,360000.25000 0) on fan_rotating5
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate1
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate2
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate4
    Bad SetLocalAngles(0.000000,0.000000,360000.37500 0) on freeser_fan2
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan3
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan4
    Bad SetLocalAngles(360000.250000,0.000000,0.00000 0) on fan_rotating12
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate3
    Bad SetLocalAngles(0.000000,0.000000,360000.25000 0) on fan_rotating5
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate1
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate2
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate4
    Bad SetLocalAngles(0.000000,0.000000,360000.37500 0) on freeser_fan2
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan3
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan4
    Bad SetLocalAngles(360000.250000,0.000000,0.00000 0) on fan_rotating12
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate3
    Bad SetLocalAngles(0.000000,0.000000,360000.25000 0) on fan_rotating5
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate1
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate2
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate4
    Bad SetLocalAngles(0.000000,0.000000,360000.37500 0) on freeser_fan2
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan3
    Bad SetLocalAngles(0.000000,0.000000,360001.12500 0) on freeser_fan4
    Bad SetLocalAngles(360000.250000,0.000000,0.00000 0) on fan_rotating12
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate3
    Bad SetLocalAngles(0.000000,0.000000,360000.25000 0) on fan_rotating5
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate1
    Bad SetLocalAngles(0.000000,360000.625000,0.00000 0) on carousel_light_rotate2
    Good job.
    Nanozke is offline
    Potato Uno
    Veteran Member
    Join Date: Jan 2014
    Location: Atlanta, Georgia
    Old 08-01-2016 , 01:06   Re: [ANY] Fix angles
    Reply With Quote #7

    Quote:
    Originally Posted by abrandnewday View Post
    What games specifically does this error occur in?
    Leave cp_steel running on your server for about half an hour and then watch the console spam come in.
    Potato Uno is offline
    404UNF
    ( ͡ ͜ʖ ͡)
    Join Date: Dec 2011
    Location: 🍁
    Old 08-01-2016 , 16:00   Re: [ANY] Fix angles
    Reply With Quote #8

    Quote:
    Originally Posted by Potato Uno View Post
    Leave cp_steel running on your server for about half an hour and then watch the console spam come in.
    Ah, so it can hit TF2 then. That's what I wanted to know. What games' engines specifically suffer from this issue?

    Also, the plugin fails to compile on the forums. When I try to compile it in my compiling folder, I get this odd selection of errors:

    Code:
    C:\Coding\addons\sourcemod\scripting\include\sdktools_engine.inc(49) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_engine.inc(59) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_engine.inc(59) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_engine.inc(69) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(47) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(58) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(58) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(68) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(81) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(90) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(102) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(102) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(102) : error 147: new-style declarations are required
    C:\Coding\addons\sourcemod\scripting\include\sdktools_functions.inc(102) : fatal error 189: too many error messages on one line
    Yeah, maybe I should try updating the copy of SourceMod that I'm using for compiling.


    Compiling copy of SourceMod was updated, plugin compiles correctly. Seems the forums compiler is outdated then.
    __________________
    I'm not a SourcePawn expert, I just play one on TV.
    Want to join the SourceMod Discord server? Click here!


    Last edited by 404UNF; 08-01-2016 at 16:16.
    404UNF is offline
    Ayano
    New Member
    Join Date: Aug 2016
    Old 08-01-2016 , 18:20   Re: [ANY] Fix angles
    Reply With Quote #9

    plugin will be back soon?
    Ayano is offline
    Grey83
    Veteran Member
    Join Date: Dec 2014
    Location: Ukraine
    Old 08-02-2016 , 07:09   Re: [ANY] Fix angles
    Reply With Quote #10

    Ayano, what do you mean?
    __________________
    Grey83 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 06:34.


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