Raised This Month: $ Target: $400
 0% 

Linux func_rotating bug fixer


Post New Thread Reply   
 
Thread Tools Display Modes
Old 09-20-2010, 17:51
AlexALX
This message has been deleted by AlexALX.
AlexALX
Senior Member
Join Date: Apr 2009
Old 09-21-2010 , 17:34   Re: Linux func_rotating bug fixer
Reply With Quote #2

Can I build this plug-in to my [DeathRun] Triggers & Entities Fix? (Ask the author as if ... ConnorMcLeod) And if I build it - then do the checking on Linux or not? (Do fix only for Linux servers)
__________________
AlexALX is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 09-21-2010 , 19:49   Re: Linux func_rotating bug fixer
Reply With Quote #3

Quote:
Originally Posted by AlexALX View Post
Can I build this plug-in to my [DeathRun] Triggers & Entities Fix? (Ask the author as if ... ConnorMcLeod) And if I build it - then do the checking on Linux or not? (Do fix only for Linux servers)
the bug is only on linux servers.
platzpatrone is offline
AlexALX
Senior Member
Join Date: Apr 2009
Old 09-22-2010 , 06:03   Re: Linux func_rotating bug fixer
Reply With Quote #4

Quote:
Originally Posted by platzpatrone View Post
the bug is only on linux servers.
As I understand it - no. Bug is in the windows, only to appear in the 512 again later.

Quote:
Found that thos entities stop rotation (only visual) when some angle value is above 32768 or below -32768 on linux, and -16777216/16777216 (=32768*512) on windows, at least on my computer and on my dediacted server.
But if the Linux server is 10-20 minutes (depending on the speed of the entity), then it will be on windose 5000-10000 minutes And maybe faster... (Again, depending on speed)
__________________
AlexALX is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 09-22-2010 , 07:14   Re: Linux func_rotating bug fixer
Reply With Quote #5

Quote:
Originally Posted by AlexALX View Post
As I understand it - no. Bug is in the windows, only to appear in the 512 again later.



But if the Linux server is 10-20 minutes (depending on the speed of the entity), then it will be on windose 5000-10000 minutes And maybe faster... (Again, depending on speed)

to be honest, u dont play a map with rotating things on windows for round about 5000-10000 minutes

u change the map after maybe 20-120 or more minutes. dont u ?

if u play as example on linux: deathrun_caves, the rotating things stops after time (only visual) but if u change the map
the bug is gone.

so u need this fix only on linux ;)
platzpatrone is offline
xlenonz
Member
Join Date: Jun 2007
Old 09-22-2010 , 14:06   Re: Linux func_rotating bug fixer
Reply With Quote #6

this bug cause high cpu ? like %99 ?
__________________
HELL YEAH
xlenonz is offline
Old 09-22-2010, 14:17
xlenonz
This message has been deleted by xlenonz.
FiFiX
Senior Member
Join Date: May 2008
Location: Poland
Old 09-22-2010 , 18:12   Re: Linux func_rotating bug fixer
Reply With Quote #8

No.
FiFiX is offline
Send a message via Skype™ to FiFiX
AlexALX
Senior Member
Join Date: Apr 2009
Old 09-24-2010 , 09:53   Re: Linux func_rotating bug fixer
Reply With Quote #9

I used fix by ConnorMcLeod in my [DeathRun] Triggers & Entities Fix. I hope the author is not against =).
__________________
AlexALX is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-10-2010 , 08:37   Re: Linux func_rotating bug fixer
Reply With Quote #10

Do you guys even notice that you set angles wrong? Whenever you set them, they always have no digits after the dot, or are equal to 0? Here's my math way of fixing this:
PHP Code:
new Float:fAngles[3];
pev(iEntpev_anglesfAngles);
new 
iAngles[3], iTimesRepeated[3];
for( new 
iAngleiAngle<3iAngle++ )
{
 
iAngles[iAngle] = floatround(fAngles[iAngle]);
 
 if( 
iAngles[iAngle] )
 {
  
iTimesRepeated[iAngle] = iAngles[iAngle]/360;
  
fAngles[iAngle] -= float(360*iTimesRepeated[iAngle]);
 }
}
set_pev(iEntpev_anglesfAngles); 
// edit:

Ow, sry, ConnorMcLeod way does the same thing. =P
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 10-10-2010 at 08:41.
MPNumB is offline
Send a message via Skype™ to MPNumB
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 07:51.


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