Jump to content
El' Rabito

Move elements at/near max objects limit fix

Recommended Posts

Every experienced base builder in exile knows the problem. You move an existing base object while your on/near max elements limit of your base and it's disappearing.
Here is a simple solution for that problem.
 

# Make a new Customcode override for ExileClient_object_construction_move.sqf with the code from Github.
https://github.com/ELRabito/Exile-Move-Element-Fix

Support Me: www.buymeacoffee.com/ElRabito

Updated / 30.07.2020 : Fixed moving of tents and safes outside of territories.

78e1356629ec1e15170fb3a1f1290f39.png

  • Like 2

Share this post


Link to post
Share on other sites

@El' RabitoThanks for this.

 

There is a problem though, in that if it's an item you can legitimately place outside a territory like a safe, the move fails and you get these 2 errors:
 

12:43:10 Error in expression <TerritoryNumberOfConstructions", 0]) >= _numberOfConstructionsAllowed) then
{
[">
12:43:10   Error position: <_numberOfConstructionsAllowed) then
{
[">
12:43:10   Error Undefined variable in expression: _numberofconstructionsallowed
12:43:10 File mpmissions\__CUR_MP.Altis\custom\ExileClient_object_construction_move.sqf..., line 47

and:
 

12:43:10 Error in expression <oryLevelConfig = _territoryLevelConfigs select ((_flag getVariable ["ExileTerrit>
12:43:10   Error position: <select ((_flag getVariable ["ExileTerrit>
12:43:10   Error Zero divisor
12:43:10 File mpmissions\__CUR_MP.Altis\custom\ExileClient_object_construction_move.sqf..., line 30


 

Share this post


Link to post
Share on other sites
3 hours ago, gogsworld said:

@El' RabitoThanks for this.

 

There is a problem though, in that if it's an item you can legitimately place outside a territory like a safe, the move fails and you get these 2 errors:
 


12:43:10 Error in expression <TerritoryNumberOfConstructions", 0]) >= _numberOfConstructionsAllowed) then
{
[">
12:43:10   Error position: <_numberOfConstructionsAllowed) then
{
[">
12:43:10   Error Undefined variable in expression: _numberofconstructionsallowed
12:43:10 File mpmissions\__CUR_MP.Altis\custom\ExileClient_object_construction_move.sqf..., line 47

and:
 


12:43:10 Error in expression <oryLevelConfig = _territoryLevelConfigs select ((_flag getVariable ["ExileTerrit>
12:43:10   Error position: <select ((_flag getVariable ["ExileTerrit>
12:43:10   Error Zero divisor
12:43:10 File mpmissions\__CUR_MP.Altis\custom\ExileClient_object_construction_move.sqf..., line 30


 

 


Yea small overlook from my side 😄
It's a bit different on our server with the building scripts. Iam looking into it.

  • Like 1

Share this post


Link to post
Share on other sites
16 hours ago, El' Rabito said:

 


Yea small overlook from my side 😄
It's a bit different on our server with the building scripts. Iam looking into it.

Probably solved by a simple condition something like:
 

if(player call ExileClient_util_world_isInOwnTerritory) then

I'll take a look

Share this post


Link to post
Share on other sites


#Updated:

Found the actual reason, on removing a element the construction number on the flag is not getting updated.
If you remove another element it does update. Spawning that update call with a small delay solves the problem.

https://github.com/ELRabito/Exile-Move-Element-Fix

You can remove the old workaround -> https://github.com/ELRabito/Exile-Move-Element-Fix/blob/f2a5220e5e52fe21b393cf228bb8453ec4952070/ExileClient_object_construction_move.sqf

  • Like 1

Share this post


Link to post
Share on other sites

×