flyingdutchmen

Persistent Tree Chopping

21 posts in this topic

Very simple little Add-on / Script for Persistent Tree Logging.

Idea is simple, you chop down a tree and it stays down over recurring server restarts.
"Grows" it back after 8 days. 

It needs 1 overwrite in your Exile configuration "CfgCustomCode"
Additions to your Database, Exile.ini and has a seperate server pbo to be dragging inside the @ExileServer \ Addons folder.

Little Readme in the repo for the ones that want it.

 

Found at:

https://github.com/DoubleRepo/PersistentTreeLogging

Edit: Fixed issue because it wasn't finding the tree. 

Edited by flyingdutchmen
  • Like 5

Share this post


Link to post
Share on other sites
Advertisement
ALTER TABLE `tree`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
SET FOREIGN_KEY_CHECKS=1;
COMMIT;

Work Perfect on EXTDB3....

PLS in SQL Change
 

Spoiler

ALTER TABLE `tree`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
SET FOREIGN_KEY_CHECKS=1;

COMMIT;

 

to

 


ALTER TABLE `tree`
  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT;
SET FOREIGN_KEY_CHECKS=1;
COMMIT;
Edited by HellBz

Share this post


Link to post
Share on other sites
10 minutes ago, HellBz said:

Nice Script and next time on Our Server at Pure Gaming Exile..

Bit not now ready for ExtDB3..

Will make a few modifications to that and make it extdb3 and i need to fix a other issue.

What map are you using ?

Edited by flyingdutchmen

Share this post


Link to post
Share on other sites

ähm bRO

Spoiler

 1:34:48 "Hiding Tree ""1017526: b_cycas_f.p3d"" @ POS [11254.8,8841.8,0]"
 1:34:48 "Hiding Tree ""<null>"" @ POS [10443.8,11597.5,0]"
 1:34:48 Error in expression <og format ['Hiding Tree "%1" @ POS %2', _SelectTree, (str _position)];
_SelectTr>
 1:34:48   Error position: <_SelectTree, (str _position)];
_SelectTr>
 1:34:48   Error Undefined variable in expression: _selecttree
 1:34:48 File TreeLogging\functions\ExileServer_object_tree_database_load.sqf, line 18
 1:34:48 "Hiding Tree ""<null>"" @ POS [10633.7,11368.6,0]"
 1:34:48 Error in expression <og format ['Hiding Tree "%1" @ POS %2', _SelectTree, (str _position)];
_SelectTr>
 1:34:48   Error position: <_SelectTree, (str _position)];
_SelectTr>
 1:34:48   Error Undefined variable in expression: _selecttree
 1:34:48 File TreeLogging\functions\ExileServer_object_tree_database_load.sqf, line 18
 1:34:48 "Hiding Tree ""<null>"" @ POS [10628.6,11354.3,0]"
 1:34:48 Error in expression <og format ['Hiding Tree "%1" @ POS %2', _SelectTree, (str _position)];
_SelectTr>
 1:34:48   Error position: <_SelectTree, (str _position)];
_SelectTr>
 1:34:48   Error Undefined variable in expression: _selecttree

 

 

Edited by HellBz

Share this post


Link to post
Share on other sites

Tried that , its pretty cool addition to get even more immersion on survival servers.
As I told you @flyingdutchmen , the main thing I'm worried about is how big my database will become with every single "tree" being saved to a database & how its gonna effect the resources on highly populated servers. Also , regrow option is a must. Yeah I know , WIP ;)

Edited by Chernaruski

Share this post


Link to post
Share on other sites
16 hours ago, Chernaruski said:

Tried that , its pretty cool addition to get even more immersion on survival servers.
As I told you @flyingdutchmen , the main thing I'm worried about is how big my database will become with every single "tree" being saved to a database & how its gonna effect the resources on highly populated servers. Also , regrow option is a must. Yeah I know , WIP ;)

Dude, i already told you. It saves the position only, how big will it become you think ?
All the items and other stuff like vehicles, baseparts etc etc is allot more then the tree positions. 

Share this post


Link to post
Share on other sites

Can you please, please make a little more "in-depth" guide. 

"Add inside your mission config.cpp at the cfgcustomcode ExileServer_object_tree_network_chopTreeRequest and use the file provided inside MpMission/overwrites.

Add the additions from Exile.ini to your Exile.ini.

Drag the Server Addon to your ExileServer Addons folder and profit."

...????? what?

Share this post


Link to post
Share on other sites
4 hours ago, Juan Tapper said:

Can you please, please make a little more "in-depth" guide. 

"Add inside your mission config.cpp at the cfgcustomcode ExileServer_object_tree_network_chopTreeRequest and use the file provided inside MpMission/overwrites.

Add the additions from Exile.ini to your Exile.ini.

Drag the Server Addon to your ExileServer Addons folder and profit."

...????? what?

Step1: Drag the server addon to your @exileserver \ addons folder.
step2: inside the mission file you will find the config.cpp, inside that is the class cfgcustomcode
- Now add it in there. 
step3: Add the Exile.ini additions from the repo to your Exile.ini.

*Oyeeh, don't forget to read the Sql Instructions.txt*

Edited by flyingdutchmen

Share this post


Link to post
Share on other sites
Advertisement

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.