Skip to content

Commit

Permalink
patch 3.81, readme, .user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gen BTC authored and gen BTC committed Oct 23, 2016
1 parent 5d25745 commit daadcaa
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// ==UserScript==
// @name AutoTrimps
// @namespace https://github.com/zininzinin/AutoTrimps
// @version 2.1
// @description Automate all the trimps!
// @author zininzinin, spindrjr, Ishkaru
// @include *trimps.github.io*
// @include *kongregate.com/games/GreenSatellite/trimps
// @grant none
// ==/UserScript==

var script = document.createElement('script');
script.id = 'AutoTrimps-script';
script.src = 'https://zininzinin.github.io/AutoTrimps/AutoTrimps2.js';
document.head.appendChild(script);
10 changes: 10 additions & 0 deletions AutoTrimps2.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@ function loadPageVariables() {
}
}

function getCorruptScale(type) {
switch (type) {
case "attack":
return mutations.Corruption.statScale(3);

case "health":
return mutations.Corruption.statScale(10);
}
}

//Saves automation settings to browser cache
function saveSettings() {
// debug('Saved');
Expand Down
43 changes: 41 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,48 @@
# AutoTrimps
Automation script for the idle incremental game Trimps
Automation script for the idle incremental game Trimps

**Installation instructions at the bottom of this README**
## Discussion / Discord Channel
Discord is a chat program. Come to talk about AutoTrimps, for help, or suggestions for new features : https://discord.gg/0VbWe0dxB9kIfV2C

## Script Installation
**Please backup your game via export before and during use to prevent losing your save due to corruption!**

***Option 1***: Install TamperMonkey (Chrome) or GreaseMonkey (Firefox)

**EASY INSTALL click here: https://github.com/zininzinin/AutoTrimps/raw/gh-pages/.user.js** (the Monkeys will detect this and prompt you to install it)

Overly detailed Chrome/TamperMonkey Instructions:
- Open the TamperMonkey dashboard and go to utilities – in the URL box paste https://github.com/zininzinin/AutoTrimps/raw/gh-pages/.user.js and click IMPORT
- Alternatively, paste the contents of `.user.js` into a user script (pay attention, it says .user.js - this contains 4 lines of code that loads AutoTrimps2.js)
- The script should automatically load everytime you go to https://trimps.github.io or the game on Kongregate
- You will know you have the script loaded if you see the Automation and Graphs buttons in the game menu at the bottom
- DO NOT PASTE THE FULL 2000+ line contents of the script into TamperMonkey! It will not work properly!
- The .user.js file is a "stub" or "loader" that references the AutoTrimps2.js file which is where the actual script is located.
- The purpose of .user.js is so that you don't have to rely on TamperMonkey's update functionality - instead it will automaticaly download the updated copy from the URL provided everytime its loaded.

FireFox/GreaseMonkey instructions:
- GreaseMonkey identifies userscripts by visiting a URL that ends with ".user.js" in them:
- Visit this URL, and Agree to install the userscript: https://github.com/zininzinin/AutoTrimps/raw/gh-pages/.user.js

***Option 2***: Via a Bookmark (does not work with Kongregate - maybe it does now that I added an include kongregate line to the file)
- Create new bookmark and set its target to:
```js
javascript:with(document)(head.appendChild(createElement('script')).src='https://zininzinin.github.io/AutoTrimps/AutoTrimps2.js')._
```
- This bookmark button has to be clicked manually after you go to https://trimps.github.io

***Option 3***: Paste into console (last resort for debugging, dont do this)

Chrome Instructions
- You can copy and paste the entire contents of AutoTrimps2.js into the Dev Console (F12 in chrome) of the page. (make sure the dropdown box to the left of "Preserve Log" is set to "top" - or "mainFrame (indexKong.html)" for kongregate.

Firefox Instructions
- Push Ctrl+Shift+K to go into console and look for the "Select an iframe" icon, and choose http://trimps.github.io/indexKong.html

Notes:
If you would like to use only the graphs module, replace `AutoTrimps2.js` with `Graphs.js` in the bookmark or your userscript.
Feel free to submit any bugs/suggestions as issues here on github.

## Recent changes

4/28/2016
Expand Down

0 comments on commit daadcaa

Please sign in to comment.