bLueTTF Posted August 20 Share Posted August 20 Hello Guys! I'm runing a local server to use editor map with some tools, after mapping, I started having some problems with objects disappearing depending on the distance. on MTA's official discord they told me that the problem would be having too many objects in the same place and that it would be a streaming memory problem. my goal is find a way to prevent visible objects from disappearing without needing any resource running on the server. here some videos showing the problem. https://imgur.com/a/ULjayBz Link to comment
Administrators Tut Posted August 20 Administrators Share Posted August 20 https://wiki.multitheftauto.com/wiki/EngineSetModelLODDistance This is all you need. For an interior like this, a value of 100 units for troublesome objects might suffice Link to comment
Moderators IIYAMA Posted August 20 Moderators Share Posted August 20 There is also a baked in option in the map editor (extension). Make sure your editor is up to date and your map contains the latest extension file. For manual upgrades: https://github.com/multitheftauto/mtasa-resources/blob/master/[editor]/editor_main/server/mapEditorScriptingExtension_s.lua https://github.com/multitheftauto/mtasa-resources/blob/master/[editor]/editor_main/client/mapEditorScriptingExtension_c.lua Example map meta.xml with useLODS option enabled: Spoiler <meta> <min_mta_version server="1.5.8-9.20957"></min_mta_version> <info type="map" version="1.0.0"></info> <map src="test-lod.map" dimension="0"></map> <settings> <setting name="#maxplayers" value="[ 128 ]"></setting> <setting name="#useLODs" value="[ true ]"></setting> <setting name="#gamespeed" value="[ 1 ]"></setting> <setting name="#minplayers" value="[ 0 ]"></setting> <setting name="#gravity" value="[ 0.0080000004 ]"></setting> <setting name="#waveheight" value="[ 0 ]"></setting> <setting name="#locked_time" value="[ false ]"></setting> <setting name="#weather" value="[ 0 ]"></setting> <setting name="#time" value="12:0"></setting> </settings> <script src="mapEditorScriptingExtension_s.lua" type="server"></script> <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script> </meta> Link to comment
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