Misc Battle Report Enhancer

DeletedUser

Guest
Author
cheesasaurus
Contributors
N/A
Quickbar Entry
javascript:
(window.TwCheese && TwCheese.tryUseTool('BRE'))
|| $.getScript('https://cheesasaurus.github.io/twcheese/launch/BRE.js?'
+~~((new Date())/3e5),{cache:1});void 0;
Public?
Public
What This Does

Enhances the page with tools and extra information
folderOverview.png



1) Configure display. Unchecked boxes will not be displayed in the display area.
folderConfiguration.png

2) Export links to "attack again with the same troops"
folderExport.png


you can copy the BB code text presented to create links in the notebook
folderExportNotebook.png


or copy the HTML text presented into a new html file
folderExportHTML.png


most browsers can read this file and create bookmarks from it
folderExportBookmark.png

(screenshot from internet explorer)

3) Report display. Shows extended information about reports that were renamed by the BRE.

4) Report selector bar.
Options:
- select all reports
- deselect all reports
- select green-dotted reports
- select yellow-dotted reports
- select red-dotted reports
- select blue-dotted reports
- select forwarded reports
- select reports where the attacking troops did not haul to their full abilities
- select reports where the attacking troops did haul to their full abilities
- select reports where the attacker only sent a small army
- select reports where an attacking nobleman died
- select reports where the defender's loyalty decreased
- select reports where the defender has no remaining units stationed in their village
- select reports where the report name contains user-specified text
- select reports with a user-specified attacker
- select reports with a user-specified defender
- select reports with a user-specified attacking village
- select reports with a user-specified defending village

5) Mass Renamer. This will rename all selected reports to a format readable by the BRE

6) Symbols.
grey dot - signifies that the attack only had a small amount of troops
cross - signifies that an attacking nobleman died. If it was your nobleman, you can click the cross and you'll be taken to his village's academy, where you can educate another one.
crown - signifies that an attacking nobleman successfuly lowered the defending village's loyalty

7) links to "attack again with the same troops"
The axe on the left links to the screen where you can "attack again with the same troops" from your current village.

The axe on the right links to the screen where you can "attack again with the same troops" from the original attacking village.
Extra information will be added to the report.
*remaining defense
*population summary
*time the attacker launched the attack
*time the attacking troops return
*Opponents Defeated information
*Predicted Loyalty (@current time, and @time of arrival if you were to send a noble from your current village)
*JSON representation of the report, to copy somewhere for other scripts to use
extraReportInfoMarked.png

Tools will be added, above the report:
*raiding calculator
*report renamer
*demolition suggestions (first row is to demolish the scouted buildings, second row is to demolish scouted buildings + 1 upgrade)
reportTools.png

Clicking the unit pictures will open up the rally point with the suggested amount already entered in.
note: the 'send troops' link only links to the rally point. The script won't do the dirty work for you :p

distributable (suboptimal)

icon:

This is supported for the latest versions of the following browsers:
  • Edge
  • Firefox
  • Chrome
  • Opera
Most likely works on Safari.

note: some features are only available for premium accounts

License Information
Code:
Battle Report Enhancer
Copyright (C) 2011  Nick Toby
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see http://www.gnu.org/licenses/
GNU General Public License

Supported Languages
See this post for details on how to include your server's language.
  • English
  • Czech
  • Swedish
  • Greek
  • Bosnian
  • French
  • Norwegian
  • Portuguese
 
Last edited by a moderator:
Upvote 0

DeletedUser

Guest
twCheese: atacker (coordinates, 85706)defender (coordinates,57763)_t:1340050575. _d[97967,6799,4681,21328,4390,8651,164,27016,178,2137,0,5]

what is that _t?
_d is defence inside as i guessed reading the report...


MKetP.png


(coordinates, 85706) those numbers are the village id?
 
Last edited by a moderator:

DeletedUser

Guest
I love it.. you think there be a way to export all the information [buildings]-troop info after you rename reports for the internal forum? That would be awesome! I used to rename reports by hand and then copy troop amounts and post to each village in forum but it is tedious by hand. This is very close to having me do no work by hand in this regard.
 

DeletedUser77177

Guest
i am interested in the repeat attack links.. but when i click on the script it shows me like only 10 reports and there is no room to scroll down also.. so the repeat attack link is sort of not of use.. can u improve the size of that window according to the number of reports shown on that window already..so that all the selected reports are visible and the links can be used for all reports.. i hope i have made my query clear.. :) thnks..
 

DeletedUser60201

Guest
There should be a vertical scroll bar on the right side of report display area.

What browser are you using, Bagheerra?

you think there be a way to export all the information [buildings]-troop info after you rename reports for the internal forum?

I've had plans for it to share scouted info with tribemates... just haven't gotten around to it yet. For a couple of years :lol:
 
Last edited by a moderator:

DeletedUser77177

