How can I increase the active range for lua entities (mobs)?

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

How can I increase the active range for lua entities (mobs)?

by burli » Mon Jul 18, 2016 17:15

Objects disappear in the distance. Is it possible to increase this distance?
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: How can I increase the active range for lua entities (mo

by Calinou » Mon Jul 18, 2016 17:25

Try this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
active_block_range = 4
active_object_send_range_blocks = 4


The distance is in "blocks", ie. 16×16×16 nodes. The first one determines the simulation area of entities (default is 2), the latter determines the sending distance (default is 3).
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: How can I increase the active range for lua entities (mo

by burli » Mon Jul 18, 2016 17:44

I tried this, but they disappear still in the same distance. I want to increase the view range
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: How can I increase the active range for lua entities (mo

by Krock » Mon Jul 18, 2016 19:36

burli wrote:I tried this, but they disappear still in the same distance. I want to increase the view range

Please look that the minetest.conf.example file. There you will find a great explanation for all possible commands:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
#    From how far blocks are sent to clients, stated in mapblocks (16 nodes).
# max_block_send_distance = 10

#    From how far blocks are generated for clients, stated in mapblocks (16 nodes).
# max_block_generate_distance = 6
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: How can I increase the active range for lua entities (mo

by burli » Mon Jul 18, 2016 19:58

I talk about the visibility range of lua entities. They disappear in a distance of ~40 nodes. I already searched the mtconf example for possible parameters
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: How can I increase the active range for lua entities (mo

by burli » Mon Jul 18, 2016 20:50

burli wrote:I tried this, but they disappear still in the same distance. I want to increase the view range

I'm sorry, I forgot to exit and restart minetest. Now the active range is much higher
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 8 guests

cron