AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   too messages (https://forums.alliedmods.net/showthread.php?t=336540)

husam124 02-27-2022 04:59

too messages
 
i currently trying to make an explosion that works with sprite one with fire explosion the other is frost explosion but while making the frost explosion this problem happens in the server:-
Code:

Host_Error: CL_ParseServerMessage: Illegible server message - svc_bad
while here is the frost explosion function:-
Code:

stock Create_FR_EXPLOSION( const Float:iOrigin[3] )
{
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        write_byte (TE_SPRITE) // TE ID
        engfunc(EngFunc_WriteCoord, iOrigin[0])
        engfunc(EngFunc_WriteCoord, iOrigin[1])
        engfunc(EngFunc_WriteCoord, iOrigin[2] + 50.0)
        write_short( Sprite_Frost ) // Sprite index
        write_byte( 100 ) // Size of sprite
        write_byte( 20 )
        write_byte( 0 )
        message_end(  )
}

stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
        new Float: fOrigin[ 3 ], iOrigin[ 3 ];
        entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
        FVecIVec( fOrigin, iOrigin );
               
        Create_FR_EXPLOSION( iOrigin );       
}


zXCaptainXz 02-27-2022 05:18

Re: too messages
 
Code:

stock Create_FR_EXPLOSION( const Float:fOrigin[3] )
{
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        write_byte (TE_SPRITE) // TE ID
        engfunc(EngFunc_WriteCoord, fOrigin[0])
        engfunc(EngFunc_WriteCoord, fOrigin[1])
        engfunc(EngFunc_WriteCoord, fOrigin[2] + 50.0)
        write_short( Sprite_Frost ) // Sprite index
        write_byte( 100 ) // Size of sprite
        write_byte( 20 )
        write_byte( 0 )
        message_end(  )
}

stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
        new Float: fOrigin[ 3 ], iOrigin[ 3 ];
        entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
        FVecIVec( fOrigin, iOrigin );
               
        Create_FR_EXPLOSION( fOrigin );       
}


husam124 02-27-2022 05:47

Re: too messages
 
still happening
Quote:

Last 32 messages parsed.
6648394 0034 svc_deltapacketentities
6648396 0008 svc_time
6648396 0013 svc_clientdata
6648396 0034 svc_deltapacketentities
6648397 0008 svc_time
6648397 0013 svc_clientdata
6648397 0034 svc_deltapacketentities
6648399 0008 svc_time
6648399 0013 svc_clientdata
6648399 0034 svc_deltapacketentities
6648401 0008 svc_time
6648401 0013 svc_clientdata
6648401 0034 svc_deltapacketentities
6648401 0045 svc_temp_entity
6648401 0157 svc_temp_entity
6648401 0211 svc_temp_entity
6648402 0008 svc_stufftext
6648402 0052 SendAudio
6648402 0072 svc_temp_entity
6648402 0081 RoundTime
6648402 0084 svc_time
6648402 0089 svc_clientdata
6648402 0114 svc_deltapacketentities
6648404 0008 svc_time
6648404 0013 svc_clientdata
6648404 0038 svc_deltapacketentities
6648405 0008 svc_time
6648405 0013 svc_clientdata
6648405 0031 svc_deltapacketentities
6648405 0042 svc_sound
6648405 0055 svc_temp_entity
BAD: 67:svc_bad
Host_Error: CL_ParseServerMessage: Ill

zXCaptainXz 02-27-2022 06:54

Re: too messages
 
Please post the full code.

Natsheh 02-27-2022 12:45

Re: too messages
 
Code:
Create_FR_EXPLOSION( const Float:fOrigin[3] ) {     engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0);     write_byte (TE_SPRITE) // TE ID     engfunc(EngFunc_WriteCoord, fOrigin[0])     engfunc(EngFunc_WriteCoord, fOrigin[1])     engfunc(EngFunc_WriteCoord, fOrigin[2] + 50.0)     write_short( g_Sprite_Frost ) // Sprite index, make sure the sprite is precached.     write_byte( 100 ) // Size of sprite     write_byte( 20 )     write_byte( 0 )     message_end(  ) } CreateFrost( iAttacker, iEntity, Float: fHealth ) {     new Float: fOrigin[ 3 ];     entity_get_vector( iEntity, EV_VEC_origin, fOrigin );             Create_FR_EXPLOSION( fOrigin )}

Alahmoh 02-28-2022 15:34

Re: too messages
 
Quote:

Originally Posted by husam124 (Post 2772583)
i currently trying to make an explosion that works with sprite one with fire explosion the other is frost explosion but while making the frost explosion this problem happens in the server:-
Code:

Host_Error: CL_ParseServerMessage: Illegible server message - svc_bad
while here is the frost explosion function:-
Code:

stock Create_FR_EXPLOSION( const Float:iOrigin[3] )
{
        message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
        write_byte (TE_SPRITE) // TE ID
        engfunc(EngFunc_WriteCoord, iOrigin[0])
        engfunc(EngFunc_WriteCoord, iOrigin[1])
        engfunc(EngFunc_WriteCoord, iOrigin[2] + 50.0)
        write_short( Sprite_Frost ) // Sprite index
        write_byte( 100 ) // Size of sprite
        write_byte( 20 )
        write_byte( 0 )
        message_end(  )
}

stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
        new Float: fOrigin[ 3 ], iOrigin[ 3 ];
        entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
        FVecIVec( fOrigin, iOrigin );
               
        Create_FR_EXPLOSION( iOrigin );       
}


Code:

        engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
        write_byte(TE_BEAMCYLINDER) // TE id
        engfunc(EngFunc_WriteCoord, originF[0]) // x
        engfunc(EngFunc_WriteCoord, originF[1]) // y
        engfunc(EngFunc_WriteCoord, originF[2]) // z
        engfunc(EngFunc_WriteCoord, originF[0]) // x axis
        engfunc(EngFunc_WriteCoord, originF[1]) // y axis
        engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
        write_short(g_exploSpr) // sprite
        write_byte(0) // startframe
        write_byte(0) // framerate
        write_byte(4) // life
        write_byte(60) // width
        write_byte(0) // noise
        write_byte(0) // red
        write_byte(100) // green
        write_byte(200) // blue
        write_byte(200) // brightness
        write_byte(0) // speed
        message_end()

you could try this also you could just use OciXcroom inc :-https://forums.alliedmods.net/showthread.php?p=2612418


All times are GMT -4. The time now is 09:06.

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