Guest
na there is no vertical scroll bar :( i am using firefox..
 

A humble player

Guest
It looks as though the script would require some rather extensive reworking to make it handle multiple languages, and the original writer is in hiding (he exists, but he's not very active).
 

DeletedUser

Guest
Replace the 'en' with your market's code (for example: international is en, united kingdom is uk, beta is zz, german is de, etc), and the stuff to the right of the = sign with the appropriate words for your server and post here. If it doesn't use ANSI encoding, please specify which type of encoding to use. Also, if your server doesn't list the time the report was sent in the format of Oct 17, 2012 04:27:57, please explain how it works.

I don't mind adjusting the script, but I'm not going to gather data from 30+ servers by myself :lol:

Code:
case 'en':
	twcheese.language['buildings'][0] = 'Headquarters';
	twcheese.language['buildings'][1] = 'Barracks';
	twcheese.language['buildings'][2] = 'Stable';
	twcheese.language['buildings'][3] = 'Workshop';
	twcheese.language['buildings'][4] = 'Church';
	twcheese.language['buildings'][5] = 'First church';
	twcheese.language['buildings'][6] = 'Academy';
	twcheese.language['buildings'][7] = 'Smithy';
	twcheese.language['buildings'][8] = 'Rally point';
	twcheese.language['buildings'][9] = 'Statue';
	twcheese.language['buildings'][10] = 'Market';
	twcheese.language['buildings'][11] = 'Timber camp';
	twcheese.language['buildings'][12] = 'Clay pit';
	twcheese.language['buildings'][13] = 'Iron mine';
	twcheese.language['buildings'][14] = 'Farm';
	twcheese.language['buildings'][15] = 'Warehouse';
	twcheese.language['buildings'][16] = 'Hiding place';
	twcheese.language['buildings'][17] = 'Wall';
			
	twcheese.language['months'][0] = 'Jan';
	twcheese.language['months'][1] = 'Feb';
	twcheese.language['months'][2] = 'Mar';
	twcheese.language['months'][3] = 'Apr';
	twcheese.language['months'][4] = 'May';
	twcheese.language['months'][5] = 'Jun';
	twcheese.language['months'][6] = 'Jul';
	twcheese.language['months'][7] = 'Aug';
	twcheese.language['months'][8] = 'Sep';
	twcheese.language['months'][9] = 'Oct';
	twcheese.language['months'][10] = 'Nov';
	twcheese.language['months'][11] = 'Dec';

	twcheese.language['report']['catDamage'] = 'Damage by catapults:';
	twcheese.language['report']['ramDamage'] = 'Damage by rams:';
	twcheese.language['report']['farmAssistant'] = 'Possible resources:';
	twcheese.language['report']['haul'] = 'Haul:';
	twcheese.language['report']['loyalty'] = 'Loyalty:';
	twcheese.language['report']['timeSent'] = 'Battle time';
	twcheese.language['report']['unitsInTransit'] = 'Defender\'s troops, that were in transit';
	twcheese.language['report']['deletedPlayer'] = '(deleted)';
	twcheese.language['report']['unread'] = '(new)';

	twcheese.language['twcheese']['Building'] = 'Building';
	twcheese.language['twcheese']['Help'] = 'Help';
	twcheese.language['twcheese']['noReportsSelected'] = 'You haven\'t selected any reports to be renamed.';
 
Last edited by a moderator:

DeletedUser

Guest
Replace the 'en' with your market's code (for example: international is en, united kingdom is uk, beta is zz, german is de, etc), and the stuff to the right of the = sign with the appropriate words for your server and post here. If it doesn't use ANSI encoding, please specify which type of encoding to use. Also, if your server doesn't list the time the report was sent in the format of Oct 17, 2012 04:27:57, please explain how it works.

I don't mind adjusting the script, but I'm not going to gather data from 30+ servers by myself :lol:

market code: cs
encoding: UTF-8
time format: 17.10.12 04:27:57
Code:
case 'cs':
        /*==== divokekmeny.cz/ ====*/
        twcheese.language['buildings'][0] = 'Hlavní budova';
        twcheese.language['buildings'][1] = '[COLOR=#000000][FONT=Verdana]Kasárna[/FONT][/COLOR]';
        twcheese.language['buildings'][2] = '[COLOR=#000000][FONT=Verdana]Stáj[/FONT][/COLOR]';
        twcheese.language['buildings'][3] = '[COLOR=#000000][FONT=Verdana]Dílna[/FONT][/COLOR]';
        twcheese.language['buildings'][4] = 'Kostel';
        twcheese.language['buildings'][5] = 'První kostel';
        twcheese.language['buildings'][6] = '[COLOR=#000000][FONT=Verdana]Panský dvůr[/FONT][/COLOR]';
        twcheese.language['buildings'][7] = '[COLOR=#000000][FONT=Verdana]Kovárna[/FONT][/COLOR]';
        twcheese.language['buildings'][8] = '[COLOR=#000000][FONT=Verdana]Nádvoří[/FONT][/COLOR]';
        twcheese.language['buildings'][9] = '[COLOR=#000000][FONT=Verdana]Socha[/FONT][/COLOR]';
        twcheese.language['buildings'][10] = '[COLOR=#000000][FONT=Verdana]Tržiště[/FONT][/COLOR]';
        twcheese.language['buildings'][11] = '[COLOR=#000000][FONT=Verdana]Dřevorubec[/FONT][/COLOR]';
        twcheese.language['buildings'][12] = '[COLOR=#000000][FONT=Verdana]Lom na těžbu hlíny[/FONT][/COLOR]';
        twcheese.language['buildings'][13] = '[COLOR=#000000][FONT=Verdana]Železný důl[/FONT][/COLOR]';
        twcheese.language['buildings'][14] = '[COLOR=#000000][FONT=Verdana]Selský dvůr[/FONT][/COLOR]';
        twcheese.language['buildings'][15] = '[COLOR=#000000][FONT=Verdana]Skladiště[/FONT][/COLOR]';
        twcheese.language['buildings'][16] = '[COLOR=#000000][FONT=Verdana]Skrýš[/FONT][/COLOR]';
        twcheese.language['buildings'][17] = '[COLOR=#000000][FONT=Verdana]Hradby[/FONT][/COLOR]';
        
        twcheese.language['months'][0] = 'Jan';
        twcheese.language['months'][1] = 'Feb';
        twcheese.language['months'][2] = 'Mar';
        twcheese.language['months'][3] = 'Apr';
        twcheese.language['months'][4] = 'May';
        twcheese.language['months'][5] = 'Jun';
        twcheese.language['months'][6] = 'Jul';
        twcheese.language['months'][7] = 'Aug';
        twcheese.language['months'][8] = 'Sep';
        twcheese.language['months'][9] = 'Oct';
        twcheese.language['months'][10] = 'Nov';
        twcheese.language['months'][11] = 'Dec';
        
        twcheese.language['report']['cats'] = 'Škoda vzniklá střelbou z katapultu:';
        twcheese.language['report']['rams'] = 'Škoda vzniklá beranidlem:';
        twcheese.language['report']['farmAssistant'] = 'Vyšpehované suroviny:';
        twcheese.language['report']['haul'] = 'Kořist:';
        twcheese.language['report']['loyalty'] = 'Oddanost:';
        twcheese.language['report']['timeSent'] = 'Odesláno';
        twcheese.language['report']['unitsInTransit'] = 'Vojsko obránce, které bylo na cestě';

tysm in advance!
 

ShadowfoxDrow

Guest
Running it in chrome, seems like it's buggy in that it just named my report "twCheese: ShadowfoxDrow (191|532,94139)Disco Bandit(196|529,127417)_t:1354878565. _d[0,0,0,0,0,0,0,0,0,0,0,0] _b[20,25,17,10,0,0,1,20,1,1,20,30,30,29,30,30,0,20] _r[1,1,1]" when i clicked Auto-Rename.

Manual Entry to try to change it to Internal Conquer results in "twCheese: ShadowfoxDrow (191|532,94139)Disco Bandit(196|529,127417)_t:1354878565. _d[0,0,0,0,0,0,0,0,0,0,0,0] _b[20,25,17,10,0,0,1,20,1,1,20,30,30,29,30,30,0,20] _r[1,1,1] _n:Internal Conquer"

Seems a little extensive and cluttered, no? Or maybe I'm not using it right?
 

ShadowfoxDrow

Guest
Also, using it in the attacks menu, it doesn't seem to offer any information. Going to try it in Opera (I'm using Chrome at the moment) will update once I've tried it there.

Updated both and still no luck. I think there may be an issue with that portion of the script :(
 
Last edited:

DeletedUser

Guest
My script was working fine, but just this morning nothing is coming up when I click the script now. Anyone know the problem?
 

A humble player

Guest
Running it in chrome, seems like it's buggy in that it just named my report "twCheese: ShadowfoxDrow (191|532,94139)Disco Bandit(196|529,127417)_t:1354878565. _d[0,0,0,0,0,0,0,0,0,0,0,0] _b[20,25,17,10,0,0,1,20,1,1,20,30,30,29,30,30,0,20] _r[1,1,1]" when i clicked Auto-Rename.

Manual Entry to try to change it to Internal Conquer results in "twCheese: ShadowfoxDrow (191|532,94139)Disco Bandit(196|529,127417)_t:1354878565. _d[0,0,0,0,0,0,0,0,0,0,0,0] _b[20,25,17,10,0,0,1,20,1,1,20,30,30,29,30,30,0,20] _r[1,1,1] _n:Internal Conquer"

Seems a little extensive and cluttered, no? Or maybe I'm not using it right?
The renamer basically renames each report to a very shorthand list of the inofrmation contained within. In your case, this means that this report was the village shadowfoxDrow, with the given cords and ID attacking the other village, at the time given in seconds since 1970 (it has to do with computer stuff), enemy had no defense and its buildings were hq 20, rax 25, and so on. You scouted (or farmed, I forget which) 1 of each resource.

If you run the script again on the report page, it will read the shorthand and enable you to analyze/look at/use reports en masse, accessing all of the information contained inside them. Actually rather useful, but it takes some getting used to.
 
Top