Jump to content

Mapping Visible Distance Problem


#~Scared

Recommended Posts

Posted (edited)

hi

i makes new map and Load it on my server.

when im within 50 meters of this map objects i can see it.

but when im within 100+ meters of this map objects , i can not see it.

 

this is a problem ? can it be fix ?

Edited by #~Scared
  • Moderators
Posted (edited)

We can't say exactly because we can't see it.

But, you can increase load distance with https://wiki.multitheftauto.com/wiki/EngineSetModelLODDistance

Or try to disable occlusion with https://wiki.multitheftauto.com/wiki/SetOcclusionsEnabled

Edited by stPatrick
  • Moderators
Posted (edited)

@#~Scared

In the editor there is a map setting called useLODs. (Also you can just edit the meta.xml of the map)

<meta>
    <info type="map" version="1.0.0"></info>
    <map src="test-lods.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="#camera" value='[ [ [ &quot;0&quot;, &quot;0&quot;, &quot;0&quot; ], [ &quot;0&quot;, &quot;0&quot;, &quot;0&quot; ] ] ]'></setting>
        <setting name="#locked_time" value="[ true ]"></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>

This will enable a list of GTA san lowLOD elements.

 (but it doesn't include all, there for you have to script a little bit more to use default elements as lowLOD objects, edit the mapEditorScriptingExtension files for that. Keep performance in mind while making those tweaks.)

 

Edited by IIYAMA

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   ?

 

  Useful functions  3x 

  Tutorials  4x 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...