For Morthy:
I'm looking through forum.tribalwars.net and foud theme
Improvements for scripts writers in 6.1 posted by Morthy.
I can't register to forum.tribalwars.net forum (not playing .net TW cos my bad english - and don't want to make fake ingame registering only to access forum of server I'm not playig, looks minimally unpolite), so can't post at forum.tribalwars.net
So sorry, I include few comments hier, my practice, because topics are near in subject.
-----
Giving divs, tables, spans etc intelligent IDs so that scripts can easily access them.
Thanks, thanks, thanks a lot.
Very useful if making (or adjusting others) script for language variants, to be universal. In my practice, for making CZ and SK together it'd be very handy.
And, of course, when design little changed /synchronization cells shifted,.../ then no need to repair script and force users to upgrade script.
----
Exposing information such as the game version, current player id, current village id, sitter id (if present) in easily accessible javascript vars.
Fine and useful. Don't forget:
- players name (
if Account sitting, then name of account you are sitting, not yours) /sometimes - map, noble planner - not ID but name is needed/
- Include also players tribe name & tag /for noble planner useful now/. And, for all purpose, players tribe ID. Of course, all only if is in any tribe.
- current village group ID (and if possibly, current group name) ;-) //may be only in overview & map & recruits & ... simlpy every time You need it, usually we'd need it too
Things like player/tribe ranks, etc, ... uhm ... fine if no much work & not spend servertime, only as a bonus.
EDIT: http://forum.tribalwars.net/showpost.php?p=4931593&postcount=4
Yup, yup, thanks a lot
----
Include some data from
configuration file (get_config) would be
very helpful, but to include whole config is megalomaniac. Only really basic informations are necessary:
- world speed
- troops speed
// and such informations to be able to autamatically count some tables cell positions:
- if archers world
- if paladin world
- if church world
- may be army camp world (unsure, are young, without experience - so just in case)
// to be sure in some circumstance
- if gold world
- "tech" number //unsure but better yes
Others can be accessed via AJAX, if needed.
But, if pre-prepared and included as external .js (variables or functions pre-setting; .js difrerent for each world), with our usuall 14day cache expiration, it would be fine. Not take dld time (just once per 14 days or if browser cache cleared). And also not spent servertime. Then, uhmmm, well, then really whole configuration file can be mirrored to .js
----
Include " interface.php?func= files " seems unncessary. Too big. Fine, but used in few special purposes, can be dld via AJAX in those cases