Raised This Month: $ Target: $400
 0% 

Functions what work fine in windows but crash in linux (research thread)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-22-2014 , 12:36   Re: Functions what work fine in windows but crash in linux
Reply With Quote #3

I tested somethings
PHP Code:
public test_thing(id)
{
    
client_print(1print_chat"test 8"  )
    static 
ent
    ent 
create_entity("info_target")
    
remove_entity(ent)
        
// added x function here 
list of function tested ( x functions )
PHP Code:
remove_entity(ent)
dllfunc(DLLFunc_Spawnent)
set_pev(entpev_solidSOLID_NOT)
entity_set_size(entFloat:{ -3.0, -3.0, -3.0 }, Float:{ 3.03.03.0 } )
set_peventpev_aimentid // i guess set_pev is safe and dont matter what im sending here
engfunc(EngFunc_RemoveEntityent)
entity_set_model(entprecachedvalid_model
I tested them one by one and non of them crashed my server.
Just got error logs (invalid entity)

Now the problem is that when im doing something with entities im using always set_pev
( im replacing them soon with engine but since it is easier to write with pev im using that )

And the funny thing is that i never got error logs saying entity is invalid.
I also checked my code and i check everytime if user is connected or is entity valid.
Im out of ideas now.

I need to find those functions what crash ohter ways all that huge work creating that mod was useless because it cant be used if it is crashing.
There is still one thing what i havent tested and that is entity count.
If there are more than 1300 + something entities server crashes.
( seems pretty ridiculous that i reached that limit but who knows... )
.Dare Devil. is offline
 



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 21:17.


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