DeletedUser
Guest
Uses of the script
This script can be used to sort out overviews, to find specific villages with the most resources, or the most merchants, or the least axes.
This script has many uses, for example it can be used to find villages which have churches in them, or ones with low wall levels, great to use while you're editting groups - or before using a village renamer.
It can also be used on the incoming screen to show the attack i.d of the incoming attack, and to sort attacks via your desired preferences.
N.B Change villages/commands per screen to enable all your villages/commands to be shown (and sorted). If you end up with more than 1,000, then you'll need to select a group that has less than 1,000 for this script to work.
The Script
The External Script
The Launcher (paste into your quickbar/ address bar/ bookmark target)
Browsers this script works on
Game Version: This script works with tribal wars 6.5 - 7.2
Script Version: 7.09
Author: Dale McKay
Many thanks to Dark Ryder for creating the bulk of this post.
This script can be used to sort out overviews, to find specific villages with the most resources, or the most merchants, or the least axes.
This script has many uses, for example it can be used to find villages which have churches in them, or ones with low wall levels, great to use while you're editting groups - or before using a village renamer.
It can also be used on the incoming screen to show the attack i.d of the incoming attack, and to sort attacks via your desired preferences.
N.B Change villages/commands per screen to enable all your villages/commands to be shown (and sorted). If you end up with more than 1,000, then you'll need to select a group that has less than 1,000 for this script to work.
Premium Overviews:
Combined Production Transports Troops Commands Incoming Buildings Research Groups
This script will work without premium, although obviously there's only the one overview.
Combined Production Transports Troops Commands Incoming Buildings Research Groups
This script will work without premium, although obviously there's only the one overview.
The Script
The External Script
The Launcher (paste into your quickbar/ address bar/ bookmark target)
Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/sort_rh.js',function(){fnOverviewSorter()});void 0;
Browsers this script works on
- Opera
Game Version: This script works with tribal wars 6.5 - 7.2
Script Version: 7.09
Author: Dale McKay
Author : Dale McKay
Email : dalesmckay@gmail.com
Credit : based on SlowTargets original Sorting Script.
TODO :
* Fix the Row Shading (every 2nd row should be highlighted, even after sorting)
NOTE :
* Use the following Client-side script launcher
javascript:var vScript={URLs:['http://crosstrigger.com/tw/v7/sort_rh.js','http://taktimer.net/scripts/dales/sort_rh.js'],id:'fnOverviewSorter',config:{},action:function(){win[vScript.id](vScript.config);},runOnce:true};var win=(window.frames.length>0)?window.main:window;win.$(win.document).ready(function(){var isLoaded=false;var ii=0;function fnEmbedScript(){if(isLoaded||(ii>=vScript.URLs.length)){return;}win.$.getScript(vScript.URLs[ii]+'?'+Math.round(Math.random()*1000000),function(){if(!isLoaded){isLoaded=true;win.setTimeout(function(a,b){vScript.action();},200);}});ii++;if(!isLoaded){win.setTimeout(function(a,b){fnEmbedScript();},3000);}}if(win[vScript.id]){if(!vScript.runOnce){vScript.action();}}else{fnEmbedScript();}});void(0);
____________________________________________________________
Copyright (C) 2011 Dale McKay, all rights reserved
version 1.0, 6 February 2011
This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
This notice may not be removed or altered from any source distribution.
____________________________________________________________
Email : dalesmckay@gmail.com
Credit : based on SlowTargets original Sorting Script.
TODO :
* Fix the Row Shading (every 2nd row should be highlighted, even after sorting)
NOTE :
* Use the following Client-side script launcher
javascript:var vScript={URLs:['http://crosstrigger.com/tw/v7/sort_rh.js','http://taktimer.net/scripts/dales/sort_rh.js'],id:'fnOverviewSorter',config:{},action:function(){win[vScript.id](vScript.config);},runOnce:true};var win=(window.frames.length>0)?window.main:window;win.$(win.document).ready(function(){var isLoaded=false;var ii=0;function fnEmbedScript(){if(isLoaded||(ii>=vScript.URLs.length)){return;}win.$.getScript(vScript.URLs[ii]+'?'+Math.round(Math.random()*1000000),function(){if(!isLoaded){isLoaded=true;win.setTimeout(function(a,b){vScript.action();},200);}});ii++;if(!isLoaded){win.setTimeout(function(a,b){fnEmbedScript();},3000);}}if(win[vScript.id]){if(!vScript.runOnce){vScript.action();}}else{fnEmbedScript();}});void(0);
____________________________________________________________
Copyright (C) 2011 Dale McKay, all rights reserved
version 1.0, 6 February 2011
This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
This notice may not be removed or altered from any source distribution.
____________________________________________________________
- Alternating row highlighting is not preserved
- Does not preserve secondary sorts
- Does not 'sort' checkboxes
- Dates, times and durations are just text sorts
- Alternating row highlighting
- Preserve secondary sorts
- 'sort' checkboxes
- Sort dates, times and durations by their numeric values
- Add a set of 'destination' coordinates that are preserved in a cookie and add a sortable distance column
Please post a reply to this thread. Cut and paste the text that is generated below the overview table and put it in a spoiler..
eg as below...
[SPOILER="debug text"]paste in all the text from your tw page[/SPOILER]
Also describe fully, using screenshots as and when appropriate
Expected behaviour :
Actual Behaviour :
[SPOILER="debug text"]paste in all the text from your tw page[/SPOILER]
Also describe fully, using screenshots as and when appropriate
Expected behaviour :
Actual Behaviour :
SlowTarget said:[12/06/2011] [thread=17086]Dale McKay's Overview Sorter script[/thread] is approved for use on UK servers
Last edited by a moderator: