Disable tree auto-spawning?

Place for sharing your game modifications for Life is Feudal: Your Own
User avatar
R041
 
Posts: 2
Joined: 04 May 2015, 23:28

Disable tree auto-spawning?

Post by R041 » 06 May 2015, 14:15

Is there any possible way to disable the server from automatically spawning hundreds of trees a day? For a small server, this is insane.

Am I forced to just delete a large amount of trees every couple of weeks instead?


Schpidi
 
Posts: 21
Joined: 26 Apr 2015, 20:17

Re: Disable tree auto-spawning?

Post by Schpidi » 10 May 2015, 00:53

Hi R041,

you can try the following.

Login to your MySQL database.

Then find the functions f_addForestPatch and f_createForestItem.

Comment each INSERT or UPDATE statement you find in there by putting /* before the statement and */ after it.

Then hit button save.

Wait until the server wants to regrow some trees and check the console or the log (you can search for "FOREST_STRETCHED" to find some information)

would be nice, if you could give short feedback.

cheers,
schpidi
Visit my new blog about LiF:YO LIVE-Map, database modding, additions and scripts:
http://lif-tools.blogspot.com/

Return to Game mods