When using the libcod getFps() it shows me a number of almost 80-100 frames less than the ingame fps-counter
Am I doing sth wrong or is one of the counters not reliable?
When using the libcod getFps() it shows me a number of almost 80-100 frames less than the ingame fps-counter
Am I doing sth wrong or is one of the counters not reliable?
Make sure you have fpsnextframe() called each frame, in a wait 0.05 loop.
sudo apt-get rekt
Yep, done as IzNoGoD said in his original thread: https://killtube.org/showthread.php?...l-fps-realtime
PHP Code:
Init()
{
level thread MonitorPlayerConnect();
level thread OnFrameUpdate();
}
OnFrameUpdate()
{
while( true )
{
fpsNextFrame();
wait( 0.05 );
}
}
MonitorPlayerConnect()
{
while( true )
{
level waittill( "connected" , player );
if( !isDefined( player ) || !isPlayer( player ) )
continue;
level thread OnClientFrameUpdate( player );
}
}
OnClientFrameUpdate( player )
{
player resetFps();
while( isDefined( player ) )
{
player.fps = player getFps();
player iPrintLn( player.fps );
wait( 0.05 );
}
}
No. Bots can't do any client commands.
sudo apt-get rekt
Whiskas (2nd November 2016)
cod4x however has hijacked some of the sendpacket stuff which is used for demo recording. It has preliminary support for server-side demo recording which theoretically should work on bots as well.
However you can just record a demo of a player with it instead, should be easier.
No work has been done to port this to cod2 at this time.
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
kung foo man (2nd November 2016),Whiskas (2nd November 2016)
does sendGameServerCommand( entNum , "h \"text\""); also works for teamchat?
Im using this: https://killtube.org/showthread.php?...highlight=mute
but also with "say_team", but it the teamchat is displayed like regular chat-text
NVM, i am being stupid, i just can monitor the team myself and only send the propriate one
Last edited by serthy; 20th November 2016 at 12:13.
Keep in mind that you might wanna replace all " by double ' in messages, cause gameservercommands dont know what to do with (even escaped) "-s
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
serthy (20th November 2016)
What exactly does it says to me? That those IPs were seeking my server, but the response from the server couldn't be delivered?Code:NET_SendPacket ERROR: Resource temporarily unavailable to 194.27.72.36:-7108 NET_SendPacket ERROR: Resource temporarily unavailable to 194.27.72.36:-7096 NET_SendPacket ERROR: Resource temporarily unavailable to 194.249.87.231:-4841 NET_SendPacket ERROR: Resource temporarily unavailable to 194.27.72.36:-7161 NET_SendPacket ERROR: Resource temporarily unavailable to 194.27.72.36:-15452 NET_SendPacket ERROR: Resource temporarily unavailable to 194.249.87.231:-4731
Those ips have shown up as abuse in logs before. Some turkish university doing ddos amp attacks (or receiving them, based on udp amplification)
Don't worry, shouldn't be actual clients.
https://www.abuseipdb.com/check/194.27.72.36
https://www.abuseipdb.com/check/194.249.87.231
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
Whiskas (19th January 2017)