Maurize Posted June 24, 2012 Posted June 24, 2012 So let's think about removing the whole san andreas map and create a new map... arround 40 ground "plates" addEventHandler( "onClientResourceStart", resourceRoot, function() setWaterLevel( 50 ) createWater( -2998, -2998, 50, 2998, -2998, 50, -2998, 2998, 50, 2998, 2998, 50 ) setFarClipDistance( 99 ) for i = 550, 20000 do removeWorldModel( i, 10000, 0, 0, 0 ) end for i, v in ipairs( landScape ) do local landPart = createObject( 4247, v[1], v[2], 55, 0, 0, 0 ) setElementDoubleSided( landPart, true ) end for i, v in ipairs( landBuild ) do local landPart = createObject( v[1], v[2], v[3], v[4], 0, 0, v[5] ) setElementDoubleSided( landPart, true ) end for i, v in ipairs( landCliff ) do local landPart = createObject( 4585, v[1], v[2], 36.1, 90, 0, v[3] ) setElementDoubleSided( landPart, true ) end end ) Now the problem: Sometimes when I join my server, there ain't any ground plates, but waterlevel is increased an world models are removed... Somebody an idea? EDIT// If this bug appears & i restart mta:sa the bug is gone and everthing is normal? Means maybe its up to client or something?
Maurize Posted June 24, 2012 Author Posted June 24, 2012 What exactly do you mean? // Ah, i know. For example after 5 Seconds all the objects create and so on:)
Maurize Posted June 24, 2012 Author Posted June 24, 2012 addEventHandler( "onClientResourceStart", resourceRoot, function() setTimer( function() setWaterLevel( 50 ) createWater( -2998, -2998, 50, 2998, -2998, 50, -2998, 2998, 50, 2998, 2998, 50 ) for i = 550, 20000 do removeWorldModel( i, 10000, 0, 0, 0 ) end for i, v in ipairs( landScape ) do local landPart = createObject( 4247, v[1], v[2], 55, 0, 0, 0 ) setElementDoubleSided( landPart, true ) end for i, v in ipairs( landBuild ) do local landPart = createObject( v[1], v[2], v[3], v[4], 0, 0, v[5] ) setElementDoubleSided( landPart, true ) end end, 1000, 1 ) setFarClipDistance( 100 ) end ) still the same shit
GhostXoP Posted June 24, 2012 Posted June 24, 2012 Make sure users spawn 5 seconds after they join, maybe even 10. Experiment with it. It's happened where i've flown a plane, and then all of a sudden, a tree rendered in front of me and i blew up -.-
Maurize Posted June 24, 2012 Author Posted June 24, 2012 There is a login system > 5 seconds are sure.
Dev Posted June 25, 2012 Posted June 25, 2012 That script only has a delay time of 1 second, make it 5 or more.
Maurize Posted June 25, 2012 Author Posted June 25, 2012 okay, done. so far no problems.. "to be continued"
Castillo Posted June 25, 2012 Posted June 25, 2012 That script only has a delay time of 1 second, make it 5 or more. That's what I meant, as 1 second timer is not much of a delay.
Maurize Posted June 25, 2012 Author Posted June 25, 2012 okay bug is now very rare... i mean is this because performance problems or what?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now