MGTDB 956 Report post Posted March 28 (edited) Just a little tweak, so when your players are building, they can check their Xm8/territory app to see how many constructions they can build up to for that level, now shows map coordinates too! Grab ExileClient_gui_xm8_slide_territory_onOpen.sqf from client files and change the code to the following:- Spoiler /** * ExileClient_gui_xm8_slide_territory_onOpen * * Exile Mod * exile.majormittens.co.uk * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_territoryLevelConfigs","_territoryLevelConfig","_numberOfConstructionsAllowed","_display", "_territoryDropDown", "_playerUID", "_flag", "_buildRights", "_size", "_level", "_parts", "_index", "_kickButton", "_leaveButton", "_promoteButton", "_demoteButton", "_radiusButton"]; disableSerialization; _display = uiNameSpace getVariable ["RscExileXM8", displayNull]; _territoryDropDown = _display displayCtrl 4132; lbClear _territoryDropDown; _playerUID = getPlayerUID player; { _flag = _x; _buildRights = _flag getVariable ["ExileTerritoryBuildRights", []]; if (_playerUID in _buildRights) then { _name = _flag getVariable ["ExileTerritoryName", ""]; _size = _flag getVariable ["ExileTerritorySize", 0]; _level = _flag getVariable ["ExileTerritoryLevel", 0]; _parts = count (_flag nearObjects ["Exile_Construction_Abstract_Static", _size]); _territoryLevelConfigs = getArray (missionConfigFile >> "CfgTerritories" >> "prices"); _territoryLevelConfig = _territoryLevelConfigs select ((_flag getVariable ["ExileTerritoryLevel", 0]) - 1); _numberOfConstructionsAllowed = _territoryLevelConfig select 2; _index = _territoryDropDown lbAdd (format ["%1 (Level: %2, Radius: %3m, Parts: %4/%5, Coords: %6)",_name, _level, _size, _parts,_numberOfConstructionsAllowed,mapGridPosition _flag]); _territoryDropDown lbSetData [_index, netId _flag]; }; } forEach (allMissionObjects "Exile_Construction_Flag_Static"); _kickButton = _display displayCtrl 4134; _kickButton ctrlEnable false; _leaveButton = _display displayCtrl 4135; _leaveButton ctrlEnable false; _promoteButton = _display displayCtrl 4136; _promoteButton ctrlEnable false; _demoteButton = _display displayCtrl 4137; _demoteButton ctrlEnable false; _radiusButton = _display displayCtrl 4138; _radiusButton ctrlEnable false; _territoryDropDown lbSetCurSel 0; true Then, place the file in your mission file and add the path to mission config/CfgExileCustomCode class CfgExileCustomCode { ExileClient_gui_xm8_slide_territory_onOpen = "myfixes\ExileClient_gui_xm8_slide_territory_onOpen.sqf";//change to your path! }; Pack your mission and you're done! Edit: Updated 23rd June 19, will now show coordinates of base Edited June 23 by MGTDB new feature! 9 7 Share this post Link to post Share on other sites
Z80CPU 527 Report post Posted March 28 Kool addition! Thanks! 1 1 Share this post Link to post Share on other sites
Sgt Smash 153 Report post Posted March 28 That is pretty handy Great to see people still putting in the effort to make new stuff for exile Share this post Link to post Share on other sites
El Rabito 78 Report post Posted March 28 (edited) Hhmhm not working for me on my live server. I placed a new flag on my test server with the same files and it works.https://gyazo.com/4ca444d5d459a772fea936f5e69a9f3e Edited March 28 by El Rabito Share this post Link to post Share on other sites
Runewulv 12 Report post Posted March 28 works great, always thought this info would be handy. Share this post Link to post Share on other sites
MrNeal 9 Report post Posted March 29 Thanks DB, works well. @El Rabito The first time I copied the ExileClient_gui_xm8_slide_territory_onOpen.sqf code into notepad++ I noticed the word "true" at the end was in a different font. I deleted the word and typed it in by hand and it worked after that. _radiusButton ctrlEnable false; _territoryDropDown lbSetCurSel 0; true Overtype true by hand ^^ 1 Share this post Link to post Share on other sites
El Rabito 78 Report post Posted March 29 12 hours ago, MrNeal said: Thanks DB, works well. @El Rabito The first time I copied the ExileClient_gui_xm8_slide_territory_onOpen.sqf code into notepad++ I noticed the word "true" at the end was in a different font. I deleted the word and typed it in by hand and it worked after that. _radiusButton ctrlEnable false; _territoryDropDown lbSetCurSel 0; true Overtype true by hand ^^ Now it works Never had this problem before, but thx for the info Share this post Link to post Share on other sites
[Z]EnDoh 2 Report post Posted March 30 @MGTDB Thank's mate work's well. Share this post Link to post Share on other sites
Peresvet81 1 Report post Posted April 17 (edited) 18:56:20 Could not load 'custom\ExileClient_gui_xm8_slide_territory_onOpen.sqf'. Extension not listed in allowedPreprocessFileExtensions 18:56:20 "ERROR: Override of ExileClient_gui_xm8_slide_territory_onOpen in CfgExileCustomCode points to a non-existent file: custom\ExileClient_gui_xm8_slide_territory_onOpen.sqf. Defaulting to vanilla Exile code!" can anyone upload a file? I have constant problems with copying from the forum, I have to rewrite everything by hand. Edited April 17 by Peresvet81 Share this post Link to post Share on other sites