Raised This Month: $51 Target: $400
 12% 

game crash (very informative)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 03-25-2022 , 22:50   game crash (very informative)
Reply With Quote #1

UPD: It crashes when I die because of explosion, if I see it but not die, game is not crashing
----
The game crashes on bomb explosion (e.g. site A, de_dust2).
Not on all maps. Wanna ask if someone knows possible fix
Didn't crashed on de_inferno's B site

Error:


This causes the error:
PHP Code:
#define EF_NONE 0

public ClCmd_toggle_triggerbox(id)
{
    new 
ent read_argv_int(1
    new 
entfx entity_get_int(entEV_INT_effects)
    
    switch(
entfx)
    {
        case 
EF_NODRAW// func_bomb_target have only this flag making it invisible
        
{
            
entity_set_int(entEV_INT_effectsEF_NONE)
            
entity_set_int(entEV_INT_rendermodekRenderTransAdd)
            
entity_set_float(entEV_FL_renderamt64.0// 64.0 is almost 25% opacity
        
}
        case 
EF_NONE:
        {
            
entity_set_int(entEV_INT_effectsEF_NODRAW)
            
entity_set_int(entEV_INT_rendermodekRenderNormal)
            
entity_set_float(entEV_FL_renderamt0.0)
        }
    }
    
    
console_print(id"toggled %i's visibility. WARNING! It can crash the game on the bomb explosion!"ent)
    
    return 
PLUGIN_HANDLED

some entities, if someone wanna test
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 03-26-2022 at 06:46. Reason: fysiks-sama asked to remove spoilers
kww is offline
Old 03-25-2022, 22:59
fysiks
This message has been deleted by fysiks. Reason: do longer relevant, OP cleaned up post
Old 03-25-2022, 23:17
kww
This message has been deleted by kww. Reason: offtop
Old 03-25-2022, 23:23
fysiks
This message has been deleted by fysiks. Reason: do longer relevant, OP cleaned up post
Old 03-25-2022, 23:41
kww
This message has been deleted by kww. Reason: offtop
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 03-26-2022 , 05:27   Re: game crash (very informative)
Reply With Quote #2

entity_set_int(ent, EV_INT_rendermode, kRenderTransAdd)
->>
entity_set_int(ent, EV_INT_rendermode, kRenderNormal)

http://www.amxmodx.org/api/amxconst#...user-rendering

Code:
    kRenderNormal = 0,      /* src */
    kRenderTransAdd,        /* src*a+dest */
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 03-26-2022 , 05:47   Re: game crash (very informative)
Reply With Quote #3

Quote:
Originally Posted by Shadows Adi View Post
entity_set_int(ent, EV_INT_rendermode, kRenderTransAdd)
->>
entity_set_int(ent, EV_INT_rendermode, kRenderNormal)

http://www.amxmodx.org/api/amxconst#...user-rendering

Code:
    kRenderNormal = 0,      /* src */
    kRenderTransAdd,        /* src*a+dest */
Will it be transparent?
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951
kww is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 03-26-2022 , 05:52   Re: game crash (very informative)
Reply With Quote #4

Quote:
Originally Posted by kww View Post
Will it be transparent?
Test it. If isn't working, decrease EV_FL_renderamt value.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 03-26-2022 , 06:40   Re: game crash (very informative)
Reply With Quote #5

Quote:
Originally Posted by Shadows Adi View Post
Test it. If isn't working, decrease EV_FL_renderamt value.
It is not working. Game is not crashing but entity is not transparent now


Still crashes when I die because of explosion.
But if I see an explosion but not die, game is not crashing
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 03-26-2022 at 06:47.
kww is offline
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 14:01.


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