Giter Club home page Giter Club logo

script's Introduction

Sangu Package - Warlord TW extension

The Sangu Package is a Greasemonkey script for Firefox, Opera and Chrome that improves Tribal Wars gameplay speed and optimizes gameplay flow by adding extra features on pretty much every page, most notably the village overview pages.

Available in the Chrome Web Store or install with Tampermonkey.

Support

The Sangu Package supports all TribalWars.nl worlds. All features should work on the latest versions of Opera, FireFox and Chrome.

Code

The code is pure JavaScript with extensive use of jQuery.

Code structure:

  • *config* : server and world config, user settings and translations.
  • *func* : Functions of all kinds. (UI, DateTime, Debug, Persistence, Number and TW Building helpers)
  • *global* : Features active on all pages. (activator, friends, incomingsindicator, map jumper, ...)
  • *greasemonkey* : Code specific for Greasemonkey/UserScript.
  • *overviews* : The features for the Tribal Wars overview pages. Most code is in here
  • *page* : The features for specific Tribal Wars pages. ... and in here.
  • buildPackage.ahk: The Autohotkey script that creates sangupackage.user.js from start.user.js. Use this during development
  • mergeIt.ahk : Other merger script. Used for releasing the package.
  • mergeIt.ini : Configuration for mergeIt.ahk.
  • release.user.js : The release version of the script.
  • start.user.js : The file that is merged by mergeIt.ahk to sangupackage.user.js.
  • version.txt : Current version of Sangu Package.

Building the script from source

An Autohotkey script (buildPackage.ahk) can be used to assemble the different js files into "sangupackage.user.js". To do this: Download and install Autohotkey (make sure you download AutoHotkey_L (v1.1+) and not the basic flavor (v1.0.x)), then double click buildPackage.ahk and it will create the complete Greasemonkey script.

mergeIt.ahk and mergeIt.ini can be configured to not only assemble the script but to also copy it to browser Greasemonkey directories and even activate the browser window and refresh the TW page.

If an error like the one below occurs during assembly:
Incorrect version of Autohotkey error
Then you have installed an older version of AutoHotkey, known as AutoHotkey Basic which is not compatible with buildPackage or mergeIt.ahks.

This (Autohotkey) means the script can currently only be assembled on a Windows machine. (This was perhaps not really thought through:). If a non Windows person wants to join the project, I'm sure we can come up with a solution that works for both environments :)

Chrome Debugging

Run mergeIt.ahk and reload "Load Unpacked sangupackage-release" in chrome://extensions.

Contributing

The Sangu Package is currently looking for a project maintainer

Do note that I will make any (legit) pull requests available on sangu.be and on the Google Web Store as soon as possible.

Contact

You can contact me at [email protected]

script's People

Contributors

cgrain avatar danielvandenberg95 avatar invalidhandle avatar joeriboons avatar laoujin avatar magiclegend avatar martijn1279 avatar robbenp avatar tjeerdo avatar toxicdonut95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

script's Issues

Bug bij incomings indicator en vv

Er is waarschijnlijk een bug dat het aantal nieuwe aanvallen incorrect wordt weergegeven wanneer er binnenkomende aanvallen zijn op het eigen account en op een vakantievervang-account.

Dit is niet geconfirmeerd door mezelf omdat ik niet over een account met vv beschik.

Crash hernoemen bevel

"haulDescription is null" (info_command)
Al 2 rapporten ontvangen van deze bug.

Er zal een of andere corner case zijn waarbij deze bug optreedt.

Aanvalluh/verdedigen werkt niet correct.

Als je een dorppagina bekijkt kun je op Aanvalluh/verdedigen drukken.
Als je hierbij een aanval verstuurd wordt het verkeerde coordinaat ingevuld, waardoor de aanvallen niet correct gaan lopen.

Insecure jquery versie

In een profielpagina van een speler wordt een request gemaakt naar http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js, welke een https resource zou moeten zijn.

Aankomend overzicht - dynamisch groeperen

Dynamisch groeperen groepeert wel per dorp maar zou ook op aankomsttijd moeten sorten.

Nu kan een groep aankomen om 9:00 en een binnenkomende aanval lager in de lijst om vb 8:00 toekomen.

Dorpsoverzicht - herinrichten van divs crasht

Wanneer het sangu package actief is, breekt de TW functionaliteit om de divs (productie, eenheden, groepsverbanden, notitieblok, geloof, etc) te verplaatsen.

Je moet momenteel het package dus uitschakelen voordat je het dorpsoverzicht opnieuw kan inrichten.

Bevelpagina crasht bij niet PA

Zonder PA crasht page/info_command/info_command.js (eigen bevel pagina)

Dit door een call naar getTimeFromTW voor de cell "Duur" die niet wordt weergegeven zonder PA.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.