Mikeeeyy 73 Report post Posted September 25, 2015 (edited) Precise PositionsIn Arma when large numbers with decimals are turned into a string they get rounded resulting in only 1 or 2 decimals left over, which in effect can alter the position of objects quite significantly after a server restart. This mod ensures everything is saved precisely including: players, vehicles, base objects, storage objects and territories. See the results below!With Without Top is WithoutBottom is WithCredit to KillzoneKid for the float to string code, fixed by me.Show your appreciation by clicking here.Un-PBO your exile_server.pbo.Navigate to 'exile_server\code', once there create a file with this name: 'ExileServer_util_floatToString.sqf'. Open the file and paste the following code inside:private "_arr"; if (abs (_this - _this % 1) == 0) exitWith { str _this }; _arr = toArray str abs (_this % 1); _arr set [0, 32]; toString (toArray str ( abs (_this - _this % 1) * _this / abs _this ) + _arr - [32])Save the file and close it.Navigate to 'exile_server\bootstrap' and open up this file: 'fn_preInit.sqf'.Go all the way to the bottom and above the last '];' paste this code:['ExileServer_util_floatToString', 'exile_server\code\ExileServer_util_floatToString.sqf']Then the line above the one you just pasted, add a comma to the end of it.Save the file and close it.Now do the following for each of these files:ExileServer_object_container_database_insert.sqfExileServer_object_container_database_update.sqfExileServer_object_vehicle_database_insert.sqfExileServer_object_vehicle_database_update.sqfExileServer_object_construction_database_insert.sqfExileServer_system_territory_database_insert.sqfNavigate to 'exile_server\code' and open up x file.Find this code:_position select 0, _position select 1, _position select 2,and replace it with:_position select 0 call ExileServer_util_floatToString, _position select 1 call ExileServer_util_floatToString, _position select 2 call ExileServer_util_floatToString,Save all the files and close them.Navigate to 'exile_server\code' and open up this file: 'ExileServer_object_player_database_update.sqf'.Find this code:_playerPos select 0, _playerPos select 1, _playerPos select 2,and replace it with:_playerPos select 0 call ExileServer_util_floatToString, _playerPos select 1 call ExileServer_util_floatToString, _playerPos select 2 call ExileServer_util_floatToString,Save the file and close it.Repack your 'exile_server' folder into a PBO and you're done! Edited September 25, 2015 by Mikeeeyy 7 Share this post Link to post Share on other sites
BrosGaming 2 Report post Posted September 25, 2015 Nice work... Trying this later Share this post Link to post Share on other sites
READTHESCROLL 203 Report post Posted September 25, 2015 Nice first post! Will def check this out! Share this post Link to post Share on other sites
WickedMoonShiner 10 Report post Posted September 25, 2015 Just did this going to see how it works out. I said F it just placed it on the production server. Share this post Link to post Share on other sites
Mikeeeyy 73 Report post Posted September 25, 2015 Nice work... Trying this later Nice first post! Will def check this out!Just did this going to see how it works out. I said F it just placed it on the production server. Thanks, let me know if you encounter any problems. Share this post Link to post Share on other sites
Mezo 1264 Report post Posted September 25, 2015 AWESOME first post! Something people have been waiting on for some time now. Thanks Mikeeeyy Share this post Link to post Share on other sites
Gotteshand 59 Report post Posted September 25, 2015 Hi.Is that also true for existing components?Big Thx Share this post Link to post Share on other sites
ElDubya 93 Report post Posted September 25, 2015 Mikeeeyy to the rescue!! Share this post Link to post Share on other sites
Flow 252 Report post Posted September 25, 2015 It is fixed in next release btw 1 Share this post Link to post Share on other sites
Torchgodz 112 Report post Posted September 25, 2015 @Flow so what you are saying is there is a new server version available? Share this post Link to post Share on other sites